Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

PREREQUISITES

Panel

Before you begin, you must have:

indent
1
1

* Installed the Maven repository client on your workstation, or you can [download the latest version of Maven|http://maven.apache.org/download.html] now.\\
* Requested and received confirmation that a Developer Tools Team account has been created.  You can [request a Developer Tools Team account|https://src-prod.mit.edu/devtoolsSupport/dvTeamAccountRequest.jsp] at any time.\\

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

PREREQUISITES

indent
11
Before you begin, you must have the following:
Panel
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:

indent
1
1

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


Overview

Panel

The M.I.T. public repositories can be accessed by using either http or https. If you want to use https, then you must enable Maven for SSL operations. Click here for instructions on how to use SSL with Maven.

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

indent
1
1

* [Maven, https and Java keystores with Mac OS X|Maven, https and Java keystores with Mac OS X],
* [Maven, https and Java keystores with Windows|Maven, https and Java keystores with Windows], or
* [Maven, https and Java keystores|Maven, https and Java keystores]\\


1. The pom.xml

...

<repositories> element

Panel

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

For example, to use the Public M.I.T. Maven Repositories via http, add the following to Maven project pom.xml.

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