How to configure a Maven pom.xml to access a remote Maven repository
PREREQUISITES
indent | ||||
---|---|---|---|---|
| ||||
Before you begin, you must have the following: |
Panel |
---|
|
Panel |
---|
These instuctions assume the following:
|
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. |
1. The pom.xml <repository> 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, add the following to Maven project pom.xml.
|