Sunday, April 20, 2014

how to mirror repository on artifactory

If you automatically generate settings.xml file on artifactory server.Mirror part looks like below

<mirrors>
    <mirror>
      <mirrorOf>*</mirrorOf>
      <name>repo</name>
      <url>http://localhost:5555/artifactory/repo</url>
      <id>repo</id>
    </mirror>
  </mirrors>


Artifactory repositories use "**/*" syntax. You should replace mirror settings like below

  <mirrors>
    <mirror>
      <mirirrorOf>**/*</mirrorOf>
      <name>repo</name>
      <url>http://localhost:5555/artifactory/repo</url>
      <id>repo</id>
    </mirror>
  </mirrors>

No comments:

Post a Comment