title: Private Maven Repository in Closed Network
body: <p>I am in a closed network, do not have access to <a href="http://repo.maven.apache.org" rel="nofollow noreferrer">http://repo.maven.apache.org</a> We set up a Nexus server and we download all of our .m2's on a publicly accessible computer, burn to disk, then upload to our Nexus server (inefficient but necessary)</p>
  
  <p>Currently I am trying to set up the system to only use my nexus server, currently it tries to go to <a href="http://repo.maven.apache.org" rel="nofollow noreferrer">http://repo.maven.apache.org</a>
   (assuming  is set to false) If I have  set to true, it does not even attempt to go to my private repo. Basically, I just need my Maven to only look at my nexus instance, not even attempt to go to <a href="http://repo.maven.apache.org" rel="nofollow noreferrer">http://repo.maven.apache.org</a></p>
  
  <p>Here are portions of my settings.xml and pom.xml files:</p>
  
  <pre><code>&lt;!-- Settings.xml in my .m2 directory --&gt;
  &lt;offline&gt;true&lt;/offline&gt;
  &lt;servers&gt;
      &lt;server&gt;
          &lt;id&gt;mynexus&lt;/id&gt;
          &lt;username&gt;xxx&lt;/username&gt;
          &lt;password&gt;xxx&lt;/username&gt;
      &lt;/server&gt;
      &lt;server&gt;
          &lt;id&gt;mynexusplugins&lt;/id&gt;
          &lt;username&gt;xxx&lt;/username&gt;
          &lt;password&gt;xxx&lt;/username&gt;
      &lt;/server&gt;
  &lt;/servers&gt;
  
  
  &lt;!-- pom.xml --&gt;
  &lt;repositories&gt;
      &lt;repository&gt;
          &lt;id&gt;mynexus&lt;/id&gt;
          &lt;url&gt;http://192.168.100.4:8081/....&lt;/url&gt;
      &lt;/repository&gt;
  &lt;/repository&gt;
  
  &lt;pluginRepositories&gt;
      &lt;pluginRepository&gt;
          &lt;id&gt;mynexusplugins&lt;/id&gt;
          &lt;url&gt;http://192.168.100.4:8081/....&lt;/url&gt;
      &lt;/pluginRepository&gt;
  &lt;/pluginRepository&gt;
  </code></pre>