allow specifying maven repo locations

patch by Jürgen Hermann; tested by jbellis for CASSANDRA-2340

git-svn-id: https://svn.apache.org/repos/asf/cassandra/trunk@1082199 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jonathan Ellis 2011-03-16 16:51:04 +00:00
parent 653dcc63e0
commit e6f9c73703
2 changed files with 17 additions and 7 deletions

9
build.properties.default Normal file
View File

@ -0,0 +1,9 @@
# Maven2 Repository Locations (you can override these to point to a local proxy, e.g. Nexus)
artifact.remoteRepository.central: http://repo1.maven.org/maven2
artifact.remoteRepository.java.net2: http://download.java.net/maven/2
artifact.remoteRepository.java.apache: https://repository.apache.org/content/repositories/releases
artifact.remoteRepository.java.cloudera: https://repository.cloudera.com/content/repositories/releases
artifact.remoteRepository.java.jclouds: http://jclouds.googlecode.com/svn/repo
artifact.remoteRepository.java.oauth: http://oauth.googlecode.com/svn/code/maven
artifact.remoteRepository.java.twttr: http://maven.twttr.com

View File

@ -21,6 +21,7 @@
xmlns:artifact="antlib:org.apache.maven.artifact.ant">
<property environment="env"/>
<property file="build.properties" />
<property file="build.properties.default" />
<property name="debuglevel" value="source,lines,vars"/>
<property name="basedir" value="."/>
@ -184,14 +185,14 @@
<typedef uri="antlib:org.apache.maven.artifact.ant" classpathref="maven-ant-tasks.classpath" />
<!-- define the remote repositories we use -->
<artifact:remoteRepository id="central" url="http://repo1.maven.org/maven2"/>
<artifact:remoteRepository id="java.net2" url="http://download.java.net/maven/2"/>
<artifact:remoteRepository id="apache" url="https://repository.apache.org/content/repositories/releases"/>
<artifact:remoteRepository id="cloudera" url="https://repository.cloudera.com/content/repositories/releases"/>
<artifact:remoteRepository id="central" url="${artifact.remoteRepository.central}"/>
<artifact:remoteRepository id="java.net2" url="${artifact.remoteRepository.java.net2}"/>
<artifact:remoteRepository id="apache" url="${artifact.remoteRepository.apache}"/>
<artifact:remoteRepository id="cloudera" url="${artifact.remoteRepository.cloudera}"/>
<!-- for distributed tests -->
<artifact:remoteRepository id="jclouds" url="http://jclouds.googlecode.com/svn/repo"/>
<artifact:remoteRepository id="oauth" url="http://oauth.googlecode.com/svn/code/maven"/>
<artifact:remoteRepository id="twttr" url="http://maven.twttr.com"/>
<artifact:remoteRepository id="jclouds" url="${artifact.remoteRepository.jclouds}"/>
<artifact:remoteRepository id="oauth" url="${artifact.remoteRepository.oauth}"/>
<artifact:remoteRepository id="twttr" url="${artifact.remoteRepository.twttr}"/>
<property name="maven-ant-tasks.initialized" value="true"/>
</target>