You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org> on 2007/12/11 18:41:57 UTC
[jira] Created: (MSITE-279) Inheritance of elements from site
descriptor quite broken
Inheritance of elements from site descriptor quite broken
---------------------------------------------------------
Key: MSITE-279
URL: http://jira.codehaus.org/browse/MSITE-279
Project: Maven 2.x Site Plugin
Issue Type: Bug
Components: inheritance
Affects Versions: 2.0-beta-6
Environment: Maven 2.0.8, JDK 1.5.0_12, WinXP
Reporter: Benjamin Bentmann
Priority: Critical
Attachments: project.zip
After updating to 2.0-beta-6, I never get proper site output for multi module projects. I attached a simple dummy project that shall help to reproduce the problem.
When I perform a reactor build of the site (i.e. "project-parent> mvn site"), the pages of the sub module project-module-1 properly inherit most of the decorator elements, except for the custom "overview" menu. That is, the site of the sub module contains the menu configured for the parent project despite the sub module specifying its own menu.-
In contrast, when I only build the site of the sub module (i.e. "project-module-1> mvn site"), many decoration elements are not inherited from the parent's site.xml like <version>, <bannerRight>, <skin>, <links>. However, now the sub module's site properly outputs its own menu items (i.e. "Module-Item" instead of "Parent-Item" for the attached projects).
This issues might be a duplicate/relative of MSITE-256 but as I cannot safely judge from its description, I opened a new issue.
--
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
[jira] Updated: (MSITE-279) Inheritance of elements from site
descriptor quite broken
Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSITE-279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Bentmann updated MSITE-279:
------------------------------------
Attachment: site-directory.patch
Here is a fix.
> Inheritance of elements from site descriptor quite broken
> ---------------------------------------------------------
>
> Key: MSITE-279
> URL: http://jira.codehaus.org/browse/MSITE-279
> Project: Maven 2.x Site Plugin
> Issue Type: Bug
> Components: inheritance
> Affects Versions: 2.0-beta-6
> Environment: Maven 2.0.8, JDK 1.5.0_12, WinXP
> Reporter: Benjamin Bentmann
> Priority: Critical
> Attachments: project.zip, site-directory.patch
>
>
> After updating to 2.0-beta-6, I never get proper site output for multi module projects. I attached a simple dummy project that shall help to reproduce the problem.
> When I perform a reactor build of the site (i.e. "project-parent> mvn site"), the pages of the sub module project-module-1 properly inherit most of the decorator elements, except for the custom "overview" menu. That is, the site of the sub module contains the menu configured for the parent project despite the sub module specifying its own menu.-
> In contrast, when I only build the site of the sub module (i.e. "project-module-1> mvn site"), many decoration elements are not inherited from the parent's site.xml like <version>, <bannerRight>, <skin>, <links>. However, now the sub module's site properly outputs its own menu items (i.e. "Module-Item" instead of "Parent-Item" for the attached projects).
> This issues might be a duplicate/relative of MSITE-256 but as I cannot safely judge from its description, I opened a new issue.
--
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
[jira] Updated: (MSITE-279) Inheritance of elements from site
descriptor quite broken
Posted by "Anne Gerodolle (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSITE-279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Anne Gerodolle updated MSITE-279:
---------------------------------
Attachment: bug2.zip
modules sites are built but a menu that should be inherited is not
> Inheritance of elements from site descriptor quite broken
> ---------------------------------------------------------
>
> Key: MSITE-279
> URL: http://jira.codehaus.org/browse/MSITE-279
> Project: Maven 2.x Site Plugin
> Issue Type: Bug
> Components: inheritance
> Affects Versions: 2.0-beta-6
> Environment: Maven 2.0.8, JDK 1.5.0_12, WinXP
> Reporter: Benjamin Bentmann
> Assignee: Vincent Siveton
> Priority: Critical
> Fix For: 2.0-beta-7
>
> Attachments: bug1.zip, bug2.zip, exception.txt, project.zip, site-directory.patch, site-directory.patch
>
>
> After updating to 2.0-beta-6, I never get proper site output for multi module projects. I attached a simple dummy project that shall help to reproduce the problem.
> When I perform a reactor build of the site (i.e. "project-parent> mvn site"), the pages of the sub module project-module-1 properly inherit most of the decorator elements, except for the custom "overview" menu. That is, the site of the sub module contains the menu configured for the parent project despite the sub module specifying its own menu.-
> In contrast, when I only build the site of the sub module (i.e. "project-module-1> mvn site"), many decoration elements are not inherited from the parent's site.xml like <version>, <bannerRight>, <skin>, <links>. However, now the sub module's site properly outputs its own menu items (i.e. "Module-Item" instead of "Parent-Item" for the attached projects).
> This issues might be a duplicate/relative of MSITE-256 but as I cannot safely judge from its description, I opened a new issue.
--
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
[jira] Commented: (MSITE-279) Inheritance of elements from site
descriptor quite broken
Posted by "Anne Gerodolle (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSITE-279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_124484 ]
Anne Gerodolle commented on MSITE-279:
--------------------------------------
Hi,
I've dowloaded the current version of the maven-site-plugin from the svn trunk.
I still observe the problem that menus are not inherited from the parent.
Moreover, if I do not specify some "<url>" tag in the parent pom.xml, I now observe an exception I did not obtain before. I am enclosing 3 files :
exception.txt shows the new exception raised when no url tag is defined
bug1.zip : the project without url tag defined (modules sites are not built if typing mvn clean then mvn site)
bug2.zip : url tag define (modules sites are built but "menu1" is not inherited by modules)
> Inheritance of elements from site descriptor quite broken
> ---------------------------------------------------------
>
> Key: MSITE-279
> URL: http://jira.codehaus.org/browse/MSITE-279
> Project: Maven 2.x Site Plugin
> Issue Type: Bug
> Components: inheritance
> Affects Versions: 2.0-beta-6
> Environment: Maven 2.0.8, JDK 1.5.0_12, WinXP
> Reporter: Benjamin Bentmann
> Assignee: Vincent Siveton
> Priority: Critical
> Fix For: 2.0-beta-7
>
> Attachments: project.zip, site-directory.patch, site-directory.patch
>
>
> After updating to 2.0-beta-6, I never get proper site output for multi module projects. I attached a simple dummy project that shall help to reproduce the problem.
> When I perform a reactor build of the site (i.e. "project-parent> mvn site"), the pages of the sub module project-module-1 properly inherit most of the decorator elements, except for the custom "overview" menu. That is, the site of the sub module contains the menu configured for the parent project despite the sub module specifying its own menu.-
> In contrast, when I only build the site of the sub module (i.e. "project-module-1> mvn site"), many decoration elements are not inherited from the parent's site.xml like <version>, <bannerRight>, <skin>, <links>. However, now the sub module's site properly outputs its own menu items (i.e. "Module-Item" instead of "Parent-Item" for the attached projects).
> This issues might be a duplicate/relative of MSITE-256 but as I cannot safely judge from its description, I opened a new issue.
--
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
[jira] Closed: (MSITE-279) Inheritance of elements from site
descriptor quite broken
Posted by "Vincent Siveton (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSITE-279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vincent Siveton closed MSITE-279.
---------------------------------
Assignee: Vincent Siveton
Resolution: Fixed
Fix Version/s: 2.0-beta-7
new patch applied and updated code in site-plugin
> Inheritance of elements from site descriptor quite broken
> ---------------------------------------------------------
>
> Key: MSITE-279
> URL: http://jira.codehaus.org/browse/MSITE-279
> Project: Maven 2.x Site Plugin
> Issue Type: Bug
> Components: inheritance
> Affects Versions: 2.0-beta-6
> Environment: Maven 2.0.8, JDK 1.5.0_12, WinXP
> Reporter: Benjamin Bentmann
> Assignee: Vincent Siveton
> Priority: Critical
> Fix For: 2.0-beta-7
>
> Attachments: project.zip, site-directory.patch, site-directory.patch
>
>
> After updating to 2.0-beta-6, I never get proper site output for multi module projects. I attached a simple dummy project that shall help to reproduce the problem.
> When I perform a reactor build of the site (i.e. "project-parent> mvn site"), the pages of the sub module project-module-1 properly inherit most of the decorator elements, except for the custom "overview" menu. That is, the site of the sub module contains the menu configured for the parent project despite the sub module specifying its own menu.-
> In contrast, when I only build the site of the sub module (i.e. "project-module-1> mvn site"), many decoration elements are not inherited from the parent's site.xml like <version>, <bannerRight>, <skin>, <links>. However, now the sub module's site properly outputs its own menu items (i.e. "Module-Item" instead of "Parent-Item" for the attached projects).
> This issues might be a duplicate/relative of MSITE-256 but as I cannot safely judge from its description, I opened a new issue.
--
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
[jira] Commented: (MSITE-279) Inheritance of elements from site
descriptor quite broken
Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSITE-279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_124489 ]
Benjamin Bentmann commented on MSITE-279:
-----------------------------------------
bq. Moreover, if I do not specify some "<url>" tag in the parent pom.xml, I now observe an exception I did not obtain before.
Looks like you ran into MSITE-180.
> Inheritance of elements from site descriptor quite broken
> ---------------------------------------------------------
>
> Key: MSITE-279
> URL: http://jira.codehaus.org/browse/MSITE-279
> Project: Maven 2.x Site Plugin
> Issue Type: Bug
> Components: inheritance
> Affects Versions: 2.0-beta-6
> Environment: Maven 2.0.8, JDK 1.5.0_12, WinXP
> Reporter: Benjamin Bentmann
> Assignee: Vincent Siveton
> Priority: Critical
> Fix For: 2.0-beta-7
>
> Attachments: bug1.zip, bug2.zip, exception.txt, project.zip, site-directory.patch, site-directory.patch
>
>
> After updating to 2.0-beta-6, I never get proper site output for multi module projects. I attached a simple dummy project that shall help to reproduce the problem.
> When I perform a reactor build of the site (i.e. "project-parent> mvn site"), the pages of the sub module project-module-1 properly inherit most of the decorator elements, except for the custom "overview" menu. That is, the site of the sub module contains the menu configured for the parent project despite the sub module specifying its own menu.-
> In contrast, when I only build the site of the sub module (i.e. "project-module-1> mvn site"), many decoration elements are not inherited from the parent's site.xml like <version>, <bannerRight>, <skin>, <links>. However, now the sub module's site properly outputs its own menu items (i.e. "Module-Item" instead of "Parent-Item" for the attached projects).
> This issues might be a duplicate/relative of MSITE-256 but as I cannot safely judge from its description, I opened a new issue.
--
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
[jira] Updated: (MSITE-279) Inheritance of elements from site
descriptor quite broken
Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSITE-279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Bentmann updated MSITE-279:
------------------------------------
Attachment: site-directory.patch
Fixing this against maven-doxia-tools is not that easy because the only chance I see is an API redesign.
Unlike my first approach for the maven-site-plugin, I chose to change the siteDirectory parameter for the doxia-tools methods to be a string denoting the *relative* path to the site directory, eg. "src/site", instead of passing around the base directory of the original project from which the siteDirectory mojo parameter was taken. Callers of the doxia-tools like the maven-site-plugin should be able to easily create this string from their (absolute) java.io.File-based mojo parameter via {{SiteTool.getRelativePath( siteDirectory.getAbsolutePath(), basedir.getAbsolutePath() )}}. Doing this once in the plugin for the *current* project and not for each ancestor project is the key to fix the issue.
Of course, a relative path could be encoded via java.io.File as well but I see the risk that people errorneously pass in absolute paths that they got from Maven's path translation.
BTW, [JUnit assertions|http://junit.sourceforge.net/javadoc/junit/framework/Assert.html] are written in the order (expected, actual).
> Inheritance of elements from site descriptor quite broken
> ---------------------------------------------------------
>
> Key: MSITE-279
> URL: http://jira.codehaus.org/browse/MSITE-279
> Project: Maven 2.x Site Plugin
> Issue Type: Bug
> Components: inheritance
> Affects Versions: 2.0-beta-6
> Environment: Maven 2.0.8, JDK 1.5.0_12, WinXP
> Reporter: Benjamin Bentmann
> Priority: Critical
> Attachments: project.zip, site-directory.patch, site-directory.patch
>
>
> After updating to 2.0-beta-6, I never get proper site output for multi module projects. I attached a simple dummy project that shall help to reproduce the problem.
> When I perform a reactor build of the site (i.e. "project-parent> mvn site"), the pages of the sub module project-module-1 properly inherit most of the decorator elements, except for the custom "overview" menu. That is, the site of the sub module contains the menu configured for the parent project despite the sub module specifying its own menu.-
> In contrast, when I only build the site of the sub module (i.e. "project-module-1> mvn site"), many decoration elements are not inherited from the parent's site.xml like <version>, <bannerRight>, <skin>, <links>. However, now the sub module's site properly outputs its own menu items (i.e. "Module-Item" instead of "Parent-Item" for the attached projects).
> This issues might be a duplicate/relative of MSITE-256 but as I cannot safely judge from its description, I opened a new issue.
--
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
[jira] Updated: (MSITE-279) Inheritance of elements from site
descriptor quite broken
Posted by "Anne Gerodolle (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSITE-279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Anne Gerodolle updated MSITE-279:
---------------------------------
Attachment: exception.txt
exceptionraised when trying to build the site (bug1.zip)
> Inheritance of elements from site descriptor quite broken
> ---------------------------------------------------------
>
> Key: MSITE-279
> URL: http://jira.codehaus.org/browse/MSITE-279
> Project: Maven 2.x Site Plugin
> Issue Type: Bug
> Components: inheritance
> Affects Versions: 2.0-beta-6
> Environment: Maven 2.0.8, JDK 1.5.0_12, WinXP
> Reporter: Benjamin Bentmann
> Assignee: Vincent Siveton
> Priority: Critical
> Fix For: 2.0-beta-7
>
> Attachments: bug1.zip, bug2.zip, exception.txt, project.zip, site-directory.patch, site-directory.patch
>
>
> After updating to 2.0-beta-6, I never get proper site output for multi module projects. I attached a simple dummy project that shall help to reproduce the problem.
> When I perform a reactor build of the site (i.e. "project-parent> mvn site"), the pages of the sub module project-module-1 properly inherit most of the decorator elements, except for the custom "overview" menu. That is, the site of the sub module contains the menu configured for the parent project despite the sub module specifying its own menu.-
> In contrast, when I only build the site of the sub module (i.e. "project-module-1> mvn site"), many decoration elements are not inherited from the parent's site.xml like <version>, <bannerRight>, <skin>, <links>. However, now the sub module's site properly outputs its own menu items (i.e. "Module-Item" instead of "Parent-Item" for the attached projects).
> This issues might be a duplicate/relative of MSITE-256 but as I cannot safely judge from its description, I opened a new issue.
--
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
[jira] Updated: (MSHARED-18) Inheritance of elements from site
descriptor quite broken
Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSHARED-18?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dennis Lundberg updated MSHARED-18:
-----------------------------------
Fix Version/s: maven-doxia-tools 1.0
> Inheritance of elements from site descriptor quite broken
> ---------------------------------------------------------
>
> Key: MSHARED-18
> URL: http://jira.codehaus.org/browse/MSHARED-18
> Project: Maven Shared Components
> Issue Type: Bug
> Components: maven-doxia-tools
> Environment: Maven 2.0.8, JDK 1.5.0_12, WinXP
> Reporter: Benjamin Bentmann
> Assignee: Vincent Siveton
> Priority: Critical
> Fix For: maven-doxia-tools 1.0
>
> Attachments: bug1.zip, bug2.zip, exception.txt, project.zip, site-directory.patch, site-directory.patch
>
>
> After updating to 2.0-beta-6, I never get proper site output for multi module projects. I attached a simple dummy project that shall help to reproduce the problem.
> When I perform a reactor build of the site (i.e. "project-parent> mvn site"), the pages of the sub module project-module-1 properly inherit most of the decorator elements, except for the custom "overview" menu. That is, the site of the sub module contains the menu configured for the parent project despite the sub module specifying its own menu.-
> In contrast, when I only build the site of the sub module (i.e. "project-module-1> mvn site"), many decoration elements are not inherited from the parent's site.xml like <version>, <bannerRight>, <skin>, <links>. However, now the sub module's site properly outputs its own menu items (i.e. "Module-Item" instead of "Parent-Item" for the attached projects).
> This issues might be a duplicate/relative of MSITE-256 but as I cannot safely judge from its description, I opened a new issue.
--
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
[jira] Moved: (MSHARED-18) Inheritance of elements from site
descriptor quite broken
Posted by "Vincent Siveton (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSHARED-18?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vincent Siveton moved MSITE-279 to MSHARED-18:
----------------------------------------------
Affects Version/s: (was: 2.0-beta-6)
Fix Version/s: (was: 2.0-beta-7)
Component/s: (was: inheritance)
maven-doxia-tools
Key: MSHARED-18 (was: MSITE-279)
Project: Maven Shared Components (was: Maven 2.x Site Plugin)
> Inheritance of elements from site descriptor quite broken
> ---------------------------------------------------------
>
> Key: MSHARED-18
> URL: http://jira.codehaus.org/browse/MSHARED-18
> Project: Maven Shared Components
> Issue Type: Bug
> Components: maven-doxia-tools
> Environment: Maven 2.0.8, JDK 1.5.0_12, WinXP
> Reporter: Benjamin Bentmann
> Assignee: Vincent Siveton
> Priority: Critical
> Attachments: bug1.zip, bug2.zip, exception.txt, project.zip, site-directory.patch, site-directory.patch
>
>
> After updating to 2.0-beta-6, I never get proper site output for multi module projects. I attached a simple dummy project that shall help to reproduce the problem.
> When I perform a reactor build of the site (i.e. "project-parent> mvn site"), the pages of the sub module project-module-1 properly inherit most of the decorator elements, except for the custom "overview" menu. That is, the site of the sub module contains the menu configured for the parent project despite the sub module specifying its own menu.-
> In contrast, when I only build the site of the sub module (i.e. "project-module-1> mvn site"), many decoration elements are not inherited from the parent's site.xml like <version>, <bannerRight>, <skin>, <links>. However, now the sub module's site properly outputs its own menu items (i.e. "Module-Item" instead of "Parent-Item" for the attached projects).
> This issues might be a duplicate/relative of MSITE-256 but as I cannot safely judge from its description, I opened a new issue.
--
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
[jira] Updated: (MSITE-279) Inheritance of elements from site
descriptor quite broken
Posted by "Anne Gerodolle (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSITE-279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Anne Gerodolle updated MSITE-279:
---------------------------------
Attachment: bug1.zip
with current version of maven-site-plugin rebuilt from svn trunk, module site is not built when typing mvn clean then mvn site
> Inheritance of elements from site descriptor quite broken
> ---------------------------------------------------------
>
> Key: MSITE-279
> URL: http://jira.codehaus.org/browse/MSITE-279
> Project: Maven 2.x Site Plugin
> Issue Type: Bug
> Components: inheritance
> Affects Versions: 2.0-beta-6
> Environment: Maven 2.0.8, JDK 1.5.0_12, WinXP
> Reporter: Benjamin Bentmann
> Assignee: Vincent Siveton
> Priority: Critical
> Fix For: 2.0-beta-7
>
> Attachments: bug1.zip, project.zip, site-directory.patch, site-directory.patch
>
>
> After updating to 2.0-beta-6, I never get proper site output for multi module projects. I attached a simple dummy project that shall help to reproduce the problem.
> When I perform a reactor build of the site (i.e. "project-parent> mvn site"), the pages of the sub module project-module-1 properly inherit most of the decorator elements, except for the custom "overview" menu. That is, the site of the sub module contains the menu configured for the parent project despite the sub module specifying its own menu.-
> In contrast, when I only build the site of the sub module (i.e. "project-module-1> mvn site"), many decoration elements are not inherited from the parent's site.xml like <version>, <bannerRight>, <skin>, <links>. However, now the sub module's site properly outputs its own menu items (i.e. "Module-Item" instead of "Parent-Item" for the attached projects).
> This issues might be a duplicate/relative of MSITE-256 but as I cannot safely judge from its description, I opened a new issue.
--
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
[jira] Commented: (MSITE-279) Inheritance of elements from site
descriptor quite broken
Posted by "Anne Gerodolle (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSITE-279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_124590 ]
Anne Gerodolle commented on MSITE-279:
--------------------------------------
"Looks like you ran into MSITE-180."
it may be related however symptoms are not the same: it's not that "IF none of the poms (module or parent) don't have an url tag,
THEN site inheritence quitely isn't applied, for example in the parent's site.xml".
what I observe is : the child's site is not built at all if the url tag is missing. and an exception is raised (exception.txt).
a difficulty for reporting these issues correctly is that behaviour of inheritance seems quite instable. Sometimes, menus are not inherited, sometimes, only menus from parents are shown. Sometimes, skins are not inherited, or partially, sometimes they are...
In the example bug2.zip, with the site plugin checked out from trunk and rebuilt yesterday,if I run "mvn site" in the parent's folders, menu "menu1" is not inherited.
And I'm sorry for the numerous small posts of yesterday : I tried to add a comment to each uploaded file, but clearly it does not work like that !
> Inheritance of elements from site descriptor quite broken
> ---------------------------------------------------------
>
> Key: MSITE-279
> URL: http://jira.codehaus.org/browse/MSITE-279
> Project: Maven 2.x Site Plugin
> Issue Type: Bug
> Components: inheritance
> Affects Versions: 2.0-beta-6
> Environment: Maven 2.0.8, JDK 1.5.0_12, WinXP
> Reporter: Benjamin Bentmann
> Assignee: Vincent Siveton
> Priority: Critical
> Fix For: 2.0-beta-7
>
> Attachments: bug1.zip, bug2.zip, exception.txt, project.zip, site-directory.patch, site-directory.patch
>
>
> After updating to 2.0-beta-6, I never get proper site output for multi module projects. I attached a simple dummy project that shall help to reproduce the problem.
> When I perform a reactor build of the site (i.e. "project-parent> mvn site"), the pages of the sub module project-module-1 properly inherit most of the decorator elements, except for the custom "overview" menu. That is, the site of the sub module contains the menu configured for the parent project despite the sub module specifying its own menu.-
> In contrast, when I only build the site of the sub module (i.e. "project-module-1> mvn site"), many decoration elements are not inherited from the parent's site.xml like <version>, <bannerRight>, <skin>, <links>. However, now the sub module's site properly outputs its own menu items (i.e. "Module-Item" instead of "Parent-Item" for the attached projects).
> This issues might be a duplicate/relative of MSITE-256 but as I cannot safely judge from its description, I opened a new issue.
--
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