[ 
http://jira.codehaus.org/browse/MSITE-129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=139588#action_139588
 ] 

johanandren edited comment on MSITE-129 at 6/25/08 2:19 PM:
-------------------------------------------------------------

One more vote about the importance of this issue here.

We have a netbeans-platform application setup like this:

application/
---cluster1/
------module1/
------module2/
---cluster2/
------module3/
------module4/
---common-parent/

where all the maven modules ("clusters", "modules" and "application") share the 
common-parent as project parent (it primarily containins dependency 
management). We need to do it this way since the netbeans-maven-plugin only can 
create an application from project submodules.

If we run site:site on application non-recursive ("mvn -N") this gives us a 
site for application with each cluster listed as a module. When we run 
site:site recursively we get a site with no modules listed at all. I'm not 100% 
sure but it sounds as it is the same problem listed here.

      was (Author: johanandren):
    One more vote about the importance of this issue here.

We have a netbeans-platform application setup like this:

application/
   cluster1/
      module1/
      module2/
   cluster2/
      module3/
      module4/
   common-parent/

where all the maven modules ("clusters", "modules" and "application") share the 
common-parent containing dependency management. We need to do it this way since 
the netbeans-maven-plugin only can create an application from project 
submodules.

If we run site:site on application non-recursive ("mvn -N") this gives us a 
site for application with each cluster listed as a module. When we run 
site:site recursively we get a site with no modules listed at all. I'm not 100% 
sure but it sounds as it is the same problem listed here.
  
> modules list empty if modules don't use this project as parent in reactor 
> build
> -------------------------------------------------------------------------------
>
>                 Key: MSITE-129
>                 URL: http://jira.codehaus.org/browse/MSITE-129
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>          Components: multi module
>    Affects Versions: 2.0-beta-5
>            Reporter: Kenney Westerhof
>            Assignee: Kenney Westerhof
>            Priority: Minor
>             Fix For: 2.0-beta-8
>
>
> The code in the AbstractSiteRenderingMojo does the following:
> - if it's running in a reactor build (i.e. more than 1 project in the reactor 
> projects) it scans all
> projects to see if it's parent project equals the current project. If so, 
> it's marked as a module.
> - if it's running on a single project, the project.build.modules is consulted 
> and those modules
> are marked as modules.
> I've got a 'fake' root pom, for utility purposes: it lists all projects as 
> modules so that I can easily
> built everything and generate a site. However, this fake root pom is never 
> used as a parent - there's
> a /pom/pom.xml project for that.
> The result of this is that the modules list is empty.
> A workaround is to first run 'mvn site' and then 'mvn site -N'.
> I'm not sure what the correct solution should be - basically now 2 site 
> layouts are implemented:
> - a physical layout where the modules match the <modules> section of the pom, 
> reflecting filesystem layout,
> - a project hierarchy layout based on <parent>
> and one or the other is used depending on wheter the build contains more than 
> 1 project or not.
> My first feeling is that since the tag is called ${modules} (or <menu 
> ref="modules"/>) that
> the site should use the <modules>, not the <parent>. 
> It should also take into consideration, that IF a reactor build is running, 
> it should only use the modules that are also
> in the reactor (so you can use -r -Dmaven.reactor.excludes=.. to generate a 
> site with not all projects in it).
> Thoughts?

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

        

Reply via email to