Is there a way to control the Maven embedded Tomcat version?
mvn tomcat:run
This command will run a Tomcat 6.0.16 instance. I’d like to run a 5.5 version of Tomcat. Is there a way to configure this? Searching the plugin docs didn’t help…
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, there is no real way to configure the Tomcat version with the tomcat-maven-plugin. Actually, Tomcat 6 support is due to MOJO-1106 and was added in the version 1.0-alpha-2 of the plugin (see revision r7348), in previous versions and revisions, the plugin was using Tomcat 5.5.15. The version 1.0-alpha-1 is available in the repo so you could give it a try. But I didn’t check and can’t say if it could be impacted by any major issue.
If this option doesn’t work and if you really want finer control, then it would be better to use Cargo as pointed out by romaintaz.