...
Panel | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Before you begin, you must have done the following:
When you receive confirmaiton that the private repository has been created, you will given the following information: indent | | 1 |
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.\\
\\
When you receive confirmaiton that the private repository has been created, you will given the following information:\\
\\
|
indent | ||||
---|---|---|---|---|
|
repository name\\ repository group name\\ Team ID\\ Team list name\\ \\ |
You will need the above information to configure your Maven project so that it can access the private repository.\\ |
Panel | ||||||||
---|---|---|---|---|---|---|---|---|
These instuctions assume the following:
|
Overview
Panel | |||||||||
---|---|---|---|---|---|---|---|---|---|
Configuring a Maven project to access a private repository requires setting up a name/password pair in the settings.xml file and associating the name/password with a specific repository which is defined in the project's pom.xml.
In the settings.xml, the <password> element must be the Team list name that was given to you when you received your repository confirmation. Refer to the PREREQUISITES section above. In the settings.xml, the <username> element must be build#string.
|
Panel | ||||||||
---|---|---|---|---|---|---|---|---|
The private repositories can be accessed by using either http or https. Using https is highly recommended when using private repositories.
|
1. the
...
settings.xml <server> element configuration
Panel | ||
---|---|---|
Add a <server> element to settings.xml file.
where myTeamListName has the form dvtl<Team ID>. |
2. the Maven pom.xml <repository> element configuration
Panel | ||||
---|---|---|---|---|
A private repository can be accessed directly by using the <repository> element below:
note: In the above <url> tag, privateRepo must be replaced with the name of your private repository.
note: In the above <url> tag, privateRepoGroup must be replaced with the name of your private repository group. |