antrun's exec task breaks in 2.0.5-SNAPSHOT
-------------------------------------------

                 Key: MNG-2612
                 URL: http://jira.codehaus.org/browse/MNG-2612
             Project: Maven 2
          Issue Type: Bug
    Affects Versions: 2.0.5
         Environment: windows
            Reporter: Dan Tran
         Attachments: pom.xml

I have no problem run the below pom in 2.0.4, but in 2.0.5-SNAPSHOT.  
mvn package throws this

[INFO] Error executing ant tasks

Embedded error: Execute failed: java.io.IOException: CreateProcess: mvn.bat --he
lp error=5

Here is the pom

--------------------------------------------

<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.codehaus.mojo.pde</groupId>
  <artifactId>m2eclipse</artifactId>
  <version>1.0-SNAPSHOT</version>
  <packaging>pom</packaging>

  <name>AntRun break in 2.0.5-SNAPSHOT Build</name>
  
  <build>
    <plugins>
  
      <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
          <execution>
            <id>build</id>
            <phase>compile</phase>
            <goals>
              <goal>run</goal>
            </goals>
            <configuration>
              <tasks>
                <exec executable="mvn.bat">
                  <arg line="--help" />
                </exec>
              </tasks>
            </configuration>
          </execution>    
        </executions>
      </plugin>
      
    </plugins>
  </build>
  
</project>




-------------------------------------------

-- 
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