title: tomcat7 deployment using tomcat7 maven plugin not working
body: <p>I am trying to use the eclipse maven plugin but when using the command:</p>
  
  <p>tomcat7:deploy I am getting build successful with lots of html output explaining about adding users, I have added the user to tomcat with only manager-script.
  and added that to the user of settings.xml in maven.</p>
  
  <p>What am I doing wrong?</p>
  
  <p>From the tomcat logs</p>
  
  <pre><code>127.0.0.1 - - [29/Aug/2012:23:50:34 +0100] "PUT /manager/text/deploy?path=%2F HTTP/1.1" 401 2486
  </code></pre>
  
  <p>my cofigurations</p>
  
  <p>pom.xml</p>
  
  <pre><code>        &lt;plugins&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-SNAPSHOT&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;server&gt;tomcat_7&lt;/server&gt;
                  &lt;port&gt;8180&lt;/port&gt;
                  &lt;path&gt;/&lt;/path&gt;
                  &lt;url&gt;http://localhost:8180/manager/text&lt;/url&gt;
              &lt;/configuration&gt;
            &lt;/plugin&gt;
      &lt;/plugins&gt;
  </code></pre>
  
  <p>settings.xml</p>
  
  <pre><code>&lt;server&gt;
    &lt;id&gt;tomcat_7&lt;/id&gt;
    &lt;username&gt;admin&lt;/username&gt;
    &lt;password&gt;secret&lt;/password&gt;
  &lt;/server&gt;
  </code></pre>
  
  <p>tomcat-users.xml</p>
  
  <pre><code>&lt;user username="admin" password="secret" roles="manager-script" /&gt;
  </code></pre>