hi,

I'm on the reactor thing again and I'm still having no idea where the
problem is.
I have one huge project which consists of many subprojects which again
contain subprojects (=subsubprojects). Therefore I'm using the reactor
to generate the maven documentation in 2 levels: one maven.xml with a
reactor in the projects basedir to get the subprojects and in each
subprojects basedir another maven.xml to get the subsubprojects.

project (with maven.xml)
|
|- subproject 1 (with maven.xml)
|    |- subsubproject 1
|    |- subsubproject 2
|
|- subproject 2 (with maven.xml)
|    |- subsubproject 1
|    |- subsubproject 2
|...


I hope it's nearly clear what I mean. Now the problem is that the
reactor works fine for the subsubprojects, but the reactor inside the
projects basedir only 'collects' one subproject - the one which should
be first in the processing order and that's all. It ignores the other
ones. Where could the problem be?



------ this is my maven.xml of the project basedir: (only utilities is
generated):

<project
  default="site"
  xmlns:j="jelly:core"
  xmlns:maven="jelly:maven"           
xmlns:velocity="jelly:org.apache.commons.jelly.tags.velocity.VelocityTagLibrary">
  
  <preGoal name="site">
    <attainGoal name="all-build"/>
  </preGoal>
  
  <goal name="all-build">
  
    <maven:reactor
      basedir="${basedir}"
      includes="castor/project.xml, utilities/project.xml" 
      banner="Building site"
      goals="clean,jar:install,site:deploy"
      excludes="${basedir}"      
      postProcessing="true"
      ignoreFailures="true"
    />
    
    <fileScanner var="templates">
      <fileset dir="${basedir}/templates">
        <include name="*.xml"/>
      </fileset>
    </fileScanner>
    
    <j:forEach var="template" items="${templates.iterator()}">
      
      <j:set var="templateName" value="${template.name}"/>
      <echo>Processing ${templateName} template ...</echo> 
    
      <velocity:merge 
        name="${basedir}/xdocs/${templateName}"
        basedir="${basedir}/templates"
        template="${templateName}"/>

    </j:forEach> 

  </goal>
</project>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to