我剛剛從播放1移動到播放2.3.10。播放框架-2.3.10應用程序啓動問題
我創建了我的應用程序。
download activator.
cd activator-dir
./activator new myapp ply-java
cd myapp
activator
錯誤:
Resolving org.fusesource.jansi#jansi;1.4 ...
[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.github.mpeltonen#sbt-idea;1.5.1 compile
[warn] :: commons-io#commons-io;2.4: configuration not found in commons-io#commons-io;2.4: 'master(compile)'. Missing configuration: 'compile'. It was required from net.sourceforge.htmlunit#htmlunit;2.14 compile
[warn] :: org.slf4j#slf4j-api;1.7.7: configuration not found in org.slf4j#slf4j-api;1.7.7: 'master(compile)'. Missing configuration: 'compile'. It was required from org.webjars#webjars-locator;0.21 compile
[warn] :: commons-collections#commons-collections;3.2.1: configuration not found in commons-collections#commons-collections;3.2.1: 'master(compile)'. Missing configuration: 'compile'. It was required from net.sourceforge.htmlunit#htmlunit;2.14 compile
[warn] :: commons-logging#commons-logging;1.1.3: configuration not found in commons-logging#commons-logging;1.1.3: 'master(compile)'. Missing configuration: 'compile'. It was required from net.sourceforge.htmlunit#htmlunit;2.14 compile
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[error] (*:update) sbt.ResolveException: unresolved dependency: 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.github.mpeltonen#sbt-idea;1.5.1 compile
[error] unresolved dependency: commons-io#commons-io;2.4: configuration not found in commons-io#commons-io;2.4: 'master(compile)'. Missing configuration: 'compile'. It was required from net.sourceforge.htmlunit#htmlunit;2.14 compile
[error] unresolved dependency: org.slf4j#slf4j-api;1.7.7: configuration not found in org.slf4j#slf4j-api;1.7.7: 'master(compile)'. Missing configuration: 'compile'. It was required from org.webjars#webjars-locator;0.21 compile
[error] unresolved dependency: commons-collections#commons-collections;3.2.1: configuration not found in commons-collections#commons-collections;3.2.1: 'master(compile)'. Missing configuration: 'compile'. It was required from net.sourceforge.htmlunit#htmlunit;2.14 compile
[error] unresolved dependency: commons-logging#commons-logging;1.1.3: configuration not found in commons-logging#commons-logging;1.1.3: 'master(compile)'. Missing configuration: 'compile'. It was required from net.sourceforge.htmlunit#htmlunit;2.14 compile
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? q
我不知道究竟是什麼導致了問題。我試圖將這些依賴關係添加到build.sbt中,但仍然出現此錯誤。
編輯
激活版本:SBT發射版本0.13.5
SBT-FILE:
name := """MyApp"""
version := "1.0-SNAPSHOT"
lazy val root = (project in file(".")).enablePlugins(PlayJava)
scalaVersion := "2.11.1"
libraryDependencies ++= Seq(
javaJdbc,
cache,
javaWs,
"commons-io" % "commons-io" % "2.4",
"org.slf4j" % "slf4j-api" % "1.7.7"
)
// Play provides two styles of routers, one expects its actions to be injected, the
// other, legacy style, accesses its actions statically.
//routesGenerator := InjectedRoutesGenerator
你好,你可以發佈'activator --version'的結果,目錄中的任何「.sbt」文件的內容和'project/build.properties'的內容嗎? – Jean
編輯我的問題 –