【问题标题】:Where does is published com.earldouglas#xsbt-web-plugin?com.earldouglas#xsbt-web-plugin 在哪里发布?
【发布时间】:2015-07-09 04:57:39
【问题描述】:

我正在尝试更新spray 项目,并得到了

sbt.ResolveException: unresolved dependency: com.earldouglas#xsbt-web-plugin;1.0.0-M7: not found

我已添加 Typesafe 存储库

resolvers ++= Seq("spray repo" at "http://repo.spray.io",
"Typesafe Releases" at "http://repo.typesafe.com/typesafe/releases/")

但是还是不能解决这个依赖。

【问题讨论】:

  • “我正在尝试更新喷涂项目”是什么意思?

标签: scala repository sbt spray xsbt-web-plugin


【解决方案1】:

对于 1.0.0 之前的版本,xsbt-web-plugin 已发布到 Sonatype 并同步到 Maven Central。对于 1.0.0 及更高版本,发布到Bintray

未解决的依赖关系:com.earldouglas#xsbt-web-plugin;1.0.0-M7

您能否将您的依赖关系从1.0.0-M7 更新为1.0.0?更好的是,考虑更新到 2.3.0 或更高版本。

项目/plugins.sbt:

addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % "1.0.0")

【讨论】:

    【解决方案2】:

    build.sbt 中的以下代码对我有用

    resolvers += Resolver.bintrayRepo("earldouglas", "sbt-plugins") 
    addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % "2.2.0")
    
    resolvers += Resolver.url(
      "bintray-earldouglas-sbt-plugins",
      url("http://dl.bintray.com/earldouglas/sbt-plugins"))(
      Resolver.ivyStylePatterns) 
    

    【讨论】:

    • xsbt-web-plugin 包含在社区插件库中,因此不需要额外的resolvers
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-06-13
    • 2020-08-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-12-19
    相关资源
    最近更新 更多