title: Maven offline - problem with mvn-plugins
body: <p>I'm using maven in my project and I need to run the build in a <strong>non-internet-access</strong> machine.</p>
  
  <p>When I test my project build everything  is working, but when I run the build <strong>in a future moment</strong>, the maven try to <strong>update the mvn-plugins</strong> and this <em>sh</em>t* is broking my build.</p>
  
  <p>My config file: <strong><em>settings.xml</em></strong> from mvn.</p>
  
  <pre><code>    &lt;profile&gt;
        &lt;id&gt;blaProfile&lt;/id&gt;
        &lt;repositories&gt;
          &lt;repository&gt;
            &lt;id&gt;blaRepo&lt;/id&gt;
            &lt;url&gt;file://${bla.3rdParty.home}/maven/.m2/repository&lt;/url&gt;
            &lt;layout&gt;default&lt;/layout&gt;
          &lt;/repository&gt;
        &lt;/repositories&gt;
        &lt;pluginRepositories&gt;
          &lt;pluginRepository&gt;
            &lt;id&gt;blaRepo&lt;/id&gt;
            &lt;url&gt;file://${bla.3rdParty.home}/maven/.m2/repository&lt;/url&gt;
            &lt;layout&gt;default&lt;/layout&gt;
          &lt;/pluginRepository&gt;
        &lt;/pluginRepositories&gt;
      &lt;/profile&gt;
  
    &lt;activeProfiles&gt;
      &lt;activeProfile&gt;blaProfile&lt;/activeProfile&gt;
    &lt;/activeProfiles&gt;
  </code></pre>
  
  <p>And I ran my maven is with the params:</p>
  
  <pre><code>mvn -npu -bla.3rdParty.home="$(THE_CORRECT_PATH)" package
  </code></pre>
  
  <p>I saw that maven try to update some mvn-plugins for some time, but the option:</p>
  
  <pre><code>-npu,--no-plugin-updates      Suppress upToDate check for any relevant
  </code></pre>
  
  <p>Should work for this updates.</p>
  
  <p>Well waiting some help on that!</p>
  
  <p>Thanks in advance!
  <hr>
  <strong>UPDATE(1):</strong><br>
  What I'm looking at, is that I could use the setting:</p>
  
  <pre><code>&lt;usePluginRegistry&gt;true&lt;/usePluginRegistry&gt;
  </code></pre>
  
  <p>Inside my <strong>settings.xml</strong> and with this, I'll have a <strong>plugin-registry.xml</strong> inside ${user.home}/.m2 that I can config and force the maven plugins versions.
  <br><br>
  But it's not working! <strong>:(</strong></p>