Я не могу понять, почему sbt реагирует так.Я определил несколько распознавателей следующим образом:
resolvers += "osgeo" at "http://download.osgeo.org/webdav/geotools/"
resolvers += "boundless" at "http://repo.boundlessgeo.com/main"
resolvers += "geotoolkit" at "http://maven.geotoolkit.org/"
И добавил зависимости geotools:
val gtReferencing = "org.geotools" % "gt-referencing" % "20.1"
val gtGeometry = "org.geotools" % "gt-geometry" % "20.1"
val geotools = Seq(gtReferencing, gtGeometry)
lazy val projectData = (project in file("."))
.settings(
name := "project",
libraryDependencies ++= geotools,
....
Иногда maven.geotoolkit.org не работает, в моем понимании sbt следует попробовать с другим репо (osgeoимеет зависимости), но он нарушает всю загрузку, он возвращает мне много таких ошибок:
[error] Resolution failed several times for dependency: com.github.fommil.netlib#parent;1.1 {}::
[error] geotoolkit: unable to get resource for com/github/fommil/netlib#parent;1.1: res=http://maven.geotoolkit.org/com/github/fommil/netlib/parent/1.1/parent-1.1.jar: java.net.ConnectException: Failed to connect to maven.geotoolkit.org/193.54.123.160:80
[error] geotoolkit: unable to get resource for com/github/fommil/netlib#parent;1.1: res=http://maven.geotoolkit.org/com/github/fommil/netlib/parent/1.1/parent-1.1.pom: java.net.ConnectException: Failed to connect to maven.geotoolkit.org/193.54.123.160:80
[error]
[error] geotoolkit: unable to get resource for com/github/fommil/netlib#core;1.1.2: res=http://maven.geotoolkit.org/com/github/fommil/netlib/core/1.1.2/core-1.1.2.pom: java.net.ConnectException: Failed to connect to maven.geotoolkit.org/193.54.123.160:80
[error]
[error] unresolved dependency: org.apache.commons#commons-math3;3.2: Resolution failed several times for dependency: org.apache.commons#commons-math3;3.2 {compile=[compile(*), master(compile)], runtime=[runtime(*)]}::
[error] Resolution failed several times for dependency: org.apache.commons#commons-parent;28 {}::
[error] Resolution failed several times for dependency: org.apache#apache;13 {}::
...
Нет ли способа не сломаться, когда репо не работает, и попробовать с другими?