原来用myeclipse,直接可以发布项目到tomcat的webapps目录下面,后来感觉myeclipse太臃肿太卡了。现在改用eclipse(Kepler),部署web项目时,想要直接发布到webapps下面,需要做如下设置:

 

window-->show view,打开Servers视图,添加一个Tomcat v7.0 Server,暂不添加任何web项目,右键该server-->open,打开其配置界面:

eclipse下直接部署web项目到tomcat的webapps目录
  修改Server Locations配置,选中“Use Tomcat installation”,“Deploy Path”处修改为了“webapps”(默认为“wtpwebapps”),修改Timeouts的默认时间。然后保存就OK。

 

这里选中Publish module contexts to separate XML files选项,是为了在Publish项目时,不修改conf\server.xml文件,而是在 conf\Catalina\localhost 下面新增发布文件。

 

后面Publish项目时,在webapps下就能看到发布的项目了。

 

注:我这里使用的eclipse(Kepler版本)貌似不需要安装tomcat插件,run on server时,新建个tomcat server的runtime环境就行了。

相关文章:

  • 2021-11-19
  • 2021-11-07
  • 2021-11-29
  • 2021-07-31
  • 2021-08-23
  • 2021-11-02
  • 2022-01-21
  • 2021-05-21
猜你喜欢
  • 2021-07-22
  • 2021-04-21
  • 2021-10-19
  • 2021-08-10
  • 2021-08-12
  • 2021-05-11
相关资源
相似解决方案