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 18:33:32 UTC

[jira] Reopened: (MSITE-502) Multiple Parent-Links and additional module-link inherited wrong from parent

     [ 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