title: Configure multiple repository, Custom Repo, Maven Central and Pentaho together
body: <p>I have used Sonatype Nexus repository management and my requirements are as follows:</p>
  
  <ol>
  <li>First of all my Custom Nexus Repo should come into picture, maven should first check there</li>
  <li>If some jars are not there then it should go to Maven Central</li>
  <li>For those jars that are not even in  Maven Central like(Eigenbase-XOM) it should go to PentaHo</li>
  </ol>
  
  <p>But things are not working for me, EigenBase XOM is missing artifact error is shown, as it is not getting downloaded</p>
  
  <p>It would be a great help if anybody can help. Please let me know where I am wrong?</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd" xmlns="http://maven.apache.org/SETTINGS/1.1.0"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
   &lt;mirrors&gt;
      &lt;mirror&gt;
        &lt;id&gt;MyRepo&lt;/id&gt;
        &lt;mirrorOf&gt;*&lt;/mirrorOf&gt;
        &lt;url&gt;http://localhost:port/nexus/content/groups/public&lt;/url&gt;
      &lt;/mirror&gt;
    &lt;/mirrors&gt;
    &lt;profiles&gt;
     &lt;profile&gt;
        &lt;id&gt;MyRepo&lt;/id&gt;
       &lt;repositories&gt;
          &lt;repository&gt;
            &lt;id&gt;central&lt;/id&gt;
            &lt;url&gt;http://central&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;repository&gt;
          &lt;id&gt;pentaho-releases&lt;/id&gt;
          &lt;url&gt;http://repository.pentaho.org/artifactory/repo/&lt;/url&gt;
                 &lt;/repository&gt;
       &lt;/repositories&gt;
           &lt;pluginRepositories&gt;
          &lt;pluginRepository&gt;
            &lt;id&gt;central&lt;/id&gt;
             &lt;url&gt;http://central&lt;/url&gt;
              &lt;/pluginRepository&gt;
        &lt;/pluginRepositories&gt;
  &lt;/profile&gt;
    &lt;activeProfiles&gt;
      &lt;activeProfile&gt;MyRepo&lt;/activeProfile&gt;
    &lt;/activeProfiles&gt;
  &lt;/settings&gt;
  </code></pre>