You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@apache.org> on 2016/01/12 21:12:43 UTC

[jira] [Closed] (MANTTASKS-157) Manven-ant-tasks do not use servers list from maven conf

     [ https://issues.apache.org/jira/browse/MANTTASKS-157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Osipov closed MANTTASKS-157.
------------------------------------
    Resolution: Auto Closed

This issue has been auto closed because it has been inactive for a long period of time. If you think this issue still persists, retest your problem with the most recent version of Maven and the affected component, reopen and post your results.

> Manven-ant-tasks do not use servers list from maven conf
> --------------------------------------------------------
>
>                 Key: MANTTASKS-157
>                 URL: https://issues.apache.org/jira/browse/MANTTASKS-157
>             Project: Maven Ant Tasks
>          Issue Type: Bug
>    Affects Versions: 2.0.10
>            Reporter: Krashan Brahmanjara
>         Attachments: manttasks-157.diff, manttasks-157.diff
>
>
> 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>



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)