You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "John Casey (JIRA)" <ji...@codehaus.org> on 2007/08/14 22:09:47 UTC

[jira] Closed: (MJAR-75) [PATCH] Wrong artifact type attached to the project by the test-jar goal

     [ http://jira.codehaus.org/browse/MJAR-75?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Casey closed MJAR-75.
--------------------------

       Resolution: Fixed
    Fix Version/s: 2.2

Applied, thanks.

> [PATCH] Wrong artifact type attached to the project by the test-jar goal 
> -------------------------------------------------------------------------
>
>                 Key: MJAR-75
>                 URL: http://jira.codehaus.org/browse/MJAR-75
>             Project: Maven 2.x Jar Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0, 2.1, 2.2
>         Environment: All
>            Reporter: Piotr Tabor
>            Assignee: John Casey
>            Priority: Critical
>             Fix For: 2.2
>
>         Attachments: maven-jar-plugin-MJAR-75.diff, MJAR-75-core-integration-testing.diff
>
>
> The test-jar goal attaches to the project "org.apache.maven.its.it0121:model:jar" such a artifact:
>  - org.apache.maven.its.it0121:model:*jar*:tests 
> It should attach such an artifact: 
>  - org.apache.maven.its.it0121:model:*test-jar*:tests
> The wrong artifacts "naming" leads to MNG-2871 problem:
> The code does not work (because the strings are different:
> ------------------MavenProject: replaceWithActiveArtifact(...)---------------------------------------------
>   ....
>   Iterator itr = ref.getAttachedArtifacts().iterator();
>   while(itr.hasNext()) {
>                     Artifact attached = (Artifact) itr.next();
>                     if( attached.getDependencyConflictId().equals(pluginArtifact.getDependencyConflictId()) ) {
>                         ... (resolve as active's project) ...
>                    }
> ...
> -------------------------------------------------------------------------------------------------------------------------------------------
> pluginArtifact.getDependencyConflictId() is : org.apache.maven.its.it0121:model:*test-jar*:tests 
> attached.getDependencyConflictId() is : org.apache.maven.its.it0121:model:*jar*:tests
> For test-case: look at test (it121) attached to: http://jira.codehaus.org/browse/MNG-2871

-- 
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