我正在尝试在ODL-mdsal中实现hello world,"以不同的名称qos"。我在link1和link2。中遵循了两个不同的程序,但两者都有相同的错误。
[INFO] Reactor Summary:
[INFO] ODL :: org.opendaylight.qos :: qos-api ............. SUCCESS [ 8.455 s]
[INFO] ODL :: org.opendaylight.qos :: qos-impl ............ SUCCESS [ 3.612 s]
[INFO] ODL :: org.opendaylight.qos :: qos-cli ............. SUCCESS [ 3.268 s]
[INFO] ODL :: org.opendaylight.qos :: qos-features ........ FAILURE [01:30 min]
[INFO] ODL :: org.opendaylight.qos :: qos-karaf ........... SKIPPED
[INFO] ODL :: org.opendaylight.qos :: qos-artifacts ....... SKIPPED
[INFO] ODL :: org.opendaylight.qos :: qos-it .............. SKIPPED
[INFO] qos ................................................ SKIPPED
[INFO] BUILD FAILURE
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project qos-features: There are test failures.
[ERROR] Please refer to /home/qos/features/target/surefire-reports for the individual test results.
[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/MojoFailureException
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :qos-features
我没有更改feature文件夹中的任何内容,我的maven项目是使用以下命令构建的。我首先使用oomph安装程序和集成项目来设置所需的插件,然后我添加了我的项目作为现有的maven项目。
mvn archetype:generate -DarchetypeGroupId= org.opendaylight.controller -DarchetypeArtifactId=opendaylight-startup-archetype -DarchetypeRepository=http://nexus.opendaylight.org/content/repositories/opendaylight.release/ -DarchetypeCatalog=remote -DarchetypeVersion=1.3.0-Carbon
答案 0 :(得分:2)
为了澄清其他人,org.opendaylight.qos
不是Opendaylight.org项目,而只是您在使用原型时给出的名称。
损坏的features
版本似乎是因为已发布的(旧版)archetypeVersion=1.3.0-Carbon
似乎已被破坏。你考虑过使用最新的吗?
确保您拥有ODL settings.xml,然后只需:
mvn archetype:generate -DarchetypeGroupId=org.opendaylight.controller \
-DarchetypeArtifactId=opendaylight-startup-archetype \
-DarchetypeCatalog=remote -DarchetypeVersion=1.5.0-SNAPSHOT