如何将 SBT 与多个子项目 Web 应用程序一起使用? [英] How to use SBT with multiple sub project web applications?

查看:70
本文介绍了如何将 SBT 与多个子项目 Web 应用程序一起使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 SBT 构建一些 Web 应用程序来处理我的依赖项.Web 应用程序使用一些公共库,最终可能会在同一个 Web 容器中运行.我想使用一个项目设置,其中每个 Web 应用程序都是子项目,并且当我在 SBT 中运行 container:start 时启动所有这些应用程序.是否有任何指南如何设置?有没有更好的方法来组织我的项目?

I am building some web applications using SBT to handle my dependencies. The web apps are using some common libraries and will likely end up running in the same web container. I would like to use a project setup where each of these web applications are sub-projects and all of them are started when I run container:start in SBT. Are there any guides how to set this up? Is there a better way to organize my project?

推荐答案

xsbt-webplugin 在 src/sbt-test/webapp-common/multi-container.

xsbt-webplugin has an example in src/sbt-test/webapp-common/multi-container.

这篇关于如何将 SBT 与多个子项目 Web 应用程序一起使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆