An sbt plugin for building Scala Web applications
Questions tagged [xsbt-web-plugin]
68 questions
3
votes
3 answers
How can sbt-web output be used with xsbt-web-plugin via a SBT project dependency?
I am trying to use the sbt-web plugin without the play framework and instead build a webapp using the xsbt-web-plugin.
I have gotten the sbt-web plugin working correctly in handling the asset pipeline and have it creating a valid webjar output (via…

Martin Snyder
- 508
- 3
- 12
3
votes
1 answer
How to "package" some modules to jars and others to wars in multi-module build with single task?
I use package task (from xsbt-web-plugin) to package a project to a war, and assembly task (from sbt-assembly) to package the project to a jar.
I have a multi-module build and some modules are packaged into wars and some into jars.
I'd like to set…

Cherry
- 31,309
- 66
- 224
- 364
2
votes
3 answers
sbt, jetty and classpath
I'm trying to use the SBT with the xsbt-web-plugin.
Followed the instructions on the projects website but continue to get the following (sorry for the length)
sbt.JettyRunException: Jetty and its dependencies must be on the jetty classpath
at…

Anthony Dupre
- 23
- 1
- 5
2
votes
1 answer
How to use Payara Micro with xsbt-web-plugin?
I'm trying to set up a service with Payara Micro (5.191) and xsbt-web-plugin (4.0.2).
build.sbt:
ThisBuild / organization := "local.test"
ThisBuild / version := "0.1.0-SNAPSHOT"
ThisBuild / scalaVersion := "2.12.8"
lazy val testService = project
…

Chris
- 31
- 5
2
votes
2 answers
SBT prepare WAR file, duplicate entry: META-INF/MANIFEST.MF
I am trying to pack one of the modules of my application into a war.
I have chosen xsbt-web-plugin to help me out.
I have prepared the sbt, I guess correctly:
lazy val `my-project` = (project in file("my-project"))
...
…

Atais
- 10,857
- 6
- 71
- 111
2
votes
2 answers
Sbt-LESS: TypeError: [object Object] is not a function, it is object
After updating Sbt-less from 1.0.6 to 1.1.0 on a Play project, I am receiving this error output when I try to git push heroku master:
remote: [error] TypeError: [object Object] is not a function, it is object.…

Drakken Saer
- 859
- 2
- 10
- 29
2
votes
2 answers
sbt-web asset output directory setup
Scenario
I have a fairly simple Scalatra project with Scala.js and LESS for which I need to create an sbt build configuration. The project is separated into three parts: jvm, js, shared code.
My current build config uses xsbt-web-plugin for WAR…

Athelionas
- 181
- 3
- 12
2
votes
2 answers
Where does is published com.earldouglas#xsbt-web-plugin?
I am trying to update spray project, and got
sbt.ResolveException: unresolved dependency: com.earldouglas#xsbt-web-plugin;1.0.0-M7: not found
I have added Typesafe repository
resolvers ++= Seq("spray repo" at "http://repo.spray.io",
"Typesafe…

Cherry
- 31,309
- 66
- 224
- 364
2
votes
1 answer
Exclude files from Play framework production build
I'd like to use sbt-web to process my client-side assets. I have some source files that are going to be fed into sbt-web, and sbt-web is going to output some distribution files.
Is there a way to tell Play framework to exclude these source files…

jyoung
- 322
- 3
- 13
2
votes
1 answer
How to set system property for xsbt-web-plugin's jetty()?
I've migrated my project to 0.13.5 and started using the xsbt-web-plugin.
I'd like to configure logback to be using a configuration file outside the classpath which is set by a system property logback.configurationFile (so I can keep the logconfig…

Albert
- 2,125
- 1
- 19
- 24
2
votes
1 answer
How to launch multiple Tomcat instances with different ports per Spray application using xsbt-web-plugin?
I have a Spray app that will be ultimately deployed to an array of Apache Tomcat servers.
During development it would be convenient to be able to launch multiple instances of Tomcat running the app on different ports from sbt.
The checkbox item…

henry
- 5,923
- 29
- 46
2
votes
2 answers
How to stop xsbt from reloading webapp on resources change
We are using sbt with xsbt-web-plugin to develop our liftweb app. In our project build we have several subprojects and we use dependencies of a Project to share some stuff between all the subprojects.
object ProjectBuild extends Build {
//...
lazy…

Oleg Stepura
- 95
- 2
- 11
2
votes
1 answer
How to have different webapp resources for container:start and package tasks in SBT
I have a web application with pure JS frontend and Scala backend. I would like to use Grunt in my build pipeline to process src/main/webapp into target dist/webapp dir with concatenated/minified js and html files, compiled sass sheets etc. I also…

kciesielski
- 1,178
- 9
- 18
2
votes
1 answer
deploy scalatra app on heroku error plugin not found
I followed the guide of deploying a Scalatra app on Heroku [lien] http://www.scalatra.org/guides/deployment/heroku.html#toc_177 and I get the following error:
> [error] (*:update) sbt.ResolveException: unresolved dependency:…

yotta
- 35
- 4
2
votes
1 answer
Request log in console for Jetty container using xsbt-web-plugin
I'm using the xsbt-web-plugin to develop a webservice.
For easier debugging I would like to switch on request logs in console like the line below.
[22/Dez/2012:15:29:56 +0000] "GET /messages HTTP/1.1" 200 27276
In production I'm using…

magegu
- 530
- 4
- 18