Hello everybody, I have a project which uses Tomcat as a container. I want to start Tomcat through maven. For this purpose I have tried Maven Cargo Plugin. I selected my container type as "installed" since Cargo Plugin does not support "embedded" for Tomcat 6.0 and "remote" container type does not support 'start' or 'stop' operations. Cargo Plugin has a parameter called "wait": - If I set it 'true' (which is actually default value), Tomcat starts and wait my CTRL+C command to continue. I mean, it just starts tomcat and stops doing other goals. I want maven to start tomcat in a new console and in the meantime continue to do its remaining work. - If I set it 'false', it starts Tomcat at background (no console shown) it completes the remaining work and when "mvn install" operations finished it shuts down the Tomcat. It does not inform me about this shut down operation, however I cannot reach the port of the Tomcat installation from my browser. I want tomcat to continue to running after "mvn install" operation finishes. Basicly what I need is a fork attribute in Cargo plugin, which will fork the process, one will run a tomcat at the background and will not close it, and other one provides a running Tomcat even after the "mvn install" operation finishes.
I have looked for other plugins, such as Maven Tomcat Plugin but it does not support starting or stopping the Tomcat. Even I have tried running the startup.bat (or catalina.bat) with maven exec plugin, but surprisingly they also did not fork the process. They start waiting after starting Tomcat, and then they wait until I have killed the running Tomcat instance. Then they continue. Is there any way (maybe a plugin) to start Tomcat at the background and continue to doing other goals, and not stopping the Tomcat after all goals finished their execution? If the answer is NO, at least is there a way to just start Tomcat at the background (with or without console) from Maven without occupying the main console that maven command is entered? Thank you for your responses, Erdem.. -- View this message in context: http://maven.40175.n5.nabble.com/Starting-Tomcat-from-Maven-with-forked-process-tp3378943p3378943.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
