Hi!

Some background first. I have an artifactory instance running in the another
city that have some problems with artifacts deploying (sometimes it returns
500 error and fails our automated builds). 
I decided to bypass this problem by installing another local instace of the
artifactory to store SNAPSHOTs. 

Here is the description of the problem that i don't know how to solve:
1. I created one local repository with "handle snapshots" checkbox enabled
and with Unique in "Maven Snapshot Version Behavior".
2. Created remote repository to point to the main artifactory instance, also
with handle snapshots enabled. The remote instance has Nonunique version
behavior.
3. Also I created virtual repository that has both local and remote
repositories in it.
4. I deployed new artifact in local repository. Same artifacts exists in the
remote repository.
5. When maven tries to resolve the artifact, it gets maven-metadata.xml from
the remote repository (it seems):

Downloading:
http://192.168.6.26:8090/artifactory/snapshots-only/com/Blablabla/SNAPSHOT/maven-metadata.xml
Downloaded:
http://192.168.6.26:8090/artifactory/snapshots-only/com/Blablabla/SNAPSHOT/maven-metadata.xml
(313 B at 0.2 KB/sec)
Downloading:
http://192.168.6.26:8090/artifactory/snapshots-only/com/Blablabla/SNAPSHOT/Blablabla-SNAPSHOT.pom
[WARNING] The POM for com:Blablabla:jar:SNAPSHOT is missing, no dependency
information available
Downloading:
http://192.168.6.26:8090/artifactory/snapshots-only/com/Blablabla/SNAPSHOT/Blablabla-SNAPSHOT.jar

maven-metadata-snapshots.xml in the maven repository in profile has content:
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
  <groupId>com</groupId>
  <artifactId>Blablabla</artifactId>
  <version>SNAPSHOT</version>
  <versioning>
    <snapshot>
      <buildNumber>10</buildNumber>
    </snapshot>
    <lastUpdated>20110427100008</lastUpdated>
  </versioning>
</metadata>

6. If i remove remote repository from the virtual repository, i get correct
resolution of the artifact:

Downloading:
http://192.168.6.26:8090/artifactory/snapshots-only/com/Blablabla/SNAPSHOT/maven-metadata.xml
Downloaded:
http://192.168.6.26:8090/artifactory/snapshots-only/com/Blablabla/SNAPSHOT/maven-metadata.xml
(357 B at 0.1 KB/sec)
Downloading:
http://192.168.6.26:8090/artifactory/snapshots-only/com/Blablabla/SNAPSHOT/Blablabla-20110427.100008-2.pom
Downloaded:
http://192.168.6.26:8090/artifactory/snapshots-only/com/Blablabla/SNAPSHOT/Blablabla-20110427.100008-2.pom
(5 KB at 35.2 KB/sec)
Downloading:
http://192.168.6.26:8090/artifactory/snapshots-only/com/Blablabla/SNAPSHOT/Blablabla-20110427.100008-2.jar
Downloaded:
http://192.168.6.26:8090/artifactory/snapshots-only/com/Blablabla/SNAPSHOT/Blablabla-20110427.100008-2.jar
(427 KB at 2904.2 KB/sec)

maven-metadata-snapshots.xml in the maven repository in profile has content:
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
  <groupId>com</groupId>
  <artifactId>Blablabla</artifactId>
  <version>SNAPSHOT</version>
  <versioning>
    <snapshot>
      <timestamp>20110427.100008</timestamp>
      <buildNumber>2</buildNumber>
    </snapshot>
    <lastUpdated>20110427100008</lastUpdated>
  </versioning>
</metadata>

What am I doing wrong? Documentation says that resolution order always
starts with local repositories. Is this a bug?

--
View this message in context: 
http://forums.jfrog.org/snapshot-resolution-order-tp6309265p6309265.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to