ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From astr...@facets-tech.net
Subject URL resolver and Maven2 snapshot issues
Date Thu, 05 Jun 2008 18:37:30 GMT
I see that you've implemented code to handle maven2 snapshots where  
maven stores the snapshot with timestamps instead of the "SNAPSHOT"  
moniker.  This is all described in JIRA:

http://issues.apache.org/jira/browse/IVY-501

You fixed the Ibiblio resolver to handle this case, but that resolver  
isn't exactly friendly to being extended, and within corporate  
repositories like the one I'm working with now, we have to use the URL  
resolver to access the Maven repos.  Is there a way to get the URL  
resolver to handle the Maven-snapshot-timestamp issue?

As an example, we have a directory in our maven repo that is:

com/gsicommerce/webstore/webstore_oracle/8.9-SNAPSHOT

... which has the content:

Jun  4 18:53 maven-metadata.xml
Jun  4 18:53 maven-metadata.xml.md5
Jun  4 18:53 maven-metadata.xml.sha1
Jun  4 18:53 webstore_oracle-8.9-20080604.225159-7.jar
Jun  4 18:53 webstore_oracle-8.9-20080604.225159-7.jar.md5
Jun  4 18:53 webstore_oracle-8.9-20080604.225159-7.jar.sha1
Jun  4 18:53 webstore_oracle-8.9-20080604.225159-7.pom
Jun  4 18:53 webstore_oracle-8.9-20080604.225159-7.pom.md5
Jun  4 18:53 webstore_oracle-8.9-20080604.225159-7.pom.sha1
Jun  4 18:53 webstore_oracle-8.9-20080604.225159-7-sources.jar
Jun  4 18:53 webstore_oracle-8.9-20080604.225159-7-sources.jar.md5
Jun  4 18:53 webstore_oracle-8.9-20080604.225159-7-sources.jar.sha1
May 27 11:43 webstore_oracle-8.9-20080527.154131-3.jar
May 27 11:43 webstore_oracle-8.9-20080527.154131-3.jar.md5
May 27 11:43 webstore_oracle-8.9-20080527.154131-3.jar.sha1
May 27 11:43 webstore_oracle-8.9-20080527.154131-3.pom
May 27 11:43 webstore_oracle-8.9-20080527.154131-3.pom.md5
May 27 11:43 webstore_oracle-8.9-20080527.154131-3.pom.sha1
May 27 11:43 webstore_oracle-8.9-20080527.154131-3-sources.jar
May 27 11:43 webstore_oracle-8.9-20080527.154131-3-sources.jar.md5
May 27 11:43 webstore_oracle-8.9-20080527.154131-3-sources.jar.sha1
Apr 21 11:07 webstore_oracle-8.9-SNAPSHOT.jar
Apr 21 11:07 webstore_oracle-8.9-SNAPSHOT.jar.md5
Apr 21 11:07 webstore_oracle-8.9-SNAPSHOT.jar.sha1
Apr 21 11:07 webstore_oracle-8.9-SNAPSHOT.pom
Apr 21 11:07 webstore_oracle-8.9-SNAPSHOT.pom.md5
Apr 21 11:07 webstore_oracle-8.9-SNAPSHOT.pom.sha1
Apr 21 11:07 webstore_oracle-8.9-SNAPSHOT-sources.jar
Apr 21 11:07 webstore_oracle-8.9-SNAPSHOT-sources.jar.md5
Apr 21 11:07 webstore_oracle-8.9-SNAPSHOT-sources.jar.sha1


Apparently, Ivy, when using a URL resolver, has no way of getting the  
right jar out of here, which in the above case would be the June jars  
- IVY can only seem to get the April 21 jar (Because the jar name  
matches the directory name.

Any suggestions?



Mime
View raw message