There is a file called ".mymetadata",the content as below:
the web pages are in the src/web,not the default WebRoot.
so eclipse can not find the sources to copy.okay, change it,the web module will be deployed successful.
- <?xml version="1.0" encoding="UTF-8"?>
- <project-module
- type="WEB"
- name="test"
- id="myeclipse.1225948468964"
- context-root="/test"
- j2ee-spec="1.4"
- archive="test.war">
- <attributes>
- <attribute name="webrootdir" value="src/web" />
- </attributes>
- </project-module>
本文介绍了一个关于MyEclipse中网页模块部署的具体问题及其解决方案。问题在于项目的web资源不在默认的WebRoot目录下,而是位于src/web目录内,这导致了Eclipse无法正确复制资源文件。通过调整.mymetadata配置文件中的webrootdir属性,成功解决了部署问题。
1392

被折叠的 条评论
为什么被折叠?



