title: Maven attempting to deploy to localhost instead of remote server
body: <p>This is my <code>pom.xml</code> build configuration:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;build&gt;
      &lt;finalName&gt;cfwd&lt;/finalName&gt;
      &lt;pluginManagement&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                &lt;version&gt;2.3.2&lt;/version&gt;
                &lt;configuration&gt;
                  &lt;source&gt;1.6&lt;/source&gt;
                  &lt;target&gt;1.6&lt;/target&gt;
                &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                &lt;groupId&gt;org.apache.tomcat.maven&lt;/groupId&gt;
                &lt;artifactId&gt;tomcat7-maven-plugin&lt;/artifactId&gt;
                &lt;version&gt;2.0&lt;/version&gt;        
                &lt;configuration&gt;
                  &lt;url&gt;http://xx.xxx.xxx.xxx:8080/manager/text&lt;/url&gt;
                  &lt;server&gt;cifServer&lt;/server&gt;
                  &lt;path&gt;/cfwd&lt;/path&gt;
                  &lt;addContextWarDependencies&gt;true&lt;/addContextWarDependencies&gt;
                  &lt;addWarDependenciesInClassloader&gt;true&lt;/addWarDependenciesInClassloader&gt;        
                &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/pluginManagement&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p>where <code>http://xx.xxx.xxx.xxx:8080</code> is the remote server IP.</p>
  
  <p>When I try to deploy via <code>mvn tomcat:deploy</code> I get this error:</p>
  
  <blockquote>
    <p>[ERROR] Failed to execute goal
    org.codehaus.mojo:tomcat-maven-plugin:1.1:deploy (default-cli) on
    project cfwd: Cannot invoke Tomcat manager: Server returned HTTP
    response code: 403 for URL:
    <code>http://localhost:8080/manager/deploy?path=%2Fcfwd&amp;war=</code> -> [Help 1]
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
    execute goal org.codehaus.mojo:tomcat-maven-plugin:1.1:deploy
    (default-cli) on project cfwd: Cannot invoke Tomcat manager</p>
  </blockquote>
  
  <p>where it looks like maven is attempting to deploy to <code>localhost:8080</code> rather than the remote server IP. Any idea?</p>