http://my.oschina.net/jgy/blog/125503
Copy the mavne installation folder conf the following settings.xml to the user's home folder
Change files
<localRepository>F:/Maven/repository</localRepository>
Change the path of the local maven repository
<mirrors>
<!--Mirror
| Specifies a repository mirror site to use instead of a given repository. The repository that
| This mirror serves have an ID, that matches, the mirrorof element of this mirror. IDs is used
| For inheritance and direct lookup purposes, and must is unique across the set of mirrors.
|
<mirror>
<id>mirrorId</id>
<mirrorOf>repositoryId</mirrorOf>
<name>human readable name for this mirror.</name>
<url>http://my.repository.com/repo/path</url>
</mirror>
-
<mirror>
<id>nexus_central</id>
<mirrorOf>*</mirrorOf>
<name>nexus of Center</name>
<url>http://192.168.1.98:8081/nexus/content/groups/public</url>
</mirror>
</mirrors>
This code uses all the warehouses of the LAN Nexus agent maven, including the Central warehouse
Ip addresses and PORTPW are changed according to the actual address.
Copyright notice: This article Bo Master original articles, blogs, without consent may not be reproduced.
MAVEN software project management tools