我在settinngs.xml中添加了3个存储库
当我
朗姆酒mvn clean install
从哪里mvn
喜欢依赖
它是从存储库(buil1,buil2,buil3)还是从公共关系看? nexus的顺序是什么?
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<profiles>
<profile>
<id>build</id>
<repositories>
<repository>
<id>build1</id>
<url>url1....</url>
</repository>
<repository>
<id>build2</id>
<url>url2....</url>
</repository>
<repository>
<id>build3</id>
<url>url3....</url>
</repository>
</repositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>build</activeProfile>
</activeProfiles>
</settings>
答案 0 :(得分:1)