Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 2.3, 2.4
-
Fix Version/s: None
-
Component/s: purge-local-repository
-
Labels:None
-
Environment:Reproducable with Maven 3.0.4 and 2.2.1.
Tested on OpenSuse Linux 12.1
-
Testcase included:yes
-
Number of attachments :
Description
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!
Issue Links
- is related to
-
MDEP-268
Failed to execute purge-local-repository mojo
-