Tomcat personal instances and maven

I use maven to develop and deploy java web applications. This code snippet provides an embedded customized ports Jetty, and tomcat.
The tomcat plugins get the credentials from user’s maven settings file (see second file)

https://gist.github.com/1053505

Now you need tomcats, I like tomcat6-user debian package as it creates personal tomcat instances easily:

$ tomcat6-instance-create -p 9191 -c 9192 tc-9191

Now copy manager.xml:

$ cp /etc/tomcat6/Catalina/localhost/manager.xml tc-9191/conf/Catalina/localhost/

you need tomcat6-admindebian package installed

Now fire it up and test it:

$ ./tc-9191/bin/startup.sh
$ cd
$ mvn tomcat:info

Esta entrada fue publicada en Linux, java y clasificada en . Ir al permalink. Publicar un comentario o dejar un trackback: URL del Trackback.

Publicar un comentario

Tu correo nunca es compartido ni publicado. Los campos requeridos están marcados *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>