While that works for ejbdeploy stuff, it doesn't work for wsInstallApp etc. I'm running into the same problems as I'm calling an ant script for deploying to WAS 6.0 in much like the same way the plugin is doing for 6.1. Hugo
________________________________ From: Venelin Mitov [mailto:[EMAIL PROTECTED] Sent: woensdag 25 juni 2008 18:49 To: user@mojo.codehaus.org Subject: Re: [mojo-user] was6-maven-plugin - The failOnError flag is not taken in consideration by the plugin Hi again, Thanks for your prompt answer. It looks like the ws_ant.bat process never returns the ant error code, so maybe a work around is looking at the output of ws_ant to see if the build failed? Another idea could be to insert some ant test in the ant-script template: <available file="${outputJar}" property="output.jar"/> <fail unless="output.jar" message="${outputJar} is missing." /> This will fail the ant-task if the the deployed ejb-jar is not available. Cheers, Venelin 2008/6/25 Visser, Hugo <[EMAIL PROTECTED]>: David, It looks like the ws_ant.bat process never returns the ant error code, so maybe a work around is looking at the output of ws_ant to see if the build failed? Hugo -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: woensdag 25 juni 2008 17:30 To: user@mojo.codehaus.org Subject: Re: [mojo-user] was6-maven-plugin - The failOnError flag is not taken in consideration by the plugin On Wed, 25 Jun 2008, Venelin Mitov wrote: Please register a JIRA issue here: http://jira.codehaus.org/browse/MWAS and I'll try yo take hand of it. regards, David > Hello, > > I set the failOnError parameter to true, but my ejb-build succeeds > though the ejbDeploy task fails! What is wrong? I also tried setting > the parameter from the command line (mvn -Dwas6.failOnError=true). > > INFO] wsEjbDeploy: > [ERROR] > [ERROR] BUILD FAILED > [ERROR] > file:c:/wc/svn7/contrat/ContratService/ContratServiceEJB/target/was6-mav en-plugin/was6plugin-build.xml:6: > The <wsEjbDeploy> task doesn't support t he "jdkcompliancelevel" > attribute. > [ERROR] > [ERROR] Total time: 0 seconds > [INFO] Return code: 0 > [WARNING] No sources were generated > [INFO] ejbDeploy finished > [INFO] [resources:resources] > [INFO] Using default encoding to copy filtered resources. > [INFO] [compiler:compile] > [INFO] Nothing to compile - all classes are up to date [INFO] > [resources:testResources] [INFO] Using default encoding to copy > filtered resources. > [INFO] [compiler:testCompile] > [INFO] No sources to compile > [INFO] [surefire:test] > [INFO] No tests to run. > [INFO] [ejb:ejb] > [INFO] Building ejb ContratServiceEJB-1.9-SNAPSHOT with ejbVersion 2.1 > [INFO] Building jar: > c:\wc\svn7\contrat\ContratService\ContratServiceEJB\target\ContratServ > iceEJB-1.9-SNAPSHOT.jar > [INFO] Preparing source:jar > [WARNING] Removing: ejbdeploy from forked lifecycle, to prevent > recursive invocation. > [WARNING] Removing: jar from forked lifecycle, to prevent recursive > invocation. > [INFO] No goals needed for project - skipping [INFO] [source:jar > {execution: bind-sources}] [INFO] Building jar: > c:\wc\svn7\contrat\ContratService\ContratServiceEJB\target\ContratServ > iceEJB-1.9-SNAPSHOT-sources.jar > [INFO] > ---------------------------------------------------------------------- > -- > [INFO] BUILD SUCCESSFUL > [INFO] > ---------------------------------------------------------------------- > -- > [INFO] Total time: 27 seconds > [INFO] Finished at: Wed Jun 25 16:06:54 CEST 2008 [INFO] Final Memory: > 26M/120M [INFO] > ---------------------------------------------------------------------- > -- > > -- > Venelin MITOV > -- David J. M. Karlsen - +47 90 68 22 43 http://www.davidkarlsen.com http://mp3.davidkarlsen.com --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email -- Venelin MITOV