From issues-return-85503-apmail-maven-issues-archive=maven.apache.org@maven.apache.org Mon Jun 3 14:15:50 2013 Return-Path: X-Original-To: apmail-maven-issues-archive@minotaur.apache.org Delivered-To: apmail-maven-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0360FC17C for ; Mon, 3 Jun 2013 14:15:50 +0000 (UTC) Received: (qmail 84136 invoked by uid 500); 3 Jun 2013 14:08:29 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 84057 invoked by uid 500); 3 Jun 2013 14:08:29 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 84033 invoked by uid 99); 3 Jun 2013 14:08:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Jun 2013 14:08:27 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [63.246.24.159] (HELO codehaus01.managed.contegix.com) (63.246.24.159) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Jun 2013 14:08:23 +0000 Received: from codehaus01 (localhost.localdomain [127.0.0.1]) by codehaus01.managed.contegix.com (Postfix) with ESMTP id 3958CB0746 for ; Mon, 3 Jun 2013 09:08:03 -0500 (CDT) Date: Mon, 3 Jun 2013 09:08:03 -0500 (CDT) From: "Stephen Colebourne (JIRA)" To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] (MSITE-691) Aggregator pom with child parent not handled MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 22cf62d5d84cf5bea94eb3b65e0ebd09 X-Virus-Checked: Checked by ClamAV on apache.org Stephen Colebourne created MSITE-691: ---------------------------------------- Summary: Aggregator pom with child parent not handled Key: MSITE-691 URL: https://jira.codehaus.org/browse/MSITE-691 Project: Maven 2.x and 3.x Site Plugin Issue Type: Bug Components: multi module Affects Versions: 3.3 Reporter: Stephen Colebourne 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 is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira