[jira] Commented: (MSITE-270) site.xml: menus inherited that should not

2008-07-01 Thread Anne Gerodolle (JIRA)

[ 
http://jira.codehaus.org/browse/MSITE-270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=140099#action_140099
 ] 

Anne Gerodolle commented on MSITE-270:
--

Dennis,

I was observing a NullPointerException that prevented the child's site from 
being built.

After doing some research on jira,  I've modified the pom to add an URL tag 
in the parent pom (as mentionned by Benjamin in MSITE-180) . Now the example 
works just as you are describing.  

I'm running maven on Linux ubuntu, using Maven 2.0.9 and Sun's JDK 1.5.0_15-b05 
 I've tried also with jdk 1.4.2, with the same result.

I'm going to check my previous example where inherited menus are missing and 
try to understand the difference.

 site.xml: menus inherited that should not
 -

 Key: MSITE-270
 URL: http://jira.codehaus.org/browse/MSITE-270
 Project: Maven 2.x Site Plugin
  Issue Type: Bug
  Components: inheritance, site descriptor
Affects Versions: 2.0-beta-6
Reporter: Jörg Hohwiller
 Attachments: site-inherit-bug.zip


 I have a project with multiple levels of modules.
 In the toplevel project I declare a site-descriptor with some general menu's 
 that have no inherit attribute (I also tried inherit='none') together with 
 menu ref=parent inherit=top/
 menu ref=modules inherit=bottom/
 menu ref=reports inherit=bottom/
 Now a module of the toplevel project that itself has modules declares a 
 site-descriptor with an additional regular menu that is inherited.
 However the site of that module contains the menus from the toplevel project 
 that are NOT declared to be inherited.

-- 
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-270) site.xml: menus inherited that should not

2008-07-01 Thread Anne Gerodolle (JIRA)

[ 
http://jira.codehaus.org/browse/MSITE-270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=140102#action_140102
 ] 

Anne Gerodolle commented on MSITE-270:
--

menu inheritance seems to work now on my example. (I had misspelled inherit 
in my example) . The problem of NullPointerException is minor, as you may 
easily avoid it by specifying the URL tag.
good job

 site.xml: menus inherited that should not
 -

 Key: MSITE-270
 URL: http://jira.codehaus.org/browse/MSITE-270
 Project: Maven 2.x Site Plugin
  Issue Type: Bug
  Components: inheritance, site descriptor
Affects Versions: 2.0-beta-6
Reporter: Jörg Hohwiller
 Attachments: site-inherit-bug.zip


 I have a project with multiple levels of modules.
 In the toplevel project I declare a site-descriptor with some general menu's 
 that have no inherit attribute (I also tried inherit='none') together with 
 menu ref=parent inherit=top/
 menu ref=modules inherit=bottom/
 menu ref=reports inherit=bottom/
 Now a module of the toplevel project that itself has modules declares a 
 site-descriptor with an additional regular menu that is inherited.
 However the site of that module contains the menus from the toplevel project 
 that are NOT declared to be inherited.

-- 
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-270) site.xml: menus inherited that should not

2008-07-01 Thread Dennis Lundberg (JIRA)

[ 
http://jira.codehaus.org/browse/MSITE-270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=140115#action_140115
 ] 

Dennis Lundberg commented on MSITE-270:
---

Hi Anne,

I tried this now on Ubuntu 7.10 using Maven 2.0.8 and 2.0.9 using the bundled 
Blackdown 1.4.2-02 Java. All this running inside VirtualBox on Windows XP.

When I opened up for the SNAPSHOT repository I had to add a version, because of 
some issue with the 2.1-SNAPSHOT of maven-project-info-reports-plugin, like 
this:

{noformat}
  plugin

groupIdorg.apache.maven.plugins/groupId

artifactIdmaven-project-info-reports-plugin/artifactId

version2.0.1/version

  /plugin

{noformat}

Apart from that I don't see any NPE under Ubuntu.

The menu inheritance is solved by upgrading to 2.0-beta-7-SNAPSHOT of the site 
plugin. That is the same behavior I see under Windows XP.

 site.xml: menus inherited that should not
 -

 Key: MSITE-270
 URL: http://jira.codehaus.org/browse/MSITE-270
 Project: Maven 2.x Site Plugin
  Issue Type: Bug
  Components: inheritance, site descriptor
Affects Versions: 2.0-beta-6
Reporter: Jörg Hohwiller
 Attachments: site-inherit-bug.zip


 I have a project with multiple levels of modules.
 In the toplevel project I declare a site-descriptor with some general menu's 
 that have no inherit attribute (I also tried inherit='none') together with 
 menu ref=parent inherit=top/
 menu ref=modules inherit=bottom/
 menu ref=reports inherit=bottom/
 Now a module of the toplevel project that itself has modules declares a 
 site-descriptor with an additional regular menu that is inherited.
 However the site of that module contains the menus from the toplevel project 
 that are NOT declared to be inherited.

-- 
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-270) site.xml: menus inherited that should not

2008-06-30 Thread Anne Gerodolle (JIRA)

[ 
http://jira.codehaus.org/browse/MSITE-270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=139982#action_139982
 ] 

Anne Gerodolle commented on MSITE-270:
--

I have just tried the site-inherit-bug example with 2.0-beta-7-SNAPSHOT AND 
with the release candidate , and I obtained a nullpointer exception in doxia 
PathUtils.getRelativePath .
we tried on 2 different machines : Linux and Windows and obtained the same 
problem.
2.0-beta-6 does not crash .

I have also tried a simpler example that does not crash, and I observed that 
menus that should get inherited are not (whereas with 2.0-beta-6 menus were 
inherited that shouldnot !) .




 site.xml: menus inherited that should not
 -

 Key: MSITE-270
 URL: http://jira.codehaus.org/browse/MSITE-270
 Project: Maven 2.x Site Plugin
  Issue Type: Bug
  Components: inheritance, site descriptor
Affects Versions: 2.0-beta-6
Reporter: Jörg Hohwiller
 Attachments: site-inherit-bug.zip


 I have a project with multiple levels of modules.
 In the toplevel project I declare a site-descriptor with some general menu's 
 that have no inherit attribute (I also tried inherit='none') together with 
 menu ref=parent inherit=top/
 menu ref=modules inherit=bottom/
 menu ref=reports inherit=bottom/
 Now a module of the toplevel project that itself has modules declares a 
 site-descriptor with an additional regular menu that is inherited.
 However the site of that module contains the menus from the toplevel project 
 that are NOT declared to be inherited.

-- 
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-270) site.xml: menus inherited that should not

2008-06-30 Thread Dennis Lundberg (JIRA)

[ 
http://jira.codehaus.org/browse/MSITE-270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=140003#action_140003
 ] 

Dennis Lundberg commented on MSITE-270:
---

I'm on Windows XP using Maven 2.0.8 and Sun's JDK 1.4.2_17. When I go in and run

{noformat}
mvn site:stage -DstagingDirectory=/some/dir
{noformat}

The site for module1 has the Documentation menu, which it shouldn't. The 
menu structure looks like this:

{noformat}
General Information

* Introduction
* Overview
* Release Notes

Parent Project

* Site-Inherti-Bug

General Information

* Introduction
* Overview
* Getting Involved
* Road Map
* Release Notes
* History
* Stories

Documentation

* Javadoc
* FAQ
* Users Guide

Developer Guides

* Setup
* Conventions

Project Documentation

* Project Information
  o About
  o Continuous Integration
  o Dependencies
  o Dependency Convergence
  o Issue Tracking
  o Mailing Lists
  o Project License
  o Project Summary
  o Project Team
  o Source Repository
{noformat}

Then I go into the parent POM and change 2.0-beta-6-SNAPSHOT to 
2.0-beta-7-SNAPSHOT, remove the some directories and run the same command 
again.

The site for module1 no longer has the Documentation menu. The menu 
structure looks like this:

{noformat}
Parent Project

* Site-Inherti-Bug

General Information

* Introduction
* Overview
* Release Notes

Project Documentation

* Project Information
  o About
  o Continuous Integration
  o Dependencies
  o Dependency Convergence
  o Issue Tracking
  o Mailing Lists
  o Project License
  o Project Summary
  o Project Team
  o Source Repository
{noformat}

If you have other results, please shared them with us. Also specify OS, JDK and 
Maven version.

 site.xml: menus inherited that should not
 -

 Key: MSITE-270
 URL: http://jira.codehaus.org/browse/MSITE-270
 Project: Maven 2.x Site Plugin
  Issue Type: Bug
  Components: inheritance, site descriptor
Affects Versions: 2.0-beta-6
Reporter: Jörg Hohwiller
 Attachments: site-inherit-bug.zip


 I have a project with multiple levels of modules.
 In the toplevel project I declare a site-descriptor with some general menu's 
 that have no inherit attribute (I also tried inherit='none') together with 
 menu ref=parent inherit=top/
 menu ref=modules inherit=bottom/
 menu ref=reports inherit=bottom/
 Now a module of the toplevel project that itself has modules declares a 
 site-descriptor with an additional regular menu that is inherited.
 However the site of that module contains the menus from the toplevel project 
 that are NOT declared to be inherited.

-- 
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-270) site.xml: menus inherited that should not

2008-06-27 Thread Dennis Lundberg (JIRA)

[ 
http://jira.codehaus.org/browse/MSITE-270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=139801#action_139801
 ] 

Dennis Lundberg commented on MSITE-270:
---

I can confirm that menus get inherited even when they aren't marked as such, 
with 2.0-beta-6-SNAPSHOT. However using 2.0-beta-7-SNAPSHOT seems to solve the 
issue.

 site.xml: menus inherited that should not
 -

 Key: MSITE-270
 URL: http://jira.codehaus.org/browse/MSITE-270
 Project: Maven 2.x Site Plugin
  Issue Type: Bug
  Components: inheritance, site descriptor
Affects Versions: 2.0-beta-6
Reporter: Jörg Hohwiller
 Attachments: site-inherit-bug.zip


 I have a project with multiple levels of modules.
 In the toplevel project I declare a site-descriptor with some general menu's 
 that have no inherit attribute (I also tried inherit='none') together with 
 menu ref=parent inherit=top/
 menu ref=modules inherit=bottom/
 menu ref=reports inherit=bottom/
 Now a module of the toplevel project that itself has modules declares a 
 site-descriptor with an additional regular menu that is inherited.
 However the site of that module contains the menus from the toplevel project 
 that are NOT declared to be inherited.

-- 
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-270) site.xml: menus inherited that should not

2007-12-07 Thread Guimiot Isabelle (JIRA)

[ 
http://jira.codehaus.org/browse/MSITE-270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_116127
 ] 

Guimiot Isabelle commented on MSITE-270:


I have a problem that seems to be linked to this one (beta-6) : I have a root 
module and some sub-modules. 

The root site.xml contains :

body
menu ref=modules /
menu name=Menu
item name=Root Doc href=/rootDoc.html /
/menu
/body

and each sub-module site.xml contains :

body
menu ref=parent /   
menu ref=reports /
menu name=Menu 
item name=Foo href=/foo.html/
/menu
/body

When I launch the site goal, I obtain this menu :

- in the root site (correct) :

Modules
Project 1 
Project 2 

Menu
Root Doc


- in the sub-modules site (completely wrong) :

Menu
Root Doc



...instead of stuff like that :

Parent
Parent Project

Reports
Report 1
Report 2
Report 3
...

Menu
Foo


If I understand, it seems that the submodule site.xml is totally ignored, and 
replaced by an inherited site.xml from the root module. I also tried to put 
some inherit attributes everywhere in both files (root and submodule) but it 
didn't change anything...
This issue is very important, I have to keep my beta-5 version until it's 
resolved.

thanx
Isabelle


 site.xml: menus inherited that should not
 -

 Key: MSITE-270
 URL: http://jira.codehaus.org/browse/MSITE-270
 Project: Maven 2.x Site Plugin
  Issue Type: Bug
Affects Versions: 2.0-beta-5, 2.0-beta-6
Reporter: Jörg Hohwiller
 Attachments: site-inherit-bug.zip


 I have a project with multiple levels of modules.
 In the toplevel project I declare a site-descriptor with some general menu's 
 that have no inherit attribute (I also tried inherit='none') together with 
 menu ref=parent inherit=top/
 menu ref=modules inherit=bottom/
 menu ref=reports inherit=bottom/
 Now a module of the toplevel project that itself has modules declares a 
 site-descriptor with an additional regular menu that is inherited.
 However the site of that module contains the menus from the toplevel project 
 that are NOT declared to be inherited.

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