Проблема сборки OpenDaylight netconf - PullRequest
0 голосов
/ 13 июня 2018

Я пытался собрать модуль netconf, следуя инструкциям в разделах «Начало работы» ODL wiki .

Возможные ответы, которые я нашел:

  1. Используйте правильный «settings.xml».
  2. Попробуйте использовать различные команды maven, такие как: mvn -Pq clean install;mvn install -DskipTests

К сожалению, все эти варианты не сработали для меня.

Итак, я установил все необходимые функции, такие как maven, получил правильные настройки. settings.xml'вытащил проект netconf из git и попытался собрать его, используя mvn clean install .После этого я получил много ошибок:

[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for org.opendaylight.netconf:netconf-auth:1.4.2-SNAPSHOT: Failure to find org.opendaylight.odlparent:odlparent-bundle:pom:3.1.0 in https://nexus.opendaylight.org/content/repositories/public/ was cached in the local repository, resolution will not be reattempted until the update interval of opendaylight-mirror has elapsed or updates are forced and 'parent.relativePath' points at no local POM @ line 11, column 13

...

[ERROR]   The project org.opendaylight.netconf:netconf-auth:1.4.2-SNAPSHOT (/home/ssavchen/netconf/netconf/netconf-auth/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM for org.opendaylight.netconf:netconf-auth:1.4.2-SNAPSHOT: Failure to find org.opendaylight.odlparent:odlparent-bundle:pom:3.1.0 in https://nexus.opendaylight.org/content/repositories/public/ was cached in the local repository, resolution will not be reattempted until the update interval of opendaylight-mirror has elapsed or updates are forced and 'parent.relativePath' points at no local POM @ line 11, column 13 -> [Help 2]
org.apache.maven.model.resolution.UnresolvableModelException: Failure to find org.opendaylight.odlparent:odlparent-bundle:pom:3.1.0 in https://nexus.opendaylight.org/content/repositories/public/ was cached in the local repository, resolution will not be reattempted until the update interval of opendaylight-mirror has elapsed or updates are forced
    ...
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Failure to find org.opendaylight.odlparent:odlparent-bundle:pom:3.1.0 in https://nexus.opendaylight.org/content/repositories/public/ was cached in the local repository, resolution will not be reattempted until the update interval of opendaylight-mirror has elapsed or updates are forced

У меня есть проблема в 'odlparent-bundle', но я понятия не имеюЧто с этим делать.У кого-нибудь есть идеи?

1 Ответ

0 голосов
/ 14 июня 2018

Ваш репозиторий Maven все еще «запоминает», что ему не удалось загрузить артефакты OpenDaylight, необходимые для сборки.Чтобы исправить это, вы можете принудительно установить обновления с помощью -U:

mvn -U clean install

. Вам также нужен полный JDK, а не JRE, поэтому установите его:

sudo apt install openjdk-8-jdk
...