mvn tomcat:deploy to Tomcat 7

The mvn plug-in tomcat-maven-plugin works fine with tomcat 5.5, but it gives a 403 error when you try to deploy to a tomcat 7 instance.  Turns out tomcat 7 changed the urls for deploying, so you need to configure the plugin to use this different url.  You can do this with the following plugin configuration:


The magic is in the URL setting that now uses /manager/html, rather than the default url of just /manager.  The original source for this information:


2 thoughts on “mvn tomcat:deploy to Tomcat 7

  1. jesse.liu says:

    thanks ~~

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: