将带有webapp的WAR部署到Maven中央存储库是否有意义? [英] Does it make sense to deploy a WAR with a webapp to Maven central repository?

查看:102
本文介绍了将带有webapp的WAR部署到Maven中央存储库是否有意义?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这样做有意义吗?如果是,我在哪里可以找到一个简单的Web上的Hello World的例子?当人们从Maven执行它时,人们是否使用Jetty运行webapps?我想tomcat太重了。

Does it make sense to do that? If yes, where can I find an example of doing that with a simple "Hello World from Web"? Do people run webapps with Jetty when they execute it from Maven? I imagine tomcat is too heavy for that.

任何帮助都将不胜感激! Thx!

Any help will be appreciated! Thx!

推荐答案

我将 .war 文件部署到我们内部的Archiva Maven存储库,以便我可以将它们下载到RPMS之类的组件,而不必手动复制文件,与构建程序集相同。当 .war 类似于通用服务并且可能包含在多个其他Web应用程序补充中时,它也很有用。

I deploy .war files to our internal Archiva Maven repository so that I can pull them down to assembly things like RPMS without having to hand copy files around, same with building assemblies. It also is useful when the .war is something like a service that is generic and may be included in multiple other web app compliations.

那就是说,Central可能 .war 文件部署到。

That said, Central is probably NOT the place to be deploying .war files to.

这篇关于将带有webapp的WAR部署到Maven中央存储库是否有意义?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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