title: How to force Sonatype Nexus to update?
body: <p>I am trying to use onejar-maven-plugin in my pom.xml:</p>
  
  <pre><code>&lt;plugin&gt;
      &lt;groupId&gt;org.dstovall&lt;/groupId&gt;
      &lt;artifactId&gt;onejar-maven-plugin&lt;/artifactId&gt;
      &lt;version&gt;1.4.4&lt;/version&gt;
      &lt;executions&gt;
          &lt;execution&gt;
              &lt;configuration&gt;
                  &lt;mainClass&gt;com.exmaple.myproj.MpPort_MpSoapPort_Client&lt;/mainClass&gt;
                  &lt;onejarVersion&gt;0.97&lt;/onejarVersion&gt;
                  &lt;attachToBuild&gt;true&lt;/attachToBuild&gt;
                  &lt;classifier&gt;onejar&lt;/classifier&gt;
              &lt;/configuration&gt;
              &lt;goals&gt;
                  &lt;goal&gt;one-jar&lt;/goal&gt;
              &lt;/goals&gt;
          &lt;/execution&gt;
      &lt;/executions&gt;
  &lt;/plugin&gt;
  
  &lt;pluginRepositories&gt;
      &lt;pluginRepository&gt;
          &lt;id&gt;onejar-maven-plugin.googlecode.com&lt;/id&gt;
          &lt;url&gt;http://onejar-maven-plugin.googlecode.com/svn/mavenrepo&lt;/url&gt;
      &lt;/pluginRepository&gt;
  &lt;/pluginRepositories&gt;
  </code></pre>
  
  <p>but for some reason, attempting to build it via the Eclipse Maven plugin (Maven install) results in BUILD ERROR:</p>
  
  <pre><code>Downloading: https://mynexus.example.com/nexus/content/repositories/central/org/dstovall/onejar-maven-plugin/1.4.4/onejar-maven-plugin-1.4.4.pom
  [INFO] Unable to find resource 'org.dstovall:onejar-maven-plugin:pom:1.4.4' in repository onejar-maven-plugin.googlecode.com (http://onejar-maven-plugin.googlecode.com/svn/mavenrepo)
  Downloading: https://mynexus.example.com/nexus/content/repositories/central/org/dstovall/onejar-maven-plugin/1.4.4/onejar-maven-plugin-1.4.4.pom
  [INFO] Unable to find resource 'org.dstovall:onejar-maven-plugin:pom:1.4.4' in repository central (http://repo1.maven.org/maven2)
  Downloading: https://mynexus.example.com/nexus/content/repositories/central/org/dstovall/onejar-maven-plugin/1.4.4/onejar-maven-plugin-1.4.4.pom
  [INFO] Unable to find resource 'org.dstovall:onejar-maven-plugin:pom:1.4.4' in repository central (http://repo1.maven.org/maven2)
  [INFO] ------------------------------------------------------------------------
  [ERROR] BUILD ERROR
  [INFO] ------------------------------------------------------------------------
  [INFO] Error building POM (may not be this project's POM).
  
  
  Project ID: org.dstovall:onejar-maven-plugin
  
  Reason: POM 'org.dstovall:onejar-maven-plugin' not found in repository: Unable to download the artifact from any repository
  
    org.dstovall:onejar-maven-plugin:pom:1.4.4
  
  from the specified remote repositories:
    Nexus (https://mynexus.example.com/nexus/content/repositories/central)
  
   for project org.dstovall:onejar-maven-plugin
  </code></pre>
  
  <p>So I manually downloaded <a href="http://search.maven.org/remotecontent?filepath=com/jolira/onejar-maven-plugin/1.4.4/onejar-maven-plugin-1.4.4.jar" rel="noreferrer">onejar-maven-plugin.jar</a> and install it through the command line and I seem to be getting a similar error:</p>
  
  <pre><code>C:\Users\daniel\myproj&gt;mvn install:install-file -Dfile=onejar-maven-plugin-1.4.4.jar -DgroupId=com.jolira -DartifactId=onejar-maven-plugin -Dversion=1.4.4 -Dpackaging=jar
  [INFO] Scanning for projects...
  Downloading: https://mynexus.example.com/nexus/content/repositories/central/org/dstovall/onejar-maven-plugin/1.4.4/onejar-maven-plugin-1.4.4.pom
  [INFO] Unable to find resource 'org.dstovall:onejar-maven-plugin:pom:1.4.4' in repository onejar-maven-plugin.googlecode.com (http://onejar-maven-plugin.googlecode.com/svn/mavenrepo)
  Downloading: https://mynexus.example.com/nexus/content/repositories/central/org/dstovall/onejar-maven-plugin/1.4.4/onejar-maven-plugin-1.4.4.pom
  [INFO] Unable to find resource 'org.dstovall:onejar-maven-plugin:pom:1.4.4' in repository central (http://repo1.maven.org/maven2)
  Downloading: https://mynexus.example.com/nexus/content/repositories/central/org/dstovall/onejar-maven-plugin/1.4.4/onejar-maven-plugin-1.4.4.pom
  [INFO] Unable to find resource 'org.dstovall:onejar-maven-plugin:pom:1.4.4' in repository central (http://repo1.maven.org/maven2)
  [INFO] ------------------------------------------------------------------------
  [ERROR] BUILD ERROR
  [INFO] ------------------------------------------------------------------------
  [INFO] Error building POM (may not be this project's POM).
  
  
  Project ID: org.dstovall:onejar-maven-plugin
  
  Reason: POM 'org.dstovall:onejar-maven-plugin' not found in repository: Unable to download the artifact from any repository
  
    org.dstovall:onejar-maven-plugin:pom:1.4.4
  
  from the specified remote repositories:
    Nexus (https://mynexus.example.com/nexus/content/repositories/central)
  
   for project org.dstovall:onejar-maven-plugin
  </code></pre>
  
  <p>My understanding is that because we have a Nexus mirror which doesn't contain that particular artifact, things get confused.</p>
  
  <p>So I tried following the instructions on <a href="https://groups.google.com/forum/#!topic/javawug/HLBdWgBYIyQ" rel="noreferrer">How to force Sonatype Nexus Regenerate / Reindex its Metadata</a> but <strong>the “Browse Index” tab has no such context menu!</strong> on our Sonatype Nexus.</p>
  
  <p><img src="https://i.stack.imgur.com/43STn.png" alt="enter image description here"></p>
  
  <p>I read <a href="https://stackoverflow.com/a/2979518/1864054">here</a> that "Nexus only caches artifacts that clients have requested. So you need to set up your project poms to request the proper versions". But <strong>that's exactly what I have been doing</strong> -- without any change in the outcome.</p>
  
  <p>How do I get out of this "chicken &amp; egg" situation and get this onejar-maven-plugin ver. 1.4.4 into my Nexus mirror?</p>
  
  <p>(Alternatively, how do I get it into my local .m2 cache?)</p>