试图添加scala-uri插件来玩框架

时间:2014-02-23 04:04:30

标签: scala playframework playframework-2.0 sbt scala-2.10

我试图在我的播放应用程序中使用以下库:https://github.com/NET-A-PORTER/scala-uri

我已将其添加到./build.sbt中,如下所示:

libraryDependencies ++= Seq(
  "com.netaporter" %% "scala-uri" % "0.4.0",
  ...

但是我收到以下错误:

[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: com.typesafe.sbt#sbt-pgp;0.8.1: not found
[warn]  :: com.github.scct#scct_2.10;0.3-SNAPSHOT: not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn] 
[warn]  Note: Some unresolved dependencies have extra attributes.  Check that these dependencies exist with the requested attributes.
[warn]      com.typesafe.sbt:sbt-pgp:0.8.1 (sbtVersion=0.13, scalaVersion=2.10)
[warn] 
[trace] Stack trace suppressed: run last *:update for the full output.
[error] (*:update) sbt.ResolveException: unresolved dependency: com.typesafe.sbt#sbt-pgp;0.8.1: not found
[error] unresolved dependency: com.github.scct#scct_2.10;0.3-SNAPSHOT: not found

有关如何解决此问题的任何想法?

2 个答案:

答案 0 :(得分:3)

对,抱歉。这些都不应该是scala-uri的运行时依赖性。

我刚推了一个新版本0.4.1。你可以尝试一下吗?它们不再出现在0.4.1 pom file而不是0.4.0 pom file,所以我希望这能解决你的问题。

答案 1 :(得分:0)

显然,这个项目需要一个无法找到的依赖项。也许您需要添加一个可以找到com.github.scct#scct_2.10;0.3-SNAPSHOT的存储库。因为它似乎是一个github项目,你也可以自己在本地构建它。