Exception if previous version artifact is not in local repo
-----------------------------------------------------------
Key: MCLIRR-12
URL: http://jira.codehaus.org/browse/MCLIRR-12
Project: Maven 2.x Clirr Plugin
Issue Type: Bug
Affects Versions: 2.2
Reporter: luke w patterson
Priority: Minor
Attachments: MCLIRR-12-clirr-maven-plugin-2.2.patch
Patch is included. I'll try to submit sample project/repo and tests later.
----------------------------------
Scenario:
Running "clirr:check" with default comparisonVersion and comparisonArtifacts,
and previous version artifact is not in local repo
yields
net.sf.clirr.core.CheckerException: Cannot open
/home/user/.m2/repository/org/group/artifact/1.0/artifact-1.0.jar for reading
----------------------------------
AbstractClirrMojo finds previous versions with ArtifactMetadataSource,
resulting in the download of POMs, but not the associated artifacts.
I don't know if my patch is the most elegant solution, but at least it
highlights the problem area. After an artifact version is selected, it
explicitly requests resolution.
--
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
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email