siasia/xsbt-web-plugin — Issue #43: Requiring src/main/webapp is unnecessary
Author: endarkenj
Created: 2011-10-11 18:46:41+00:00
State: open

Two scenarios:

(1) The app is using Servlet 3.0 Annotations _only_. Thus, src/main/webapp is not necessary at all.
(2) The app is a multi-module app and src/main/webapp is not in defined in some other dependent module (or it uses (1)) above.

I'm still trying to work out getting this plugin to work in a project using only servlet 3.0 annotations and a module structure:

root = AggregateProject(...)
core = Project()
module1 = Project(... dependsOn(core))
module2 = Project(... dependsOn(core))
module3 = Project(... dependsOn(module2))
war = Project(... dependsOn(module1, module3), settings = defaultSettings ++ webSettings))

However, I haven't been able to successfully get a war to package the dependent modules (and thus, I also assume that the jetty container isn't pulling in the other packages). I plan to file a separate issue when I determine the source of the problem.