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

Jason van Zyl moved MNG-3755 to MSITE-447:
------------------------------------------

           Complexity:   (was: Intermediate)
          Component/s:     (was: Sites & Reporting)
        Fix Version/s:     (was: 2.2.x)
    Affects Version/s:     (was: 2.0.9)
                           (was: 2.0.8)
                  Key: MSITE-447  (was: MNG-3755)
              Project: Maven 2.x Site Plugin  (was: Maven 2 & 3)

> Dependency reporting plugin overwrites other project's artifact file
> --------------------------------------------------------------------
>
>                 Key: MSITE-447
>                 URL: http://jira.codehaus.org/browse/MSITE-447
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>         Environment: Linux
>            Reporter: blaabloo
>
> Projectmap is map of artifacts with groupid:artifactid being the key. When 
> project has multiple artifacts only one of them is put to the map. Dependency 
> node contains information about artifact and file information is the same 
> reference as used DefaultLifecycleExecutor. Every dependency's file is set 
> from this map and when building multimodule projects the latter projects may 
> fail because project's default artifact file is set to one of its attached 
> artifacts.
> In org.apache.maven.report.projectinfo.dependencies.Dependencies
> private void mapArtifactFiles( DependencyNode node, Map projectMap )
>     {
>         List childs = node.getChildren();
>         if ( ( childs == null ) || childs.isEmpty() )
>         {
>             return;
>         }
>         Iterator it = childs.iterator();
>         while ( it.hasNext() )
>         {
>             DependencyNode anode = (DependencyNode) it.next();
>             String key = ArtifactUtils.versionlessKey( anode.getArtifact() );
>             Artifact projartifact = (Artifact) projectMap.get( key );
>             if ( projartifact != null )
>             {
>                 anode.getArtifact().setFile( projartifact.getFile() );
>             }
>             mapArtifactFiles( anode, projectMap );
>         }
>     }

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