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 Allen (JIRA)" <ji...@codehaus.org> on 2007/02/07 08:12:44 UTC

[jira] Updated: (MSITE-209) populateModulesMenu() logic results in invalid modules list if projects share artifactIds

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

John Allen updated MSITE-209:
-----------------------------

    Attachment: site-patch.diff

patch attached

> populateModulesMenu() logic results in invalid modules list if projects share artifactIds
> -----------------------------------------------------------------------------------------
>
>                 Key: MSITE-209
>                 URL: http://jira.codehaus.org/browse/MSITE-209
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0-beta-5, 2.0
>            Reporter: John Allen
>            Priority: Critical
>         Attachments: site-patch.diff
>
>
> populateModulesMenu() logic should compare groupIds as well as artifactIds. Failure to do so can result in invalid modules list being generated when the reactorProject.getParent().getArtifectId() is the same as the current project but is not of the same group. Logic should be (dont have the code available as its on my laptop), oh go on then Ill HTTP the source....
>     private void populateModulesMenuItemsFromReactorProjects( Menu menu )
>     {
> [SNIP]
>                 if ( reactorProject != null && reactorProject.getParent() != null &&
>                     project.getArtifactId().equals( reactorProject.getParent().getArtifactId() ) )
>                 {
>                     String reactorUrl = reactorProject.getUrl();
>                     String name = reactorProject.getName();
>                     appendMenuItem( menu, name, reactorUrl, reactorProject.getArtifactId() );
>                 }
>             }
>         }
>     }
> Comparison should also check that the groupId of the reactorProject's parent matches our groupId.
> Clear?.. Sorry, the patch on my laptop too... 

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