Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Auto Closed
-
2.0.10
-
None
-
None
-
None
Description
I got simply ant and pom project. Settings file for maven 2.1 contains list of mirror servers.
If I compile project by mvn package everything works ok - artifacts are downloaded
if I compile the same project by ant and maven-ant-tasks some artifacts are not downloaded. it looks like the mirrors list are sometimes ignored.
Current workaroud is add to pom.xml repository entries which are duplicate of mirrors from maven configuration.
maven settings
<mirrors>
<mirror>
<id>krokodylowy3</id>
<url>http://krokodylowy3.webpark.pl/maven/m2/repository</url>
<mirrorOf>central</mirrorOf>
</mirror>
<mirror>
<id>Apache.releases</id>
<url>https://repository.apache.org/content/repositories/releases/</url>
<mirrorOf>central</mirrorOf>
</mirror>
<mirror>
<id>Apache.snapshots</id>
<url>https://repository.apache.org/content/repositories/snapshots/</url>
<mirrorOf>central</mirrorOf>
</mirror>
<mirror>
<id>repository.jboss.org</id>
<url>http://repository.jboss.org/maven2</url>
<mirrorOf>central</mirrorOf>
</mirror>
<mirror>
<id>repo1.maven.org</id>
<url>http://repo1.maven.org/maven2</url>
<mirrorOf>*</mirrorOf>
</mirror>
</mirrors>
workaround
<repositories>
<repository>
<id>thirdparty</id>
<name>krokodylowy3 thirdparty</name>
<url>http://krokodylowy3.webpark.pl/maven/m2/repository</url>
</repository>
<repository>
<id>jboss</id>
<name>jboss thirdparty</name>
<url>http://repository.jboss.org/maven2</url>
</repository>
</repositories>
Attachments
Attachments
Issue Links
- relates to
-
MANTTASKS-251 Maven-ant-tasks does not always respect mirrors from settings.xml
- Closed