You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Grzegorz Slowikowski (JIRA)" <ji...@codehaus.org> on 2010/06/05 14:34:12 UTC

[jira] Created: (MSITE-486) Site navigation not generated for submodules of multimodule project when site.xml defined in the parent

Site navigation not generated for submodules of multimodule project when site.xml defined in the parent
-------------------------------------------------------------------------------------------------------

                 Key: MSITE-486
                 URL: http://jira.codehaus.org/browse/MSITE-486
             Project: Maven 2.x Site Plugin
          Issue Type: Bug
    Affects Versions: 2.1.1, 2.1
         Environment: Windows XP SP2, Sun/Oracle JDK 1.6, Maven 2.2.1
            Reporter: Grzegorz Slowikowski


Bug that manifests itself like http://jira.codehaus.org/browse/MSITE-456 but in different configuration.
If you define "src/site/site.xml" file for the root module the navigation left menu in submodule is completely empty. After deleting this "site.xml" file everything works (maybe something has recently changed in this file content/structure requirements).
Everything works without problems for 2.0.1 version of Maven site plugin.

-- 
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-486) Site navigation not generated for submodules of multimodule project when site.xml defined in the parent

Posted by "Matthias Wegerhoff (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=225432#action_225432 ] 

Matthias Wegerhoff commented on MSITE-486:
------------------------------------------

Got a similar problem. When defining a site.xml in a seperate Project that is referenzed as parent in a second project everything (skin, breadcrumbs,...) gets "inherited", except the "<menu  ref="modules" />" entry which results in missing links to submodules. By adding a site.xml to every Project everything works fine, but trying to define a site-decriptor only for the parent results in the described problem.

> Site navigation not generated for submodules of multimodule project when site.xml defined in the parent
> -------------------------------------------------------------------------------------------------------
>
>                 Key: MSITE-486
>                 URL: http://jira.codehaus.org/browse/MSITE-486
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1, 2.1.1
>         Environment: Windows XP SP2, Sun/Oracle JDK 1.6, Maven 2.2.1
>            Reporter: Grzegorz Slowikowski
>         Attachments: MSITE-486.zip
>
>
> Bug that manifests itself like http://jira.codehaus.org/browse/MSITE-456 but in different configuration.
> If you define "src/site/site.xml" file for the root module the navigation left menu in submodule is completely empty. After deleting this "site.xml" file everything works (maybe something has recently changed in this file content/structure requirements).
> Everything works without problems for 2.0.1 version of Maven site plugin.

-- 
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-486) Site navigation not generated for submodules of multimodule project when site.xml defined in the parent

Posted by "Grzegorz Slowikowski (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MSITE-486?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Grzegorz Slowikowski updated MSITE-486:
---------------------------------------

    Attachment: MSITE-486.zip

Test project attached

> Site navigation not generated for submodules of multimodule project when site.xml defined in the parent
> -------------------------------------------------------------------------------------------------------
>
>                 Key: MSITE-486
>                 URL: http://jira.codehaus.org/browse/MSITE-486
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1, 2.1.1
>         Environment: Windows XP SP2, Sun/Oracle JDK 1.6, Maven 2.2.1
>            Reporter: Grzegorz Slowikowski
>         Attachments: MSITE-486.zip
>
>
> Bug that manifests itself like http://jira.codehaus.org/browse/MSITE-456 but in different configuration.
> If you define "src/site/site.xml" file for the root module the navigation left menu in submodule is completely empty. After deleting this "site.xml" file everything works (maybe something has recently changed in this file content/structure requirements).
> Everything works without problems for 2.0.1 version of Maven site plugin.

-- 
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-486) Site navigation not generated for submodules of multimodule project when site.xml defined in the parent

Posted by "Thomas Scheffler (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=235039#action_235039 ] 

Thomas Scheffler commented on MSITE-486:
----------------------------------------

The workaround described by André

{quote}
Adding an _inherit_ attribute will do it (for 2.1.1).

{{<menu ref="modules" inherit="top"/>}}
{quote}

does *not* work for me with 2.1.1.

It is definitely not an option to provide a site.xml to every child pom just to define a skin for every subproject, as it works find with 2.0.1

> Site navigation not generated for submodules of multimodule project when site.xml defined in the parent
> -------------------------------------------------------------------------------------------------------
>
>                 Key: MSITE-486
>                 URL: http://jira.codehaus.org/browse/MSITE-486
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1, 2.1.1
>         Environment: Windows XP SP2, Sun/Oracle JDK 1.6, Maven 2.2.1
>            Reporter: Grzegorz Slowikowski
>         Attachments: MSITE-486.zip
>
>
> Bug that manifests itself like http://jira.codehaus.org/browse/MSITE-456 but in different configuration.
> If you define "src/site/site.xml" file for the root module the navigation left menu in submodule is completely empty. After deleting this "site.xml" file everything works (maybe something has recently changed in this file content/structure requirements).
> Everything works without problems for 2.0.1 version of Maven site plugin.

-- 
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-486) Site navigation not generated for submodules of multimodule project when site.xml defined in the parent

Posted by "André Fügenschuh (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=226190#action_226190 ] 

André Fügenschuh commented on MSITE-486:
----------------------------------------

Adding an _inherit_ attribute will do it (for 2.1.1).

{{<menu ref="modules" inherit="top"/>}}

See my comments and my test case under MSITE-456.

The question is whether 'preset menus' (including their links) are inherited 'by default' or not (see [Site Descriptor|http://maven.apache.org/plugins/maven-site-plugin/examples/sitedescriptor.html]).

At least they have been with 2.0.1, even if perhaps just 'by accident'.


> Site navigation not generated for submodules of multimodule project when site.xml defined in the parent
> -------------------------------------------------------------------------------------------------------
>
>                 Key: MSITE-486
>                 URL: http://jira.codehaus.org/browse/MSITE-486
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1, 2.1.1
>         Environment: Windows XP SP2, Sun/Oracle JDK 1.6, Maven 2.2.1
>            Reporter: Grzegorz Slowikowski
>         Attachments: MSITE-486.zip
>
>
> Bug that manifests itself like http://jira.codehaus.org/browse/MSITE-456 but in different configuration.
> If you define "src/site/site.xml" file for the root module the navigation left menu in submodule is completely empty. After deleting this "site.xml" file everything works (maybe something has recently changed in this file content/structure requirements).
> Everything works without problems for 2.0.1 version of Maven site plugin.

-- 
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-486) Site navigation not generated for submodules of multimodule project when site.xml defined in the parent

Posted by "Lukas Theussl (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=249138#action_249138 ] 

Lukas Theussl commented on MSITE-486:
-------------------------------------

AFAICS this is not a bug, you are getting exactly what you ask for. The child inherits the site.xml from the parent, but menus are not inherited unless you specify the inherit attribute, so the navigation in the child is empty. If you want the equivalent behaviour as in site plugin 2.0.1, you have to put <menu ref="reports" inherit="top"/> into the parent site.xml (not modules, as above, the child has no modules). If you put <menu ref="parent" inherit="top"/>, the child will have a correct link to the parent.

> Site navigation not generated for submodules of multimodule project when site.xml defined in the parent
> -------------------------------------------------------------------------------------------------------
>
>                 Key: MSITE-486
>                 URL: http://jira.codehaus.org/browse/MSITE-486
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1, 2.1.1
>         Environment: Windows XP SP2, Sun/Oracle JDK 1.6, Maven 2.2.1
>            Reporter: Grzegorz Slowikowski
>         Attachments: MSITE-486.zip
>
>
> Bug that manifests itself like http://jira.codehaus.org/browse/MSITE-456 but in different configuration.
> If you define "src/site/site.xml" file for the root module the navigation left menu in submodule is completely empty. After deleting this "site.xml" file everything works (maybe something has recently changed in this file content/structure requirements).
> Everything works without problems for 2.0.1 version of Maven site plugin.

-- 
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-486) Site navigation not generated for submodules of multimodule project when site.xml defined in the parent

Posted by "Lukas Theussl (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MSITE-486?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukas Theussl closed MSITE-486.
-------------------------------

    Resolution: Not A Bug
      Assignee: Lukas Theussl

> Site navigation not generated for submodules of multimodule project when site.xml defined in the parent
> -------------------------------------------------------------------------------------------------------
>
>                 Key: MSITE-486
>                 URL: http://jira.codehaus.org/browse/MSITE-486
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>    Affects Versions: 2.1, 2.1.1
>         Environment: Windows XP SP2, Sun/Oracle JDK 1.6, Maven 2.2.1
>            Reporter: Grzegorz Slowikowski
>            Assignee: Lukas Theussl
>         Attachments: MSITE-486.zip
>
>
> Bug that manifests itself like http://jira.codehaus.org/browse/MSITE-456 but in different configuration.
> If you define "src/site/site.xml" file for the root module the navigation left menu in submodule is completely empty. After deleting this "site.xml" file everything works (maybe something has recently changed in this file content/structure requirements).
> Everything works without problems for 2.0.1 version of Maven site plugin.

-- 
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