nexus配置
本地部署nexus
https://github.com/gaoxinfu/docker-sample/tree/main/nexus
设置repository
创建releases的仓库
创建snapshot的仓库
将自己新建的仓库放到 maven-public组内
setting 配置
<server>
<id>releases</id>
<username>admin</username>
<password>admin123</password>
</server>
<server>
<id>snapshots</id>
<username>admin</username>
<password>admin123</password>
</server>
pom.xml配置
distributionManagement 配置
repository 配置
<repositories>
<repository>
<id>maven-public</id>
<name>maven-public</name>
<url>http://localhost:8081/repository/maven-public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
<checksumPolicy>warn</checksumPolicy>
</snapshots>
</repository>
</repositories>
|