classifier on dependency not set in published ivy.xml #439

Closed
harrah opened this Issue Jan 5, 2013 · 1 comment

Comments

Projects
None yet
1 participant
Owner

harrah commented Jan 5, 2013

In a simple project

libraryDependencies := Seq("net.sf.json-lib" % "json-lib" % "2.4" classifier "jdk15")

when running "publish-local" the generated ivy.xml is missing the specified classifier on the dependency.

<dependencies>
  <dependency org="net.sf.json-lib" name="json-lib" rev="2.4" conf="compile->default(compile)">
  ...
</dependencies>

Looking into the generated pom, the classifier is there.

<dependency>
     <groupId>net.sf.json-lib</groupId>
      <artifactId>json-lib</artifactId>
      <version>2.4</version>
      <scope>compile</scope>
      <classifier>jdk15</classifier>
</dependency>

Trying to use the locally published artefact in another sbt project fails:

[warn]  [NOT FOUND  ] net.sf.json-lib#json-lib;2.4!json-lib.jar (51ms)
[warn] tried http://mvn.proxy/net/sf/json-lib/json-lib/2.4/json-lib-2.4.jar
Owner

harrah commented Jan 5, 2013

IMPORTANT This project has moved to https://github.com/sbt/sbt. This issue still exists to avoid dead links, but GitHub limitations prevent the original issue from being correctly preserved here. Please see sbt/sbt#439 for the full issue and to comment.

harrah closed this Jan 5, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment