I am using the exec-maven-plugin to manipulate some classes and the exec fails.
<plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <executions> <execution> <phase>process-classes</phase> <goals> <goal>exec</goal> </goals> <configuration> <executable>${ejbdeploy.output}</executable> </configuration> </execution> </executions> </plugin> ${ejbdeploy.output} [if this wraps it's all one line] "D:/profiles/AppSrv01/bin/ejbdeploy.bat" "D:/wcmsuite73_maven/framework/components/framework-ejb/../../dist/generic/framework_Account.jar" "D:/wcmsuite73_maven/framework/components/framework-ejb/build/" "D:/wcmsuite73_maven/framework/components/framework-ejb/../../dist/was6/framework_Account.jar" -cp "D:/wcmsuite73_maven/framework/components/framework-ejb/../../dist/framework.jar" -debug -trace -nowarn -noinform -quiet Unfortunately, according to the output, the build succeeds. How can I make the build fail in this scenario? [INFO] [exec:exec {execution: default}] [INFO] [INFO] D:\wcmsuite73_maven\framework\components\framework-ejb>"D:/profiles/AppSr v01/bin/ejbdeploy.bat" "D:/wcmsuite73_maven/framework/components/framework-ejb/. ./../dist/generic/framework_Account.jar" "D:/wcmsuite73_maven/framework/componen ts/framework-ejb/build/" "D:/wcmsuite73_maven/framework/components/framework-ejb /../../dist/was6/framework_Account.jar" -cp "D:/wcmsuite73_maven/framework/compo nents/framework-ejb/../../dist/framework.jar" -debug -trace -nowarn -noinform -q uiet [INFO] [*Error] ejbModule/META-INF/ejb-jar.xml(Enterprise bean: Account): CHKJ28 02E: <ejb-class> class com.ph.framework.entitlements.ejb.impl.AccountBean, or on e of its supertypes, cannot be reflected. Check the classpath. [INFO] [INFO] Execution Halted: Validation Errors Reported [INFO] 1 Errors [INFO] [site:attach-descriptor] [INFO] [install:install] [INFO] Installing D:\wcmsuite73_maven\framework\components\framework-ejb\pom.xml to C:\Documents and Settings\eganr\.m2\repository\com\ph\framework\framework-ej b\7.4.0.0\framework-ejb-7.4.0.0.pom [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 43 seconds [INFO] Finished at: Thu Oct 04 21:03:09 EDT 2007 [INFO] Final Memory: 9M/26M [INFO] ------------------------------------------------------------------------ This email message and any attachments may contain confidential, proprietary or non-public information. The information is intended solely for the designated recipient(s). If an addressing or transmission error has misdirected this email, please notify the sender immediately and destroy this email. Any review, dissemination, use or reliance upon this information by unintended recipients is prohibited. Any opinions expressed in this email are those of the author personally.