You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-user@ant.apache.org by as...@facets-tech.net on 2008/06/05 20:37:30 UTC

URL resolver and Maven2 snapshot issues

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?



Re: URL resolver and Maven2 snapshot issues

Posted by Jing Xue <ji...@digizenstudio.com>.
On Thu, Jun 05, 2008 at 11:37:30AM -0700, astrien@facets-tech.net wrote:
> 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?

Did you try using the ibiblio resolver but set the 'root' to your
internal repo?  From the content you posted it looks compatible with the
public repo.

Cheers.
-- 
Jing Xue