<repositories>
<repository>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
<id>snapshot</id>
<name>Snapshots Repositories</name>
<url>http://ip:8081/nexus/content/repositories/snapshots/</url>
</repository>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>release</id>
<name>Release Repository</name>
<url>http://ip:8081/nexus/content/repositories/releases/</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>snapshots</id>
<name>Snapshots Repositories</name>
<url>http://ip:8081/nexus/content/repositories/snapshots/</url>
</pluginRepository>
<pluginRepository>
<releases>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>release</id>
<name>Release Repository</name>
<url>http://ip:8081/nexus/content/repositories/releases/</url>
</pluginRepository>
</pluginRepositories>
<distributionManagement>
<!-- 发布到快照版本的仓库,即测试版本仓库 -->
<snapshotRepository>
<id>snapshots</id>
<url>http://ip:8081/nexus/content/repositories/snapshots/</url>
</snapshotRepository>
<!-- 发布到发行版本的仓库中,即正式版本仓库 -->
<repository>
<id>releases</id>
<url>http://ip:8081/nexus/content/repositories/releases/</url>
</repository>
</distributionManagement>
`
maven设置配置远程仓库和推送jar到远程仓库
最新推荐文章于 2024-06-04 17:33:29 发布