Mirrored Resolver

Handle latestyes with http urls (and apache server) and with file urls, no with other urls
Handle publishno
since 2.3
This resolver can resolve dependencies against several mirrors of the same repository. From a list of mirror urls, it will iteratively try to resolve the dependencies against each one.


This resolver shares the common attributes of standard resolvers.
m2compatibleTrue if this resolver should be maven2 compatible, false otherwise No, defaults to false
mirrorListUrlThe url where to retrive the list of mirror urls. Yes

Child elements

ivydefines a pattern for ivy files, using the pattern attribute 0..n
artifactdefines a pattern for artifacts, using the pattern attribute 1..n


Having the file mavenrepolist.txt content:
And the piece of settings:
<mirroredurl name="mirrored-maven" m2compatible="true" mirrorListUrl="file:///Users/me/dev/repo/mavenrepolist.txt">
<artifact pattern="[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" />
It will resolve first on the repo1 and if failing it will fall back on repo2.

The mirror list can be retrieved from a geo-location aware url:
<mirroredurl name="mirrored-asf" mirrorListUrl="http://www.apache.org/dyn/closer.cgi">
<ivy pattern="repo/[organisation]/[module]/[revision]/ivy.xml" />
<artifact pattern="repo/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" />