For some reason, the download dependency package from the MAVEN Central warehouse is plagued by a variety of tortures, and here's a quick look at some of the simple configurations of Maven Setting.xml
First, several domestic MAVEN repository connections are available:
http://maven.oschina.net/content/groups/public/
http://maven.oschina.net/content/repositories/thirdparty/
http://maven.ibiblio.org/maven2/
http://repository.jboss.org/nexus/content/repositories/root_repository/maven2/
http://repo1.maven.org/maven2/
http://repository.sonatype.org/content/groups/public/
http://repository.jboss.com/maven2/
About the configuration of the Setting.xml:
1, the local warehouse configuration
< localrepository > E:\.m2\repository</localrepository>
2, the Agent warehouse, mirror configuration:
<Mirrors> <Mirror> <ID>Nexus-osc</ID> <mirrorof>*</mirrorof> <name>Nexus OSC</name> <URL>http://maven.oschina.net/content/groups/public/</URL> </Mirror> <Mirror> <ID>Nexus-osc-thirdparty</ID> <mirrorof>ThirdParty</mirrorof> <name>Nexus OSC ThirdParty</name> <URL>http://maven.oschina.net/content/repositories/thirdparty/</URL> </Mirror> <Mirror> <ID>Nexus-ibiblio</ID> <mirrorof>*</mirrorof> <name>Nexus Ibiblio</name> <URL>http://maven.ibiblio.org/maven2/</URL> </Mirror> </Mirrors>
3, the Maven plugin download warehouse configuration
<Profiles> < Profile> <ID>jdk-1.4</ID> <activation> <JDK>1.4</JDK> </activation> <repositories> <Repository> <ID>Nexus</ID> <name>Local private Nexus</name> <URL>http://maven.oschina.net/content/groups/public/</URL> <releases> <enabled>True</enabled> </releases> <Snapshots> <enabled>False</enabled> </Snapshots> </Repository> </repositories> <pluginrepositories> <pluginrepository> <ID>Nexus</ID> <name>Local private Nexus</name> <URL>http://maven.oschina.net/content/groups/public/</URL> <releases> <enabled>True</enabled> </releases> <Snapshots> <enabled>False</enabled> </Snapshots> </pluginrepository> </pluginrepositories> </ Profile></Profiles>
For the configuration of Maven Setting.xml, you can refer to the following connection for further information
http://my.oschina.net/sunchp/blog/100634
Http://maven.oschina.net/help.html
http://maven.apache.org/repository/
Maven Domestic download site