maven配置私服

时间:2023-02-09 20:09:10

1先配置maven的配置文件

2在项目的pom.xml文件增加

	<distributionManagement>
<repository>
<id>nexus-releases</id>
<name>Nexus Release Repository</name>
<url>http://10.0.200.200:8083/nexus/content/repositories/releases</url>
</repository>
<snapshotRepository>
<id>nexus-snapshots</id>
<name>Nexus Snapshot Repository</name>
<url>http://10.0.200.200:8083/nexus/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>