38 lines
1.2 KiB
XML
38 lines
1.2 KiB
XML
<settings>
|
|
<!-- Maven 3.8+ 默认拦截 HTTP 仓库(maven-default-http-blocker)。
|
|
nexus maven-public 仅提供 HTTP,故在此覆盖该 blocker,放行内网 nexus。 -->
|
|
<mirrors>
|
|
<mirror>
|
|
<id>maven-default-http-blocker</id>
|
|
<mirrorOf>external:http:*</mirrorOf>
|
|
<name>nexus maven-public (allow http)</name>
|
|
<url>http://192.168.10.160:8081/repository/maven-public/</url>
|
|
<blocked>false</blocked>
|
|
</mirror>
|
|
</mirrors>
|
|
<profiles>
|
|
<profile>
|
|
<id>nexus</id>
|
|
<repositories>
|
|
<repository>
|
|
<id>central</id>
|
|
<url>http://192.168.10.160:8081/repository/maven-public/</url>
|
|
<releases><enabled>true</enabled></releases>
|
|
<snapshots><enabled>true</enabled></snapshots>
|
|
</repository>
|
|
</repositories>
|
|
<pluginRepositories>
|
|
<pluginRepository>
|
|
<id>central</id>
|
|
<url>http://192.168.10.160:8081/repository/maven-public/</url>
|
|
<releases><enabled>true</enabled></releases>
|
|
<snapshots><enabled>true</enabled></snapshots>
|
|
</pluginRepository>
|
|
</pluginRepositories>
|
|
</profile>
|
|
</profiles>
|
|
<activeProfiles>
|
|
<activeProfile>nexus</activeProfile>
|
|
</activeProfiles>
|
|
</settings>
|