title: Preventing maven downloading maven-metadata & plugin artifacts everytime
body: <p>I am observing whenever I am executing the below command:- </p>
  
  <pre><code>mvn -f pom.xml -Dmaven.repo.local=$MAVEN_REPO -Drat.skip=true -DnoTest=true surefire-report:report
  </code></pre>
  
  <p>maven is downloading <code>maven-metadata</code> &amp; plugin artifacts every time.</p>
  
  <pre><code>Downloading: http://maven.twttr.com/com/neveda/kekin-storage-metrics/0.001-SNAPSHOT/maven-metadata.xml 
  
  ...
  
  Downloading: http://artifactory.kekin.local:XXXX/libs-release/org/
  </code></pre>
  
  <p>I have gone through <a href="https://stackoverflow.com/questions/16421454/why-is-maven-downloading-the-maven-metadata-xml-every-time/16425036#16425036">this</a> answer &amp; my <code>settings.xml</code> looks like below:-</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd" xmlns="http://maven.apache.org/SETTINGS/1.1.0"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
   &lt;profiles&gt;
     &lt;profile&gt;
       &lt;repositories&gt;
         &lt;repository&gt;
           &lt;snapshots&gt;
             &lt;enabled&gt;false&lt;/enabled&gt;
             &lt;updatePolicy&gt;never&lt;/updatePolicy&gt;
           &lt;/snapshots&gt;
           &lt;id&gt;central&lt;/id&gt;
           &lt;name&gt;libs-release&lt;/name&gt;
           &lt;url&gt;http://artifactory.kekin.local:XXXX/libs-release&lt;/url&gt;
         &lt;/repository&gt;
         &lt;repository&gt;
           &lt;snapshots&gt;
            &lt;updatePolicy&gt;never&lt;/updatePolicy&gt;
           &lt;/snapshots&gt; 
           &lt;id&gt;snapshots&lt;/id&gt;
           &lt;name&gt;libs-snapshot&lt;/name&gt;
           &lt;url&gt;http://artifactory.kekin.local:XXXX/libs-snapshot&lt;/url&gt;
         &lt;/repository&gt;
       &lt;/repositories&gt;
       &lt;pluginRepositories&gt;
         &lt;pluginRepository&gt;
           &lt;snapshots&gt;
             &lt;enabled&gt;false&lt;/enabled&gt;
             &lt;updatePolicy&gt;never&lt;/updatePolicy&gt;
           &lt;/snapshots&gt;
           &lt;id&gt;central&lt;/id&gt;
           &lt;name&gt;plugins-release&lt;/name&gt;
           &lt;url&gt;http://artifactory.kekin.local:XXXX/plugins-release&lt;/url&gt;
         &lt;/pluginRepository&gt;
         &lt;pluginRepository&gt;
       &lt;snapshots&gt;
          &lt;updatePolicy&gt;never&lt;/updatePolicy&gt;
       &lt;/snapshots&gt;
           &lt;id&gt;snapshots&lt;/id&gt;
           &lt;name&gt;plugins-snapshot&lt;/name&gt;
           &lt;url&gt;http://artifactory.kekin.local:XXXX/plugins-snapshot&lt;/url&gt;
         &lt;/pluginRepository&gt;
       &lt;/pluginRepositories&gt;
       &lt;id&gt;artifactory&lt;/id&gt;
     &lt;/profile&gt;
   &lt;/profiles&gt;
   &lt;activeProfiles&gt;
     &lt;activeProfile&gt;artifactory&lt;/activeProfile&gt;
   &lt;/activeProfiles&gt;
  &lt;/settings&gt;
  </code></pre>
  
  <p>Environment:-</p>
  
  <ul>
  <li>Maven - 3.5</li>
  <li>OS - 10.12.6</li>
  </ul>