0

我已经使用下载了代码

git clone https://git.opendaylight.org/gerrit/p/integration/distribution.git

当我尝试构建它时,它显示以下错误。

[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for org.opendaylight.integration:root:0.5.0-SNAPSHOT: Could not find artifact org.opendaylight.odlparent:odlparent:pom:1.7.0-SNAPSHOT and 'parent.relativePath' points at no local POM @ line 4, column 11
 @
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project org.opendaylight.integration:root:0.5.0-SNAPSHOT (/home/controller/distribution/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM for org.opendaylight.integration:root:0.5.0-SNAPSHOT: Could not find artifact org.opendaylight.odlparent:odlparent:pom:1.7.0-SNAPSHOT and 'parent.relativePath' points at no local POM @ line 4, column 11 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
4

2 回答 2

0

您需要确保settings.xml指向 OpenDaylight Nexus 工件存储库。执行此操作的最简单方法是下载https://raw.githubusercontent.com/opendaylight/odlparent/master/settings.xml并将其放在您的~/.m2文件夹中(无论在哪里——这取决于您的操作系统)。

于 2016-06-21T15:05:34.777 回答
0

是的,您的 settings.xml 应该更新。另一种更新方式(尽管结果与上述相同):

从你的终端运行这个:
cp -n ~/.m2/settings.xml{,.orig} ; \wget -q -O - https://raw.githubusercontent.com/opendaylight/odlparent/master/settings.xml > ~/.m2/settings.xml

正如 stephen 所建议的,路径可能因您的操作系统而异。相应地改变它。

于 2016-06-23T21:00:01.007 回答