Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

Panel

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

Code Block

<repositories>
    ...
    <repository>
        <id>myPrivateRepo</id>
        <name>This is my private repository</name>
        <url>https://maven.mit.edu/nexus/content/repositories/privateRepo</url>
    </repository>
    ...
</repositories>

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

<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>

note: In the above <url> tag, privateRepoGroup must be replaced with the name of your private repository group.