[ http://jira.codehaus.org/browse/MNG-3142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brett Porter closed MNG-3142. ----------------------------- Assignee: Brett Porter Resolution: Incomplete there are several related issues WRT better repository handling, but this is "as designed" for 2.0.x. Your workaround is correct. Individual problems with plugins should be filed there. > Some Built in Maven plugins fail when central and apache.snapshots both > defined as pluginRepositories > ----------------------------------------------------------------------------------------------------- > > Key: MNG-3142 > URL: http://jira.codehaus.org/browse/MNG-3142 > Project: Maven 2 > Issue Type: Bug > Components: Artifacts and Repositories, Dependencies, Plugins and > Lifecycle, Settings > Affects Versions: 2.0.6, 2.0.7 > Reporter: Casey Butterworth > Assignee: Brett Porter > Attachments: pom.xml > > > A pom file with both central and apache.snapshots defined (see attached > pom.xml) causes errors in usages of a number of the default plugins including > CLEAN and COMPILE (i'm sure that there are others as well). The bug can be > reproduced by adding the following to your pom.xml: > <pluginRepositories> > <pluginRepository> > <id>central</id> > <url>http://repo1.maven.org/maven2</url> > </pluginRepository> > <pluginRepository> > <id>apache.snapshot</id> > > <url>http://people.apache.org/maven-snapshot-repository</url> > </pluginRepository> > </pluginRepositories> > This is caused by the bug described in MNG-2098. As these plugins are not > assigned explicit versions in the parent pom, the LATEST version processing > is used and failing as described in MNG-2098. Within our project we can avoid > the problem by using an explicit version (e.g.) > <build> > <plugins> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-clean-plugin</artifactId> > <version>2.1.1</version> > </plugin> > </plugins> > </build> > This bug would occur for any plugin (which has dependencies) that has > different versions available in different repositories (e.g. releases in one > repo and snapshots in another) and is proving frustrating for our Maven users. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira