Hi,
I would like to check whether it's possible to use multiple remote
repositories
at the moment, as specified in the "Declaring Repositories" section of
this page:
http://maven.apache.org/ant-tasks.html
I tried with the following code but it only seems to connect to the
first repository,
which is my internal remote repository, after which it throws me an
error message
about being unable to get dependency information (since my internal
repository
doesn't have some of the necessary dependencies) and the build process
terminates:
-----------------------------------
........
<artifact:pom id="maven.project" file="pom.xml" />
<artifact:remoteRepository id="maven.remote.repo"
url="${maven.remote.repo.internal}" />
<artifact:remoteRepository id="maven.remote.repo.default"
url="${maven.remote.repo.default}" />
<artifact:dependencies pathId="dependency.path"
filesetId="dependency.fileset" verbose="true">
<artifact:pom refid="maven.project" />
<remoteRepository refid="maven.remote.repo" />
<remoteRepository refid="maven.remote.repo.default" />
</artifact:dependencies>
.............
-----------------------------------
I also came across this issue listed in JIRA, which seems to be the same
problem.
http://jira.codehaus.org/browse/MNG-1466
Currently I've switched the order around to access the central repo
first before my internal
repository as a temporary fix, but I'd really hope to get it working as
soon as possible.
Any help will be very much appreciated.
Regards,
Wee Tat