You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

How to configure a Maven pom.xml to access a remote Maven repository

To access a remote maven repository, add the <repositories> element below to the Maven project's pom.xml.

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>


  • No labels