summaryrefslogtreecommitdiff
path: root/fetch.xml
diff options
context:
space:
mode:
authorGintas Grigelionis <gintas@apache.org>2018-02-03 18:41:54 +0100
committerGintas Grigelionis <gintas@apache.org>2018-02-03 18:41:54 +0100
commit536d0e6c8802e4e324df65ad675cbe26a7ba39e6 (patch)
tree47ff337d9172d8ce5201565c9c6f506ad1df9844 /fetch.xml
parent87409137ed04aedffa31a8e831075f10de9d82e8 (diff)
downloadant-536d0e6c8802e4e324df65ad675cbe26a7ba39e6.tar.gz
Correct use of remoteRepository
Diffstat (limited to 'fetch.xml')
-rw-r--r--fetch.xml7
1 files changed, 4 insertions, 3 deletions
diff --git a/fetch.xml b/fetch.xml
index b92673eb8..51b438b2a 100644
--- a/fetch.xml
+++ b/fetch.xml
@@ -109,6 +109,7 @@ Set -Ddest=LOCATION on the command line
<attribute name="project"/>
<attribute name="archive" default="@{project}"/>
<attribute name="repository" default="${m2.repo}"/>
+ <attribute name="id" default="central"/>
<sequential>
<fail>
Unknown archive @{archive} -no property @{archive}.version defined in ${lib.dir}/libraries.properties.
@@ -118,7 +119,6 @@ Set -Ddest=LOCATION on the command line
</not>
</condition>
</fail>
- <artifact:remoteRepository url="@{repository}" id="central"/>
<artifact:dependencies pathID="@{archive}.path" useScope="runtime">
<dependency groupId="@{project}"
artifactId="@{archive}"
@@ -127,6 +127,7 @@ Set -Ddest=LOCATION on the command line
<exclusion groupId="org.apache.ant" artifactId="ant"/>
<exclusion groupId="org.apache.ant" artifactId="ant-launcher"/>
</dependency>
+ <artifact:remoteRepository url="@{repository}" id="@{id}"/>
</artifact:dependencies>
<!-- now we are left with the problem of getting the files into our directory -->
<copy todir="${dest.dir}">
@@ -329,9 +330,9 @@ Set -Ddest=LOCATION on the command line
<target name="jai"
description="load Java Advanced Imaging"
depends="init">
- <f2 project="javax.media" archive="jai-core"
+ <f2 project="javax.media" archive="jai-core" id="jboss"
repository="https://repository.jboss.org/nexus/content/groups/public/"/>
- <f2 project="com.sun.media" archive="jai-codec"
+ <f2 project="com.sun.media" archive="jai-codec" id="jboss"
repository="https://repository.jboss.org/nexus/content/groups/public/"/>
</target>