Lifty | unresolved dependency: org.lifty#lifty;1.7.4: not found

北慕城南 提交于 2019-12-24 06:42:59

问题


I'm trying to add in plugins/build.sbt:

resolvers += Resolver.url("sbt-plugin-releases",
  new URL("http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases/"))(Resolver.ivyStylePatterns)

addSbtPlugin("org.lifty" % "lifty" % "1.7.4")

and then I get:

Exception: unresolved dependency: org.lifty#lifty;1.7.4: not found

Any ideas how to fix it ?

I'm doing as it says on http://lifty.github.com/Installing+The+Plugin.html


回答1:


Lifty has not (yet) released an sbt-0.11.3 binary. (You can see this by visiting http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases).

Fortunately, sbt-0.11.2 plugins are binary compatible with sbt-0.11.3. Unfortunately, the syntax for using an 0.11.2 plugin from 0.11.3 is a bit wonky:

libraryDependencies += 
  Defaults.sbtPluginExtra( 
    "org.lifty" % "lifty" % "1.7.4", 
    "0.11.2", 
    "2.9.1" 
  ) 

While another alternative would be to use sbt-0.11.2, the scala-tools.org shutdown has made that just slightly problematic. You'd have to use the 0.11.3-2 launcher, specify sbt.version=0.11.2 in project/build.properties, and add the Sonatype repo as a resolver.



来源:https://stackoverflow.com/questions/11010597/lifty-unresolved-dependency-org-liftylifty1-7-4-not-found

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!