Usage

Please read the AntRun plugin usage guide first.

Here's an example configuration - you'll get the general idea.


<plugin>
  <artifactId>xdoclet-maven-plugin</artifactId>
  <groupId>org.codehaus.mojo</groupId>
  <version>1.0-alpha-1</version>
  <executions>
    <execution>
      <phase>generate-sources</phase>
      <goals>
        <goal>xdoclet</goal>
      </goals>
      <configuration>
        <tasks>

          <!-- example : -->

          <ejbdoclet destdir="${project.build.outputDirectory}">
            <fileset dir="${basedir}/src/main/java" includes="**/*Bean.java"/>
            <entitycmp destDir="${project.build.outputDirectory}"/>
            <deploymentdescriptor
              destDir="${project.build.outputDirectory}"/META-INF"
            />
          </ejbdoclet>
          
        </tasks>
      </configuration>
    </goal>
  </goals>
</plugin>

        

You can use the same expressions as Plugin builders can use. However, the ${project.sourceRootPaths} does not work - you have to hardcode src/main/java in the fileset. This will be changed in the future.

As you can see, I've also specified destDir attributes on the subtasks (like entitycmp. This is because of a bug in XDoclet, when XDoclet is used more than once (for instance, in a reactor build).

The goal to be called is xdoclet:xdoclet.