title: deploy with maven on tomcat7
body: <p>Hi i'm trying to deploy my application with maven. Over the web-interface deploying woks. but maven first undeploys th app (this is rght) and then stops for ca.30 secs at the logmessage "Uploaded" and fails:</p>
  
  <p>tomcat7:deploy</p>
  
  <pre><code>[INFO] Deploying war to http://192.168.1.137:8080/Application
  Uploading: http://192.168.1.137:8080/manager/html/deploy?path=%2FApplication&amp;update=true
  Uploaded: http://192.168.1.137:8080/manager/html/deploy?path=%2FApplication&amp;update=true (17575 KB at 23215.6 KB/sec)
  
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 57.061s
  [INFO] Finished at: Mon Aug 06 09:41:27 CEST 2012
  [INFO] Final Memory: 19M/220M
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-beta-1:deploy (default-cli) on project Application: Cannot invoke Tomcat manager: The target server failed to respond -&gt; [Help 1]
  [ERROR]
  [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  [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 read the following articles:
  [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
  </code></pre>
  
  <p>the config in my pom.xml</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;plugin&gt;
      &lt;groupId&gt;org.apache.tomcat.maven&lt;/groupId&gt;
      &lt;artifactId&gt;tomcat7-maven-plugin&lt;/artifactId&gt;
      &lt;configuration&gt;
          &lt;url&gt;http://192.168.1.137:8080/manager/html&lt;/url&gt;
          &lt;username&gt;admin&lt;/username&gt;
          &lt;password&gt;password&lt;/password&gt;
          &lt;path&gt;/Application&lt;/path&gt;
          &lt;update&gt;true&lt;/update&gt;
      &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>i also tried the old plugin with tomcat:redeploy:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&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;url&gt;http://192.168.1.137:8080/manager/html&lt;/url&gt;
          &lt;username&gt;admin&lt;/username&gt;
          &lt;password&gt;password&lt;/password&gt;
          &lt;path&gt;/Application&lt;/path&gt;
      &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>but it fails too with:</p>
  
  <pre><code>[ERROR] Failed to execute goal org.codehaus.mojo:tomcat-maven-plugin:1.1:redeploy (default-cli) on project Application: Cannot invoke Tomcat manager: Unexpected end of file from server -&gt; [Help 1]
  </code></pre>
  
  <p>is it possible to change the timeout for deploying? maybe my app needs to long to start</p>
  
  <p>EDIT:
  i found out that when i checkout the project and run the tomcat7:deploy on the same machine where tomcat is running it works</p>