在中央(https://repo.maven.apache.org/maven2)中找不到工件org.opendaylight.odlparent:odlparent:pom:3.0.2

时间:2018-08-07 18:43:02

标签: opendaylight

this tutorial之后,我成功创建了主题,被困在订阅主题上。

mvn install对于hweventsource失败,如下所述。

当任何netconf服务器(挂载点)可以生成事件通知时,此功能可以允许单独使用odl-hweventsource-uagent吗?

$git clone https://git.opendaylight.org/gerrit/coretutorials.git

$cd coretutorials

$mvn clean install -Dcheckstyle.skip=true -DskipTests=true


$ mvn clean install -Dcheckstyle.skip=true -DskipTests=true

[INFO] Scanning for projects...
Downloading from central: https://repo.maven.apache.org/maven2/org/opendaylight/odlparent/odlparent/3.0.2/odlparent-3.0.2.pom

[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for org.opendaylight.coretutorials:coretutorials-aggregator:4.0.0-SNAPSHOT: Could not find artifact org.opendaylight.odlparent:odlparent:pom:3.0.2 in central (https://repo.maven.apache.org/maven2) and 'parent.relativePath' points at no local POM @ line 9, column 11
 @
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]

[ERROR]   The project org.opendaylight.coretutorials:coretutorials-aggregator:4.0.0-SNAPSHOT (/Users/babukt/Downloads/karaf-0.7.2/coretutorials/pom.xml) has 1 error

[ERROR]     Non-resolvable parent POM for org.opendaylight.coretutorials:coretutorials-aggregator:4.0.0-SNAPSHOT: Could not find artifact org.opendaylight.odlparent:odlparent:pom:3.0.2 in central (https://repo.maven.apache.org/maven2) and 'parent.relativePath' points at no local POM @ line 9, 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
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

1 个答案:

答案 0 :(得分:1)

尚未从Maven Central中获得OpenDaylight工件,您需要将我们的存储库添加到您的Maven配置中。有关说明,请参见the OpenDaylight wiki;简短的版本是:

cp ~/.m2/settings.xml{,.orig}
wget -q -O - https://raw.githubusercontent.com/opendaylight/odlparent/master/settings.xml > ~/.m2/settings.xml

(忽略cp命令中的错误,如果您还没有Maven设置文件,它将发出抱怨。)

关于您对odl-hweventsource-uagent的问题,我不确定您的意思-您应该将其作为一个单独的问题提出,并详细说明您要做什么。