Maven OpenDaylight netconf构建问题
我尝试按照本教程“入门”部分中的说明构建netconf模块 我找到了可能的答案:Maven OpenDaylight netconf构建问题,maven,opendaylight,Maven,Opendaylight,我尝试按照本教程“入门”部分中的说明构建netconf模块 我找到了可能的答案: 使用正确的“settings.xml” 尝试使用不同的maven命令,如: mvn-Pq清洁安装; mvn安装-DskipTests 不幸的是,所有这些变体对我都不起作用 所以,我安装了所有必要的功能,比如maven,获得了正确的“settings.xml”,从git中提取了netconf项目,并尝试使用mvn clean install来构建它。 之后我犯了很多错误: [ERROR] [ERROR] Some p
[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”中,但我不知道该怎么办。有人有什么想法吗?您的Maven存储库仍然“记得”未能下载构建所需的OpenDaylight工件。要解决此问题,可以使用
-U
强制更新:
mvn -U clean install
您还需要完整的JDK而不是JRE来构建,因此请安装:
sudo apt install openjdk-8-jdk
@StephenKitt现在我有了下一个问题:
[ERROR]无法执行goal org.apache.maven.plugins:maven checkstyle plugin:2.17:check(检查许可证)在项目netconf上,auth:Execution-check-license of-goal-org.apache.maven.plugins:maven-checkstyle-plugin:2.17:检查失败:plugin-org.apache.maven.plugins:maven-checkstyle-plugin:2.17或其依赖项之一无法解析:无法在指定路径找到工件com.sun:tools:jar:1.8.0/usr/lib/jvm/java-8-openjdk-amd64/jre/。/lib/tools.jar->[Help 1]
@StephenKitt'java-version openjdk version“1.8.0_171”openjdk运行时环境(build 1.8.0_171-8u171-b11-0ubuntu0.18.04.1-b11)openjdk 64位服务器虚拟机(build 25.171-b11,混合模式)@StephenKitt噢,它还活着!谢谢你的帮助。很抱歉打扰你。