一,发布仓库配置
配置pom.xml
用Nexus中的release/snapshots的地址作为URL地址
插入项目地址的pom.xml中
<distributionManagement>
<repository>
<id>nexus-releases</id>
<name> Nexus Release Repository</name>
<url>http://localhost:8081/repository/maven-releases/</url>
</repository>
<snapshotRepository>
<id>nexus-snapshots</id>
<name> Nexus Snapshot Repository</name>
<url>http://localhost:8081/repository/maven-snapshots/</url>
</snapshotRepository>
</distributionManagement>
distributionManagement 是管理发布到某个仓库的参数
二、部署专用账号配置
配置settings.xml
地址: