Capistrano for Java? [英] Capistrano for Java?

查看:162
本文介绍了Capistrano for Java?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Capistrano的大粉丝,但是我需要为Java专卖店开发一个自动化的部署脚本。我看过蚂蚁和Maven,他们似乎并不适合远程管理Capistrano的方式 - 他们似乎更侧重于简单地构建和打包应用程序。有没有更好的工具?

解决方案

我不认为有一个类似Capistrano的应用程序的Java Web应用程序,但是这不应该真的让你不要使用它(或者像Fabric这样的选择)来部署你的应用程序。正如你已经说过的,Ant是GNU Make的替代品,而Maven是一个buildout /依赖关系管理应用程序。



由于Java Web应用程序是感谢.war容器较少依赖外部库,您可以(根据应用程序服务器)使应用程序像运行简单的HTTP PUT请求一样简单。



但是,如果您需要其他步骤, Fabric 迄今为止对我来说非常好,我认为Capistrano还提供通用的shell命令,放置和获取操作。所以如果你已经有了这个工作,我不会再寻找一个替代方案: - )


I'm a big fan of Capistrano but I need to develop an automated deployment script for a Java-only shop. I've looked at Ant and Maven and they don't seem to be well geared towards remote administration the way Capistrano is - they seem much more focused on simply building and packaging applications. Is there a better tool out there?

解决方案

I don't think there is a Capistrano-like application for Java Web Applications, but that shouldn't really keep you from using it (or alternatives like Fabric) to deploy your applications. As you've already said, Ant is more a replacement for GNU Make while Maven is primary a buildout/dependency-management application.

Since Java Web Applications are thanks to the .war container less dependent on external libraries, you can (depending on your application server) make deploying an application as easy as running a simple HTTP PUT-request.

But if you require additional steps, Fabric has worked very well for me so far and I assume that Capistrano also offers generic shell-command, put and get operations. So I wouldn't look for too long for an alternative if what you already have already works :-)

这篇关于Capistrano for Java?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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