title: How to easily swap Maven settings profiles?
body: <p>At my company we use a Nexus server to fetch the artifacts. Which is fine. But sometimes I want to use Maven at home too, where I cannot access the company Nexus. Is there an easy way to swap Maven settings profiles? And is it easily swappable with <code>m2eclipse</code>? </p>
  
  <p>At the moment I'm using the following settings.xml:</p>
  
  <pre><code>&lt;settings
      xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"&gt;
        &lt;servers&gt;  
            &lt;server&gt;  
                &lt;id&gt;central&lt;/id&gt;  
                &lt;username&gt;company-user&lt;/username&gt;  
                &lt;password&gt;company-user&lt;/password&gt;  
            &lt;/server&gt;  
            &lt;server&gt;  
                &lt;id&gt;mirror&lt;/id&gt;  
                &lt;username&gt;company-user&lt;/username&gt;  
                &lt;password&gt;company-user&lt;/password&gt;  
            &lt;/server&gt;  
        &lt;/servers&gt;  
        &lt;mirrors&gt;  
          &lt;mirror&gt;  
              &lt;id&gt;mirror&lt;/id&gt;  
              &lt;url&gt;https://url.to.company.nexus&lt;/url&gt;  
              &lt;mirrorOf&gt;*&lt;/mirrorOf&gt;  
          &lt;/mirror&gt;  
        &lt;/mirrors&gt;  
        &lt;profiles&gt;  
            &lt;profile&gt;  
                &lt;id&gt;defaultprofile&lt;/id&gt;  
                &lt;repositories&gt;  
                    &lt;repository&gt;  
                        &lt;id&gt;central&lt;/id&gt;  
                      &lt;name&gt;Repository for Company artifacts&lt;/name&gt;  
                        &lt;url&gt;https://url.to.company.nexus&lt;/url&gt;  
                        &lt;releases&gt;  
                            &lt;enabled&gt;true&lt;/enabled&gt;  
                      &lt;/releases&gt;  
                        &lt;snapshots&gt;  
                            &lt;enabled&gt;true&lt;/enabled&gt;  
                      &lt;/snapshots&gt;  
                    &lt;/repository&gt;  
                &lt;/repositories&gt;  
                &lt;pluginRepositories&gt;  
                    &lt;pluginRepository&gt;  
                        &lt;id&gt;central&lt;/id&gt;  
                      &lt;name&gt;Repository for Company artifacts&lt;/name&gt;  
                        &lt;url&gt;https://url.to.company.nexus&lt;/url&gt;  
                        &lt;releases&gt;  
                            &lt;enabled&gt;true&lt;/enabled&gt;  
                      &lt;/releases&gt;  
                        &lt;snapshots&gt;  
                            &lt;enabled&gt;true&lt;/enabled&gt;  
                      &lt;/snapshots&gt;  
                    &lt;/pluginRepository&gt;  
                &lt;/pluginRepositories&gt;  
                &lt;properties&gt;  
                    &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;  
                &lt;/properties&gt;  
                &lt;activation&gt;  
                    &lt;activeByDefault&gt;true&lt;/activeByDefault&gt;  
                &lt;/activation&gt;  
            &lt;/profile&gt;  
        &lt;/profiles&gt;  
        &lt;activeProfiles&gt;  
            &lt;activeProfile&gt;defaultprofile&lt;/activeProfile&gt;  
        &lt;/activeProfiles&gt;  
  &lt;/settings&gt;
  </code></pre>
  
  <p>I know i'll probably have to add a new profile to <code>http://repo1.maven.org/</code>, but how to make sure the existing <code>mirrors</code> will not complain with timeouts?</p>