在远程Tomcat上自动部署Java应用程序 [英] Automatic Deployment of Java application on Remote Tomcat

查看:133
本文介绍了在远程Tomcat上自动部署Java应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望能够将Java应用程序自动部署到tomcat服务器。

I want to be able to automatically deploy a Java application to a tomcat server.

当前情况:


  • 一个Java项目正在Eclipse中开发

  • Tomcat服务器正在另一台机器上运行,为该项目的WAR文件提供服务

我的目标:很容易将项目编译并部署到远程Tomcat服务器中。我不介意那样做是控制台命令/脚本,还是使用Eclipse GUI。

My goal: An easy possibility to compile and deploy the project into the remote Tomcat server. I don't mind if that would be a console command/script or by using the Eclipse GUI.

有可能吗?如果是,怎么办? (如果有可能需要更改我的设置,请随时为我提供更好的设置建议)

Is that possible? If yes, how? (If there are possibilites, which need changes on my setup, feel free to give me advice for a better suiting setup)

是的,我使用Maven。

Yes, i use Maven.

推荐答案

如果使用Maven,我建议使用货运插件,它支持所有Tomcat的版本,并具有部署到本地和远程服务器

If you use Maven I will suggest to use Cargo plugin which supports all Tomcat's version and have ability to deploy to local and remote servers.

这篇关于在远程Tomcat上自动部署Java应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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