Martin Höller created MDEP-347: ---------------------------------- Summary: purging local repository leades to invalid repository meta data Key: MDEP-347 URL: https://jira.codehaus.org/browse/MDEP-347 Project: Maven 2.x Dependency Plugin Issue Type: Bug Components: purge-local-repository Affects Versions: 2.4, 2.3 Environment: Reproducable with Maven 3.0.4 and 2.2.1. Tested on OpenSuse Linux 12.1 Reporter: Martin Höller Attachments: demo.tgz
After using the dependency:purge-local-repository goal, purged artifacts are no longer downloaded from repository manager. To reproduce do the following: * extract the attached multi-module project. It consists of a parent, artifact1 and artifac2. artifact1 has a dependency to artifact2. * adapt the <distributionManagement> so you can deploy to a repository manager * cd demo * mvn deploy * cd artifact1/ * mvn maven-dependency-plugin:purge-local-repository -DreResolve=false * mvn validate The result of the last "mvn validate" is like this: [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building artifact1 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.158s [INFO] Finished at: Fri Mar 02 14:58:48 CET 2012 [INFO] Final Memory: 2M/118M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project artifact1: Could not resolve dependencies for project at.co.xss.mh.demo:artifact1:jar:1.0-SNAPSHOT: Could not find artifact at.co.xss.mh.demo:artifact2:jar:1.0-SNAPSHOT -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException The missing artifact IS available in the remote repository! -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira