ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maarten Coene <maarten_co...@yahoo.com>
Subject Re: Ivy downloading source and javadoc jars from Maven repository
Date Mon, 06 Oct 2008 21:20:33 GMT
I've committed a fix into SVN trunk.

The problem is caused because you use "latest.release" in your dependency declaration.
A workaround is to use "latest.integration" instead.

oh, and please use the ivy-user@ant.apache.org mailing list instead of ivy-user@incubator.apache.org

Maarten



----- Original Message ----
From: Marcus Better <marcus@better.se>
To: ivy-user@incubator.apache.org
Sent: Monday, October 6, 2008 6:30:42 PM
Subject: Ivy downloading source and javadoc jars from Maven repository

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm resolving some dependencies from the Maven repository using Ivy 2.0.0-rc1. It seems that
Ivy is trying to fetch not only the jar files I need, but also source and javadoc jars. Moreover
it seems to reject the dependency because it doesn't find any javadoc jars in the repository.
What am I doing wrong?

Here is part of the log:

[ivy:retrieve] default: Checking cache for: dependency: org.apache.ws.commons.schema#XmlSchema;latest.release
{api=[default]}                                                                          
[ivy:retrieve] no cached resolved revision for org.apache.ws.commons.schema#XmlSchema;latest.release
[ivy:retrieve] no cached resolved revision for org.apache.ws.commons.schema#XmlSchema;latest.release
[ivy:retrieve]          tried /home/marcus/.ivy2/local/org.apache.ws.commons.schema/XmlSchema/[revision]/ivys/ivy.xml
                                                                                 
[ivy:retrieve]          tried /home/marcus/.ivy2/local/org.apache.ws.commons.schema/XmlSchema/[revision]/jars/XmlSchema.jar
                                                                           
[ivy:retrieve]  local: no ivy file nor artifact found for org.apache.ws.commons.schema#XmlSchema;latest.release
                                                                                       
[ivy:retrieve] main: Checking cache for: dependency: org.apache.ws.commons.schema#XmlSchema;latest.release
{api=[default]}                                                                          
   
[ivy:retrieve] no cached resolved revision for org.apache.ws.commons.schema#XmlSchema;latest.release
[ivy:retrieve] no cached resolved revision for org.apache.ws.commons.schema#XmlSchema;latest.release
[ivy:retrieve]          tried /srv/ivyrepo/org.apache.ws.commons.schema/XmlSchema/[revision]/ivys/ivy.xml
                                                                                         
   
[ivy:retrieve] problem while listing resources in /srv/ivyrepo/org.apache.ws.commons.schema/XmlSchema/
with shared:                                                                             
      
[ivy:retrieve]  java.io.IOException Failed to return a listing for '/srv/ivyrepo/org.apache.ws.commons.schema/XmlSchema/'
                                                                             
[ivy:retrieve]          tried /srv/ivyrepo/org.apache.ws.commons.schema/XmlSchema/[revision]/jars/XmlSchema.jar
                                                                                       
[ivy:retrieve] problem while listing resources in /srv/ivyrepo/org.apache.ws.commons.schema/XmlSchema/
with shared:                                                                             
      
[ivy:retrieve]   java.io.IOException Failed to return a listing for '/srv/ivyrepo/org.apache.ws.commons.schema/XmlSchema/'
                                                                             
[ivy:retrieve]  shared: no ivy file nor artifact found for org.apache.ws.commons.schema#XmlSchema;latest.release
                                                                                       
[ivy:retrieve] no cached resolved revision for org.apache.ws.commons.schema#XmlSchema;latest.release
[ivy:retrieve]          tried http://repo1.maven.org/maven2/org/apache/ws/commons/schema/XmlSchema/[revision]/XmlSchema-[revision].pom
                                                                 
[ivy:retrieve]  listing revisions from maven-metadata: http://repo1.maven.org/maven2/org/apache/ws/commons/schema/XmlSchema/maven-metadata.xml
                                                         
[ivy:retrieve]  public: found md file for org.apache.ws.commons.schema#XmlSchema;latest.release
   
[ivy:retrieve]          => http://repo1.maven.org/maven2/org/apache/ws/commons/schema/XmlSchema/1.4/XmlSchema-1.4.pom
(1.4)                                                                            
[ivy:retrieve] downloading http://repo1.maven.org/maven2/org/apache/ws/commons/schema/XmlSchema/1.4/XmlSchema-1.4.pom
...                                                                              
[ivy:retrieve]  public: downloading http://repo1.maven.org/maven2/org/apache/ws/commons/schema/XmlSchema/1.4/XmlSchema-1.4.pom
                                                                         
[ivy:retrieve]  public: downloading http://repo1.maven.org/maven2/org/apache/ws/commons/schema/XmlSchema/1.4/XmlSchema-1.4.pom.sha1
                                                                   
[ivy:retrieve] sha1 OK for http://repo1.maven.org/maven2/org/apache/ws/commons/schema/XmlSchema/1.4/XmlSchema-1.4.pom
                                                                                 
[ivy:retrieve]  [SUCCESSFUL ] org.apache.ws.commons.schema#XmlSchema;1.4!XmlSchema.pom(pom.original)
(2863ms)                                                                                 
        
[ivy:retrieve]          tried /home/marcus/.ivy2/local/org.apache.ws.commons.schema/XmlSchema/1.4/jars/XmlSchema.jar
                                                                                   
[ivy:retrieve]          tried /srv/ivyrepo/org.apache.ws.commons.schema/XmlSchema/1.4/jars/XmlSchema.jar
                                                                                         
     
[ivy:retrieve]          tried http://repo1.maven.org/maven2/org/apache/ws/commons/schema/XmlSchema/1.4/XmlSchema-1.4.jar
                                                                               
[ivy:retrieve]          tried /home/marcus/.ivy2/local/org.apache.ws.commons.schema/XmlSchema/1.4/sources/XmlSchema.jar
                                                                               
[ivy:retrieve]          tried /srv/ivyrepo/org.apache.ws.commons.schema/XmlSchema/1.4/sources/XmlSchema.jar
                                                                                         
 
[ivy:retrieve]          tried http://repo1.maven.org/maven2/org/apache/ws/commons/schema/XmlSchema/1.4/XmlSchema-1.4-sources.jar
                                                                       
[ivy:retrieve]          tried /home/marcus/.ivy2/local/org.apache.ws.commons.schema/XmlSchema/1.4/javadocs/XmlSchema.jar
                                                                               
[ivy:retrieve]          tried /srv/ivyrepo/org.apache.ws.commons.schema/XmlSchema/1.4/javadocs/XmlSchema.jar
                                                                                         
 
[ivy:retrieve]          tried http://repo1.maven.org/maven2/org/apache/ws/commons/schema/XmlSchema/1.4/XmlSchema-1.4-javadoc.jar
                                                                       
[ivy:retrieve] CLIENT ERROR: Not Found url=http://repo1.maven.org/maven2/org/apache/ws/commons/schema/XmlSchema/1.4/XmlSchema-1.4-javadoc.jar
[ivy:retrieve]  public: found md file for org.apache.ws.commons.schema#XmlSchema;latest.release
[ivy:retrieve]          => http://repo1.maven.org/maven2/org/apache/ws/commons/schema/XmlSchema/1.3.2/XmlSchema-1.3.2.pom
(1.3.2)
[ivy:retrieve] downloading http://repo1.maven.org/maven2/org/apache/ws/commons/schema/XmlSchema/1.3.2/XmlSchema-1.3.2.pom
...
[ivy:retrieve]  public: downloading http://repo1.maven.org/maven2/org/apache/ws/commons/schema/XmlSchema/1.3.2/XmlSchema-1.3.2.pom
[ivy:retrieve]  public: downloading http://repo1.maven.org/maven2/org/apache/ws/commons/schema/XmlSchema/1.3.2/XmlSchema-1.3.2.pom.sha1
[ivy:retrieve] sha1 OK for http://repo1.maven.org/maven2/org/apache/ws/commons/schema/XmlSchema/1.3.2/XmlSchema-1.3.2.pom
[ivy:retrieve]  [SUCCESSFUL ] org.apache.ws.commons.schema#XmlSchema;1.3.2!XmlSchema.pom(pom.original)
(2861ms)
[ivy:retrieve]          tried /home/marcus/.ivy2/local/org.apache.ws.commons.schema/XmlSchema/1.3.2/jars/XmlSchema.jar
[ivy:retrieve]          tried /srv/ivyrepo/org.apache.ws.commons.schema/XmlSchema/1.3.2/jars/XmlSchema.jar
[ivy:retrieve]          tried http://repo1.maven.org/maven2/org/apache/ws/commons/schema/XmlSchema/1.3.2/XmlSchema-1.3.2.jar
[ivy:retrieve]          tried /home/marcus/.ivy2/local/org.apache.ws.commons.schema/XmlSchema/1.3.2/sources/XmlSchema.jar
[ivy:retrieve]          tried /srv/ivyrepo/org.apache.ws.commons.schema/XmlSchema/1.3.2/sources/XmlSchema.jar
[ivy:retrieve]          tried http://repo1.maven.org/maven2/org/apache/ws/commons/schema/XmlSchema/1.3.2/XmlSchema-1.3.2-sources.jar
[ivy:retrieve]          tried /home/marcus/.ivy2/local/org.apache.ws.commons.schema/XmlSchema/1.3.2/javadocs/XmlSchema.jar
[ivy:retrieve]          tried /srv/ivyrepo/org.apache.ws.commons.schema/XmlSchema/1.3.2/javadocs/XmlSchema.jar
[ivy:retrieve]          tried http://repo1.maven.org/maven2/org/apache/ws/commons/schema/XmlSchema/1


Note how it starts downloading XmlSchema 1.4.0, then aborts and starts looking at 1.3.2. It
countinues on and on in this way.

The dependency line in the ivy file looks like this:

    <dependency org="org.apache.ws.commons.schema" name="XmlSchema" rev="latest.release"
conf="api->runtime" />

I'm not sure if "runtime" is the right configuration to use - I also tried "default" but that
gives the same result.

Cheers,

Marcus
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkjqPTIACgkQXjXn6TzcAQk6vwCeKOpM5vaEZv5PVcBhSfBF1aKu
4DYAn2gmYNoYVX1B6oBUKFl9drggj8mU
=YFxG
-----END PGP SIGNATURE-----


      

Mime
View raw message