You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Wenig (JIRA)" <ji...@codehaus.org> on 2010/09/13 12:10:32 UTC
[jira] Created: (MSITE-502) Multiple Parent-Links and additional
module-link inherited wrong from parent
Multiple Parent-Links and additional module-link inherited wrong from parent
----------------------------------------------------------------------------
Key: MSITE-502
URL: http://jira.codehaus.org/browse/MSITE-502
Project: Maven 2.x Site Plugin
Issue Type: Bug
Components: inheritance
Affects Versions: 2.1.1
Reporter: Michael Wenig
Attachments: siteInheritance.zip
Attached is a couple of projects showing a problem with the site inheritance.
The projects have the following structure:
parentPom1
-> projectA (parentPom2, with a submodule 'dummyModule' and attached site.xml)
-> projectB (parentPom3)
-> projectC (projectRoot with a submodule 'projectModule')
I ran the following commands:
parentPom1: install
projectA: site site:attach-descriptor install
projectB site install
projectC site install
I added the corresponding target-folders to the zip:
projectA:
generated correctly
projectB:
shows two(!) parent links:
-> to parentPom1 (which is wrong and IMHO inherited out of the attached site-descriptor)
-> to parentPom2 (which is correct)
projectC (root):
shows two(!) parent links:
-> to parentPom1 (which is wrong and IMHO inherited out of the attached site-descriptor)
-> to projectB (which is correct)
shows two modules:
-> dummyModule (the one of projectA which is wrong and IMHO inherited out of the attached site-descriptor)
-> projectModule (correct)
==> I expected the parent-Menu to only contain the direct parent
==> I expected the modules menu to only contain modules of the pom and not the modules of a parent...
Content of the attached site descriptor:
<?xml version="1.0" encoding="UTF-8"?><project xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.1 http://maven.apache.org/xsd/decoration-1.0.1.xsd" xmlns="http://maven.apache.org/DECORATION/1.0.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<body>
<menu name="Parent Project" inherit="top" ref="parent">
<item name="parentPom1" href="..\index.html" />
</menu>
<menu name="Modules" inherit="bottom" ref="modules">
<item name="dummyModule" href="projectA1/index.html" />
</menu>
<menu inherit="bottom" ref="reports" />
</body>
</project>
I think the problem are the contained item-tags which are included in the sites of consumer projects.
--
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-502) Multiple Parent-Links and additional
module-link inherited wrong from parent
Posted by "Lukas Theussl (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSITE-502?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lukas Theussl updated MSITE-502:
--------------------------------
Fix Version/s: 2.3
> Multiple Parent-Links and additional module-link inherited wrong from parent
> ----------------------------------------------------------------------------
>
> Key: MSITE-502
> URL: http://jira.codehaus.org/browse/MSITE-502
> Project: Maven 2.x and 3.x Site Plugin
> Issue Type: Bug
> Components: inheritance, multi module, site descriptor
> Affects Versions: 2.1.1
> Reporter: Michael Wenig
> Fix For: 2.3
>
> Attachments: siteInheritance.zip
>
>
> Attached is a couple of projects showing a problem with the site inheritance.
> The projects have the following structure:
> parentPom1
> -> projectA (parentPom2, with a submodule 'dummyModule' and attached site.xml)
> -> projectB (parentPom3)
> -> projectC (projectRoot with a submodule 'projectModule')
> I ran the following commands:
> parentPom1: install
> projectA: site site:attach-descriptor install
> projectB site install
> projectC site install
> I added the corresponding target-folders to the zip:
> projectA:
> generated correctly
> projectB:
> shows two(!) parent links:
> -> to parentPom1 (which is wrong and IMHO inherited out of the attached site-descriptor)
> -> to parentPom2 (which is correct)
> projectC (root):
> shows two(!) parent links:
> -> to parentPom1 (which is wrong and IMHO inherited out of the attached site-descriptor)
> -> to projectB (which is correct)
> shows two modules:
> -> dummyModule (the one of projectA which is wrong and IMHO inherited out of the attached site-descriptor)
> -> projectModule (correct)
> ==> I expected the parent-Menu to only contain the direct parent
> ==> I expected the modules menu to only contain modules of the pom and not the modules of a parent...
> Content of the attached site descriptor:
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?><project xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.1 http://maven.apache.org/xsd/decoration-1.0.1.xsd" xmlns="http://maven.apache.org/DECORATION/1.0.1"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <body>
> <menu name="Parent Project" inherit="top" ref="parent">
> <item name="parentPom1" href="..\index.html" />
> </menu>
> <menu name="Modules" inherit="bottom" ref="modules">
> <item name="dummyModule" href="projectA1/index.html" />
> </menu>
> <menu inherit="bottom" ref="reports" />
> </body>
> </project>
> {code}
> I think the problem are the contained item-tags which are included in the sites of consumer projects.
--
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-502) Multiple Parent-Links and additional
module-link inherited wrong from parent
Posted by "Michael Wenig (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSITE-502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=235093#action_235093 ]
Michael Wenig commented on MSITE-502:
-------------------------------------
I assume that first a site.xml is generated for the content of the project itself and then gets attached (and not the original site.xml) - please have alook into the zip contents. I do not think that I did a misconfiguration - and AFAIR it was working correctly in 2.0.1
> Multiple Parent-Links and additional module-link inherited wrong from parent
> ----------------------------------------------------------------------------
>
> Key: MSITE-502
> URL: http://jira.codehaus.org/browse/MSITE-502
> Project: Maven 2.x Site Plugin
> Issue Type: Bug
> Components: inheritance
> Affects Versions: 2.1.1
> Reporter: Michael Wenig
> Attachments: siteInheritance.zip
>
>
> Attached is a couple of projects showing a problem with the site inheritance.
> The projects have the following structure:
> parentPom1
> -> projectA (parentPom2, with a submodule 'dummyModule' and attached site.xml)
> -> projectB (parentPom3)
> -> projectC (projectRoot with a submodule 'projectModule')
> I ran the following commands:
> parentPom1: install
> projectA: site site:attach-descriptor install
> projectB site install
> projectC site install
> I added the corresponding target-folders to the zip:
> projectA:
> generated correctly
> projectB:
> shows two(!) parent links:
> -> to parentPom1 (which is wrong and IMHO inherited out of the attached site-descriptor)
> -> to parentPom2 (which is correct)
> projectC (root):
> shows two(!) parent links:
> -> to parentPom1 (which is wrong and IMHO inherited out of the attached site-descriptor)
> -> to projectB (which is correct)
> shows two modules:
> -> dummyModule (the one of projectA which is wrong and IMHO inherited out of the attached site-descriptor)
> -> projectModule (correct)
> ==> I expected the parent-Menu to only contain the direct parent
> ==> I expected the modules menu to only contain modules of the pom and not the modules of a parent...
> Content of the attached site descriptor:
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?><project xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.1 http://maven.apache.org/xsd/decoration-1.0.1.xsd" xmlns="http://maven.apache.org/DECORATION/1.0.1"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <body>
> <menu name="Parent Project" inherit="top" ref="parent">
> <item name="parentPom1" href="..\index.html" />
> </menu>
> <menu name="Modules" inherit="bottom" ref="modules">
> <item name="dummyModule" href="projectA1/index.html" />
> </menu>
> <menu inherit="bottom" ref="reports" />
> </body>
> </project>
> {code}
> I think the problem are the contained item-tags which are included in the sites of consumer projects.
--
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-502) Multiple Parent-Links and additional
module-link inherited wrong from parent
Posted by "Lukas Theussl (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSITE-502?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lukas Theussl closed MSITE-502.
-------------------------------
Resolution: Fixed
Assignee: Lukas Theussl
This should be fixed with MSITE-488. Just note that due to MSITE-535, the parent url has to be specified in the distributionManagement section (from v. 2.3 on). I will re-visit the inheritAsRef option, I still haven't found any coherent use of it.
> Multiple Parent-Links and additional module-link inherited wrong from parent
> ----------------------------------------------------------------------------
>
> Key: MSITE-502
> URL: http://jira.codehaus.org/browse/MSITE-502
> Project: Maven 2.x and 3.x Site Plugin
> Issue Type: Bug
> Components: inheritance, multi module, site descriptor
> Affects Versions: 2.1.1
> Reporter: Michael Wenig
> Assignee: Lukas Theussl
> Fix For: 2.3
>
> Attachments: siteInheritance.zip
>
>
> Attached is a couple of projects showing a problem with the site inheritance.
> The projects have the following structure:
> parentPom1
> -> projectA (parentPom2, with a submodule 'dummyModule' and attached site.xml)
> -> projectB (parentPom3)
> -> projectC (projectRoot with a submodule 'projectModule')
> I ran the following commands:
> parentPom1: install
> projectA: site site:attach-descriptor install
> projectB site install
> projectC site install
> I added the corresponding target-folders to the zip:
> projectA:
> generated correctly
> projectB:
> shows two(!) parent links:
> -> to parentPom1 (which is wrong and IMHO inherited out of the attached site-descriptor)
> -> to parentPom2 (which is correct)
> projectC (root):
> shows two(!) parent links:
> -> to parentPom1 (which is wrong and IMHO inherited out of the attached site-descriptor)
> -> to projectB (which is correct)
> shows two modules:
> -> dummyModule (the one of projectA which is wrong and IMHO inherited out of the attached site-descriptor)
> -> projectModule (correct)
> ==> I expected the parent-Menu to only contain the direct parent
> ==> I expected the modules menu to only contain modules of the pom and not the modules of a parent...
> Content of the attached site descriptor:
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?><project xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.1 http://maven.apache.org/xsd/decoration-1.0.1.xsd" xmlns="http://maven.apache.org/DECORATION/1.0.1"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <body>
> <menu name="Parent Project" inherit="top" ref="parent">
> <item name="parentPom1" href="..\index.html" />
> </menu>
> <menu name="Modules" inherit="bottom" ref="modules">
> <item name="dummyModule" href="projectA1/index.html" />
> </menu>
> <menu inherit="bottom" ref="reports" />
> </body>
> </project>
> {code}
> I think the problem are the contained item-tags which are included in the sites of consumer projects.
--
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-502) Multiple Parent-Links and additional
module-link inherited wrong from parent
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSITE-502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=251023#action_251023 ]
Brett Porter commented on MSITE-502:
------------------------------------
I think at the time I implemented that, I had a different perception on how the inheritance would be used. If you were referring to a parent, you might be establishing a permanent link to a top level project that might otherwise be hard to obtain.
I'm not sure if anyone has come to depend on that behaviour, but I haven't seen it widely used myself. Perhaps you could deprecate those expressions and offer better replacement tags in the site descriptor that are more descriptive of the intent (e.g. since they are no longer expressions, you could even indicate in the descriptor whether to interpolate them or not).
> Multiple Parent-Links and additional module-link inherited wrong from parent
> ----------------------------------------------------------------------------
>
> Key: MSITE-502
> URL: http://jira.codehaus.org/browse/MSITE-502
> Project: Maven 2.x and 3.x Site Plugin
> Issue Type: Bug
> Components: inheritance, multi module, site descriptor
> Affects Versions: 2.1.1
> Reporter: Michael Wenig
> Fix For: 2.3
>
> Attachments: siteInheritance.zip
>
>
> Attached is a couple of projects showing a problem with the site inheritance.
> The projects have the following structure:
> parentPom1
> -> projectA (parentPom2, with a submodule 'dummyModule' and attached site.xml)
> -> projectB (parentPom3)
> -> projectC (projectRoot with a submodule 'projectModule')
> I ran the following commands:
> parentPom1: install
> projectA: site site:attach-descriptor install
> projectB site install
> projectC site install
> I added the corresponding target-folders to the zip:
> projectA:
> generated correctly
> projectB:
> shows two(!) parent links:
> -> to parentPom1 (which is wrong and IMHO inherited out of the attached site-descriptor)
> -> to parentPom2 (which is correct)
> projectC (root):
> shows two(!) parent links:
> -> to parentPom1 (which is wrong and IMHO inherited out of the attached site-descriptor)
> -> to projectB (which is correct)
> shows two modules:
> -> dummyModule (the one of projectA which is wrong and IMHO inherited out of the attached site-descriptor)
> -> projectModule (correct)
> ==> I expected the parent-Menu to only contain the direct parent
> ==> I expected the modules menu to only contain modules of the pom and not the modules of a parent...
> Content of the attached site descriptor:
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?><project xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.1 http://maven.apache.org/xsd/decoration-1.0.1.xsd" xmlns="http://maven.apache.org/DECORATION/1.0.1"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <body>
> <menu name="Parent Project" inherit="top" ref="parent">
> <item name="parentPom1" href="..\index.html" />
> </menu>
> <menu name="Modules" inherit="bottom" ref="modules">
> <item name="dummyModule" href="projectA1/index.html" />
> </menu>
> <menu inherit="bottom" ref="reports" />
> </body>
> </project>
> {code}
> I think the problem are the contained item-tags which are included in the sites of consumer projects.
--
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-502) Multiple Parent-Links and additional
module-link inherited wrong from parent
Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSITE-502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=235233#action_235233 ]
Dennis Lundberg commented on MSITE-502:
---------------------------------------
Right, projectC should not need a relativePath.
In fact my gut feeling is that none of the projects should really need relativePath specified at all. It *should* work anyway, but I'm not sure why. The fact that adding relativePath solves it is promising in that it shows that it can work, under certain conditions.
> Multiple Parent-Links and additional module-link inherited wrong from parent
> ----------------------------------------------------------------------------
>
> Key: MSITE-502
> URL: http://jira.codehaus.org/browse/MSITE-502
> Project: Maven 2.x Site Plugin
> Issue Type: Bug
> Components: inheritance
> Affects Versions: 2.1.1
> Reporter: Michael Wenig
> Attachments: siteInheritance.zip
>
>
> Attached is a couple of projects showing a problem with the site inheritance.
> The projects have the following structure:
> parentPom1
> -> projectA (parentPom2, with a submodule 'dummyModule' and attached site.xml)
> -> projectB (parentPom3)
> -> projectC (projectRoot with a submodule 'projectModule')
> I ran the following commands:
> parentPom1: install
> projectA: site site:attach-descriptor install
> projectB site install
> projectC site install
> I added the corresponding target-folders to the zip:
> projectA:
> generated correctly
> projectB:
> shows two(!) parent links:
> -> to parentPom1 (which is wrong and IMHO inherited out of the attached site-descriptor)
> -> to parentPom2 (which is correct)
> projectC (root):
> shows two(!) parent links:
> -> to parentPom1 (which is wrong and IMHO inherited out of the attached site-descriptor)
> -> to projectB (which is correct)
> shows two modules:
> -> dummyModule (the one of projectA which is wrong and IMHO inherited out of the attached site-descriptor)
> -> projectModule (correct)
> ==> I expected the parent-Menu to only contain the direct parent
> ==> I expected the modules menu to only contain modules of the pom and not the modules of a parent...
> Content of the attached site descriptor:
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?><project xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.1 http://maven.apache.org/xsd/decoration-1.0.1.xsd" xmlns="http://maven.apache.org/DECORATION/1.0.1"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <body>
> <menu name="Parent Project" inherit="top" ref="parent">
> <item name="parentPom1" href="..\index.html" />
> </menu>
> <menu name="Modules" inherit="bottom" ref="modules">
> <item name="dummyModule" href="projectA1/index.html" />
> </menu>
> <menu inherit="bottom" ref="reports" />
> </body>
> </project>
> {code}
> I think the problem are the contained item-tags which are included in the sites of consumer projects.
--
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] Issue Comment Edited: (MSITE-502) Multiple Parent-Links and
additional module-link inherited wrong from parent
Posted by "Michael Wenig (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSITE-502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=235090#action_235090 ]
Michael Wenig edited comment on MSITE-502 at 9/13/10 12:15 PM:
---------------------------------------------------------------
Hi Dennis,
I know that there should be no content in menu-refs. This *IS* the bug.
The *original site.xml (in projectA:src/site)*:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/DECORATION/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.0 http://maven.apache.org/xsd/decoration-1.0.0.xsd">
<body>
<menu ref="parent" inherit="top" />
<menu ref="modules" inherit="bottom" />
<menu ref="reports" inherit="bottom" />
</body>
</project>
*gets attached* as:
<?xml version="1.0" encoding="UTF-8"?><project xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.1 http://maven.apache.org/xsd/decoration-1.0.1.xsd" xmlns="http://maven.apache.org/DECORATION/1.0.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<body>
<menu name="Parent Project" inherit="top" ref="parent">
<item name="parentPom1" href="..\index.html" />
</menu>
<menu name="Modules" inherit="bottom" ref="modules">
<item name="dummyModule" href="projectA1/index.html" />
</menu>
<menu inherit="bottom" ref="reports" />
</body>
</project>
Which leads to the problem!
was (Author: micha123):
Hi Dennis,
I know that there should be no content in menu-refs. This *IS* the bug.
The original site.xml (in projectA:src/site):
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/DECORATION/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.0 http://maven.apache.org/xsd/decoration-1.0.0.xsd">
<body>
<menu ref="parent" inherit="top" />
<menu ref="modules" inherit="bottom" />
<menu ref="reports" inherit="bottom" />
</body>
</project>
gets attached as:
<?xml version="1.0" encoding="UTF-8"?><project xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.1 http://maven.apache.org/xsd/decoration-1.0.1.xsd" xmlns="http://maven.apache.org/DECORATION/1.0.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<body>
<menu name="Parent Project" inherit="top" ref="parent">
<item name="parentPom1" href="..\index.html" />
</menu>
<menu name="Modules" inherit="bottom" ref="modules">
<item name="dummyModule" href="projectA1/index.html" />
</menu>
<menu inherit="bottom" ref="reports" />
</body>
</project>
Which leads to the problem!
> Multiple Parent-Links and additional module-link inherited wrong from parent
> ----------------------------------------------------------------------------
>
> Key: MSITE-502
> URL: http://jira.codehaus.org/browse/MSITE-502
> Project: Maven 2.x Site Plugin
> Issue Type: Bug
> Components: inheritance
> Affects Versions: 2.1.1
> Reporter: Michael Wenig
> Attachments: siteInheritance.zip
>
>
> Attached is a couple of projects showing a problem with the site inheritance.
> The projects have the following structure:
> parentPom1
> -> projectA (parentPom2, with a submodule 'dummyModule' and attached site.xml)
> -> projectB (parentPom3)
> -> projectC (projectRoot with a submodule 'projectModule')
> I ran the following commands:
> parentPom1: install
> projectA: site site:attach-descriptor install
> projectB site install
> projectC site install
> I added the corresponding target-folders to the zip:
> projectA:
> generated correctly
> projectB:
> shows two(!) parent links:
> -> to parentPom1 (which is wrong and IMHO inherited out of the attached site-descriptor)
> -> to parentPom2 (which is correct)
> projectC (root):
> shows two(!) parent links:
> -> to parentPom1 (which is wrong and IMHO inherited out of the attached site-descriptor)
> -> to projectB (which is correct)
> shows two modules:
> -> dummyModule (the one of projectA which is wrong and IMHO inherited out of the attached site-descriptor)
> -> projectModule (correct)
> ==> I expected the parent-Menu to only contain the direct parent
> ==> I expected the modules menu to only contain modules of the pom and not the modules of a parent...
> Content of the attached site descriptor:
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?><project xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.1 http://maven.apache.org/xsd/decoration-1.0.1.xsd" xmlns="http://maven.apache.org/DECORATION/1.0.1"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <body>
> <menu name="Parent Project" inherit="top" ref="parent">
> <item name="parentPom1" href="..\index.html" />
> </menu>
> <menu name="Modules" inherit="bottom" ref="modules">
> <item name="dummyModule" href="projectA1/index.html" />
> </menu>
> <menu inherit="bottom" ref="reports" />
> </body>
> </project>
> {code}
> I think the problem are the contained item-tags which are included in the sites of consumer projects.
--
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-502) Multiple Parent-Links and additional
module-link inherited wrong from parent
Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSITE-502?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dennis Lundberg updated MSITE-502:
----------------------------------
Fix Version/s: 3.0-beta-4
> Multiple Parent-Links and additional module-link inherited wrong from parent
> ----------------------------------------------------------------------------
>
> Key: MSITE-502
> URL: http://jira.codehaus.org/browse/MSITE-502
> Project: Maven 2.x and 3.x Site Plugin
> Issue Type: Bug
> Components: inheritance, multi module, site descriptor
> Affects Versions: 2.1.1
> Reporter: Michael Wenig
> Assignee: Lukas Theussl
> Fix For: 2.3, 3.0-beta-4
>
> Attachments: siteInheritance.zip
>
>
> Attached is a couple of projects showing a problem with the site inheritance.
> The projects have the following structure:
> parentPom1
> -> projectA (parentPom2, with a submodule 'dummyModule' and attached site.xml)
> -> projectB (parentPom3)
> -> projectC (projectRoot with a submodule 'projectModule')
> I ran the following commands:
> parentPom1: install
> projectA: site site:attach-descriptor install
> projectB site install
> projectC site install
> I added the corresponding target-folders to the zip:
> projectA:
> generated correctly
> projectB:
> shows two(!) parent links:
> -> to parentPom1 (which is wrong and IMHO inherited out of the attached site-descriptor)
> -> to parentPom2 (which is correct)
> projectC (root):
> shows two(!) parent links:
> -> to parentPom1 (which is wrong and IMHO inherited out of the attached site-descriptor)
> -> to projectB (which is correct)
> shows two modules:
> -> dummyModule (the one of projectA which is wrong and IMHO inherited out of the attached site-descriptor)
> -> projectModule (correct)
> ==> I expected the parent-Menu to only contain the direct parent
> ==> I expected the modules menu to only contain modules of the pom and not the modules of a parent...
> Content of the attached site descriptor:
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?><project xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.1 http://maven.apache.org/xsd/decoration-1.0.1.xsd" xmlns="http://maven.apache.org/DECORATION/1.0.1"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <body>
> <menu name="Parent Project" inherit="top" ref="parent">
> <item name="parentPom1" href="..\index.html" />
> </menu>
> <menu name="Modules" inherit="bottom" ref="modules">
> <item name="dummyModule" href="projectA1/index.html" />
> </menu>
> <menu inherit="bottom" ref="reports" />
> </body>
> </project>
> {code}
> I think the problem are the contained item-tags which are included in the sites of consumer projects.
--
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-502) Multiple Parent-Links and additional
module-link inherited wrong from parent
Posted by "Michael Wenig (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSITE-502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=235057#action_235057 ]
Michael Wenig commented on MSITE-502:
-------------------------------------
As a workaround I copied the generated site.xml, removed the two items and attach the copy using the buildhelper-plugin. This is not very nice but works for the moment (and also workaorunds MSITE-163)
> Multiple Parent-Links and additional module-link inherited wrong from parent
> ----------------------------------------------------------------------------
>
> Key: MSITE-502
> URL: http://jira.codehaus.org/browse/MSITE-502
> Project: Maven 2.x Site Plugin
> Issue Type: Bug
> Components: inheritance
> Affects Versions: 2.1.1
> Reporter: Michael Wenig
> Attachments: siteInheritance.zip
>
>
> Attached is a couple of projects showing a problem with the site inheritance.
> The projects have the following structure:
> parentPom1
> -> projectA (parentPom2, with a submodule 'dummyModule' and attached site.xml)
> -> projectB (parentPom3)
> -> projectC (projectRoot with a submodule 'projectModule')
> I ran the following commands:
> parentPom1: install
> projectA: site site:attach-descriptor install
> projectB site install
> projectC site install
> I added the corresponding target-folders to the zip:
> projectA:
> generated correctly
> projectB:
> shows two(!) parent links:
> -> to parentPom1 (which is wrong and IMHO inherited out of the attached site-descriptor)
> -> to parentPom2 (which is correct)
> projectC (root):
> shows two(!) parent links:
> -> to parentPom1 (which is wrong and IMHO inherited out of the attached site-descriptor)
> -> to projectB (which is correct)
> shows two modules:
> -> dummyModule (the one of projectA which is wrong and IMHO inherited out of the attached site-descriptor)
> -> projectModule (correct)
> ==> I expected the parent-Menu to only contain the direct parent
> ==> I expected the modules menu to only contain modules of the pom and not the modules of a parent...
> Content of the attached site descriptor:
> <?xml version="1.0" encoding="UTF-8"?><project xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.1 http://maven.apache.org/xsd/decoration-1.0.1.xsd" xmlns="http://maven.apache.org/DECORATION/1.0.1"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <body>
> <menu name="Parent Project" inherit="top" ref="parent">
> <item name="parentPom1" href="..\index.html" />
> </menu>
> <menu name="Modules" inherit="bottom" ref="modules">
> <item name="dummyModule" href="projectA1/index.html" />
> </menu>
> <menu inherit="bottom" ref="reports" />
> </body>
> </project>
> I think the problem are the contained item-tags which are included in the sites of consumer projects.
--
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] Issue Comment Edited: (MSITE-502) Multiple Parent-Links and
additional module-link inherited wrong from parent
Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSITE-502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=235108#action_235108 ]
Dennis Lundberg edited comment on MSITE-502 at 9/13/10 3:10 PM:
----------------------------------------------------------------
Michael,
I've played around with your sample project and I think I have found the cause of your problems.
You are not using a standard Maven parent/child layout, where the child is in a subdirectory of the parent. When using a structure like yours, often referred to as a flat layout, you need to specify the relative path to the parent. That is, unless the relative path is ../pom.xml then you should specify it.
For example the POM for projectA have this parent declaration:
{code:xml}
<parent>
<groupId>corporateGroup</groupId>
<artifactId>parentPom1</artifactId>
<version>0.1-SNAPSHOT</version>
<relativePath>../parentPom1/pom.xml</relativePath>
</parent>
{code}
and for projectB it should look like this:
{code:xml}
<parent>
<groupId>corporateGroup</groupId>
<artifactId>projectA</artifactId>
<version>0.1-SNAPSHOT</version>
<relativePath>../projectA/pom.xml</relativePath>
</parent>
{code}
and finally for projectC it should look like this:
{code:xml}
<parent>
<groupId>corporateGroup</groupId>
<artifactId>projectB</artifactId>
<version>0.1-SNAPSHOT</version>
<relativePath>../projectB/pom.xml</relativePath>
</parent>
{code}
I think that not having these is messing things up for the Site Plugin. Adding them seems to solve your issues for me. Could you give it a try?
was (Author: dennislundberg):
Michael,
I've played around with your sample project and I think I have found the cause of your problems.
You are not using a standard Maven parent/child layout, where the child is in a subdirectory of the parent. When using a structure like yours, often referred to as a flat layout, you need to specify the relative path to the parent. That is, unless the relative path is ../pom.xml then you should specify it.
For example the POM for projectA have this parent declaration:
{code:xml}
<parent>
<groupId>corporateGroup</groupId>
<artifactId>parentPom1</artifactId>
<version>0.1-SNAPSHOT</version>
<relativePath>../parentPom1/pom.xml</relativePath>
</parent>
{code}
and for projectB it should look like this:
{code:xml}
<parent>
<groupId>corporateGroup</groupId>
<artifactId>projectA</artifactId>
<version>0.1-SNAPSHOT</version>
<relativePath>../projectA/pom.xml</relativePath>
</parent>
{code}
and finally for projectC it should look like this:
<parent>
<groupId>corporateGroup</groupId>
<artifactId>projectB</artifactId>
<version>0.1-SNAPSHOT</version>
<relativePath>../projectB/pom.xml</relativePath>
</parent>
{code}
I think that not having these is messing things up for the Site Plugin. Adding them seems to solve your issues for me. Could you give it a try?
> Multiple Parent-Links and additional module-link inherited wrong from parent
> ----------------------------------------------------------------------------
>
> Key: MSITE-502
> URL: http://jira.codehaus.org/browse/MSITE-502
> Project: Maven 2.x Site Plugin
> Issue Type: Bug
> Components: inheritance
> Affects Versions: 2.1.1
> Reporter: Michael Wenig
> Attachments: siteInheritance.zip
>
>
> Attached is a couple of projects showing a problem with the site inheritance.
> The projects have the following structure:
> parentPom1
> -> projectA (parentPom2, with a submodule 'dummyModule' and attached site.xml)
> -> projectB (parentPom3)
> -> projectC (projectRoot with a submodule 'projectModule')
> I ran the following commands:
> parentPom1: install
> projectA: site site:attach-descriptor install
> projectB site install
> projectC site install
> I added the corresponding target-folders to the zip:
> projectA:
> generated correctly
> projectB:
> shows two(!) parent links:
> -> to parentPom1 (which is wrong and IMHO inherited out of the attached site-descriptor)
> -> to parentPom2 (which is correct)
> projectC (root):
> shows two(!) parent links:
> -> to parentPom1 (which is wrong and IMHO inherited out of the attached site-descriptor)
> -> to projectB (which is correct)
> shows two modules:
> -> dummyModule (the one of projectA which is wrong and IMHO inherited out of the attached site-descriptor)
> -> projectModule (correct)
> ==> I expected the parent-Menu to only contain the direct parent
> ==> I expected the modules menu to only contain modules of the pom and not the modules of a parent...
> Content of the attached site descriptor:
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?><project xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.1 http://maven.apache.org/xsd/decoration-1.0.1.xsd" xmlns="http://maven.apache.org/DECORATION/1.0.1"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <body>
> <menu name="Parent Project" inherit="top" ref="parent">
> <item name="parentPom1" href="..\index.html" />
> </menu>
> <menu name="Modules" inherit="bottom" ref="modules">
> <item name="dummyModule" href="projectA1/index.html" />
> </menu>
> <menu inherit="bottom" ref="reports" />
> </body>
> </project>
> {code}
> I think the problem are the contained item-tags which are included in the sites of consumer projects.
--
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-502) Multiple Parent-Links and additional
module-link inherited wrong from parent
Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSITE-502?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dennis Lundberg closed MSITE-502.
---------------------------------
Resolution: Not A Bug
The plugin is doing exactly what you are telling it to. However I think that you have misunderstood the usage of "ref"-menus. A ref-menu should not have any items in it, because the menu will have menu items dynamically inserted into it. When you add
{code:xml}
<item name="parentPom1" href="..\index.html" />
{code}
to the ref="parent" menu, you are saying that all parent menus should have the parentPom1 item in them.
And when you add
{code:xml}
<item name="dummyModule" href="projectA1/index.html" />
{code}
to the ref="modules" menu, you are saying that all module menus should have the dummyModule item in them.
Your complete site.xml should look like this:
{code:xml}
<?xml version="1.0" encoding="UTF-8"?><project xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.1 http://maven.apache.org/xsd/decoration-1.0.1.xsd" xmlns="http://maven.apache.org/DECORATION/1.0.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<body>
<menu name="Parent Project" inherit="top" ref="parent"/>
<menu name="Modules" inherit="bottom" ref="modules"/>
<menu inherit="bottom" ref="reports" />
</body>
</project>
{code}
> Multiple Parent-Links and additional module-link inherited wrong from parent
> ----------------------------------------------------------------------------
>
> Key: MSITE-502
> URL: http://jira.codehaus.org/browse/MSITE-502
> Project: Maven 2.x Site Plugin
> Issue Type: Bug
> Components: inheritance
> Affects Versions: 2.1.1
> Reporter: Michael Wenig
> Attachments: siteInheritance.zip
>
>
> Attached is a couple of projects showing a problem with the site inheritance.
> The projects have the following structure:
> parentPom1
> -> projectA (parentPom2, with a submodule 'dummyModule' and attached site.xml)
> -> projectB (parentPom3)
> -> projectC (projectRoot with a submodule 'projectModule')
> I ran the following commands:
> parentPom1: install
> projectA: site site:attach-descriptor install
> projectB site install
> projectC site install
> I added the corresponding target-folders to the zip:
> projectA:
> generated correctly
> projectB:
> shows two(!) parent links:
> -> to parentPom1 (which is wrong and IMHO inherited out of the attached site-descriptor)
> -> to parentPom2 (which is correct)
> projectC (root):
> shows two(!) parent links:
> -> to parentPom1 (which is wrong and IMHO inherited out of the attached site-descriptor)
> -> to projectB (which is correct)
> shows two modules:
> -> dummyModule (the one of projectA which is wrong and IMHO inherited out of the attached site-descriptor)
> -> projectModule (correct)
> ==> I expected the parent-Menu to only contain the direct parent
> ==> I expected the modules menu to only contain modules of the pom and not the modules of a parent...
> Content of the attached site descriptor:
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?><project xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.1 http://maven.apache.org/xsd/decoration-1.0.1.xsd" xmlns="http://maven.apache.org/DECORATION/1.0.1"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <body>
> <menu name="Parent Project" inherit="top" ref="parent">
> <item name="parentPom1" href="..\index.html" />
> </menu>
> <menu name="Modules" inherit="bottom" ref="modules">
> <item name="dummyModule" href="projectA1/index.html" />
> </menu>
> <menu inherit="bottom" ref="reports" />
> </body>
> </project>
> {code}
> I think the problem are the contained item-tags which are included in the sites of consumer projects.
--
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-502) Multiple Parent-Links and additional
module-link inherited wrong from parent
Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSITE-502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=235108#action_235108 ]
Dennis Lundberg commented on MSITE-502:
---------------------------------------
Michael,
I've played around with your sample project and I think I have found the cause of your problems.
You are not using a standard Maven parent/child layout, where the child is in a subdirectory of the parent. When using a structure like yours, often referred to as a flat layout, you need to specify the relative path to the parent. That is, unless the relative path is ../pom.xml then you should specify it.
For example the POM for projectA have this parent declaration:
{code:xml}
<parent>
<groupId>corporateGroup</groupId>
<artifactId>parentPom1</artifactId>
<version>0.1-SNAPSHOT</version>
<relativePath>../parentPom1/pom.xml</relativePath>
</parent>
{code}
and for projectB it should look like this:
{code:xml}
<parent>
<groupId>corporateGroup</groupId>
<artifactId>projectA</artifactId>
<version>0.1-SNAPSHOT</version>
<relativePath>../projectA/pom.xml</relativePath>
</parent>
{code}
and finally for projectC it should look like this:
<parent>
<groupId>corporateGroup</groupId>
<artifactId>projectB</artifactId>
<version>0.1-SNAPSHOT</version>
<relativePath>../projectB/pom.xml</relativePath>
</parent>
{code}
I think that not having these is messing things up for the Site Plugin. Adding them seems to solve your issues for me. Could you give it a try?
> Multiple Parent-Links and additional module-link inherited wrong from parent
> ----------------------------------------------------------------------------
>
> Key: MSITE-502
> URL: http://jira.codehaus.org/browse/MSITE-502
> Project: Maven 2.x Site Plugin
> Issue Type: Bug
> Components: inheritance
> Affects Versions: 2.1.1
> Reporter: Michael Wenig
> Attachments: siteInheritance.zip
>
>
> Attached is a couple of projects showing a problem with the site inheritance.
> The projects have the following structure:
> parentPom1
> -> projectA (parentPom2, with a submodule 'dummyModule' and attached site.xml)
> -> projectB (parentPom3)
> -> projectC (projectRoot with a submodule 'projectModule')
> I ran the following commands:
> parentPom1: install
> projectA: site site:attach-descriptor install
> projectB site install
> projectC site install
> I added the corresponding target-folders to the zip:
> projectA:
> generated correctly
> projectB:
> shows two(!) parent links:
> -> to parentPom1 (which is wrong and IMHO inherited out of the attached site-descriptor)
> -> to parentPom2 (which is correct)
> projectC (root):
> shows two(!) parent links:
> -> to parentPom1 (which is wrong and IMHO inherited out of the attached site-descriptor)
> -> to projectB (which is correct)
> shows two modules:
> -> dummyModule (the one of projectA which is wrong and IMHO inherited out of the attached site-descriptor)
> -> projectModule (correct)
> ==> I expected the parent-Menu to only contain the direct parent
> ==> I expected the modules menu to only contain modules of the pom and not the modules of a parent...
> Content of the attached site descriptor:
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?><project xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.1 http://maven.apache.org/xsd/decoration-1.0.1.xsd" xmlns="http://maven.apache.org/DECORATION/1.0.1"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <body>
> <menu name="Parent Project" inherit="top" ref="parent">
> <item name="parentPom1" href="..\index.html" />
> </menu>
> <menu name="Modules" inherit="bottom" ref="modules">
> <item name="dummyModule" href="projectA1/index.html" />
> </menu>
> <menu inherit="bottom" ref="reports" />
> </body>
> </project>
> {code}
> I think the problem are the contained item-tags which are included in the sites of consumer projects.
--
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] Issue Comment Edited: (MSITE-502) Multiple Parent-Links and
additional module-link inherited wrong from parent
Posted by "Michael Wenig (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSITE-502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=235057#action_235057 ]
Michael Wenig edited comment on MSITE-502 at 9/13/10 7:06 AM:
--------------------------------------------------------------
As a workaround I copied the generated site.xml, removed the two items and attach the copy using the buildhelper-plugin. This is not very nice but works for the moment (and also workaorunds MSITE-163 / MSITE-417)
was (Author: micha123):
As a workaround I copied the generated site.xml, removed the two items and attach the copy using the buildhelper-plugin. This is not very nice but works for the moment (and also workaorunds MSITE-163)
> Multiple Parent-Links and additional module-link inherited wrong from parent
> ----------------------------------------------------------------------------
>
> Key: MSITE-502
> URL: http://jira.codehaus.org/browse/MSITE-502
> Project: Maven 2.x Site Plugin
> Issue Type: Bug
> Components: inheritance
> Affects Versions: 2.1.1
> Reporter: Michael Wenig
> Attachments: siteInheritance.zip
>
>
> Attached is a couple of projects showing a problem with the site inheritance.
> The projects have the following structure:
> parentPom1
> -> projectA (parentPom2, with a submodule 'dummyModule' and attached site.xml)
> -> projectB (parentPom3)
> -> projectC (projectRoot with a submodule 'projectModule')
> I ran the following commands:
> parentPom1: install
> projectA: site site:attach-descriptor install
> projectB site install
> projectC site install
> I added the corresponding target-folders to the zip:
> projectA:
> generated correctly
> projectB:
> shows two(!) parent links:
> -> to parentPom1 (which is wrong and IMHO inherited out of the attached site-descriptor)
> -> to parentPom2 (which is correct)
> projectC (root):
> shows two(!) parent links:
> -> to parentPom1 (which is wrong and IMHO inherited out of the attached site-descriptor)
> -> to projectB (which is correct)
> shows two modules:
> -> dummyModule (the one of projectA which is wrong and IMHO inherited out of the attached site-descriptor)
> -> projectModule (correct)
> ==> I expected the parent-Menu to only contain the direct parent
> ==> I expected the modules menu to only contain modules of the pom and not the modules of a parent...
> Content of the attached site descriptor:
> <?xml version="1.0" encoding="UTF-8"?><project xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.1 http://maven.apache.org/xsd/decoration-1.0.1.xsd" xmlns="http://maven.apache.org/DECORATION/1.0.1"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <body>
> <menu name="Parent Project" inherit="top" ref="parent">
> <item name="parentPom1" href="..\index.html" />
> </menu>
> <menu name="Modules" inherit="bottom" ref="modules">
> <item name="dummyModule" href="projectA1/index.html" />
> </menu>
> <menu inherit="bottom" ref="reports" />
> </body>
> </project>
> I think the problem are the contained item-tags which are included in the sites of consumer projects.
--
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-502) Multiple Parent-Links and additional
module-link inherited wrong from parent
Posted by "Michael Wenig (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSITE-502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=235162#action_235162 ]
Michael Wenig commented on MSITE-502:
-------------------------------------
Hi Dennis,
thanks for your efforts!
Unfortunately this does not solve the problem as I am not able to specify relative paths at this point (in reality). The poms are completely separate (maintained, versioned, built) and therefore we do not have any relative paths. parentPom1, projectA and projectB are all corporate poms (sorry - I should have used better names for this example). During build they are read from the repository.
Relative paths could only be used inside of projectC (but according to maven they should not be needed).
> Multiple Parent-Links and additional module-link inherited wrong from parent
> ----------------------------------------------------------------------------
>
> Key: MSITE-502
> URL: http://jira.codehaus.org/browse/MSITE-502
> Project: Maven 2.x Site Plugin
> Issue Type: Bug
> Components: inheritance
> Affects Versions: 2.1.1
> Reporter: Michael Wenig
> Attachments: siteInheritance.zip
>
>
> Attached is a couple of projects showing a problem with the site inheritance.
> The projects have the following structure:
> parentPom1
> -> projectA (parentPom2, with a submodule 'dummyModule' and attached site.xml)
> -> projectB (parentPom3)
> -> projectC (projectRoot with a submodule 'projectModule')
> I ran the following commands:
> parentPom1: install
> projectA: site site:attach-descriptor install
> projectB site install
> projectC site install
> I added the corresponding target-folders to the zip:
> projectA:
> generated correctly
> projectB:
> shows two(!) parent links:
> -> to parentPom1 (which is wrong and IMHO inherited out of the attached site-descriptor)
> -> to parentPom2 (which is correct)
> projectC (root):
> shows two(!) parent links:
> -> to parentPom1 (which is wrong and IMHO inherited out of the attached site-descriptor)
> -> to projectB (which is correct)
> shows two modules:
> -> dummyModule (the one of projectA which is wrong and IMHO inherited out of the attached site-descriptor)
> -> projectModule (correct)
> ==> I expected the parent-Menu to only contain the direct parent
> ==> I expected the modules menu to only contain modules of the pom and not the modules of a parent...
> Content of the attached site descriptor:
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?><project xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.1 http://maven.apache.org/xsd/decoration-1.0.1.xsd" xmlns="http://maven.apache.org/DECORATION/1.0.1"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <body>
> <menu name="Parent Project" inherit="top" ref="parent">
> <item name="parentPom1" href="..\index.html" />
> </menu>
> <menu name="Modules" inherit="bottom" ref="modules">
> <item name="dummyModule" href="projectA1/index.html" />
> </menu>
> <menu inherit="bottom" ref="reports" />
> </body>
> </project>
> {code}
> I think the problem are the contained item-tags which are included in the sites of consumer projects.
--
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-502) Multiple Parent-Links and additional
module-link inherited wrong from parent
Posted by "Michael Wenig (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSITE-502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=235052#action_235052 ]
Michael Wenig commented on MSITE-502:
-------------------------------------
I manually removed the two items from the site.xml in our nexus instance and the sites were generated correctly.
I think the fix should be to remove the items from the site (but keep the menu-tag) before attaching the descriptor - or to remove the items on read onthefly
> Multiple Parent-Links and additional module-link inherited wrong from parent
> ----------------------------------------------------------------------------
>
> Key: MSITE-502
> URL: http://jira.codehaus.org/browse/MSITE-502
> Project: Maven 2.x Site Plugin
> Issue Type: Bug
> Components: inheritance
> Affects Versions: 2.1.1
> Reporter: Michael Wenig
> Attachments: siteInheritance.zip
>
>
> Attached is a couple of projects showing a problem with the site inheritance.
> The projects have the following structure:
> parentPom1
> -> projectA (parentPom2, with a submodule 'dummyModule' and attached site.xml)
> -> projectB (parentPom3)
> -> projectC (projectRoot with a submodule 'projectModule')
> I ran the following commands:
> parentPom1: install
> projectA: site site:attach-descriptor install
> projectB site install
> projectC site install
> I added the corresponding target-folders to the zip:
> projectA:
> generated correctly
> projectB:
> shows two(!) parent links:
> -> to parentPom1 (which is wrong and IMHO inherited out of the attached site-descriptor)
> -> to parentPom2 (which is correct)
> projectC (root):
> shows two(!) parent links:
> -> to parentPom1 (which is wrong and IMHO inherited out of the attached site-descriptor)
> -> to projectB (which is correct)
> shows two modules:
> -> dummyModule (the one of projectA which is wrong and IMHO inherited out of the attached site-descriptor)
> -> projectModule (correct)
> ==> I expected the parent-Menu to only contain the direct parent
> ==> I expected the modules menu to only contain modules of the pom and not the modules of a parent...
> Content of the attached site descriptor:
> <?xml version="1.0" encoding="UTF-8"?><project xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.1 http://maven.apache.org/xsd/decoration-1.0.1.xsd" xmlns="http://maven.apache.org/DECORATION/1.0.1"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <body>
> <menu name="Parent Project" inherit="top" ref="parent">
> <item name="parentPom1" href="..\index.html" />
> </menu>
> <menu name="Modules" inherit="bottom" ref="modules">
> <item name="dummyModule" href="projectA1/index.html" />
> </menu>
> <menu inherit="bottom" ref="reports" />
> </body>
> </project>
> I think the problem are the contained item-tags which are included in the sites of consumer projects.
--
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-502) Multiple Parent-Links and additional
module-link inherited wrong from parent
Posted by "Lukas Theussl (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSITE-502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=252066#action_252066 ]
Lukas Theussl commented on MSITE-502:
-------------------------------------
Brett: maybe I misunderstood how this is supposed to work. The [decorationModel docs|http://maven.apache.org/doxia/doxia-sitetools/doxia-decoration-model/decoration.html#class_menu] say about the inheritAsRef parameter:
{noformat}
If this is a reference, setting true means that it will be populated in the project,
whereas if it is false, it is populated in the parent and then inherited.
Default value is: false.
{noformat}
The default value is highly un-intuitive IMO, and it also does not seem to work in practice: eg the maven [parent pom|https://svn.apache.org/repos/asf/maven/pom/trunk/maven/src/site/site.xml] defines a <menu ref="reports" inherit="bottom" /> element (ie inheritAsRef=false), but the intent surely is that this menu contains the reports of the inheriting projects, and not those of the maven parent pom?
Is this a documentation bug?
> Multiple Parent-Links and additional module-link inherited wrong from parent
> ----------------------------------------------------------------------------
>
> Key: MSITE-502
> URL: http://jira.codehaus.org/browse/MSITE-502
> Project: Maven 2.x and 3.x Site Plugin
> Issue Type: Bug
> Components: inheritance, multi module, site descriptor
> Affects Versions: 2.1.1
> Reporter: Michael Wenig
> Fix For: 2.3
>
> Attachments: siteInheritance.zip
>
>
> Attached is a couple of projects showing a problem with the site inheritance.
> The projects have the following structure:
> parentPom1
> -> projectA (parentPom2, with a submodule 'dummyModule' and attached site.xml)
> -> projectB (parentPom3)
> -> projectC (projectRoot with a submodule 'projectModule')
> I ran the following commands:
> parentPom1: install
> projectA: site site:attach-descriptor install
> projectB site install
> projectC site install
> I added the corresponding target-folders to the zip:
> projectA:
> generated correctly
> projectB:
> shows two(!) parent links:
> -> to parentPom1 (which is wrong and IMHO inherited out of the attached site-descriptor)
> -> to parentPom2 (which is correct)
> projectC (root):
> shows two(!) parent links:
> -> to parentPom1 (which is wrong and IMHO inherited out of the attached site-descriptor)
> -> to projectB (which is correct)
> shows two modules:
> -> dummyModule (the one of projectA which is wrong and IMHO inherited out of the attached site-descriptor)
> -> projectModule (correct)
> ==> I expected the parent-Menu to only contain the direct parent
> ==> I expected the modules menu to only contain modules of the pom and not the modules of a parent...
> Content of the attached site descriptor:
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?><project xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.1 http://maven.apache.org/xsd/decoration-1.0.1.xsd" xmlns="http://maven.apache.org/DECORATION/1.0.1"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <body>
> <menu name="Parent Project" inherit="top" ref="parent">
> <item name="parentPom1" href="..\index.html" />
> </menu>
> <menu name="Modules" inherit="bottom" ref="modules">
> <item name="dummyModule" href="projectA1/index.html" />
> </menu>
> <menu inherit="bottom" ref="reports" />
> </body>
> </project>
> {code}
> I think the problem are the contained item-tags which are included in the sites of consumer projects.
--
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-502) Multiple Parent-Links and additional
module-link inherited wrong from parent
Posted by "Lukas Theussl (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSITE-502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=250527#action_250527 ]
Lukas Theussl commented on MSITE-502:
-------------------------------------
The reason is that the site descriptor gets interpolated by site:attach, see MSITE-61. If you specify relativePath, the original site.xml is loaded un-interpolated, so no problem.
However, I don't understand the logic behind MSITE-61, why would you need the parent's parent/modules in the child? IMO the site descriptor should get attached as is without interpolation.
> Multiple Parent-Links and additional module-link inherited wrong from parent
> ----------------------------------------------------------------------------
>
> Key: MSITE-502
> URL: http://jira.codehaus.org/browse/MSITE-502
> Project: Maven 2.x and 3.x Site Plugin
> Issue Type: Bug
> Components: inheritance, multi module, site descriptor
> Affects Versions: 2.1.1
> Reporter: Michael Wenig
> Attachments: siteInheritance.zip
>
>
> Attached is a couple of projects showing a problem with the site inheritance.
> The projects have the following structure:
> parentPom1
> -> projectA (parentPom2, with a submodule 'dummyModule' and attached site.xml)
> -> projectB (parentPom3)
> -> projectC (projectRoot with a submodule 'projectModule')
> I ran the following commands:
> parentPom1: install
> projectA: site site:attach-descriptor install
> projectB site install
> projectC site install
> I added the corresponding target-folders to the zip:
> projectA:
> generated correctly
> projectB:
> shows two(!) parent links:
> -> to parentPom1 (which is wrong and IMHO inherited out of the attached site-descriptor)
> -> to parentPom2 (which is correct)
> projectC (root):
> shows two(!) parent links:
> -> to parentPom1 (which is wrong and IMHO inherited out of the attached site-descriptor)
> -> to projectB (which is correct)
> shows two modules:
> -> dummyModule (the one of projectA which is wrong and IMHO inherited out of the attached site-descriptor)
> -> projectModule (correct)
> ==> I expected the parent-Menu to only contain the direct parent
> ==> I expected the modules menu to only contain modules of the pom and not the modules of a parent...
> Content of the attached site descriptor:
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?><project xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.1 http://maven.apache.org/xsd/decoration-1.0.1.xsd" xmlns="http://maven.apache.org/DECORATION/1.0.1"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <body>
> <menu name="Parent Project" inherit="top" ref="parent">
> <item name="parentPom1" href="..\index.html" />
> </menu>
> <menu name="Modules" inherit="bottom" ref="modules">
> <item name="dummyModule" href="projectA1/index.html" />
> </menu>
> <menu inherit="bottom" ref="reports" />
> </body>
> </project>
> {code}
> I think the problem are the contained item-tags which are included in the sites of consumer projects.
--
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] Reopened: (MSITE-502) Multiple Parent-Links and additional
module-link inherited wrong from parent
Posted by "Michael Wenig (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSITE-502?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Wenig reopened MSITE-502:
---------------------------------
Hi Dennis,
I know that there should be no content in menu-refs. This *IS* the bug.
The original site.xml (in projectA:src/site):
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/DECORATION/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.0 http://maven.apache.org/xsd/decoration-1.0.0.xsd">
<body>
<menu ref="parent" inherit="top" />
<menu ref="modules" inherit="bottom" />
<menu ref="reports" inherit="bottom" />
</body>
</project>
gets attached as:
<?xml version="1.0" encoding="UTF-8"?><project xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.1 http://maven.apache.org/xsd/decoration-1.0.1.xsd" xmlns="http://maven.apache.org/DECORATION/1.0.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<body>
<menu name="Parent Project" inherit="top" ref="parent">
<item name="parentPom1" href="..\index.html" />
</menu>
<menu name="Modules" inherit="bottom" ref="modules">
<item name="dummyModule" href="projectA1/index.html" />
</menu>
<menu inherit="bottom" ref="reports" />
</body>
</project>
Which leads to the problem!
> Multiple Parent-Links and additional module-link inherited wrong from parent
> ----------------------------------------------------------------------------
>
> Key: MSITE-502
> URL: http://jira.codehaus.org/browse/MSITE-502
> Project: Maven 2.x Site Plugin
> Issue Type: Bug
> Components: inheritance
> Affects Versions: 2.1.1
> Reporter: Michael Wenig
> Attachments: siteInheritance.zip
>
>
> Attached is a couple of projects showing a problem with the site inheritance.
> The projects have the following structure:
> parentPom1
> -> projectA (parentPom2, with a submodule 'dummyModule' and attached site.xml)
> -> projectB (parentPom3)
> -> projectC (projectRoot with a submodule 'projectModule')
> I ran the following commands:
> parentPom1: install
> projectA: site site:attach-descriptor install
> projectB site install
> projectC site install
> I added the corresponding target-folders to the zip:
> projectA:
> generated correctly
> projectB:
> shows two(!) parent links:
> -> to parentPom1 (which is wrong and IMHO inherited out of the attached site-descriptor)
> -> to parentPom2 (which is correct)
> projectC (root):
> shows two(!) parent links:
> -> to parentPom1 (which is wrong and IMHO inherited out of the attached site-descriptor)
> -> to projectB (which is correct)
> shows two modules:
> -> dummyModule (the one of projectA which is wrong and IMHO inherited out of the attached site-descriptor)
> -> projectModule (correct)
> ==> I expected the parent-Menu to only contain the direct parent
> ==> I expected the modules menu to only contain modules of the pom and not the modules of a parent...
> Content of the attached site descriptor:
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?><project xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.1 http://maven.apache.org/xsd/decoration-1.0.1.xsd" xmlns="http://maven.apache.org/DECORATION/1.0.1"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <body>
> <menu name="Parent Project" inherit="top" ref="parent">
> <item name="parentPom1" href="..\index.html" />
> </menu>
> <menu name="Modules" inherit="bottom" ref="modules">
> <item name="dummyModule" href="projectA1/index.html" />
> </menu>
> <menu inherit="bottom" ref="reports" />
> </body>
> </project>
> {code}
> I think the problem are the contained item-tags which are included in the sites of consumer projects.
--
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-502) Multiple Parent-Links and additional
module-link inherited wrong from parent
Posted by "Lukas Theussl (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSITE-502?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lukas Theussl updated MSITE-502:
--------------------------------
Component/s: site descriptor
multi module
> Multiple Parent-Links and additional module-link inherited wrong from parent
> ----------------------------------------------------------------------------
>
> Key: MSITE-502
> URL: http://jira.codehaus.org/browse/MSITE-502
> Project: Maven 2.x and 3.x Site Plugin
> Issue Type: Bug
> Components: inheritance, multi module, site descriptor
> Affects Versions: 2.1.1
> Reporter: Michael Wenig
> Attachments: siteInheritance.zip
>
>
> Attached is a couple of projects showing a problem with the site inheritance.
> The projects have the following structure:
> parentPom1
> -> projectA (parentPom2, with a submodule 'dummyModule' and attached site.xml)
> -> projectB (parentPom3)
> -> projectC (projectRoot with a submodule 'projectModule')
> I ran the following commands:
> parentPom1: install
> projectA: site site:attach-descriptor install
> projectB site install
> projectC site install
> I added the corresponding target-folders to the zip:
> projectA:
> generated correctly
> projectB:
> shows two(!) parent links:
> -> to parentPom1 (which is wrong and IMHO inherited out of the attached site-descriptor)
> -> to parentPom2 (which is correct)
> projectC (root):
> shows two(!) parent links:
> -> to parentPom1 (which is wrong and IMHO inherited out of the attached site-descriptor)
> -> to projectB (which is correct)
> shows two modules:
> -> dummyModule (the one of projectA which is wrong and IMHO inherited out of the attached site-descriptor)
> -> projectModule (correct)
> ==> I expected the parent-Menu to only contain the direct parent
> ==> I expected the modules menu to only contain modules of the pom and not the modules of a parent...
> Content of the attached site descriptor:
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?><project xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.1 http://maven.apache.org/xsd/decoration-1.0.1.xsd" xmlns="http://maven.apache.org/DECORATION/1.0.1"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <body>
> <menu name="Parent Project" inherit="top" ref="parent">
> <item name="parentPom1" href="..\index.html" />
> </menu>
> <menu name="Modules" inherit="bottom" ref="modules">
> <item name="dummyModule" href="projectA1/index.html" />
> </menu>
> <menu inherit="bottom" ref="reports" />
> </body>
> </project>
> {code}
> I think the problem are the contained item-tags which are included in the sites of consumer projects.
--
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-502) Multiple Parent-Links and additional
module-link inherited wrong from parent
Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MSITE-502?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dennis Lundberg updated MSITE-502:
----------------------------------
Description:
Attached is a couple of projects showing a problem with the site inheritance.
The projects have the following structure:
parentPom1
-> projectA (parentPom2, with a submodule 'dummyModule' and attached site.xml)
-> projectB (parentPom3)
-> projectC (projectRoot with a submodule 'projectModule')
I ran the following commands:
parentPom1: install
projectA: site site:attach-descriptor install
projectB site install
projectC site install
I added the corresponding target-folders to the zip:
projectA:
generated correctly
projectB:
shows two(!) parent links:
-> to parentPom1 (which is wrong and IMHO inherited out of the attached site-descriptor)
-> to parentPom2 (which is correct)
projectC (root):
shows two(!) parent links:
-> to parentPom1 (which is wrong and IMHO inherited out of the attached site-descriptor)
-> to projectB (which is correct)
shows two modules:
-> dummyModule (the one of projectA which is wrong and IMHO inherited out of the attached site-descriptor)
-> projectModule (correct)
==> I expected the parent-Menu to only contain the direct parent
==> I expected the modules menu to only contain modules of the pom and not the modules of a parent...
Content of the attached site descriptor:
{code:xml}
<?xml version="1.0" encoding="UTF-8"?><project xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.1 http://maven.apache.org/xsd/decoration-1.0.1.xsd" xmlns="http://maven.apache.org/DECORATION/1.0.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<body>
<menu name="Parent Project" inherit="top" ref="parent">
<item name="parentPom1" href="..\index.html" />
</menu>
<menu name="Modules" inherit="bottom" ref="modules">
<item name="dummyModule" href="projectA1/index.html" />
</menu>
<menu inherit="bottom" ref="reports" />
</body>
</project>
{code}
I think the problem are the contained item-tags which are included in the sites of consumer projects.
was:
Attached is a couple of projects showing a problem with the site inheritance.
The projects have the following structure:
parentPom1
-> projectA (parentPom2, with a submodule 'dummyModule' and attached site.xml)
-> projectB (parentPom3)
-> projectC (projectRoot with a submodule 'projectModule')
I ran the following commands:
parentPom1: install
projectA: site site:attach-descriptor install
projectB site install
projectC site install
I added the corresponding target-folders to the zip:
projectA:
generated correctly
projectB:
shows two(!) parent links:
-> to parentPom1 (which is wrong and IMHO inherited out of the attached site-descriptor)
-> to parentPom2 (which is correct)
projectC (root):
shows two(!) parent links:
-> to parentPom1 (which is wrong and IMHO inherited out of the attached site-descriptor)
-> to projectB (which is correct)
shows two modules:
-> dummyModule (the one of projectA which is wrong and IMHO inherited out of the attached site-descriptor)
-> projectModule (correct)
==> I expected the parent-Menu to only contain the direct parent
==> I expected the modules menu to only contain modules of the pom and not the modules of a parent...
Content of the attached site descriptor:
<?xml version="1.0" encoding="UTF-8"?><project xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.1 http://maven.apache.org/xsd/decoration-1.0.1.xsd" xmlns="http://maven.apache.org/DECORATION/1.0.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<body>
<menu name="Parent Project" inherit="top" ref="parent">
<item name="parentPom1" href="..\index.html" />
</menu>
<menu name="Modules" inherit="bottom" ref="modules">
<item name="dummyModule" href="projectA1/index.html" />
</menu>
<menu inherit="bottom" ref="reports" />
</body>
</project>
I think the problem are the contained item-tags which are included in the sites of consumer projects.
> Multiple Parent-Links and additional module-link inherited wrong from parent
> ----------------------------------------------------------------------------
>
> Key: MSITE-502
> URL: http://jira.codehaus.org/browse/MSITE-502
> Project: Maven 2.x Site Plugin
> Issue Type: Bug
> Components: inheritance
> Affects Versions: 2.1.1
> Reporter: Michael Wenig
> Attachments: siteInheritance.zip
>
>
> Attached is a couple of projects showing a problem with the site inheritance.
> The projects have the following structure:
> parentPom1
> -> projectA (parentPom2, with a submodule 'dummyModule' and attached site.xml)
> -> projectB (parentPom3)
> -> projectC (projectRoot with a submodule 'projectModule')
> I ran the following commands:
> parentPom1: install
> projectA: site site:attach-descriptor install
> projectB site install
> projectC site install
> I added the corresponding target-folders to the zip:
> projectA:
> generated correctly
> projectB:
> shows two(!) parent links:
> -> to parentPom1 (which is wrong and IMHO inherited out of the attached site-descriptor)
> -> to parentPom2 (which is correct)
> projectC (root):
> shows two(!) parent links:
> -> to parentPom1 (which is wrong and IMHO inherited out of the attached site-descriptor)
> -> to projectB (which is correct)
> shows two modules:
> -> dummyModule (the one of projectA which is wrong and IMHO inherited out of the attached site-descriptor)
> -> projectModule (correct)
> ==> I expected the parent-Menu to only contain the direct parent
> ==> I expected the modules menu to only contain modules of the pom and not the modules of a parent...
> Content of the attached site descriptor:
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?><project xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.1 http://maven.apache.org/xsd/decoration-1.0.1.xsd" xmlns="http://maven.apache.org/DECORATION/1.0.1"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <body>
> <menu name="Parent Project" inherit="top" ref="parent">
> <item name="parentPom1" href="..\index.html" />
> </menu>
> <menu name="Modules" inherit="bottom" ref="modules">
> <item name="dummyModule" href="projectA1/index.html" />
> </menu>
> <menu inherit="bottom" ref="reports" />
> </body>
> </project>
> {code}
> I think the problem are the contained item-tags which are included in the sites of consumer projects.
--
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