web-dev-qa-db-fra.com

SBT jette une erreur d'accès au serveur [erreur]: la connexion refusée (connexion refusée) URL = http: //repo.typesafe.com/

  • J'ai nettoyé mon ~/.ivy2/cache répertoire.
  • Mon project/plugins.sbt fichier :
$ cat project/plugins.sbt
// Comment to get more information during initialization
logLevel := Level.Warn
// The Typesafe repository
resolvers += "Local Maven Repository" at "file:///"+Path.userHome.absolutePath+"/.m2/repository"
resolvers += "Typesafe repository" at "https://repo.typesafe.com/typesafe/releases/"
resolvers += "sonatype-releases" at "https://oss.sonatype.org/content/repositories/releases/"
// Use the Play sbt plugin for Play projects
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.3.10")
addSbtPlugin("com.typesafe.sbt" % "sbt-scalariform" % "1.2.0")
addSbtPlugin("org.scalastyle" %% "scalastyle-sbt-plugin" % "0.3.2")
  • Oh la la ~/.sbt/repositories fichier :
$ cat ~/.sbt/repositories
[repositories]
  local
  activator-launcher-local: file://${activator.local.repository-${activator.home-${user.home}/.activator}/repository}, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]
  activator-local: file://${activator.local.repository-/Users/debodirno/activator-dist-1.3.12/repository}, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]
  sbt-releases-repo: https://repo.typesafe.com/typesafe/ivy-releases/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]
  sbt-plugins-repo: https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]
  maven-central: https://repo1.maven.org/maven2/
  typesafe-releases: https://repo.typesafe.com/typesafe/releases
  typesafe-ivy-releasez: https://repo.typesafe.com/typesafe/ivy-releases, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]

Je cours activator clean:

$ activator clean
[info] Loading project definition from /Users/debodirno/personal/src/sitesearch/project
[error] Server access Error: Connection refused (Connection refused) url=http://repo.typesafe.com/typesafe/ivy-releases/org.iq80.leveldb/leveldb/0.5/ivys/ivy.xml
[error] Server access Error: Connection refused (Connection refused) url=http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.iq80.leveldb/leveldb/0.5/ivys/ivy.xml
[error] Server access Error: Connection refused (Connection refused) url=http://repo.typesafe.com/typesafe/ivy-releases/org.iq80.leveldb/leveldb-api/0.5/ivys/ivy.xml
[error] Server access Error: Connection refused (Connection refused) url=http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.iq80.leveldb/leveldb-api/0.5/ivys/ivy.xml
[error] Server access Error: Connection refused (Connection refused) url=http://repo.typesafe.com/typesafe/ivy-releases/org.fusesource.leveldbjni/leveldbjni-all/1.7/ivys/ivy.xml
[error] Server access Error: Connection refused (Connection refused) url=http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.fusesource.leveldbjni/leveldbjni-all/1.7/ivys/ivy.xml
[error] Server access Error: Connection refused (Connection refused) url=http://repo.typesafe.com/typesafe/ivy-releases/org.fusesource.leveldbjni/leveldbjni/1.7/ivys/ivy.xml
[error] Server access Error: Connection refused (Connection refused) url=http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.fusesource.leveldbjni/leveldbjni/1.7/ivys/ivy.xml
[error] Server access Error: Connection refused (Connection refused) url=http://repo.typesafe.com/typesafe/ivy-releases/org.fusesource.hawtjni/hawtjni-runtime/1.8/ivys/ivy.xml
[error] Server access Error: Connection refused (Connection refused) url=http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.fusesource.hawtjni/hawtjni-runtime/1.8/ivys/ivy.xml
[error] Server access Error: Connection refused (Connection refused) url=http://repo.typesafe.com/typesafe/ivy-releases/org.fusesource.leveldbjni/leveldbjni-osx/1.5/ivys/ivy.xml
[error] Server access Error: Connection refused (Connection refused) url=http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.fusesource.leveldbjni/leveldbjni-osx/1.5/ivys/ivy.xml
[error] Server access Error: Connection refused (Connection refused) url=http://repo.typesafe.com/typesafe/ivy-releases/org.fusesource.leveldbjni/leveldbjni-linux32/1.5/ivys/ivy.xml
[error] Server access Error: Connection refused (Connection refused) url=http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.fusesource.leveldbjni/leveldbjni-linux32/1.5/ivys/ivy.xml
[error] Server access Error: Connection refused (Connection refused) url=http://repo.typesafe.com/typesafe/ivy-releases/org.fusesource.leveldbjni/leveldbjni-linux64/1.5/ivys/ivy.xml
[error] Server access Error: Connection refused (Connection refused) url=http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.fusesource.leveldbjni/leveldbjni-linux64/1.5/ivys/ivy.xml
[error] Server access Error: Connection refused (Connection refused) url=http://repo.typesafe.com/typesafe/ivy-releases/org.fusesource.leveldbjni/leveldbjni-win32/1.5/ivys/ivy.xml
...
...
...

Fondamentalement, je veux savoir d'où obtiendra-t-il le http://repo.typesafe.com/typesafe/ivy-relases/ aussi, je n'ai pas changé de configurations de mon projet, alors pourquoi est-ce échouer soudainement.

7
Debodirno Chandra

J'ai eu mes résolveurs réglés sur "http://repo.typesafe.com/typesafe/relases/" et modifier le résolveur à l'aide de HTTPS le faisait fonctionner.

2
sohil