简体   繁体   English

使用xsbt-web-plugin的多项目构建不打包WAR文件

[英]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.

相关问题 如何配置build.sbt以便xsbt-web-plugin创建war文件而不压缩? - How to configure build.sbt so that xsbt-web-plugin a creates war file without compression? SBT从使用xsbt-web-plugin打包的war文件中排除scala-library.jar - SBT exclude scala-library.jar from a war file packaged using xsbt-web-plugin 如何通过xsbt-web-plugin / merge application.conf包含每个Project Jar文件? - How to include per Project Jar file with xsbt-web-plugin / merge application.conf? 使用 xsbt-web-plugin 的 xsbt 0.10.x 在构建期间无法找到 org.eclipse.jetty - xsbt 0.10.x using xsbt-web-plugin fails to find org.eclipse.jetty during build 如何为xsbt-web-plugin指定jetty.xml配置文件 - How to specify a jetty.xml config file for xsbt-web-plugin xsbt-web-plugin在sbt之外运行Webservelet容器? - xsbt-web-plugin Running the web servelet container outside of sbt? 使用xsbt-web-plugin配置Lift:查找主要方法类 - Configuring Lift with xsbt-web-plugin: finding the main method class 使用xsbt-web-plugin请求Jetty容器的登录控制台 - Request log in console for Jetty container using xsbt-web-plugin xsbt-web-plugin 中的 jetty:start 和 jetty:quickstart 有什么区别 - What is the difference between jetty:start and jetty:quickstart in xsbt-web-plugin 使用xsbt-web-plugin时,为什么在Sbt控制台中检查compile:packageWar :: packagedArtifact失败? - Why does inspect compile:packageWar::packagedArtifact fail in the Sbt console when using xsbt-web-plugin?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM