Coursier: JAR can be missing from empty / meta projects

Created on 1 Feb 2017  路  6Comments  路  Source: coursier/coursier

This is a bug in Coursier. When using this dependency:

"io.monix" %% "monix" % "2.2.1"

I get this:

[trace] Stack trace suppressed: run last *:update for the full output.
[error] (*:update) coursier.ResolutionException: 1 not found
[error]   https://repo1.maven.org/maven2/io/monix/monix_2.11/2.2.1/monix_2.11-2.2.1.jar
[error] Total time: 2 s, completed Feb 1, 2017 3:44:02 PM

No JAR is published for io.monix.monix because it's a meta project that has multiple sub-projects as dependencies. Instead only the POM file is published.

Also you can see that this file specifies a meta project with sub-projects in it because of the packaging specified:

<packaging>pom</packaging>

This is in comparisson with a normal project that does publish a JAR:

<packaging>jar</packaging>

This is a public library, I would really appreciate a fix.

Thanks,

bug

All 6 comments

Yeah, I hit this a few days ago : https://github.com/alexarchambault/coursier/issues/322#issuecomment-276166397 ... It might be a regression because my colleague has been using it in all projects for a year without encountering this problem.

@alexandru @l15k4 Do any of you have a small repro? The following just works fine for me:

$ cat build.sbt
scalaVersion := "2.11.8"

libraryDependencies ++= Seq(
  "io.monix" %% "monix" % "2.2.1"
)

$ cat project/build.properties
sbt.version=0.13.13

$ cat project/plugins.sbt
addSbtPlugin("io.get-coursier" % "sbt-coursier" % "1.0.0-M15-1")

$ sbt update
[info] Loading project definition from /Users/alexandre/projects/test/monix-coursier/project
[info] Set current project to monix-coursier (in build file:/Users/alexandre/projects/test/monix-coursier/)
[success] Total time: 1 s, completed 3 f茅vr. 2017 01:04:56

(No sbt plugin activated globally.)

Same with scala 2.10.6 and 2.12.1, or sbt-coursier 1.0.0-14 or 1.0.0-15.

Same with an initially empty coursier cache.

@alexarchambault for me it fails for "io.getquill" %% "quill-cassandra" % "1.1.0" which has monix as a transitive dependency.

This is fixed in the current master. A 1.0.0-M15-2 is about to be released with the fix. Feel free to re-open if you still face this issue.

Oh, thanks a lot @alexarchambault 馃憤 鉂わ笍

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mushtaq picture mushtaq  路  6Comments

vil1 picture vil1  路  8Comments

ryan-williams picture ryan-williams  路  5Comments

dispalt picture dispalt  路  6Comments

eamelink picture eamelink  路  3Comments