ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maarten Coene <>
Subject Re: setting up ivy so it always gets the source(so eclipse debugger has source)...
Date Fri, 26 Nov 2010 22:56:07 GMT
I'm assuming the modules on your artifactory are maven modules with a POM?
In that case, you won't get any sources since you are requesting their default 
configurations. The sources for POM's are not part of the default configuration, 
but of the 'sources' configuration instead.

So, changing your dependency declaration to something like below should do the 
<dependency org="commons-lang" name="commons-lang" rev="latest.integration" 

If you get an error saying the sources jar and the binary jar are retrieved to 
the same file, you should change your retrieve pattern and make sure you include 
the [type] token in it to distinguish your files from being sources or binary.


----- Original Message ----
From: "Hiller, Dean (Contractor)" <>
Sent: Fri, November 26, 2010 7:56:51 PM
Subject: setting up ivy so it always gets the source(so eclipse debugger has 

Ideally, I want to set this new environment up so it always get source
when getting the binaries.  Is there a single

Flag somewhere to tell ivy to do that?  I know it was getting the source
jars a day or two ago because

I was getting errors on the source jar and binary jar having the same
name and conflicting, but since I setup

Artifactory, and have been trying to get that to work, something must
have broken along the way(I reverted

Back to no artifactory but still not getting sources...even added
retrieve type="sources" to force it but didn't work)....

<ivy-module version="2.0" 




    <info organisation="com.broadridge" module="hello-ivy"/>


         <!-- Just the runtime jars.  Should be none if a service -->

         <conf name="runtime" />

         <!-- All other jars needed to compile -->

         <conf name="all" extends="runtime" />



        <dependency org="commons-lang" name="commons-lang"
rev="latest.integration" conf="runtime->default"/>

        <dependency org="commons-cli" name="commons-cli"
rev="latest.integration" conf="all->default"/>


        <!-- tools(This should all be moved into a tools-ivy.xml file
for all projects to depend on -->

        <dependency org="checkstyle" name="checkstyle" rev="4.4"

        <dependency org="cobertura" name="cobertura"
rev="latest.integration" conf="all->default"/>

        <dependency org="junit" name="junit" rev="latest.integration"




But I want it to be getting the source as well and it isn't doing that.



This message and any attachments are intended only for the use of the addressee 
may contain information that is privileged and confidential. If the reader of 

message is not the intended recipient or an authorized representative of the
intended recipient, you are hereby notified that any dissemination of this
communication is strictly prohibited. If you have received this communication in
error, please notify us immediately by e-mail and delete the message and any
attachments from your system.


View raw message