when i execute ant script through antrun plugin from maven2 the ant task gets
executed twice. why is that? i only attached it to generate-sources phase.
the task gets executed once before test-phase and once after test-phase.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>generate-sources</phase>
<configuration>
<tasks>
<property name="compile_classpath" refid="maven.compile.classpath" />
<ant antfile="${basedir}/src/main/resources/wsimportBuild.xml">
<target name="generateJAXWS-WithMappings" />
</ant>
</tasks>
<sourceRoot>${project.build.directory}/jaxws/java</sourceRoot>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
--
View this message in context:
http://www.nabble.com/task-from-antrun-plugin-executed-multiple-times-tp15047625s177p15047625.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]