以下是一些原因:
In支持JAR:
- 易于构建和部署。
- 像Jetty这样的嵌入式服务器很容易操作。
- 用户可以轻松启动应用程序,也可以在个人计算机上运行,因为它们非常轻便。
- 启动和停止应用程序将需要的知识少于管理网络服务器。
- Simple to build and deploy.
- Embedded servers like Jetty are easy to operate.
- Applications are easy for users to start and they can run on their personal computers too, because they are lightweight.
- Starting and stopping applications will require less knowledge than managing web servers.
赞成WAR或EAR:
- 服务器将同时为多个Web应用程序提供部署,重启,安全等功能。
- 也许单独的部署团队可以处理启动和停止应用程序。
- 如果您的主管喜欢遵守规则,他们会很高兴地发现您没有违规。
话虽如此,您始终可以提供2种或3种类型的可执行文件以满足所有需求。任何构建工具都可以轻松实现。
Having said this, you can always provide 2 or 3 types of executables to cater to all needs. Any build tool makes this easy.