Maven 2 & 3

antrun's exec task breaks in 2.0.5-SNAPSHOT

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Cannot Reproduce
  • Affects Version/s: 2.0.4
  • Fix Version/s: 2.0.5
  • Component/s: None
  • Labels:
    None
  • Environment:
    windows
  • Complexity:
    Intermediate
  • Number of attachments :
    1

Description

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>

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

Activity

Hide
John Casey added a comment -

this seems to be a regression, so I don't think we should push it out to 2.0.6.

Show
John Casey added a comment - this seems to be a regression, so I don't think we should push it out to 2.0.6.
Hide
Kenney Westerhof added a comment -

Cannot reproduce on unix (changed mvn.bat to mvn otherwise I do get the error).

Can somebody with Windows please check this?

Show
Kenney Westerhof added a comment - Cannot reproduce on unix (changed mvn.bat to mvn otherwise I do get the error). Can somebody with Windows please check this?
Hide
Dennis Lundberg added a comment -

Cannot reproduce on Windows XP using Sun JRE 1.4.2.

Running
mvn package
works for me both in Maven 2.0.4 and 2.0.5-SNAPSHOT.

Show
Dennis Lundberg added a comment - Cannot reproduce on Windows XP using Sun JRE 1.4.2. Running mvn package works for me both in Maven 2.0.4 and 2.0.5-SNAPSHOT.
Hide
Dan Tran added a comment -

Just tested with the latest 2.0.5-SNAPSHOT, the problem is no longer there

But it is reproducable with the snapshot I picked up on 9/23/2006.

Consider it not reproducable

Show
Dan Tran added a comment - Just tested with the latest 2.0.5-SNAPSHOT, the problem is no longer there But it is reproducable with the snapshot I picked up on 9/23/2006. Consider it not reproducable

People

  • Assignee:
    Unassigned
    Reporter:
    Dan Tran
Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: