PREREQUISITES

Before you begin, you must have:

${renderedContent}


These instuctions assume the following:

${renderedContent}


Overview

The M.I.T. public repositories can be accessed by using either http or https.

For instructions on how the configure Maven for https, refer to:

${renderedContent}


1. The pom.xml <repository> element

To access the M.I.T. public Maven repositories, add the following to the <repositories> element in your Maven project's pom.xml.

${renderedContent}


<repositories>
    ...
    <repository>
        <id>PublicRepositoriesGroup</id>
        <name>PublicRepositoriesGroup</name>
        <url>http://maven.mit.edu/nexus/content/groups/public</url>
    </repository>
    <repository>
        <id>PublicMitRepositoriesGroup</id>
        <name>PublicMitRepositoriesGroup</name>
        <url>http://maven.mit.edu/nexus/content/groups/PublicMitRepositoriesGroup</url>
    </repository>
    ...
</repositories>
  • No labels