Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

How to configure a Maven pom.xml to access the Nexus M.I.T. public repositories

PREREQUISITES

1panel
indent
1
Panel
;

Before

you

begin,

you

must

have

the

following:



  • You must have installed the Maven repository client on your workstation. Click here to get the lastest version of maven.

Panel

These instuctions assume the following:

  • The name of the Nexus Repository server is maven.mit.edu.  The actual server name may be different.

...

Panel

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

  • The PublicMitRepositoriesGroup consist of 2 repositories.  The 2 repositories are the SASH 1.2 stack and the SASH 2.0 stack.

  • The PublicRepositoriesGroup is the Maven Central repository.

    Code Block
    
    <repositories>
        ...
        <repository>
            <id>PublicRepositoriesGroup</id>
            <name>PublicRepositoriesGroup</name>
            <url>https://maven.mit.edu/nexus/content/groups/public</url>
        </repository>
        <repository>
            <id>PublicMitRepositoriesGroup</id>
            <name>PublicMitRepositoriesGroup</name>
            <url>https://maven.mit.edu/nexus/content/groups/PublicMitRepositoriesGroup</url>
        </repository>
        ...
    </repositories>