Skip to content

Instantly share code, notes, and snippets.

@xnickmx
Last active January 2, 2016 23:09
Show Gist options
  • Save xnickmx/8374742 to your computer and use it in GitHub Desktop.
Save xnickmx/8374742 to your computer and use it in GitHub Desktop.
Original Maven ~/.m2/settings.xml that mirrors all repos, other than my internal repo. See this for context: http://jira.grails.org/browse/GPRELEASE-7?focusedCommentId=79042&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-79042
<?xml version="1.0" encoding="UTF-8"?>
<settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd" xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<servers>
<server>
<username>myuser</username>
<password>mypassword</password>
<id>remote-repos</id>
</server>
<server>
<username>myuser</username>
<password>mypassword</password>
<id>mycompany</id>
</server>
</servers>
<mirrors>
<mirror>
<mirrorOf>!mycompany,*</mirrorOf>
<name>remote-repos</name>
<url>http://repo.mycompany.com:8081/artifactory/remote-repos</url>
<id>remote-repos</id>
</mirror>
</mirrors>
<profiles>
<profile>
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>mycompany</id>
<name>libs-release-local</name>
<url>http://repo.mycompany.com:8081/artifactory/libs-release-local</url>
</repository>
</repositories>
<id>artifactory</id>
</profile>
</profiles>
<activeProfiles>
<activeProfile>artifactory</activeProfile>
</activeProfiles>
</settings>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment