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| [EMAIL PROTECTED]
Maven 2 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.The plugin is functionally sound. Per the example in the text, I've created the corresponding x.mojos.xml file which corresponds to the x.build.xml file. My problem comes if and when I get an error 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. Snir Kodesh Software Engineering Intern Qpass - Amdocs Digital Commerce Division 2211 Elliott Avenue | Suite 400 | Seattle, WA 98121 o: +1 206.695.9521| [EMAIL PROTECTED]
Plugin issue
I've recently developed a plugin that allows for a workaround fix specific to the team I'm working for. I've bound it to the process-classes build phase. My issue is that regardless as to whether the plugin succeeds or fails (for whatever reason) or an exception is thrown, the rest of the build reports a success. I don't know what the issue is, but somehow I would like to tie the success (or failure) of the plugin directly to the success/failure of the build. Thanks, --Snir
Plugin issue
I've recently developed a plugin that allows for a workaround fix specific to the team I'm working for. I've bound it to the process-classes build phase. My issue is that regardless as to whether the plugin succeeds or fails (for whatever reason) or an exception is thrown, the rest of the build reports a success. I don't know what the issue is, but somehow I would like to tie the success (or failure) of the plugin directly to the success/failure of the build. Thanks, --Snir