Maven opendaylight中的Hello world错误

Maven opendaylight中的Hello world错误,maven,opendaylight,Maven,Opendaylight,我试图用ODL mdsal实现hello world,“使用不同的名称qos”。我在和中执行了两个不同的过程。但在这两个过程中都出现了相同的错误 [INFO] Reactor Summary: [INFO] ODL :: org.opendaylight.qos :: qos-api ............. SUCCESS [ 8.455 s] [INFO] ODL :: org.opendaylight.qos :: qos-impl ............ SUCCESS [ 3

我试图用ODL mdsal实现hello world,“使用不同的名称qos”。我在和中执行了两个不同的过程。但在这两个过程中都出现了相同的错误

[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

为了向其他人澄清,
org.opendaylight.qos
不是一个opendaylight.org项目,而是您在使用原型时给出的名称

损坏的
功能
构建似乎是因为发布的(旧版)
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

为了向其他人澄清,
org.opendaylight.qos
不是一个opendaylight.org项目,而是您在使用原型时给出的名称

损坏的
功能
构建似乎是因为发布的(旧版)
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

这会有帮助吗??SLF4J:类路径包含多个SLF4J绑定。SLF4J:在[jar:file:/home/.m2/repository/org/apache/karaf/org.apache.karaf.client/3.0.8.jar!/org/SLF4J/impl/StaticLoggerBinder.class]中找到绑定SLF4J:在[jar:file:/home/.m2/repository/org/ops4j/pax/logging/pax logging/pax logging-api/1.8.4/pax-logging-api-1.8.4.jar!/org/SLF4J/impl/StaticLoggerBinder.class]中找到绑定SLF4J:在[jar:file:/ghalwash/.m2/repository/org/SLF4J/SLF4J simple/1.7.21/SLF4J-simple-1.7.21.jar!/org/SLF4J/impl/StaticLoggerBinder.class]中找到绑定,这可能会有所帮助??SLF4J:类路径包含多个SLF4J绑定。SLF4J:在[jar:file:/home/.m2/repository/org/apache/karaf/org.apache.karaf.client/3.0.8.jar!/org/SLF4J/impl/StaticLoggerBinder.class]中找到绑定SLF4J:在[jar:file:/home/.m2/repository/org/ops4j/pax/logging/pax logging/pax logging-api/1.8.4/pax-logging-api-1.8.4.jar!/org/SLF4J/impl/StaticLoggerBinder.class]中找到绑定SLF4J:在[jar:file:/ghalwash/.m2/repository/org/SLF4J/SLF4J simple/1.7.21/SLF4J-simple-1.7.21.jar!/org/SLF4J/impl/StaticLoggerBinder.class]中找到绑定。我需要定义存储库吗-DarchetypeRepository=@Haitham通常不会,但希望您在这里看到如何在上获取ODL所需的自定义Maven settings.xml?是的,我注意到了my setting.xml中的快照和公共URL,非常感谢您的帮助我需要定义存储库吗-DarchetypeRepository=@Haitham通常不会,但希望您在这里看到如何在上获取ODL所需的自定义Maven settings.xml?是的,我注意到了my setting.xml中的快照和公共URL,非常感谢您的帮助