IDEAでsbtによるScalaプロジェクトインポート依存エラー

1590 ワード

IDEAでsbtベースのScalaプロジェクトを作成すると、関連付けられてからsbtプラグインでダウンロードされますが、初めて作成されるのでダウンロードするjarパッケージが多く、時間がかかります.
sbtダウンロードのプロンプトが消えるのを待って、コンソールで多くのエラー情報が表示されます.主なエラー内容は以下の通りです.
 
Error:Error while importing SBT project:<br/>...<br/><pre>unresolved dependency: org.scala-sbt#process;0.13.7: not found
unresolved dependency: org.scala-sbt#run;0.13.7: not found
unresolved dependency: org.scala-sbt#relation;0.13.7: not found
unresolved dependency: org.scala-sbt#task-system;0.13.7: not found
unresolved dependency: org.scala-sbt#tasks;0.13.7: not found
unresolved dependency: org.scala-sbt#tracking;0.13.7: not found

依存パッケージは見つかりませんでした.
まだ
接続refusedなどのエラー.このjarを格納している倉庫が接続できない問題であるはずです.
 
解決方法:sbtの既存のrepositoriesに基づいて(sbt-launch.jarファイルを表示できる)、新しいrepositoriesファイル(ユーザーのルートディレクトリの下(/Users/admin/)を作成し、作成する.sbtディレクトリは、中に入れて、接続速度の速いjar倉庫を2つ追加すればいいので、各行の末尾の空白を取り除くことを覚えています)
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[repositories]  local  dl bintray: https://dl.bintray.com/typesafe/ivy-releases/, [organization]/[module]/[revision]/[type]s/[artifact](-[classifier]).[ext], bootOnly  jcenter: https://jcenter.bintray.com/  typesafe-ivy-releases: https://repo.typesafe.com/typesafe/ivy-releases/, [organization]/[module]/[revision]/[type]s/[artifact](-[classifier]).[ext], bootOnly  maven-central  sonatype-snapshots: https://oss.sonatype.org/content/repositories/snapshots
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
そして、ダウンロードに依存する速度がずいぶん速くなったことに気づきます.