ファントムを自分のプロジェクトに統合しようとしました: ここに私の build.sbt ファイルがあります:
resolvers ++= Seq (
"Java.net Maven2 Repository" at "http://download.java.net/maven/2/",
"Twitter Repository" at "http://maven.twttr.com",
Resolver.typesafeRepo("releases"),
Resolver.sonatypeRepo("releases"),
Resolver.bintrayRepo("websudos", "oss-releases")
)
libraryDependencies ++= {
val phantomV = "1.27.0"
Seq(
"com.websudos" %% "phantom-connectors" % phantomV,
"com.websudos" %% "phantom-dsl" % phantomV,
"com.websudos" %% "phantom-example" % phantomV,
"com.websudos" %% "phantom-finagle" % phantomV,
"com.websudos" %% "phantom-thrift" % phantomV,
"com.websudos" %% "phantom-udt" % phantomV,
"com.websudos" %% "phantom-sbt" % phantomV
)}
ここに私のplugin.sbtがあります
def websudosPattern = {
val pList = List("[organisation]/[module](_[scalaVersion])(_[sbtVersion])/[revision]/[artifact]-[revision](-[classifier]).[ext]")
Patterns(pList, pList, true)}
resolvers ++= Seq(
Resolver.url("Maven ivy Websudos",
url(Resolver.DefaultMavenRepositoryRoot))(websudosPattern))
リンクをたどります: https://github.com/outworkers/phantom/wiki/Integrating-phantom-in-your-project
しかし、まだエラーが発生しました: 未解決の依存関係: com.websudos#phantom-udt_2.11;1.27.0: 見つかりません && 未解決の依存関係: com.websudos#phantom-sbt_2.11;1.27.0: 見つかりません
誰でも私のコードのどこが悪いのか教えてもらえますか? どうもありがとう。
build.sbt _
scalaVersion := "2.11.6"
scalacOptions := Seq("-unchecked", "-deprecation", "-encoding", "utf8")
resolvers ++= Seq(
"Java.net Maven2 Repository" at "download.java.net/maven/2/";,
"Twitter Repository" at "maven.twttr.com",
Resolver.typesafeRepo("releases"),
Resolver.sonatypeRepo("releases"),
Resolver.bintrayRepo("websudos", "oss-releases")
)
libraryDependencies ++= {
val akkaV = "2.3.9"
val sprayV = "1.3.3"
val phantomV = "1.27.0"
Seq(
"com.websudos" %% "phantom-dsl" % phantomV,
"io.spray" %% "spray-can" % sprayV,
"io.spray" %% "spray-routing" % sprayV,
"io.spray" %% "spray-testkit" % sprayV % "test",
"io.spray" %% "spray-json" % "1.3.2",
"io.spray" %% "spray-routing-shapeless2" % sprayV,
"com.typesafe.akka" %% "akka-actor" % akkaV,
"com.typesafe.akka" %% "akka-testkit" % akkaV % "test",
"org.specs2" %% "specs2-core" % "2.3.11" % "test"
)
}