title: Add tomcat server credentials to project's pom and not settings.xml
body: <p>I want to be able to build and deploy my java webapp on my local development installation of tomcat without adding the tomcat user's credentials to maven's settings.xml on every development computer. <a href="https://stackoverflow.com/a/6553020/2577508">Every article</a> I've found requires modifying settings.xml.</p>
  
  <p>I've attempted adding the  tag to my POM file and it doesn't seem to be allowed since I get errors about a "malformed POM" when I run "maven compile".</p>
  
  <pre><code>&lt;project...&gt;
      ...
      &lt;servers&gt;
          &lt;server&gt;
              &lt;id&gt;localhost&lt;/id&gt;
              &lt;username&gt;admin&lt;/username&gt;
              &lt;password&gt;password&lt;/password&gt;
          &lt;/server&gt;
      &lt;/servers&gt;
      &lt;dependencies&gt;
      ...
      &lt;/dependencies&gt;
  &lt;/project&gt;
  </code></pre>