Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

1. the settings.xml <server> element configuration

Panel
Wiki Markup

Add a <server> element to settings.xml file.

Code Block
\\
\\
{code}
<servers>
    ...
    <server>
        <id>myPrivateRepo</id>
        <username>build#string</username>
        <password>myTeamListName</password>
    </server>
    ...
</servers>
{code}
where *myTeamListName* has the form *dvtl<Team ID>
.
*.\\
\\
Example: if your Team ID is *uadev*, then the <password> element would be *<password>dvtluadev</password>*.

2. the Maven pom.xml <repository> element configuration

Panel
Wiki Markup

A private repository can be accessed directly by using the <repository> element below:

Code Block
\\
\\
{code}
<repositories>
    ...
    <repository>
        <id>myPrivateRepo</id>
        <name>This is my private repository</name>
        <url>https://maven.mit.edu/nexus/content/repositories/privateRepo</url>
    </repository>
    ...
</repositories>
{code}
note: In the above <url> tag, *privateRepo* must be replaced with the name of your private repository.

If there is a private repository group, then the private repository group can be accessed by using the <repository> element below:
Code Block
\\
\\
If there is a private repository group, then the private repository group can be accessed by using the <repository> element below:\\
\\
{code}
<repositories>
    ...
    <repository>
        <id>myPrivateRepo</id>
        <name>This is my private repository group</name>
        <url>https://maven.mit.edu/nexus/content/groups/privateRepoGroup</url>
    </repository>
    ...
<repositories>
{code}
note: In the above <url> tag, *privateRepoGroup* must be replaced with the name of your private repository group.\\
\\