Ivy resolve latest.integration feature w/ Artifactory

View: New views
1 Messages — Rating Filter:   Alert me  

Ivy resolve latest.integration feature w/ Artifactory

by topher1120 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,
I have a problem/question about Artifactory and being able to resolve versions through Ivy.
Here's the general gist of my set up:  I have two projects, say providerProject and consumerProject where consumerProject relies on providerProject.  I have a CI server that publishes snapshots of providerProject to Artifactory using the revision pattern "1.0-buildNum" where buildNum comes from the CI and would like to use the latest snapshot in consumerProject.  

In Ivy, they provide for that using the "latest.integration" value in the revision of the declared dependency, however this fails.  In looking at the log output of Ivy, it appears Ivy tries two things to resolve the most recent snapshot.  The first thing it does is look for a maven-metadata.xml file in the parent directory of project, which does not currently exist.  The other is that it attempts to list the parent directory and parse through the result to find the available versions.  In the latter case, Artifactory will attempt redirect to /providerProject/login.html, which does not exist and returns a 404 rather than returning a list of the directory, even when passing credentials (confirmed this using cUrl).  
Is there a way to enable Artifactory to list the contents of an arbitrary directory within Artifactory via command tools (like cUrl) when passing correct credentials?  Failing that, does someone know what Ant or Ivy task I can use to publish a maven-metadata.xml file to the parent directory?
I'm using Artifactory 2.0.6

Thanks,
topher