LoginSignup
7
6

More than 5 years have passed since last update.

activatorで「unresolved dependencies」が出た時

Last updated at Posted at 2015-04-06

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は自己責任でお願いします。

7
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
6