尝试使用来自https://github.com/randhindi/jerkson的分叉 Jerkson 库。将源依赖项克隆到文件夹中module
并定义以下内容:
object ApplicationBuild extends Build {
val appName = "coolapp"
val appVersion = "1.0-SNAPSHOT"
lazy val jerkson = Project(
id = "jerkson",
base = file("module"),
settings = Seq(
name := "jerkson",
organization := "com.codahale",
version := "0.6.0-SNAPSHOT",
scalaVersion := "2.10.0"
)
)
val appDependencies = Seq(
"com.codahale" % "jerkson" % "0.6.0-SNAPSHOT",
"jp.t2v" %% "play2.auth" % "0.9",
"jp.t2v" %% "play2.auth.test" % "0.9" % "test",
"org.ocpsoft.prettytime" % "prettytime" % "1.0.8.Final",
"com.typesafe" %% "play-plugins-redis" % "2.1-1-RC2",
"net.databinder.dispatch" %% "dispatch-core" % "0.10.0"
)
// resolvers follow
}
但是,当我去编译它给我以下错误:
sbt.ResolveException: unresolved dependency: com.codahale#jerkson;0.6.0-SNAPSHOT: not found
这里有什么猜测吗?奇怪的是,这是我第一次需要解决源依赖关系,所以不要无知。谢谢!