An sbt plugin for building Scala Web applications
Questions tagged [xsbt-web-plugin]
68 questions
1
vote
1 answer
Deploying Spring MVC from SBT
I'm having trouble deploying my Spring MVC Webapp with the xsbt-web-plugin. When i'm using container:start everything works just fine, but when i'm trying to run the packaged .war file inside a tomcat instance the webapp isn't loaded. It is just…

Benedikt Lang
- 21
- 4
1
vote
1 answer
What is the difference between jetty:start and jetty:quickstart in xsbt-web-plugin
I am running a scala 2.11.12 app on lift 3.3.0 built with sbt 1.3.8. I have tried 4.0.3 and 4.2.0 of xsbt-web-plugin. My app launches fine when I use jetty:start but when I use jetty:quickstart it fails to launch - I get a 500 error in the browser…

Andrew Bucknell
- 1,880
- 3
- 21
- 32
1
vote
1 answer
Need to provide addtional jars to for xsbt-web-plugin container
I am trying to run my war file using xsbt-web-plugin. My war itself does not contain tomcat-jdbc-pool jar and javax-servlet-api. I tried using container configuration. But sbt complains configuration does not exist.
If I use provided configuration,…

Rashid Shaikh
- 395
- 4
- 12
1
vote
1 answer
xsbt forked jvm with system properties
I've noticed that in the latest version of xsbt the jetty container gets forked and passing system properties no longer works.
I was looking for a simple way to pass a port number via system property when launching sbt in order to set the port for…

jpswain
- 14,642
- 8
- 58
- 63
1
vote
0 answers
SBT hook into incremental compilation
Is there a way to hook into incremental compilation? I need to start some process only once when user start some task, and then stop it when task is stopped. Even if it is started with "~", the important point is that process should not be restarted…
user124722
1
vote
1 answer
webappResources in package := Seq(baseDirectory.value ....) throws Error parsing expression
I try to configure sbt (version 0.9.0) to use webapp/dist as the webappResource directory when running package task in sbt, and webapp/app as the webappResource directory when running the container:start command, following this description:
How to…

s4w
- 11
- 2
1
vote
1 answer
sbt-uglify compressOptions not taking?
I have been trying to add in sbt-uglify, which has worked out through trial and error. I find the documentation lacking and Google results not good. This plugin is based on UglifyJS.
The issue I am having is the fact that it drops unreachable code…

ClearBucket
- 45
- 1
- 7
1
vote
1 answer
Why does inspect compile:packageWar::packagedArtifact fail in the Sbt console when using xsbt-web-plugin?
I am using xsbt-web-plugin with Sbt 0.13.2. If I add the following to build.sbt I can type "myTask" in the console and it works:
val myTask = taskKey[Unit]("My task.")
myTask := {
val (art, file) = packagedArtifact.in(Compile,…

Integrator
- 519
- 5
- 14
1
vote
1 answer
How to include per Project Jar file with xsbt-web-plugin / merge application.conf?
I just switched from maven to sbt for a Scala build. Since part of the builds are also war files, I use xsbt-web-plugin to create war files with sbt. Everything works fine, except an issue with the outputted WAR.
The WAR dependsOn two other sub…

Elmar Weber
- 2,683
- 28
- 28
1
vote
1 answer
Create an executable jar for SBT scalatra webapp using Jetty
I wrote a small scalatra webapp using SBT. Webapp has default jetty plugin configured. Now i want to create an executable jar from that scalatra webapp which should run by simply executing the jar. I am trying to bundle the jar with assembly plugin…

Rajeev
- 4,762
- 8
- 41
- 63
1
vote
1 answer
Configuring xsbt-web-plugin to open JMX and allow MBean inspection with JConsole/VisualVM
How can I configure xsbt-web-plugin to open JMX port so I can inspect MBeans with Jconsole or VisualVM?
With my current setup VisualVM displays no MBean saying "the JMX connection could not be established".
I'm guessing the desired result would be…

Edi
- 621
- 6
- 17
1
vote
1 answer
SBT "package" depend on "test"
How do I make target "package" depend on target "test" ?
There is a solution here: Force sbt 0.11 to run tests
But it doesn't really work with the xsbt-web-plugin.

VasiliNovikov
- 9,681
- 4
- 44
- 62
1
vote
1 answer
How can I set the heap size of spray-can in Sbt's Build.scala?
I've got a running sbt project that can start my server using re-start. The setup was done using the xsbt-web-plugin.
Now I noticed that the server process runs with a heap of 128M which is a little short. I know how to configure the heap size for…

iwein
- 25,788
- 10
- 70
- 111
1
vote
1 answer
sbt-web-plugin: specifying classpath to jetty with configurationXml
I trying to create custom configuration for jetty when using sbt-web-plugin (for running with container:start). There are two container settings allowing to specify custom jetty xml configuration: configurationFiles and configurationXml (when…

kolen
- 2,752
- 2
- 27
- 35
0
votes
1 answer
xsbt-web: after start the container, I cannot access the webpage
my build.sbt:
name := "admin"
version := "1.0"
scalaVersion := "2.9.1"
seq(webSettings: _*)
scanDirectories in Compile := Nil
/************************************************************************/
// Jetty configurations
port in…

Evans Y.
- 4,209
- 6
- 35
- 43