在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
答案 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
的问题,我不确定您的意思-您应该将其作为一个单独的问题提出,并详细说明您要做什么。