Some plugins cause your build to fork. I'd suspect Surefire is causing
the two executions.

Use mvn -X and try to figure out why you are getting two executions.
Maven sends useful log entries to standard output when you specify -X
for debugging mode.

Wayne

On 1/23/08, aldana <[EMAIL PROTECTED]> wrote:
>
> 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]
>
>

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

Reply via email to