Java Play 2.1.1 アプリで次のエラーが発生します。
[myproject] $ update
[info] Updating {file:/C:/path/myproject/}myproject...
[info] Resolving ...
[error] impossible to get artifacts when data has not been loaded. IvyNode = com.google.guava#guava;12.0
[error] (*:update) java.lang.IllegalStateException: impossible to get artifacts when data has not been loaded. IvyNode = com.google.guava#guava;12.0
[error] Total time: 230 s, completed 17.05.2013 19:16:41
Build.scala
"com.google.guava" % "guava" % "14.0.1",
"org.mydependency" % "mydependency" % "1.0-SNAPSHOT" changing() exclude("org.jboss.netty","netty") exclude("com.google.guava", "guava") exclude("log4j", "log4j"),
このエラーの原因 (以前は問題なく動作していた) は、mydependency 内の依存関係の変更です。
年:
<dependency>
<groupId>com.thinkaurelius.titan</groupId>
<artifactId>titan-berkeleyje</artifactId>
<version>0.3.1</version>
</dependency>
新着:
<dependency>
<groupId>com.thinkaurelius.titan</groupId>
<artifactId>titan-cassandra</artifactId>
<version>0.3.1</version>
</dependency>
とにかくグアバ12.0は欲しくないので、除外されました。
Play 2.1.1 に新しい Ivy を使用するように指示できますか?
plugins.sbtには次のものがあります。
addSbtPlugin("play" % "sbt-plugin" % "2.1.1")
一時的な修正 誰かがここで言及したように、Apache IVY エラー メッセージ? : データが手動でロードされていない場合、アーティファクトを取得できません依存関係を追加すると解決します: 追加しました
"com.google.guava" % "guava" % "12.0"
そして問題はなくなりました。