Skip to content

Instantly share code, notes, and snippets.

@xnickmx
Last active January 2, 2016 23:19
Show Gist options
  • Save xnickmx/8375521 to your computer and use it in GitHub Desktop.
Save xnickmx/8375521 to your computer and use it in GitHub Desktop.
Maven settings.xml to workaround Grails Release plugin defect http://jira.grails.org/browse/GPRELEASE-7. Mirrors repositories explicitly instead of mirroring all but our internal repo like https://gist.github.com/xnickmx/8374742. This workaround still has the downside that it doesn't truly mirror all repos -- just the ones that are listed. See t…
<?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>
<id>remote-repos</id>
<username>myuser</username>
<password>mypassword</password>
</server>
<server>
<id>mycompany</id>
<username>myuser</username>
<password>mypassword</password>
</server>
</servers>
<mirrors>
<mirror>
<mirrorOf>repo1,java.net.m2,java.net.m1,jfrog-libs,jfrog-plugins,jboss,codehaus,spring-milestone,spring-release,google-code,gradle-libs,gradle-plugins,grails-central,grails-plugins</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>
<repository>
<id>repo1</id>
<name>repo1</name>
<url>http://repo1.maven.org/maven2</url>
</repository>
<repository>
<id>java.net.m2</id>
<name>java.net.m2</name>
<url>http://download.java.net/maven/2</url>
</repository>
<repository>
<id>java.net.m1</id>
<name>java.net.m1</name>
<url>http://download.java.net/maven/1</url>
</repository>
<repository>
<id>jfrog-libs</id>
<name>jfrog-libs</name>
<url>http://repo.jfrog.org/artifactory/libs-releases-local</url>
</repository>
<repository>
<id>jfrog-plugins</id>
<name>jfrog-plugins</name>
<url>http://repo.jfrog.org/artifactory/plugins-releases-local</url>
</repository>
<repository>
<id>jboss</id>
<name>jboss</name>
<url>http://repository.jboss.org/nexus/content/groups/public-jboss</url>
</repository>
<repository>
<id>codehaus</id>
<name>codehaus</name>
<url>http://repository.codehaus.org</url>
</repository>
<repository>
<id>spring-milestone</id>
<name>spring-milestone</name>
<url>http://maven.springframework.org/milestone</url>
</repository>
<repository>
<id>spring-release</id>
<name>spring-release</name>
<url>http://maven.springframework.org/release</url>
</repository>
<repository>
<id>google-code</id>
<name>google-code</name>
<url>http://google-maven-repository.googlecode.com/svn/repository</url>
</repository>
<repository>
<id>gradle-libs</id>
<name>gradle-libs</name>
<url>http://gradle.artifactoryonline.com/gradle/libs</url>
</repository>
<repository>
<id>gradle-plugins</id>
<name>gradle-plugins</name>
<url>http://gradle.artifactoryonline.com/gradle/plugins</url>
</repository>
<repository>
<id>grails-central</id>
<name>grails-central</name>
<url>http://repo.grails.org/grails/core</url>
</repository>
<repository>
<id>grails-plugins</id>
<name>grails-plugins</name>
<url>http://repo.grails.org/grails/plugins</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