xsbt-web-plugin

java.lang.reflect.InvocationTargetException in jetty-web.xml when setting WebAppContext.configurationClasses

女生的网名这么多〃 提交于 2019-12-04 21:53:43
I'm trying to add org.eclipse.jetty.annotations.AnnotationConfiguration to the configurationClasses property of org.eclipse.jetty.webapp.WebAppContext but (when invoking Jetty with sbt containe:start ), getting: [warn] Config error at <Set name="configurationClasses"> [warn] <Array type="java.lang.String"><Item>org.eclipse.jetty.webapp.WebInfConfiguration</Item><Item>org.eclipse.jetty.webapp.WebXmlConfiguration</Item><Item>org.eclipse.jetty.webapp.MetaInfConfiguration</Item><Item>org.eclipse.jetty.webapp.FragmentConfiguration</Item><Item>org.eclipse.jetty.plus.webapp.EnvConfiguration</Item>

sbt 0.11.2 how to combine ~copy-resources with ~aux-compile

爱⌒轻易说出口 提交于 2019-12-03 00:45:39
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 fine. But if I change some some of the html, the change does not kick in until I do > copy-resources and scala source code changes are not reflected until I do > aux-compile (this one was hard to find out!!) The problem is that I want this to be reflected immediately. I can do > ~ copy-resources or > ~ aux-compile separately so that one or the other will

xsbt plugin 1.0.0-M7 and scalatra

☆樱花仙子☆ 提交于 2019-12-02 15:05:23
问题 I have tried upgrading the xsbt plugin to 1.0.0-M7 in my scalatra project but scalatra does not seem to be compatible with this version. When I try to reload my project I get the error below. I have tried with version 2.3.0 of scalatra Regards Des java.lang.NoClassDefFoundError: com/earldouglas/xsbtwebplugin/PluginKeys$ at org.scalatra.sbt.ScalatraPlugin$.<init>(ScalatraPlugin.scala:15) at org.scalatra.sbt.ScalatraPlugin$.<clinit>(ScalatraPlugin.scala) at java.lang.Class.forName0(Native

xsbt plugin 1.0.0-M7 and scalatra

旧巷老猫 提交于 2019-12-02 09:56:36
I have tried upgrading the xsbt plugin to 1.0.0-M7 in my scalatra project but scalatra does not seem to be compatible with this version. When I try to reload my project I get the error below. I have tried with version 2.3.0 of scalatra Regards Des java.lang.NoClassDefFoundError: com/earldouglas/xsbtwebplugin/PluginKeys$ at org.scalatra.sbt.ScalatraPlugin$.<init>(ScalatraPlugin.scala:15) at org.scalatra.sbt.ScalatraPlugin$.<clinit>(ScalatraPlugin.scala) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:270) at sbt.ModuleUtilities$.getObject(ModuleUtilities.scala

How to share resources between projects in SBT

▼魔方 西西 提交于 2019-11-30 20:30:55
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 add a different set of classpath resources to the "core" project. The problem is that I either 1) can't get the "distribution" projects to run, or 2) Get them to run, but the required resource doesn't seem to be there. What I've tried Here's an abridged version of my project/Build.scala : lazy val core = Project("Core", file("core")) .settings( /

How to share resources between projects in SBT

我是研究僧i 提交于 2019-11-30 05:12:04
问题 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 add a different set of classpath resources to the "core" project. The problem is that I either 1) can't get the "distribution" projects to run, or 2) Get them to run, but the required resource doesn't seem to be there. What I've tried Here's an