找不到Eclipse部署描述符 [英] Eclipse deployment descriptor not found

查看:208
本文介绍了找不到Eclipse部署描述符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在eclipse中创建的动态Web项目。我移动了WebContent文件夹的位置(位于/ src文件夹中)。但是,该项目仍然认为目录在 / projectName / WEB-INF / 下(我知道这是因为当我尝试在部署描述符中打开一个元素时它会告诉我该路径不存在(它不存在,但我需要让它指向新位置)。

I have a dynamic web project created in eclipse. I moved the location of the WebContent folder (to be located within the /src folder). However, the project still thinks that the directory is under /projectName/WEB-INF/ (I know this because when I try to open an element in the deployment descriptor it tells me that that path does not exist (it doesn't exist, but I need to have it point to the new location).

如何将构建指向新的WebContent文件夹(和WEB-INF等)的位置?谢谢。

How can I point the build to the new location of the WebContent folder (and WEB-INF etc.)? Thanks.

推荐答案

右键单击动态Web项目 - >属性 - >部署程序集。

Right click your dynamic web project -> Properties -> Deployment Assembly.

Web部署程序集中,更改程序包结构以反映您的更改。这应该可行。

In Web Deployment Assembly, change the package structure to reflect your change. That should work.

这篇关于找不到Eclipse部署描述符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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