[ 
http://jira.codehaus.org/browse/MANTRUN-74?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_106951
 ] 

Tim Kettler commented on MANTRUN-74:
------------------------------------

This is probably just a wrong configuration on your side. This test snippet is 
working for me:

{noformat}
[...]
<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-antrun-plugin</artifactId>
  <executions>
    <execution>
      <id>foo</id>
      <phase>generate-sources</phase>
      <configuration>
        <tasks>
          <echo message="MESSAGE FROM: GENERATE-SOURCES"/>
        </tasks>
      </configuration>
      <goals>
        <goal>run</goal>
      </goals>
    </execution>
    <execution>
      <id>bar</id>
      <phase>process-classes</phase>
      <configuration>
        <tasks>
          <echo message="MESSAGE FROM: PROCESS-CLASSES"/>
        </tasks>
      </configuration>
      <goals>
        <goal>run</goal>
      </goals>
    </execution>
  </executions>
</plugin> 
[...]
{noformat}

You should better ask such questions on the user list first, to ensure you 
really found a bug.

-Tim

> Multuple maven-antrun-plugin bindings - not working from command line
> ---------------------------------------------------------------------
>
>                 Key: MANTRUN-74
>                 URL: http://jira.codehaus.org/browse/MANTRUN-74
>             Project: Maven 2.x Antrun Plugin
>          Issue Type: Bug
>         Environment: Windows 2003
>            Reporter: Deepak Natarajan
>
> I have a single pom with multiple maven-antrun-plugin configurations bound to 
> different phases - for example I have one execution bound to the 
> generate-sources phase, and another to the process-classes phase. Different 
> ant taskdefs are used in each of these configurations.
> When I run "mvn process-classes" from the command line, it runs my initial 
> plugin twice - i,e it runs the ant task configured in my first antrun-plugin 
> configuration twice.
> Has anyone else encountered this before? I've tried using unique id's for the 
> executions, but no difference
> Rgds/Deepak

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to