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 trick: <dependency org="commons-lang" name="commons-lang" rev="latest.integration" conf="runtime->default,sources"/> 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. Maarten ----- Original Message ---- From: "Hiller, Dean (Contractor)" <[email protected]> To: [email protected] Sent: Fri, November 26, 2010 7:56:51 PM Subject: setting up ivy so it always gets the source(so eclipse debugger has source)... 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" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "http://ant.apache.org/ivy/schemas/ivy.xsd"> <info organisation="com.broadridge" module="hello-ivy"/> <configurations> <!-- Just the runtime jars. Should be none if a service --> <conf name="runtime" /> <!-- All other jars needed to compile --> <conf name="all" extends="runtime" /> </configurations> <dependencies> <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" conf="all->default"/> <dependency org="cobertura" name="cobertura" rev="latest.integration" conf="all->default"/> <dependency org="junit" name="junit" rev="latest.integration" conf="all->default"/> </dependencies> </ivy-module> But I want it to be getting the source as well and it isn't doing that. Thanks, Dean This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the 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.
