Hi!

I've declared the folling in my pom:

<plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>xdoclet-maven-plugin</artifactId>
        <executions>
        <execution>
        <phase>generate-sources</phase>
        <goals>
                <goal>xdoclet</goal>
        </goals>
        <configuration>
        <tasks>
<ejbdoclet destDir="${project.build.outputDirectory}/META-INF" ejbSpec="2.0" verbose="true" addedTags="@xdoclet-generated"> <fileset dir="${basedir}/src/main/java" includes="**/*MDB.java" /> <deploymentdescriptor useIDs="true" />
<websphere xmlencoding="${defaultEncoding}" validateXML="true" />
                                                                </ejbdoclet>
</tasks>
</configuration>
</execution>
</executions>
</plugin>


But still I can see xdoclet being called several times:

[INFO] [clean:clean]
...
[INFO] [xdoclet:xdoclet {execution: default}]
[INFO] Initializing DocletTasks!!!
[INFO] Executing tasks
Generating EJB deployment descriptor (ejb-jar.xml).
[INFO] Executed tasks
[INFO] [resources:resources]
....
[INFO] [compiler:compile]
[INFO] [xdoclet:xdoclet {execution: default}]
[INFO] Initializing DocletTasks!!!
[INFO] Executing tasks
[INFO] Executed tasks
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Tests are skipped.
[INFO] [ejb:ejb]


Seems like xdoclet is "resetting" the execution of phases?
I would expect it to execute once, and only once at generate-sources, and then the normal resource, compile, package phases.

The last version of the xdoclet plugin I can find is:
http://www.ibiblio.org/maven2/org/codehaus/mojo/xdoclet-maven-plugin/1.0-alpha-2/
(nov 2005). There are quite som bugs in this plugin - has the project stalled? Could somebody build a snapshot so that I can test a later version?




--
David J. M. Karlsen - +47 90 68 22 43
http://www.davidkarlsen.com
http://mp3.davidkarlsen.com

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

Reply via email to