You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Snir Kodesh <sk...@qpass.com> on 2006/08/29 01:14:06 UTC

Ant Plugin: Java task fails but build succeeds

I've been following the "Better Builds with Maven" ant plugin creation
example (found on 5.4.2) to create an ant plugin which will leverage the
<java> task by adding the ant library to the maven-plugin-plugin. I've
forked the JVM, specified a classpath, and made the appropriate java
calls. Functionally, the plugin is sound.  
 
My problem comes if and when I get an error originating from the java
task. In the case of any kind of exception from the java task, the
plugin will fail and yet the build will print "Success." Furthermore,
the build summary which reflects the plugin's execution is also reported
as a success. It is as if the execution of the plugin and any exceptions
thrown at that time are not being examined by maven in the context of
the overall build, despite the fact that I've bound the plugin to the
lifecycle. 
 
Snir Kodesh
Software Engineering Intern
Qpass - Amdocs Digital Commerce Division 
2211 Elliott Avenue | Suite 400 | Seattle, WA 98121
o: +1 206.695.9521| skodesh@qpass.com