Sky, that is not so. Gareth, since you're using Artifactory and hence a Maven repository, I know there are some extra hurdles to leap to get Ivy to recognize the weird way Maven locates source. If I recall correctly, Maven names the source and javadoc archives the same name as the binary. But I could be wrong, and someone else will have to fill in just what Ivy does for you automatically in this case and what special steps you need to do.
Now this I see you're using a Maven repository, this may not be very helpful, but let me speak from my own situation where I am in full control of my Ivy repository and can create and name artifacts as I wish. I don't need javadoc much, but as far as source, typically what I'll do is create a separate "source" Ivy conf, or multiple "*-source" Ivy confs. Then on the corresponding artifact, I'll apply that conf and specify type="source". Something like: <artifact name="mylibrary-source" type="source" ext="jar" conf="source"/> Notice that the source artifact name has a -source suffix. Presumably, there's a mylibrary.jar for the binary. If you're using IvyDE with Eclipse, you need to use one of those suffix conventions to allow source to be automatically loaded when you need it, rather than having to go track it down. Here are the accepted suffixes: -source,-sources,-src I forget if IvyDE will automatically find source with a .zip extension or some other archival extension or whether it needs to be .jar. Check the IvyDE docs: http://ant.apache.org/ivy/ivyde/ 2009/7/31 Gareth Western <gar...@garethwestern.com> > Hmm... well it doesn't seem to be working my case (using Ivy > 2.1.0-rc2). I should note that I am also using Artifactory as a > repository on our intranet. Artifactory has the jar I need, but not > the sources or javadocs, however Ivy doesn't even seem to be trying to > request them from Artifactory. > > On Fri, Jul 31, 2009 at 4:43 PM, Sky Ao<aoxiaoj...@gmail.com> wrote: > > > > > > As I remembered, Ivy will download the source and javadoc files for the > > directly dependencies without special setting. > > > > > > Is that so ? > > > > Sky Ao > > > > > > ________________________________ > > 发件人: Gareth Western > > 发送时间: 2009-07-31 23:34:54 > > 收件人: ivy-user > > 抄送: > > 主题: Ivy not downloading src / javadoc zips > > Hi all, > > I'd like Ivy to also download the source and javadoc files for our > > dependencies, where they are availabe, however it does not appear to > > be doing this "out of the box". Do I need to add anything to the > > ivy.xml to specify that I want these as well as the main jar? > > E.g. for commons-digester I have the following in the ivy.xml: > > <dependency org="commons-digester" name="commons-digester" > > rev="1.5" conf="jar->default"/> > > "resolve" is called from my build scripts via the cachepath: > > <ivy:cachepath pathid="classpath" conf="jar"/> > > Thanks, > > Gareth >