activatorで「unresolved dependencies」が出た時
play frameworkのテンプレート作成において、activatorで
activator run
を実行したときに、「unresolved dependencies」エラーになる場合
resolversを追加してみる
libraryのdownloadが失敗しているので、build.sbtに以下を追加するとうまく行くことがあった。
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"
resolvers += "Typesafe repository mwn" at "http://repo.typesafe.com/typesafe/maven-releases/"
しかし、これがうまく行かない場合も多々ある
ivy2のcacheを削除してみる
ivy2のcacheがおかしくなっている可能性も高い
例えば
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: commons-io#commons-io;2.0.1: configuration not found in commons-io#commons-io;2.0.1: 'master(compile)'. Missing configuration: 'compile'. It was required from com.typesafe.play#routes-compiler_2.10;2.3.8 compile
のような場合だったら、
rm -fr (HOME)/.ivy2/cache/commons-io/
みたいにcacheディレクトリを削除してみるとうまく行った。
rm -frは自己責任でお願いします。