Getting started with Lift and Lifty

I am trying to get started with the Lift frame by reading Upgrade in Action. I would like to familiarize myself with examples, but I immediately stumbled over a problem with installing Lift. I know that there are several ways to easily start with Lift, but I would like to use Lifty, as the book does, to keep track of it.

The problem is that both Lifty and sbt(and Lift!) Moved forward as the book was published. I installed sbtfrom the Typesafe repository for Ubuntu. Now I'm stuck trying to install Lifty.

After the Lifty documentation and this answer to SO - due to the fact that Lifty did not release binary for sbt0.11.3 - I decided that I should put in the ~/.sbt/plugins/build.sbtfollowing:

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")

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

sbt Lifty- sbt 0.11.2.

sbt, , Lifty , lifty. ,

lifty learn lift https://raw.github.com/Lifty/lifty/master/lifty-recipe/lifty.json

sbt :

[error] Not a valid key: lifty (similar: history)
[error] lifty learn lift https://raw.github.com/Lifty/lifty/master/lifty-recipe/lifty.json
[error]      ^

Lifty? , Scala, sbt Lift.

Lifty, sbt 0.7.7.

> lift create project-blank
> reload
> update

[error] sbt.ResolveException: unresolved dependency: net.liftweb#lift-webkit_2.9.1;2.3-RC3: not found
[error] unresolved dependency: org.scala-tools.testing#specs_2.9.1;1.6.6: not found
[info] == update ==
[error] Error running update: sbt.ResolveException: unresolved dependency: net.liftweb#lift-webkit_2.9.1;2.3-RC3: not found
[error] unresolved dependency: org.scala-tools.testing#specs_2.9.1;1.6.6: not found
+5
1

, . sbt stable - 0.13.0. sbt community repo, , , 1.7.4 sbt 0.11.2.

- :

Lift Cookbook - , , Lift.

Scratch SBT:

- Lift ZIP , - Lift.

SBT Lift . , . SBT project/plugins.sbt ( ):

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

SBT, xsbt-web-.

SBT, build.sbt...

, xsbt-web- 0.3.0 sbt 0.12. sbt 0.12, . xsbt-web-plugin sbt 0.13 0.4.2, project/plugins.sbt put:

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

resolvers += Resolver.sonatypeRepo("public")

... , , sbt 0.13, :

> container:start
[info] Compiling 1 Scala source to /foo/sbt-lift-test/target/scala-2.10/classes...
[info] jetty-8.1.7.v20120910
....
[success] Total time: 2 s, completed Sep 20, 2013 10:34:22 PM

http://localhost:8080/ :

, Lift

0

All Articles