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 Tom <tb...@tbee.org> on 2009/04/24 10:03:47 UTC

Re: Configurations and Ivy file confusion... AHA!

>> OK, many projects have source and jar artifacts with the same name, 
>> so you really want to either set a retrieve pattern which includes 
>> the type of the artifact for disambiguation. If you cannot do this, 
>> you'll need to specify an exclusion rule for your dependencies to 
>> only include type jar. Here are examples of both:
>>
>>         <ivy:retrieve 
>> pattern="${ivy.lib.dir}/[type]/[artifact]-[revision].[ext]" 
>> haltonfailure="true" conf="build" sync="true"/>
>>
>>         <dependencies>
>>           <exclude type="source"/>
>>         </dependencies>
>>

Yes. Finally. I get it. The pattern, more specifically the omitting of 
[type], causes two different files to be copied to the same destination 
(enunciate-rt.jar and enunciate-rt-sources.jar) .