Hi, 

I'm using the reactor to set up maven for my project which has several
subproject (e.g. subproject utilities). It already worked some time ago
but now I'm always getting the following output and error when I try to
start maven (with 'maven site'). In my opinion there is I defined 'site'
in the maven.xml and maven even starts but than aborts. I have no clue
why. Can anybody help me, please?!

---------- output ----------
 __  __
|  \/  |__ Jakarta _ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-beta-9-SNAPSHOT


Starting the reactor...
Our processing order:
Utilities
+----------------------------------------
| Building site Utilities
| Memory: 1M/2M
+----------------------------------------
site:
all-build:
    [echo] Processing whoweare.xml template ...
    [echo] Processing source-repos.xml template ...
    [echo] Processing mail.xml template ...
    [echo] Processing navigation.xml template ...
INTERNAL ERROR
Reference made to goal 'site' which has no definition.

---------- output end ----------


That's what my maven.xml looks like:

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