当我使用JBoss Wildfly Swarm插件时,它尝试从repository.jboss.org maven存储库下载依赖项,即使我在settings.xml中设置了具有相同id的存储库
[INFO] --- wildfly-swarm-plugin:2017.5.0:package (default) @ my-swarm-driver ---
[INFO] Downloading: https://repository.jboss.org/nexus/content/groups/public/com/test/java-client/1.0-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata com...
如何强制插件使用我的企业存储库?
答案 0 :(得分:0)
您必须在settings.xml中设置一个新镜像(最好使用HOME_DIR / .m2 / settings.xml下的私有镜像
<settings>
...
<mirrors>
<mirror>
<id>jboss-public-repository-group-axa</id>
<name>My Mirror JBoss Public Group Central</name>
<url>https://myserver.com/nexus/content/groups/my-group</url>
<mirrorOf>jboss-public-repository-group</mirrorOf>
</mirror>
</mirrors>