How to add remote repository in Maven
By default, Maven’s will download all dependency libraries from Maven Central Repository. The central repository is full of Java libraries, but there are still many libraries are missing.
Often times , you need to include other Maven’s remote repositories like Java.net Repository and JBoss repository.
Java.net Repository
1. Add Java.net remote repository details in “pom.xml” file.
<project ...> <repositories> <repository> <id>java.net</id> <url>http://download.java.net/maven/2</url> </repository> </repositories> </project>
2. Done
JBoss Maven Repository
1. Add JBoss remote repository details in “pom.xml” file. (This Maven repository is deprecated).
<project ...> <repositories> <repository> <id>JBoss repository</id> <url>http://repository.jboss.com/maven2/</url> </repository> </repositories> </project>
The above repository is deprecated, uses latest JBoss repository below :
<project ...> <repositories> <repository> <id>JBoss repository</id> <url>http://repository.jboss.org/nexus/content/groups/public/</url> </repository> </repositories> </project>





Hi Mkyong,
I want to know that attribute value is java.net ,it is fixed or its any logical name,If it is fixed what is the reason behind this?
[...] is Maven remote repository, and how to configure it Not all libraries are store in Maven central repository, often times, you need to add some remote [...]