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) .

Reply via email to