<settings>
<mirrors>
<mirror>
<!–This sends everything else to /public –>
<id>nexus</id>
<mirrorOf>*</mirrorOf>
<url>http://ip:port/nexus/path/name/public</url>
</mirror>
</mirrors>
<profiles>
<profile>
<id>nexus</id>
<!–Enable snapshots for the built in central repo to direct –>
<!–all requests to nexus via the mirror –>
<repositories>
<repository>
<id>central</id>
<url>http://central</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>central</id>
<url>http://central</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<activeProfiles>
<!–make the profile active all the time –>
<activeProfile>nexus</activeProfile>
</activeProfiles>
<servers>
<server>
<id>nexus</id>
<username>username</username>
<password>password</password>
</server>
</servers>
</settings>
发布者:全栈程序员-用户IM,转载请注明出处:https://javaforall.cn/100495.html原文链接:https://javaforall.cn
【正版授权,激活自己账号】: Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛
【官方授权 正版激活】: 官方授权 正版激活 支持Jetbrains家族下所有IDE 使用个人JB账号...