opendaylight 中的 Hello world 错误
Hello world error in opendaylight
我正在尝试在 ODL-mdsal 中实现 hello world,"under a different name qos"。我在 link1 and 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
我没有更改功能文件夹中的任何内容,我的 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
只是为了向其他人澄清,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
我正在尝试在 ODL-mdsal 中实现 hello world,"under a different name qos"。我在 link1 and 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
我没有更改功能文件夹中的任何内容,我的 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
只是为了向其他人澄清,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