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
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