1. Nexus 启动
2. 配置 meven 的conf 的settings.xml
<servers>
<server>
<id>releases</id>
<username>admin</username>
<password>admin123</password>
</server>
<server>
<id>snapshots</id>
<username>admin</username>
<password>admin123</password>
</server>
</servers>
3. 配置 项目中的 pom.xml
文件
<distributionManagement>
<repository>
<id>releases</id>
<name>Nexus Release Repository</name>
<url>http://192.168.235.22:8082/nexus/content/repositories/releases/</url>
</repository>
<snapshotRepository>
<id>snapshots</id>
<name>Nexus Snapshot Repository</name>
<url>http://192.168.235.22:8082/nexus/content/repositories/snapshots/</url>
</snapshotRepository>
</distributionManagement>