You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Marco Mistroni <mm...@gmail.com> on 2006/08/31 13:15:54 UTC
M2:invoking more than one task in the same phase... How?
hi all,
i have a small project inw hich i need to execute 2 diffferent tasks in
the same phase...
heres' an excerpt of my pom.xml
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>xdoclet-maven-plugin</artifactId>
<executions>
<execution>
<id>generateWsdl</id>
<phase>process-classes</phase>
<goals>
<goal>xdoclet</goal>
</goals>
<configuration>
<tasks>
<wseedoclet jaxrpcMappingFile="mappings.xml"
wseeSpec="1.1"
wsdlFile="wsdl/serviceTest.wsdl"
destDir="${project.build.outputDirectory}/META-INF"
force="true" verbose="true">
<fileset dir="src" includes="**/*Bean.java" />
<fileset dir="target" includes="**/*IF.*java" />
<jaxrpc-mapping/>
<wsdl/>
<deploymentdescriptor useIDs="true"/>
</wseedoclet>
</tasks>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>antTask</id>
<phase>process-classes</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<echo message="********** Replacing tokens **************"/>
<replace
file="${project.build.outputDirectory}/META-INF/webservices.xml"
token="WEB-INF/wsdl/" value="META-INF/wsdl/" />
</tasks>
</configuration>
</execution>
</executions>
</plugin>
somehow, the wseedoclet gets executed... but the ant plugin never runs....
and they are both in the same phase (process-classes)
can anyone explain me why? or how to fix the problem?
thanks and regards
marco