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>mySnapshotRepo</id>
        <username>deploy#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 <distributionManagement> element configuration

Panel
Wiki Markup

A snapshot repository can be accessed directly by adding the <distributionManagement> element below to your pom.xml:

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