Impossible to import a fresh ImageJ jar

import
scala
sbt
Tags: #<Tag:0x00007fb8792255b8> #<Tag:0x00007fb879224bb8> #<Tag:0x00007fb879224960>

#1

I tried use in my project such reference

net.imagej imagej 2.0.0-rc-65

and use such repos

“Maven repo” at “http://repo1.maven.org/maven2”,
“Apache repo” at “https://repository.apache.org/content/repositories/releases”,
“Sonatype repo” at “https://oss.sonatype.org/content/repositories/releases”,
“Mvnrepository” at “http://mvnrepository.com/artifact”,
“Mvnreitory” at “http://maven.imagej.net/content/repositories/releases/

but got errors about unresolved dependencies:

Error:Error while importing SBT project:
...
[warn] 	:: edu.ucar#udunits;4.3.18: not found
[warn] 	:: edu.mines#mines-jtk;20151125: not found
[warn] 	:: com.github.sbridges.object-inspector#object-inspector;0.1: not found
[warn] 	:: org.renjin#renjin-script-engine;0.8.1906: not found
[warn] 	:: org.jhotdraw#jhotdraw;7.6.0: not found
[warn] 	::::::::::::::::::::::::::::::::::::::::::::::
[trace] Stack trace suppressed: run 'last *:update' for the full output.
[trace] Stack trace suppressed: run 'last *:ssExtractDependencies' for the full output.
[error] (*:update) sbt.ResolveException: unresolved dependency: edu.ucar#udunits;4.3.18: not found
[error] unresolved dependency: edu.mines#mines-jtk;20151125: not found
[error] unresolved dependency: com.github.sbridges.object-inspector#object-inspector;0.1: not found
[error] unresolved dependency: org.renjin#renjin-script-engine;0.8.1906: not found
[error] unresolved dependency: org.jhotdraw#jhotdraw;7.6.0: not found
[error] (*:ssExtractDependencies) sbt.ResolveException: unresolved dependency: edu.ucar#udunits;4.3.18: not found
[error] unresolved dependency: edu.mines#mines-jtk;20151125: not found
[error] unresolved dependency: com.github.sbridges.object-inspector#object-inspector;0.1: not found
[error] unresolved dependency: org.renjin#renjin-script-engine;0.8.1906: not found
[error] unresolved dependency: org.jhotdraw#jhotdraw;7.6.0: not found

How to fix or where download the fresh imagej jars pack? old pack 0.46 on the site is incompatible with github ops examples.


#2

Dear @Claus1,

could you please provide your complete build.sbt for further debugging? The mentioned artifacts are definitely available from http://maven.imagej.net/content/repositories/releases/.

Best,
Stefan


#3

Dear @stelfrich, thanks for the reply, I added that repo to sbt file but nothing changed.
My sbt fille:

name := "visca"

organization := "dexpert"

version := "0.1.0-SNAPSHOT"

scalaVersion := "2.11.8"

resolvers ++= Seq(
  Classpaths.typesafeReleases,
  "Maven repo"    at "http://repo1.maven.org/maven2",
  "Apache repo"   at "https://repository.apache.org/content/repositories/releases",
  "Sonatype repo" at "https://oss.sonatype.org/content/repositories/releases",
  "Mvnrepository" at "http://mvnrepository.com/artifact",
  "Mvnreitory" at "http://maven.imagej.net/content/repositories/releases/",
  "imagej" at "http://maven.imagej.net/content/repositories/releases/"
)

libraryDependencies ++= Seq(
  "org.scalatest" %% "scalatest" % "2.2.6" % "test",
  "org.scalacheck" %% "scalacheck" % "1.13.0" % "test",
  "com.typesafe.akka" %% "akka-actor" % "2.3.15",
  "com.typesafe.akka" %% "akka-http" % "10.0.9",
  "com.typesafe.akka" %% "akka-http-spray-json" % "10.0.9",
  "net.imagej" % "imagej" % "2.0.0-rc-65"
)

#4

I checked manually but unresolved jars are not there. At least not visible :slight_smile:


#5

Sorry @Claus1, you are perfectly right! My link should have pointed to http://maven.imagej.net/content/groups/public/ instead (which also includes 3rd party libraries like the ones that are reported as missing in your case).