scala - How to configure my SBT to use a plugin with a specified plugin? -


i want use lifty plugin, failed download in sbt.

c:\users\freewind>sbt sbt-version [info] 0.12.3 > console welcome scala version 2.9.2 (java hotspot(tm) 64-bit server vm, java 1.7.0_04). 

i followed document of lifty, insert code project/plugins.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 build.sbt:

seq( lifty.liftysettings : _*) 

it reports warnings when run sbt:

[warn]  module not found: org.lifty#lifty;1.7.4 [warn] ==== typesafe-ivy-releases: tried [warn]   http://repo.typesafe.com/typesafe/ivy-releases/org.lifty/lifty/scala_2.9.2/sbt_0.12/1.7.4/ivys/ivy.xml [warn] ==== sbt-plugin-releases: tried [warn]   http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases/org.lifty/lifty/scala_2.9.2/sbt_0.12/1.7.4/ivys/ivy.xml [warn] ==== local: tried [warn]   x:\.sbt\local\org.lifty\lifty\scala_2.9.2\sbt_0.12\1.7.4\ivys\ivy.xml [warn] ==== sbt-plugin-releases: tried [warn]   http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases/org.lifty/lifty/scala_2.9.2/sbt_0.12/1.7.4/ivys/ivy.xml [warn] ==== public: tried [warn]   http://repo1.maven.org/maven2/org/lifty/lifty_2.9.2_0.12/1.7.4/lifty-1.7.4.pom 

you can see tries find somewhere include lifty\scala_2.9.2\sbt_0.12

but resolver, can find 1 valid url of:

http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases/org.lifty/lifty/scala_2.9.1/sbt_0.11.2/1.7.4/ 

it supports scala_2.9.1 , sbt-0.11.2.

how change configuration use specified version of lifty?

in sbt build definition file build.sbt change scala version

scalaversion := 2.9.1 

that should work.

also fyi,

lifty not under development more. https://github.com/lifty/lifty


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -