[
https://jira.codehaus.org/browse/MPIR-292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=355404#comment-355404
]
Grzegorz Slowikowski commented on MPIR-292:
-------------------------------------------
This bug was introduced by
http://svn.apache.org/viewvc?view=revision&revision=r1481311 (MPIR-229)
Details:
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/ModulesReport.java?r1=1481311&r2=1481310&pathrev=1481311:
- for ( String module : modules )
+ final String baseURL = project.getUrl();
+
+ // before MPIR-229 this was model.getModules(), which could have
uninherited/unresolved values
+ // @todo also include modules which are not part of reactor, e.g.
caused by -pl
+ List<MavenProject> modules = project.getCollectedProjects();
+ for ( MavenProject moduleProject : modules )
"project.getCollectedProjects()" returns all submodules, not only direct
children. They have to be filtered by parent.
> On the Modules report, the links to sub-sub-modules are not correctly
> generated
> -------------------------------------------------------------------------------
>
> Key: MPIR-292
> URL: https://jira.codehaus.org/browse/MPIR-292
> Project: Maven Project Info Reports Plugin
> Issue Type: Bug
> Affects Versions: 2.7
> Reporter: Anghel Botos
> Priority: Minor
> Attachments: FixSubSubModulesLinks.patch, MyProjectSite.zip,
> MyProject.zip
>
>
> On the Modules report (About project page), the links to sub-sub-modules are
> not correctly generated.
> In the attached MyProject.zip file I have the following project structure:
> project
> **subProject
> ****subSubProject
> I've ran site and site:deploy, the resulting site is located in
> MyProjectSite.zip. If you open the index.html you will see that on the About
> project page, in the table, both the "subProject" and the "subSubProject" are
> listed as modules, but only the link to the direct child ("subProject") is
> correct, while the link to the "subSubProject" is incorrect.
> I've also added a patch that fixes this problem.
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)