Skip to content
This repository has been archived by the owner on Jan 9, 2019. It is now read-only.

Commit

Permalink
Adding settings.xml example
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewmccullough committed Jun 30, 2010
1 parent 7e8ed9f commit f8938fe
Showing 1 changed file with 108 additions and 0 deletions.
108 changes: 108 additions & 0 deletions settings-examples/settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
<?xml version="1.0"?>
<settings>
<pluginGroups>
<pluginGroup>org.twdata.maven</pluginGroup>
<pluginGroup>org.grails</pluginGroup>
<pluginGroup>org.mortbay.jetty</pluginGroup>
</pluginGroups>

<mirrors>
<!--This is used to direct the public snapshots repo in the profile below over to a different nexus group -->
<mirror>
<id>nexus-public-snapshots</id>
<mirrorOf>public-snapshots</mirrorOf>
<url>http://localhost:8081/nexus/content/groups/public-snapshots</url>
</mirror>

<!--This sends everything else to /public -->
<mirror>
<id>nexus-public-releases</id>
<mirrorOf>*,!sonar</mirrorOf>
<!-- Exclude the sonar local repo http://docs.codehaus.org/display/SONAR/Frequently+Asked+Questions -->
<url>http://localhost:8081/nexus/content/groups/public</url>
</mirror>
</mirrors>

<profiles>
<!-- Default nexus redirected profile -->
<profile>
<id>nexusreleases</id>
<repositories>
<repository>
<id>central</id>
<url>http://localhost:8081/nexus/content/groups/public</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>central</id>
<url>http://localhost:8081/nexus/content/groups/public</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>

<profile>
<!--this profile will allow snapshots to be searched when activated-->
<id>nexussnapshots</id>
<repositories>
<repository>
<id>public-snapshots</id>
<url>http://localhost:8081/nexus/content/groups/public-snapshots</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>public-snapshots</id>
<url>http://localhost:8081/nexus/content/groups/public-snaphots</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>

<activeProfiles>
<activeProfile>nexusreleases</activeProfile>
<activeProfile>nexussnapshots</activeProfile>
</activeProfiles>

<servers>
<server>
<id>twdata-m2-repository</id>
<username>someone</username>
<password>apassword</password>
</server>

<server>
<id>somesite.unfuddle.com</id>
<username>someone</username>
<password>apassword</password>
</server>
</servers>

<!-- <properties>
<gpg.passphrase>somepassword</gpg.passphrase>
</properties> -->
</settings>

0 comments on commit f8938fe

Please sign in to comment.