[ 
https://issues.apache.org/jira/browse/MSITE-691?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Osipov closed MSITE-691.
--------------------------------
    Resolution: Auto Closed

This issue has been auto closed because it has been inactive for a long period 
of time. If you think this issue still applies, retest your problem with the 
most recent version of Maven and the affected component, reopen and post your 
results.

> Aggregator pom with child parent not handled
> --------------------------------------------
>
>                 Key: MSITE-691
>                 URL: https://issues.apache.org/jira/browse/MSITE-691
>             Project: Maven Site Plugin
>          Issue Type: Bug
>          Components: multi module
>    Affects Versions: 3.3
>            Reporter: scolebourne2
>            Priority: Major
>         Attachments: OG-Platform.zip
>
>
> The attached zip demonstrates a project where the parent is an aggregator 
> only pom and the children include the parent:
> {code}
> platform
> - pom.xml  (aggregator only)
> - projects
>   - parent
>     - pom.xml  (parent for the child project)
>   - child
>     - pom.xml
> {code}
> Running the zip file with "mvn clean test site" will build incorrect 
> hyperlinks.
> The top left hyperlinks, added by the site plugin, are defined as 
> "parent/index.html" and "child/child/index.html". I consider the former to be 
> correct, but not the latter.
> In addition, the navigation links produce both a link to the parent (under 
> the "Parent Project" heading), and a second link to the parent under the 
> "Modules" heading. This seems unnecessary, and in fact does not work in 
> design terms, see below. (It appears that separate aggregator and parent pom 
> projects are not really supported in design terms)
> The child projects also contain the wrong link to the parent (under "Parent 
> Projects" in the navigation area). They create a link as 
> "../../parent/index.html". This will be one ".." too far, as the 
> "distributionManagement.site.url" definition removes the extra level.
> Finally, the site of the parent pom does not contain a "Parent projects" link 
> in the navigation area. That would make sense if there was no aggregator 
> project, but does not make sense here from a website pint of view.
> What I would expect is the following staged website:
> {code}
> target
> - staging
>   - index.html  (links to child projects, including parent)
>   - parent 
>     - index.html  (link back to aggregator)
>   - child
>     - index.html  (link back to aggregator, link to parent: 
> "../parent/index.html")
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to