title: Nexus and Maven build
body: <p>I've installed and configured Nexus3. It's behind a proxy and the HTTP section was configured.</p>
  
  <p>[UPDATED AFTER FIRST COMMENTS]</p>
  
  <p>On my settings.xml</p>
  
  <pre><code>&lt;settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
                        http://maven.apache.org/xsd/settings-1.0.0.xsd"&gt;
    &lt;localRepository/&gt;
    &lt;interactiveMode/&gt;
    &lt;usePluginRegistry/&gt;
    &lt;offline/&gt;
    &lt;pluginGroups/&gt;
    &lt;servers/&gt;
    &lt;proxies/&gt;
    &lt;mirrors&gt;
      &lt;mirror&gt;
        &lt;id&gt;nexus&lt;/id&gt;
        &lt;mirrorOf&gt;*&lt;/mirrorOf&gt;
        &lt;url&gt;http://nexus.company.it:8081/repository/maven-central/&lt;/url&gt;
      &lt;/mirror&gt;
    &lt;/mirrors&gt; 
  &lt;/settings&gt;
  </code></pre>
  
  <p>When I try to run <code>mvn clean</code> I get</p>
  
  <pre><code> [INFO] Scanning for projects...
   [INFO]                                                                         
   [INFO] ------------------------------------------------------------------------
   [INFO] Building xxxx Maven Webapp 0.0.1-SNAPSHOT
   [INFO] ------------------------------------------------------------------------
   [WARNING] The POM for org.apache.maven.plugins:maven-clean-plugin:jar:2.5 is missing, no dependency information available
   [INFO] ------------------------------------------------------------------------
   [INFO] BUILD FAILURE
   [INFO] ------------------------------------------------------------------------
   [INFO] Total time: 0.205 s
   [INFO] Finished at: 2016-05-31T10:40:58+02:00
   [INFO] Final Memory: 13M/479M
   [INFO] ------------------------------------------------------------------------
   [ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failure to find org.apache.maven.plugins:maven-clean-plugin:jar:2.5 in http://nexus.company.it:8081/repository/maven-central/ was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced -&gt; [Help 1]
   [ERROR] 
   [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
   [ERROR] Re-run Maven using the -X switch to enable full debug logging.
   [ERROR] 
   [ERROR] For more information about the errors and possible solutions, please read the following articles:
   [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
  </code></pre>
  
  <p>If I browse <a href="http://nexus.company.it:8081/repository/maven-central/" rel="nofollow">http://nexus.company.it:8081/repository/maven-central/</a></p>
  
  <pre><code> Nexus Repository Manager
   OSS 3.0.0-03    
   This maven2 proxy repository is not directly browseable at this URL.
  </code></pre>
  
  <p>If I browse <a href="http://nexus.company.it:8081/#browse/browse/components:maven-central" rel="nofollow">http://nexus.company.it:8081/#browse/browse/components:maven-central</a>, the repository is empty</p>
  
  <p>Could someone help me to configure my nexus as proxy for maven central?</p>
  
  <p>R</p>