This issue is even in the apache ant FAQ. Workaround is to given full-path
to executable file.
<exec dir="${basedir}"
executable="*
${env.ANT_HOME}bin\ant.bat*"
failonerror="true">
<arg line="clean"/>
</exec>
On Wed, Mar 16, 2011 at 5:10 PM, Vijayaratha Vijayasingam
<[email protected]>wrote:
> Hi,
> My 'ant' classpath is set...
>
> C:\Projects\trunk\dependencies\qpid>mvn clean install
> -Dmaven.test.skip=true
> [INFO] Scanning for projects...
> [WARNING]
> [WARNING] Some problems were encountered while building the effective model
> for org.apache.qpid:qpid
> :pom:0.9-wso2v1
> [WARNING] 'version' contains an expression but should be a constant. @
> org.apache.qpid:qpid:${qpid.v
> ersion}, C:\Projects\trunk\dependencies\qpid\pom.xml, line 25, column 12
> [WARNING]
> [WARNING] It is highly recommended to fix these problems because they
> threaten the stability of your
> build.
> [WARNING]
> [WARNING] For this reason, future Maven versions might no longer support
> building such malformed pro
> jects.
> [WARNING]
> [INFO]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Apache Qpid 0.9-wso2v1
> [INFO]
> ------------------------------------------------------------------------
> [INFO]
> [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ qpid ---
> [INFO] Deleting C:\Projects\trunk\dependencies\qpid\target
> [INFO]
> [INFO] --- maven-antrun-plugin:1.6:run (compile) @ qpid ---
> [INFO] Executing tasks
>
> main:
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 0.638s
> [INFO] Finished at: Wed Mar 16 16:29:52 IST 2011
> [INFO] Final Memory: 4M/247M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-antrun-plugin:1.6:run (compile) on pro
> ject qpid: An Ant BuildException has occured: Execute failed:
> java.io.IOException: Cannot run progra
> m "ant" (in directory "C:\Projects\trunk\dependencies\qpid\java"):
> CreateProcess error=2, The system
> cannot find the file specified -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following arti
> cles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> C:\Projects\trunk\dependencies\qpid>pom.xml
> Any clues??
> -Ratha.
>
> _______________________________________________
> Carbon-dev mailing list
> [email protected]
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>
_______________________________________________
Carbon-dev mailing list
[email protected]
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev