title: cant do mvn tomcat:deploy because of http response 405
body: <p>I am running a Tomcat 7 as a windows service.
  And i want to do mvn:tomcat deploy in my projects root directory.</p>
  
  <p>But all the time this error appears, can you help me with this plz?</p>
  
  <pre><code>[INFO] Deploying war to http://localhost:8080/opendata
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 2.493s
  [INFO] Finished at: Sun Jan 20 18:48:30 CET 2013
  [INFO] Final Memory: 15M/39M
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal org.codehaus.mojo:tomcat-maven-plugin:1.1:deploy
  (default-cli) on project opendata: Cannot invoke Tomcat manager: Server returned
   HTTP response code: 405 for URL: http://localhost:8080/manager/deploy?path=%2Fo
  pendata&amp;war= -&gt; [Help 1]
  [ERROR]
  [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
  ch.
  [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  [ERROR]
  [ERROR] For more information about the errors and possible solutions, please rea
  d the following articles:
  [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
  xception
  </code></pre>
  
  <p>I got the following section in my pom file:</p>
  
  <pre><code>&lt;build&gt;
          &lt;finalName&gt;opendata&lt;/finalName&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
                  &lt;artifactId&gt;tomcat-maven-plugin&lt;/artifactId&gt;
                  &lt;configuration&gt;
                      &lt;server&gt;myserver&lt;/server&gt;
                  &lt;/configuration&gt;
                  &lt;version&gt;1.1&lt;/version&gt;
              &lt;/plugin&gt;
  
              &lt;plugin&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.0.2&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;source&gt;1.7&lt;/source&gt;
                      &lt;target&gt;1.7&lt;/target&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  </code></pre>