title: How do I configure maven to access maven central if nexus server is down?
body: <p>I would like to setup my build such that it automatically attempts to download an artifact from maven central iff our nexus server is unreachable.  I have the following in settings.xml and I'm not sure how to change it (if even possible).</p>
  
  <pre><code>&lt;profiles&gt;
  &lt;profile&gt;
   &lt;id&gt;nexus&lt;/id&gt;
   &lt;!--Enable snapshots for the built in central repo to direct --&gt;
   &lt;!--all requests to nexus via the mirror --&gt;
   &lt;repositories&gt;
     &lt;repository&gt;
       &lt;id&gt;central&lt;/id&gt;
       &lt;url&gt;http://mynexus&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;url&gt;http://mynexus&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;/profile&gt;
  &lt;/profiles&gt;
  
  &lt;activeProfiles&gt;
     &lt;activeProfile&gt;nexus&lt;/activeProfile&gt;
  &lt;/activeProfiles&gt;
  </code></pre>