在Java 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无论如何,这是和被排除在外。
我可以告诉播放2.1.1使用新常春藤?
在plugins.sbt我有:
addSbtPlugin("play" % "sbt-plugin" % "2.1.1")
临时修复正如有人这里提到的Apache IVY错误信息? :不可能得到数据时尚未加载文物手动添加的依赖性解决它:我添加
"com.google.guava" % "guava" % "12.0"
而问题就消失了。