I have a not very interesting pom that builds an ear from a war. I recently added two tasks. The first task (antrun) copies the ear to a known location. The second task deploys the ear to a weblogic server using the Codehaus weblogic plugin.
I've attached the antrun task to "package" and the weblogic deploy to both "package" and "integration-test" (at different times. But no matter where I attach it is the last thing to execute and I don't get "BUILD SUCCESSFUL" in the log. If the weblogic deploy is attached to "package" along with the antrun task then the antrun task is never run. It seems like something is calling System.exit(). That part of the log looks like this: 18-Feb-2010 16:14:04 [INFO] [weblogic:deploy {execution: deploy}] 18-Feb-2010 16:14:04 [INFO] Weblogic Deployment beginning with parameters DeployMojoBase[adminServerHostName = softwl03, adminServerProtocol = t3, adminServerPort = 7015, userId = weblogic, password = infotech1, artifactPath = D:\bamboo-home\xml-data\build-dir\WSS-WSSEARTRUNK\target/wss-1.1, projectPackaging = ear, name = wss, targetNames = build_1, remote = true] 18-Feb-2010 16:14:04 [INFO] Weblogic Deployment parameters [-adminurl, t3://softwl03:7015, -username, weblogic, -password, infotech1, -name, wss, -targets, build_1, -upload, -source, D:\bamboo-home\xml-data\build-dir\WSS-WSSEARTRUNK\target/wss-1.1.ear, -deploy] 18-Feb-2010 16:14:04 weblogic.Deployer invoked with options: -adminurl t3://softwl03:7015 -username weblogic -name wss -targets build_1 -upload -source D:\bamboo-home\xml-data\build-dir\WSS-WSSEARTRUNK\target/wss-1.1.ear -deploy 18-Feb-2010 16:14:05 <Feb 18, 2010 4:14:05 PM EST> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating deploy operation for application, wss [archive: D:\bamboo-home\xml-data\build-dir\WSS-WSSEARTRUNK\target\wss-1.1.ear], to build_1 .> 18-Feb-2010 16:14:13 Task 20 initiated: [Deployer:149026]deploy application wss on build_1. 18-Feb-2010 16:14:33 Task 20 completed: [Deployer:149026]deploy application wss on build_1. 18-Feb-2010 16:14:33 Target state: deploy completed on Server build_1 18-Feb-2010 16:14:33 18-Feb-2010 16:14:33 Build process for 'WSS - Trunk EAR' returned with return code = 0 Any ideas? -- " People who couldn't find Nebraska on a world map are certain that global warming is a left-wing hoax. Gene Lyons"