How to configure a Maven pom.xml to access a remote Maven repository
To access a remote maven repository, add a <repositories> element to the Maven project's pom.xml at the same level as that of the <repositories> element.
For example, to use the Public M.I.T. Maven Repositories, add the following to Maven project pom.xml.
<project> ... <repositories> <repository> <id>PublicMitRepositoriesGroup</id> <name>PublicMitRepositoriesGroup</name> <url> https://maven.mit.edu/nexus/content/groups/PublicMitRepositoriesGroup </url> </repository> </repositories> ... </project>