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

Piotr Tabor updated MJAR-75:
----------------------------

    Attachment: MJAR-75-core-integration-testing.diff

Dedicated IT for this issue attached.

> [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: Jason van Zyl
>            Priority: Critical
>         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

        

Reply via email to