maven配置私服

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>

  

原文地址:https://www.cnblogs.com/ystq/p/6341003.html