Привет мир ошибка в opendaylight

Я пытаюсь реализовать hello world в ODL-mdsal "под другим именем 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

Я ничего не менял в папке функций, мой проект 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

person Haitham    schedule 05.02.2018    source источник
comment
это может помочь?? SLF4J: путь к классу содержит несколько привязок SLF4J. SLF4J: найдена привязка в [jar:file:/home/.m2/repository/org/apache/karaf/org.apache.karaf.client/3.0.8/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-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]   -  person Haitham    schedule 05.02.2018


Ответы (1)


Просто чтобы уточнить для всех остальных, 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
person vorburger    schedule 06.02.2018
comment
мне нужно определить репозиторий? -DarchetypeRepository=nexus.opendaylight.org/content/repositories/ - person Haitham; 28.03.2018
comment
@Haitham обычно нет, но надеюсь, вы видели здесь, как получить пользовательский файл settings.xml Maven, необходимый для ODL, на wiki.opendaylight.org/view/ ? - person vorburger; 03.04.2018
comment
Да, я заметил моментальный снимок и общедоступные URL-адреса в моем файле settings.xml. Большое спасибо за вашу помощь. - person Haitham; 04.04.2018