1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
<?xml version='1.0'?>
<!--
the settings.xml from this project can be bypassed by
JARS_MAVEN_SETTINGS=/path/to/settings.xml
or via a java system property
jars.maven.settings=/path/to/settings.xml
-->
<settings>
<mirrors>
<mirror>
<id>local-mirror</id>
<!-- mirror all but localhost and file base urls and the
"mavengems" repo -->
<mirrorOf>external:*,!mavengems</mirrorOf>
<url>http://localhost:8081/nexus/content/groups/public</url>
</mirror>
</mirrors>
<profiles>
<profile>
<id>local</id>
<!--
http://books.sonatype.com/nexus-book/reference/config-maven.html
mvn has a hardcoded “central” repo, and unless you reconfigure it to
something unrelsolvable it will still attempt to use that vs. your
mirror
-->
<repositories>
<repository>
<id>central</id>
<url>http://central</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>central</id>
<url>http://central</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>local</activeProfile>
</activeProfiles>
</settings>
|