我正在尝试在本地开发机器上构建https://github.com/opendaylight/mdsal.git。
构建在以下位置失败:
[INFO] features4-mdsal .................................... SUCCESS [ 1.315 s]
[INFO] features-mdsal-aggregator .......................... FAILURE [ 0.164 s]
The reason being:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.6:site (generate-site) on project features-mdsal-aggregator: Execution generate-site of goal org.apache.maven.plugins:maven-site-plugin:3.6:site failed: Unable to read local module POM: Some problems were encountered while processing the POMs:
[ERROR] [ERROR] Unresolveable build extension: Plugin org.apache.karaf.tooling:karaf-maven-plugin:4.0.8-odl or one of its dependencies could not be resolved: Failure to find org.apache.karaf.tooling:karaf-maven-plugin:jar:4.0.8-odl in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced @原因是,正在尝试从https://repo.maven.apache.org/maven2错误地下载karaf maven-plugin:jar:4.0.8-odl。
它实际上存在于https://nexus.opendaylight.org/content/repositories/public/中。我已经注意从推荐的url:https://github.com/opendaylight/odlparent/blob/master/settings.xml中使用正确的settings.xml。我将其放置为~/.m2/settings.xml
发布于 2017-03-24 23:32:16
这实际上是Maven站点插件的一个问题;一旦Karaf 4.0.9发布,它就会被修复。同时,您可以使用-Dmaven.site.skip=true在本地构建,以完全避免该问题。
https://stackoverflow.com/questions/42981022
复制相似问题