By default, MAVEN downloads all dependencies from the MAVEN central repository. However, some libraries are missing in the central repository and can only be found in java.net or JBoss repository remote repositories.
1. java.net Resource Library
Add the java.net remote repository details in the "Pom.xml" file.
Pom.xml
<project ...><repositories> <repository> <id>java.net</id> <url >https://maven.java.net/content/repositories/public/</url> </repository> </repositories ></project>
Note
The old "
HTTP://DOWNLOAD.JAVA.NET/MAVEN/2"is still available, but it is recommended to upgrade to the latest repository. 2. JBoss maven Repository
1. Add details of the JBoss remote repository in the "Pom.xml" file.
Pom.xml
<project ...> <repositories> <repository><id>jboss repository</id><url >http://repository.jboss.org/nexus/content/groups/public/</url> </repository> </ Repositories></project>
Note: the old
http://repository.jboss.com/maven2/is obsolete and is no longer used. Reference
- http://maven2-repository.java.net/
Tags: Maven add remote repositories
This site is reproduced in addition to the article, are the original site or compiled
Welcome any form of reprint, but please be sure to indicate the source, respect for the work of others to create excellent examples of the tutorial
Reprint Please specify: Article reprinted from: http://www.yiibai.com/maven/add-remote-repository-in-maven-pom-xml.html
MAVEN Learning---Maven add a remote repository