Example settings.xml

Links
Developer Network

This is an example settings.xml for Maven 2. It can be placed in your $HOME/.m2/ directory (where is that?) and it will apply to all maven projects that you build. If you would rather, you can make this a per-project settings by including a profile.xml in your project base directory. See Maven's documentation on Build Profile Settings.

If your network requires the use of an HTTP or HTTPS proxy, you'll need to add those to your settings.xml

<settings>
    <servers>
        <!--
             If you need to deploy your code to our the Atlassian Maven Repositories, you must be a
             Committer. You can request commit rights by emailing developer-relations@atlassian.com.
             If you have commit access, use Atlassian Developer Network username and password.
         -->
        <server>
              <id>atlassian-contrib</id>
              <username>yourusername</username>
              <password>yourpassword</password>
        </server>
        <server>
              <id>atlassian-contrib-snapshot</id>
              <username>yourusername</username>
              <password>yourpassword</password>
        </server>
    </servers>
        <profiles>
                <profile>
                        <id>jnolen-devnet-profile</id>
                        <activation>
                                <activeByDefault>true</activeByDefault>
                        </activation>
                        <repositories>
                                <repository>
                                        <id>atlassian-public</id>
                                        <url>https://maven.atlassian.com/repository/public</url>
                                        <snapshots>
                                                <enabled>true</enabled>
                                        </snapshots>
                                        <releases>
                                                <enabled>true</enabled>
                                        </releases>
                                </repository>   
                                <repository>
                                        <id>atlassian-m1-repository</id>
                                        <url>https://maven.atlassian.com/maven1</url>
                                        <layout>legacy</layout>
                                </repository>
                        </repositories>
                        <pluginRepositories>
                                <pluginRepository>
                                        <id>atlassian-public</id>
                                        <url>https://maven.atlassian.com/repository/public</url>
                                        <snapshots>
                                                <enabled>true</enabled>
                                        </snapshots>
                                        <releases>
                                                <enabled>true</enabled>
                                        </releases>
                                </pluginRepository>
                        </pluginRepositories>
                        <properties>
                                <downloadSources>true</downloadSources>
                                <downloadJavadocs>true</downloadJavadocs>
                                <!-- 
                                  Uncomment this and specify the location on your file system where your 
                                  clover license is located.
                                  <clover.licenseLocation>/path/to/clover/license</clover.licenseLocation>
                                -->
                                <atlassian.pdk.server.url>http://localhost:1990/confluence/</atlassian.pdk.server.url>
                                <atlassian.pdk.server.username>admin</atlassian.pdk.server.username>
                                <atlassian.pdk.server.password>admin</atlassian.pdk.server.password>
                        </properties>
                </profile>
        </profiles>
</settings>
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.