http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.12/bin/
and copy 'CATALINA_HOME/server/lib/catalina-ant.jar' to 'MAVEN_HOME/repository/tomcat/jars/catalina-ant-4.1.12.jar'.
To use it in a project, add something like this to your project.properties:
maven.tomcat.url = http://freedonia:8080/manager
maven.tomcat.username = flywheel
maven.tomcat.password = swordfish
(read the tomcat manager how-to!!)
and type:
maven tomcat:deploy
Your webapp will be built and deployed onto the server. There are xdocs for everything if you want more details.
The plugin depends on a jar from TC 4.1.12, but some of the manager app functions will work fine on earlier tomcats - see your server docs for details.
CAVEAT: this is not an official plugin, so don't rely on this for production scripts unless you're happy that this copy is all you need.
-Baz
BTW: Is there a reason why there's no 'plugin' plugin? Seems like most of the plugin maven.xml's are the same?
Brian Ewins wrote:
I've written a tomcat plugin I'd like to donate, once I'm through testing. It needs catalina-ant.jar (not on ibiblio as far as I can see).
Its pretty small and straightforward, since its just a wrapper for the tomcat ant tasks. Should I just attach it on jira, or...?
-Baz
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
maven-tomcat-plugin-1.0.jar
Description: Binary data
tomcat.zip
Description: Binary data
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
