vor*_*ger 7 nexus maven-plugin maven maven-assembly-plugin
I have the following problem with the maven-assembly-plugin:
In a build of a project using this custom settings.xml (which defines <repository> for https://nexus.opendaylight.org, for code and plugins, snapshot and releases), which makes everything else in the build than the maven-assembly-plugin fetch everything from this nexus.opendaylight.org, the maven-assembly-plugin spends an eternity querying trying (and failing) to fetch many org.opendaylight SNAPSHOT dependencies which are only available on nexus.opendaylight.org from other remote repositories, such as oss.sonatype.org, repository.apache.org, nexus.codehaus.org, maven.glassfish.org ... :-(
Presumably all these other Maven repositorites are listed in POM of some dependencies... but other Maven plugins ignore those - why doesn't maven-assembly-plugin, and how can it be made to?
您应该能够通过执行以下操作立即重现此问题:
git clone https://github.com/vorburger/opendaylight-simple/
cd opendaylight-simple
mvn -s .travis-maven-settings.xml clean package
Run Code Online (Sandbox Code Playgroud)
它并不总是发生,但应该首先尝试;我想一旦它尝试过,Maven 就会记住它 24 小时,然后它又发生了。
| 归档时间: |
|
| 查看次数: |
352 次 |
| 最近记录: |