An sbt plugin for building Scala Web applications
Questions tagged [xsbt-web-plugin]
68 questions
22
votes
3 answers
Auto-reloading files in Scala/Lift/SBT .11?
In SBT .7, you could do
~jetty-run
in order to get your files to auto compile and reload the web app whenever something changes. In SBT .11, You can do
~container:start
which also re-compiles files, but does not seem to reload the web app,…

Li Haoyi
- 15,330
- 17
- 80
- 137
10
votes
1 answer
How can I deploy a web app with sbt 0.11?
it seems that both the jetty-run and jetty commands are missing from SBT 0.11. Either that or I am doing something very wrong. I am simply running sbt, then trying to run jetty-run. I have defined a web.xml file in src/main/webapp/WEB-INF/web.xml…

AlbertoPL
- 11,479
- 5
- 49
- 73
7
votes
1 answer
sbt web plugin: Not a valid key: jetty-run (similar: jetty-port, jetty-context, run)
I'm trying to set up a scala sbt project with the lift web framework. I'm using
scala 2.9.0-1
sbt 0.10.1
lift 2.3
xsbt-web-plugin 0.1.1 (which is only on scala 2.8.1, see end of question)
(quite recent versions I know).
I followed…

jolivier
- 7,380
- 3
- 29
- 47
7
votes
1 answer
lift does not build with sbt?
I am following the steps for sbt 0.10 on the Assembla Lift wiki and get the following error:
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] ::…

Alex
- 8,518
- 4
- 28
- 40
7
votes
1 answer
What is the difference between "container" and "provided" in SBT dependencies?
When reading build.sbt of many web applications, one can often see dependencies marked as "provided", see e.g. sbt-assembly documentation:
"org.apache.spark" %% "spark-core" % "0.8.0-incubating" % "provided"
I was unable to find any mention in SBT…

Suma
- 33,181
- 16
- 123
- 191
7
votes
1 answer
How to share resources between projects in SBT
The project I'm working on at work is a webapp on the Lift Framework. We're using xsbt web plugin as well. There's a "core" project, which contains the vast majority of the functionality; my current goal is to create two "distribution" projects that…

Dylan
- 13,645
- 3
- 40
- 67
6
votes
1 answer
SBT Web Plugin : Error getting ScopedKey(Scope(This,Select(ConfigKey(container)),This,This),full-classpath)
I'm trying to set up scala web project with sbt. I've following settings.
scala 2.9.0-1
sbt 0.11.0
xsbt-web-plugin 0.2.1
project/plugins.sbt
libraryDependencies <+= sbtVersion(v => "com.github.siasia" %% "xsbt-web-plugin" %…

Chathurika Sandarenu
- 1,368
- 13
- 25
5
votes
2 answers
Handling container stop/reload event
A have lift app starting ssh daemon in Boot.scala.
Here is the problem: when i run container:restart / in sbt session I get Address alread in use exception.
Now two questions:
Is it right way to start dependent service in Boot.scala?
Anyway how is…

Andrey Kuznetsov
- 11,640
- 9
- 47
- 70
5
votes
2 answers
How to configure build.sbt so that xsbt-web-plugin a creates war file without compression?
I am using Scala 2.10.1 with sbt to package my webapp as a war file.
For the purpose of efficient rsync deltas, I'd like to have the war packaged as a .war file, but without zip compression. I just need to know how to configure my build for…

jpswain
- 14,642
- 8
- 58
- 63
4
votes
2 answers
sbt 0.11.2 how to combine ~copy-resources with ~aux-compile
I'm using sbt 0.11.2 with xsbt-web-plugin 0.2.10 to build a Wicket (1.5.3) app. I'm using this version of Jetty:
"org.eclipse.jetty" % "jetty-webapp" % "8.0.1.v20110908" % "container",
So when I do
> container:start
my app starts up just…

jpswain
- 14,642
- 8
- 58
- 63
4
votes
1 answer
how to set the contextPath of jetty on xsbt-web-plugin?
I'm on sbt 0.11.1 and xsbt-web-plugin 0.2.10
here goes the build.sbt and plugins.sbt
build.sbt
organization := "org"
name := "demo"
version := "0.1.0-SNAPSHOT"
scalaVersion := "2.9.1"
seq(webSettings :_*)
configurationXml :=
…

Septem
- 3,614
- 1
- 20
- 20
4
votes
1 answer
Overriding jetty port setting when using Build.scala files
I am moving my build from build.sbt to Build.scala files and I am having trouble overriding the jetty port setting when using the xsbt-web-plugin. When using build.sbt I was able to set the property using:
port in container.Configuration :=…

Leesrus
- 1,095
- 2
- 11
- 19
4
votes
1 answer
resolvers not shared to dependent sbt projects?
In this weird case that seems to involve xsbt-web-plugin, I get the error
unresolved dependency: play#play-json_2.10;2.2-SNAPSHOT: not found
when loading the server subproject. The dependency and the correct resolver are specified in the library…

arya
- 946
- 5
- 14
3
votes
1 answer
How can I tell sbt to exclude files from the WAR but allow them to be loaded by container:start?
I have an an sbt 11.0 project that I originally wrote again xsbt-web-plugin 0.1.x. Against that version I was able to use the following line to cause some files not to be included in the WAR but to be loaded when I did jetty-run. …

Leif Wickland
- 3,693
- 26
- 43
3
votes
1 answer
spray akka deployment on webserver
I have an application built on spray + akka. using this guide:
http://sysgears.com/articles/building-rest-service-with-scala/
It explains this example: https://github.com/oermolaev/simple-scala-rest-example
The application is working just fine. But…

griffon vulture
- 6,594
- 6
- 36
- 57