使用 Eclipse 部署 GWT maven 项目部署 webapp 目录而不是目标/项目目录 [英] Deploy GWT maven project with eclipse deploys webapp directory instead of target/project directory

查看:33
本文介绍了使用 Eclipse 部署 GWT maven 项目部署 webapp 目录而不是目标/项目目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我选择在 Eclipse 中运行我的 gwt 项目时,它正在部署 src/main/webapp 目录,但我希望它发布 target/myproject 目录.我已经验证它正在将 src/main/webapp 的内容复制到 wtpwebapps/myproject.我如何配置 Eclipse Kepler 来部署我的 target/myproject 目录的内容.我真的不想将我的构建重定向到输出到 src/main/webapp 目录,因为这会污染我的 src 目录.过去,我总是手动配置 tomcat 以指向我在模块配置中生成的目标目录,但我真的很想让运行方式"->在服务器上运行"正常工作.

When I choose to run my gwt project in eclipse it is deploying the src/main/webapp directory but I want it to publish the target/myproject directory. I have verified that it is copying the contents of src/main/webapp to wtpwebapps/myproject. How can I configure Eclipse Kepler to deploy the contents of my target/myproject directory instead. I really don't want to have to redirect my build to output to the src/main/webapp directory as this would pollute my src directory. In the past I have always manually configured tomcat to point to my generated target directory in the modules configuration but I would really like to get the "Run as" -> "Run on server" to work correctly.

提前致谢

推荐答案

为了解决这个问题,我必须编辑我的项目部署程序集属性并将路径添加到目标/我的项目目录.执行此操作后,wtp 将我生成的项目的内容复制到 wtpwebapps/myproject 目录中.

To fix this problem I had to edit my projects Deployment Assembly properties and add the path to the target/myproject directory. After doing this wtp copied the contents of my generated project to the wtpwebapps/myproject directory.

这篇关于使用 Eclipse 部署 GWT maven 项目部署 webapp 目录而不是目标/项目目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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