[英]Multi-project build with xsbt-web-plugin not packaging WAR file
I have multiple projects, one of which needs to be packaged as a WAR file. 我有多个项目,其中一个项目需要打包为WAR文件。 However, it gets packaged as a JAR File.
但是,它被打包为JAR文件。 Here's my build file:
这是我的构建文件:
enablePlugins(WarPlugin)
val foo = project in file("foo")
val war = project in file("war")
val root = project in file(".") aggregate(foo, war)
I noticed that what does get built is the root project, so I moved the enablePlugins
call to the specific project: 我注意到,这是什么得到建是根项目,让我感动的
enablePlugins
打电话到具体项目:
val foo = project in file("foo")
val war = (project in file("war"))
.enablePlugins(WarPlugin)
val root = project in file(".") aggregate(foo, war)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.