从Eclipse远程部署Tomcat webapp [英] Remote deploy Tomcat webapp from Eclipse

查看:155
本文介绍了从Eclipse远程部署Tomcat webapp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于开发和测试目的,我想将eclipse中的webapp部署到远程tomcat服务器。这可能吗 ?
如果没有,我应该如何设置我的开发环境,以便顺利和轻松的远程部署?

For development and testing purposes I'd like to deploy my webapp from within eclipse to a remote tomcat server. Is this possible ? If not, how should I set up my development environment for smooth and easy remote deployment ?

推荐答案

如果可以远程访问Tomcat管理器应用程序,然后您可以使用 Tomcat Ant任务 Tomcat Maven插件来处理这个。这两个都可以从Eclipse中调用。

If you can access the Tomcat manager application remotely then you can use the Tomcat Ant tasks or Tomcat Maven plugin to handle this. Both of these can then be called from within Eclipse.

使用Ant或Maven还可以让您从Eclipse外部进行部署。在我从IDE中分离部署的经验是有帮助的(我们的系统管理员不运行Eclipse!)。

Using either Ant or Maven also gives you the advantage of being able to deploy from outside of Eclipse. In my experience separating deployment from the IDE is helpful (our sysadmins don't run Eclipse!).

我的个人选择是Maven,但Ant在这方面同样有能力。我也使用Maven配置文件让我轻松地在本地/远程部署(不同的服务器,密码等)之间切换。

My personal choice is Maven, but Ant is equally capable in this area. I also use Maven profiles to let me easily switch between local/remote deployment (different server, passwords, etc).

这篇关于从Eclipse远程部署Tomcat webapp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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