You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Deepak Natarajan (JIRA)" <ji...@codehaus.org> on 2007/09/10 15:20:11 UTC

[jira] Created: (MANTRUN-74) Multuple maven-antrun-plugin bindings - not working from command line

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

        

[jira] Closed: (MANTRUN-74) Multuple maven-antrun-plugin bindings - not working from command line

Posted by "Carlos Sanchez (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MANTRUN-74?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carlos Sanchez closed MANTRUN-74.
---------------------------------

      Assignee: Carlos Sanchez
    Resolution: Cannot Reproduce

> 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
>            Assignee: Carlos Sanchez
>
> 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

        

[jira] Commented: (MANTRUN-74) Multuple maven-antrun-plugin bindings - not working from command line

Posted by "Tim Kettler (JIRA)" <ji...@codehaus.org>.
    [ 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