title: Local Nexus repository pulls everything but the main jar through POM dependency
body: <p>Our local Nexus repository seems inconsistent in downloading dependencies. It will pull down the pom, and even test jars etc... but not the main actual jar I need! So when I Browse Indexes on our Central (proxy) repository for drools-compiler: org/drools/drools-compiler I see the following files:  </p>
  
  <ul>
  <li>drools-compiler-6.2.0.CR4-javadoc.jar</li>
  <li>drools-compiler-6.2.0.CR4-sources.jar</li>
  <li>drools-compiler-6.2.0.CR4-test-sources.jar  </li>
  <li>drools-compiler-6.2.0.CR4-tests.jar  </li>
  <li>drools-compiler-6.2.0.CR4.pom  </li>
  </ul>
  
  <p>the missing crucial file being:<br>
  drools-compiler-6.2.0.CR4.jar</p>
  
  <p>When I Browse Remote, everything is there including the crucial jar.</p>
  
  <p>When I run <code>mvn clean install</code> (through my IDE STS 3.6.3), I end up seeing the following error message:</p>
  
  <blockquote>
    <p><em>Failed to execute goal on project :<br>
    Could not resolve dependencies for project :<br>
    Failed to collect dependencies at org.drools:drools-compiler:jar:6.2.0.CR4:<br>
    Failed to read artifact descriptor for org.drools:drools-compiler:jar:6.2.0.CR4:<br>
    Failure to find org.jboss.dashboard-builder:dashboard-builder-bom:pom:6.2.0.CR4 in  was cached in the local repository,  resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced</em></p>
  </blockquote>
  
  <p>There are plenty of other dependencies that have been pulled down in the past, the repository has been there for a long time (I didn't set it up, just dealing now!)... the JBoss drools isn't the only time I see this, it is just my most pressing concern now.</p>
  
  <p>I have googled around, some posts seem relevant, (this <a href="https://stackoverflow.com/questions/18470553/nexus-only-downloading-poms-from-central-repository-rather-than-jars?rq=1">one</a> is almost identical but unsolved) but can't seem to find a resolution. Remote index downloads have been setup in our local Jboss and Central proxies. I have tried clearing the cache, rebuilding the indexes, adding a "-U" to my mvn command... but to no avail. The only time I can get my project to build is when I totally bypass my local repository (empty .m2/settings.xml) and pull straight from Central or JBoss public. Does anyone have a clue on what might be happening wrong here?</p>
  
  <p>UPDATE:
  Further detail which may help:
  The repository 'nexus' defined as a mirror in my settingx.xml (below) is a Group Repository, consisting of (in this order):<br>
  * Central (<a href="http://repo1.maven.org/maven2/" rel="nofollow noreferrer">http://repo1.maven.org/maven2/</a>)<br>
  * JBoss public (<a href="http://repository.jboss.org/nexus/content/groups/public/" rel="nofollow noreferrer">http://repository.jboss.org/nexus/content/groups/public/</a>)<br>
  * Repo of our own uploaded local jars...  </p>
  
  <p>Following @Steve's advice, I dug deeper than the missing drools-compiler files and found that org.jboss.dashboard-builder.dashboard-builder-bom... didn't exist in Central, interestingly, but it did exist in JBoss. My understanding is that by using the Group of Repos, it should query the next repo down in the list if it doesn't find something, right? Any advice most appreciated!</p>
  
  <p>settings.xml:</p>
  
  <pre class="lang-xml prettyprint-override"><code>  &lt;mirrors&gt;
      &lt;mirror&gt;
        &lt;id&gt;nexus&lt;/id&gt;
        &lt;mirrorOf&gt;*&lt;/mirrorOf&gt;
        &lt;url&gt;(local server)/nexus/content/groups/public&lt;/url&gt;
      &lt;/mirror&gt;    
    &lt;/mirrors&gt;
    &lt;profiles&gt;
      &lt;profile&gt;
        &lt;id&gt;nexus&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;/repositories&gt;
       &lt;pluginRepositories&gt;
          &lt;pluginRepository&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;/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>
  
  <p>POM.xml</p>
  
  
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;groupId&gt;com.mypackage.here&lt;/groupId&gt;
      &lt;artifactId&gt;TaskLaunchManager&lt;/artifactId&gt;
      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;name&gt;TaskLaunchManager&lt;/name&gt;
  
      &lt;properties&gt;
          &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
          &lt;app.name&gt;task-launch-manager&lt;/app.name&gt;
          &lt;log4j.version&gt;1.2.16&lt;/log4j.version&gt;
          &lt;junit.version&gt;4.8.1&lt;/junit.version&gt;
          &lt;drools.version&gt;6.2.0.CR4&lt;/drools.version&gt;
          &lt;slf4j.version&gt;1.7.9&lt;/slf4j.version&gt;
      &lt;/properties&gt;
  
      &lt;!-- Drools Maven BOM (Bill of Materials) --&gt;
      &lt;dependencyManagement&gt;
          &lt;dependencies&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.drools&lt;/groupId&gt;
                  &lt;artifactId&gt;drools-bom&lt;/artifactId&gt;
                  &lt;type&gt;pom&lt;/type&gt;
                  &lt;version&gt;${drools.version}&lt;/version&gt;
                  &lt;scope&gt;import&lt;/scope&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.kie&lt;/groupId&gt;
                  &lt;artifactId&gt;kie-bom&lt;/artifactId&gt;
                  &lt;type&gt;pom&lt;/type&gt;
                  &lt;version&gt;${drools.version}&lt;/version&gt;
                  &lt;scope&gt;import&lt;/scope&gt;
              &lt;/dependency&gt;
          &lt;/dependencies&gt;
      &lt;/dependencyManagement&gt;
  
      &lt;!-- Required dependencies --&gt;
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;log4j&lt;/groupId&gt;
              &lt;artifactId&gt;log4j&lt;/artifactId&gt;
              &lt;version&gt;${log4j.version}&lt;/version&gt;
              &lt;scope&gt;compile&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
          &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
              &lt;artifactId&gt;slf4j-log4j12&lt;/artifactId&gt;
              &lt;version&gt;${slf4j.version}&lt;/version&gt;
              &lt;scope&gt;compile&lt;/scope&gt;
          &lt;/dependency&gt;       
          &lt;dependency&gt;
              &lt;groupId&gt;junit&lt;/groupId&gt;
              &lt;artifactId&gt;junit&lt;/artifactId&gt;
              &lt;version&gt;${junit.version}&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.drools&lt;/groupId&gt;
              &lt;artifactId&gt;drools-compiler&lt;/artifactId&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.kie&lt;/groupId&gt;
              &lt;artifactId&gt;kie-api&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.kie&lt;/groupId&gt;
              &lt;artifactId&gt;kie-internal&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.drools&lt;/groupId&gt;
              &lt;artifactId&gt;drools-core&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.drools&lt;/groupId&gt;
              &lt;artifactId&gt;drools-decisiontables&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
      &lt;/dependencies&gt;
  
  &lt;/project&gt;
  </code></pre>