title: Use only local maven repository for needed jars
body: <p>Is it possible to first download jars needed to orgnisation local maven repository and then to machine repository to use.</p>
  
  <p>my scenario is:</p>
  
  <p>1.My project is using abc.jar and it is not exist on my local repository then I want it to download from public repository to orgnisation local maven repository first.</p>
  
  <p>2.And then my project will use this abc.jar from orgnisation local maven repository.</p>
  
  <p>is it possible or I want to deploy manually each jar to orgnisation local maven repository.</p>
  
  <p>Because right now if my project need any jar then it finds it on local maven repository if not found then download it directly to my local machine ~/.m2/repository folder. I want to download first to orgnisation local repository and then my local machine.
  Now my Settings.xml look like:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &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;servers&gt;
  
    &lt;server&gt;
        &lt;id&gt;local.orgnisation.repo&lt;/id&gt;
        &lt;username&gt;pallavi&lt;/username&gt;
        &lt;password&gt;pallavi&lt;/password&gt;
      &lt;/server&gt;
      &lt;/servers&gt;
  
  &lt;mirrors&gt;
      &lt;mirror&gt;
        &lt;id&gt;local.orgnisation.repo&lt;/id&gt;
        &lt;name&gt;Local repository&lt;/name&gt;
        &lt;url&gt;http://local.orgnisation.repo/artifactory/repo&lt;/url&gt;
        &lt;mirrorOf&gt;central&lt;/mirrorOf&gt;
      &lt;/mirror&gt;
    &lt;/mirrors&gt;
  
  &lt;!--&lt;profiles&gt;
      &lt;profile&gt;
        &lt;id&gt;default&lt;/id&gt;
        &lt;repositories&gt;
            &lt;repository&gt;
                &lt;id&gt;local.orgnisation.repo&lt;/id&gt;
                &lt;url&gt;http://local.orgnisation.repo/artifactory/repo&lt;/url&gt;
            &lt;/repository&gt;
        &lt;/repositories&gt;
          &lt;/profile&gt;
    &lt;/profiles&gt;--&gt;
      &lt;activeProfiles&gt;
      &lt;activeProfile&gt;default&lt;/activeProfile&gt;
    &lt;/activeProfiles&gt;
  
  &lt;/settings&gt;
  </code></pre>
  
  <p>I am using artifactory repository manager.  Any help will be appreciated.</p>
  
  <p>Thanks, </p>