Some common repository of MAVEN
List several commonly used Maven repository, share them, and also prevent a long time from forgetting:
<repositories>
<repository>
<id>jboss-cache</id>
<name>jboss-cache </name>
<url>http://repository.jboss.org/maven2</url>
</repository>
< repository>
<id>mvnsearch</id>
<name>mvnsearch Maven repository</name>
<url>http://www.mvnsearch.org/maven2</url>
</repository>
<repository>
<id>ibiblio</id>
<name>ibiblio Maven repository</name>
<url>http:// www.ibiblio.org/maven2</url>
</repository>
<repository>
<id> mirrors.ibiblio</id>
<name>mirrors.ibiblio Maven repository</name>
<url>http:/ /mirrors.ibiblio.org/pub/mirrors/maven2</url>
</repository>
</repositories>
A common address for Maven dependencies in two search jar packages:
http://search.maven.org/
http://mvnrepository.com/
Modify the Settings.xml file under/apache-maven-3.0.4/conf. Add the following code. Increase the Mirror file address.
<mirror>
<id>maven.mirrorid</id>
<mirrorOf>central</mirrorOf>
<name>human readable name for this mirror.</name>
<url>http://mirrors.ibiblio.org/pub/mirrors/maven2/</url>
</mirror>
<mirror>
<id>mirrorId</id>
<mirrorOf>*</mirrorOf>
<name>human readable name for this mirror.</name>
<url>http://maven.mirrorid/content/groups/public/</url>
</mirror>
The following is an addition to the Pom.xml in the project to download plug-ins from the remote repository (used when the local warehouse plugin cannot be found): To download the plugin normally.
<pluginRepositories> <pluginRepository> <id>central</id> <name>maven Plugin Repository</name> <url>http://repo1.maven.org/maven2</url> <layout>default</layout > <snapshots> <enabled>false</enabled> </snapshots> <releases> <updatepolicy >never</updatePolicy> </releases> </pluginRepository> </pluginRepositories>