title: Setting a single server credentials in Maven for multiple repositories
body: <p>Can I have multiple repositories in Maven settings.xml with a single server credentials?</p>
  
  <p>We're using Maven 3.0.4 to deploy artifacts to Nexus pro version 2.2.1</p>
  
  <p>We have multiple repositories on the same server, and a user uses the same credentials to access all these repositories.</p>
  
  <p>The settings.xml multiple repositories with the same credentials:</p>
  
  <pre><code>&lt;repositories&gt;
  &lt;repository&gt;
     &lt;id&gt;Staging-group&lt;/id&gt;
     &lt;url&gt;http://server/nexus/content/groups/Staging-group&lt;/url&gt;
  &lt;repository&gt;
     &lt;id&gt;RELEASES&lt;/id&gt;
     &lt;url&gt;http://server/nexus/content/repositories/RELEASES&lt;/url&gt;
  &lt;/repository&gt;
  &lt;repository&gt;
     &lt;id&gt;INTERNALS&lt;/id&gt;
     &lt;url&gt;http://server/nexus/content/repositories/INTERNALS&lt;/url&gt;
  &lt;/repository&gt;
  &lt;repository&gt;
     &lt;id&gt;SNAPSHOTS&lt;/id&gt;
     &lt;url&gt;http://server/nexus/content/repositories/SNAPSHOTS&lt;/url&gt;
  &lt;/repository&gt;
  &lt;/repositories&gt;
  .....
  &lt;servers&gt;
  &lt;server&gt;
     &lt;id&gt;Staging-group&lt;/id&gt;
     &lt;username&gt;user&lt;/username&gt;
     &lt;password&gt;password&lt;/password&gt;
  &lt;/server&gt;
  &lt;server&gt;
     &lt;id&gt;RELEASES&lt;/id&gt;
     &lt;username&gt;user&lt;/username&gt;
     &lt;password&gt;password&lt;/password&gt;
  &lt;/server&gt;
  &lt;server&gt;
     &lt;id&gt;SNAPSHOTS&lt;/id&gt;
     &lt;username&gt;user&lt;/username&gt;
     &lt;password&gt;password&lt;/password&gt;
  &lt;/server&gt;
  &lt;server&gt;
     &lt;id&gt;INTERNALS&lt;/id&gt;
     &lt;username&gt;user&lt;/username&gt;
     &lt;password&gt;password&lt;/password&gt;
  &lt;/server&gt;
  &lt;/servers&gt;
  </code></pre>
  
  <p>Nexus uses Active Directory authentication. So every time a user changes his or her Windows password, they need to change all four entries in the <code>settings.xml</code> file</p>
  
  <p>Is there a way to declare the credentials once for all the repositories?</p>
  
  <p>Thanks,
  Eyal</p>