Broken dependency link (Casbah) for version 0.8.2?

15 views
Skip to first unread message

Francesco Trotta

unread,
Apr 10, 2017, 2:54:27 PM4/10/17
to ScalaMeter
Hi there.

When I set 0.8.2 as the Scalameter version in my build.sbt, I get the following error.

[error] (root/*:ssExtractProject) coursier.ResolutionException: 1 not found
[error]   https://repo1.maven.org/maven2/org/mongodb/casbah_2.11/3.1.1/casbah_2.11-3.1.1.jar
[error] (root/*:update) coursier.ResolutionException: 1 not found
[error]   https://repo1.maven.org/maven2/org/mongodb/casbah_2.11/3.1.1/casbah_2.11-3.1.1.jar

This does not happen for version 0.7.

Is there any solution?

Aleksandar Prokopec

unread,
Apr 10, 2017, 3:18:23 PM4/10/17
to Francesco Trotta, ScalaMeter
Pretty weird, it seems like casbah dependency is down - there are no JAR files on maven: https://repo1.maven.org/maven2/org/mongodb/casbah_2.11/3.1.1/
The link on the Mongo website leads to the same location: https://mongodb.github.io/casbah/

I'd expect that they will fix it soon. If not, I will publish a new version of ScalaMeter to work around this.


--
You received this message because you are subscribed to the Google Groups "ScalaMeter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scalameter+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Aleksandar Prokopec

unread,
Apr 11, 2017, 2:51:06 PM4/11/17
to ScalaMeter, frat...@gmail.com

Ross Lawley

unread,
Apr 11, 2017, 4:57:07 PM4/11/17
to ScalaMeter, frat...@gmail.com
Hi,

Casbah is broken up into modules (for reasons lost in history) and there never has been a single jar file just covering Casbah.  The master pom file[1] should be all thats needed for build tools to fetch all the individual modules. I think the issue has been fixed in ScalaMeter in  https://github.com/scalameter/scalameter/issues/176.

Ross


To unsubscribe from this group and stop receiving emails from it, send an email to scalameter+...@googlegroups.com.

Aleksandar Prokopec

unread,
Apr 12, 2017, 12:51:32 PM4/12/17
to Ross Lawley, ScalaMeter, Francesco Trotta
Hi,

Thanks for the explanation!
I'm a bit confused, though, since specifying the `"org.mongodb" %% "casbah" % "3.1.1"` in the build file ensures that the dependency is properly resolved (I regularly build the ScalaMeter project).
I would have expected that after publishing ScalaMeter, other projects that depend on ScalaMeter also properly resolve Casbah.


To unsubscribe from this group and stop receiving emails from it, send an email to scalameter+unsubscribe@googlegroups.com.

Aleksandar Prokopec

unread,
Apr 16, 2017, 5:08:32 PM4/16/17
to Francesco Trotta, ScalaMeter
Francesco, could you do the following - open a new directory, and create a build.sbt file as follows:

-----------
name := "test-project"

resolvers += "Sonatype OSS Snapshots" at

libraryDependencies += "com.storm-enroute" %% "scalameter" % "0.8.2"
-----------

Then, in the src/main/scala/test.scala file, add the following:

--------------
File Edit Options Buffers Tools Help                                                                    
import org.scalameter.api._


object Main {
  def main(args: Array[String]) {
    println("ok")
  }
}
--------------

When I run:

> package

The ScalaMeter dependency is resolved correctly for me. Could you confirm?

Thanks,
Alex


Francesco Trotta

unread,
Apr 18, 2017, 3:04:42 PM4/18/17
to Aleksandar Prokopec, ScalaMeter
Yes, I confirm that the dependency is resolved correctly.

Francesco

Aleksandar Prokopec

unread,
Apr 18, 2017, 3:17:29 PM4/18/17
to Francesco Trotta, ScalaMeter
Great! Thanks a lot!

To unsubscribe from this group and stop receiving emails from it, send an email to scalameter+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "ScalaMeter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scalameter+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages