Maven:修改repository

来自WHY42

~/.m2/settings.xml:

<mirror> 
	<id>nexus-riguz</id> 
	<mirrorOf>central</mirrorOf> 
	<name>riguz nexus</name> 
	<url>http://ssh.riguz.com:8081/nexus/content/repositories/Central-1/</url> 
</mirror>

pom.xml

<repositories>
	<repository>
		<id>riguz</id>
		<mirrorOf>central</mirrorOf>
		<name>riguz</name>
		<url>http://ssh.riguz.com:8081/nexus/content/repositories/Central-1/</url>
	</repository>
</repositories>

注:ssh.riguz.com:8081是本人的nexus服务器,不经常开,请勿效仿!

Maven搜索地址