我对playframework很新,并且有一些问题。
我们使用的是2.4.6版本。
第一个是:你如何添加依赖?
我想添加mockito-core
,所以我得到了build.sbt
:
libraryDependencies += "org.postgresql" % "postgresql" % "9.4-1205-jdbc42"
libraryDependencies += "org.apache.commons" % "commons-csv" % "1.1"
libraryDependencies += "com.drewnoakes" % "metadata-extractor" % "2.7.0"
libraryDependencies += "com.typesafe.play" %% "play-mailer" % "3.0.0-M1"
libraryDependencie += "org.mockito" %% "mockito-core" % "1.9.5"
我认为这是正确的,因为我跟着这出戏!文件:
所以我启动了激活器然后运行命令。这就是我得到的:
[AEC] $ run
[info] Updating file:/C:/Users/abefly/Desktop/workspace%20AEC/aec/AEC/}root...
[info] Resolving org.mockito#mockito-core_2.10;1.9.5 ...
[warn] module not found: org.mockito#mockito-core_2.10;1.9.5
[warn] ==== local: tried
[warn] C:\Users\abefly\.ivy2\local\org.mockito\mockito-core_2.10\1.9.5\ivys\ivy.xml
[warn] ==== activator-launcher-local: tried
[warn] C:\Users\abefly\Desktop\workspace AEC\aec\AEC\repository\org.mockito\mockito-core_2.10\1.9.5\ivys\ivy.xml
[warn] ==== public: tried
[warn] https://repo1.maven.org/maven2/org/mockito/mockito-core_2.10/1.9.5/mockito-core_2.10-1.9.5.pom
[warn] ==== typesafe-releases: tried
[warn] https://repo.typesafe.com/typesafe/releases/org/mockito/mockito-core_2.10/1.9.5/mockito-core_2.10-1.9.5.pom
[warn] ==== typesafe-ivy-releasez: tried
[warn] https://repo.typesafe.com/typesafe/ivy-releases/org.mockito/mockito-core_2.10/1.9.5/ivys/ivy.xml
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: org.mockito#mockito-core_2.10;1.9.5: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn] Note: Unresolved dependencies path:
[warn] org.mockito:mockito-core_2.10:1.9.5 (C:\Users\abefly\Desktop\workspace AEC\aec\AEC\build.sbt#L18-19)
[warn] +- aec:aec_2.10:1.0-SNAPSHOT
[trace] Stack trace suppressed: run last *:update for the full output.
[error] (*:update) sbt.ResolveException: unresolved dependency: org.mockito#mockito-core_2.10;1.9.5: not found
[error] Total time: 4 s, completed 10 fÚvr. 2016 16:17:53
所以我想知道我做错了什么?你能帮我解决这个问题吗?
答案 0 :(得分:1)
只需使用
fread
请注意,只有一个百分号。 有两个将Scala版本添加到库的下载URL。