找不到工件 org.alfresco:alfresco-super-pom

Could not find artifact org.alfresco:alfresco-super-pom

我想从源代码构建 alfresco-repository JAR。

我克隆了 README 的 https://github.com/Alfresco/alfresco-repository and ran the command specified in the Building 部分:

$ mvn clean install
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for org.alfresco:alfresco-repository:6.21-SNAPSHOT: Failure to find org.alfresco:alfresco-super-pom:pom:9 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 8, column 13

我做错了什么?

README里没有说,但是你必须先执行这个(在任何目录下):

git clone git@github.com:Alfresco/alfresco-super-pom.git
cd alfresco-super-pom
mvn install

至此alfresco-repository就可以搭建成功了