Fail to use import "chosen" plugin in SBT:0.10.1

16 views
Skip to first unread message

Kevin

unread,
Sep 14, 2011, 7:41:43 AM9/14/11
to Lift
I ran into trouble of importing the plugin into sbt 0.10. I can't use
"import net.chosen" in the src/main/scala/code/xyz.scala

It seems the plugin was not downloaded. I only want to use the plugin
and have no any preferences. Appreciate any help!


//-------------------------app/build.sbt

seq(webSettings :_*)

scalaVersion := "2.8.1"

name := "Lift ToDo MongoDB"

version := "1.0"

organization := "Lift"

libraryDependencies ++= Seq(
"net.liftweb" %% "lift-webkit" % "2.4-M1" % "compile",
...
)

{
libraryDependencies += "net.chosen" % "chosen" % "0.9.3" from "https://
github.com/harvesthq/chosen"
}


//--------------Also try-app/project/plugins/build.sbt
resolvers += "Web plugin repo" at "http://siasia.github.com/maven2"

libraryDependencies <+= sbtVersion(v => "com.github.siasia" %% "xsbt-
web-plugin" % ("0.1.1-"+v))

libraryDependencies += "net.chosen" % "chosen" % "0.9.3" from "https://
github.com/harvesthq/chosen"

both ways not working.

Indrajit Raychaudhuri

unread,
Sep 14, 2011, 9:43:59 AM9/14/11
to lif...@googlegroups.com
According to Chosen's page [1], it is meant to be used as jQuery/Prototype plugin.
So you'll have to add them as .js file in your project and then use it in your html page.

- Indrajit

[1] http://harvesthq.github.com/chosen/


On Wednesday 14 September 2011 at 5:11 PM, Kevin wrote:

> I ran into trouble of importing the plugin into sbt 0.10. I can't use
> "import net.chosen" in the src/main/scala/code/xyz.scala
>
> It seems the plugin was not downloaded. I only want to use the plugin
> and have no any preferences. Appreciate any help!
>
>
> //-------------------------app/build.sbt
>
> seq(webSettings :_*)
>
> scalaVersion := "2.8.1"
>
> name := "Lift ToDo MongoDB"
>
> version := "1.0"
>
> organization := "Lift"
>
> libraryDependencies ++= Seq(
> "net.liftweb" %% "lift-webkit" % "2.4-M1" % "compile",
> ...
> )
>
> {
> libraryDependencies += "net.chosen" % "chosen" % "0.9.3" from "https://

> github.com/harvesthq/chosen (http://github.com/harvesthq/chosen)"


> }
>
>
> //--------------Also try-app/project/plugins/build.sbt
> resolvers += "Web plugin repo" at "http://siasia.github.com/maven2"
>
> libraryDependencies <+= sbtVersion(v => "com.github.siasia" %% "xsbt-
> web-plugin" % ("0.1.1-"+v))
>
> libraryDependencies += "net.chosen" % "chosen" % "0.9.3" from "https://

> github.com/harvesthq/chosen (http://github.com/harvesthq/chosen)"
>
> both ways not working.
>
> --
> You received this message because you are subscribed to the Google Groups "Lift" group.
> To post to this group, send email to lif...@googlegroups.com (mailto:lif...@googlegroups.com).
> To unsubscribe from this group, send email to liftweb+u...@googlegroups.com (mailto:liftweb+u...@googlegroups.com).
> For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.


Reply all
Reply to author
Forward
0 new messages