You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "David J. M. Karlsen" <da...@davidkarlsen.com> on 2006/08/03 15:54:42 UTC

[m2] xdoclet plugin - problem binding to phase

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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org