首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >幻象依赖错误

幻象依赖错误
EN

Stack Overflow用户
提问于 2016-08-20 17:45:48
回答 1查看 326关注 0票数 0

我试图将幻影集成到我的项目中:这是我的build.sbt文件:

代码语言:javascript
复制
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

代码语言:javascript
复制
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#幻影-udt_2.11;1.27.0: not &&未解决的依赖:com.websudos#幻影-sbt_2.11;1.27.0:未找到

有人能告诉我我的密码有什么问题吗。非常感谢。

build.sbt

代码语言:javascript
复制
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"
    )
  }
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-08-20 18:52:48

根据文档,真正需要开始的是:

代码语言:javascript
复制
val phantomV = "1.27.0"

libraryDependencies ++= Seq(
  "com.websudos"  %% "phantom-dsl" % phantomV
)

我已经更新了文档以纠正我们这方面的错误,UDT模块还没有可用,在以后的版本中要注意它。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/39057055

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档