[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ivy-user
Subject:    Classifiers not working with embedded ivy:resolve dependencies
From:       Edwin Park <esp () mecha1 ! com>
Date:       2013-02-22 22:30:11
Message-ID: CFD4F534-A852-4F77-8110-A855AA6A2B6E () mecha1 ! com
[Download RAW message or body]


Hi,

I noticed that when using the new <ivy:resolve> child elements that were introduced \
in 2.3, classifier resolution no longer works. For example:

build.xml:

<ivy:resolve>
  <dependency org="org.zeromq" name="jzmq" rev="2.1.0">
    <artifact name="jzmq" type="source" ext="jar" m:classifier="sources"/>
  </dependency>
</ivy:resolve>

ivysettings.xml:

<ivysettings>
  <settings defaultResolver="nexus" />
  <resolvers>
    <ibiblio name="nexus" m2compatible="true"
      root="http://nexus.local:8082/nexus/content/groups/all"
      pattern="[organisation]/[module]/[revision]/[artifact]-[revision](-[m:classifier]).[ext]">
  </ibiblio>
  </resolvers>
</ivysettings>

What winds up happening is that the *binary* jar is getting downloaded and placed in \
the sources directory, instead of the source jar. It essentially seems like the \
classifier parameter is not passed along to the resolver.

The workaround is to not use the dependency child elements and revert to using an \
external ivy.xml again.

Edwin



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic