eclipse exception:File not found: .\target\m2e-wtp\web-resources\
来源:互联网 发布:python 游戏编程 编辑:程序博客网 时间:2024/05/16 06:26
eclipse exception:File not found: ..\target\m2e-wtp\web-resources\
What is this web resources folder
target/m2e-wtp/web-resources/ is a folder containing automatically generated resources, that need to be deployed on the application server. These generated resources are :
pom.properties and MANIFEST.MF generated by the mavenarchiver plugin
resources defined in the <webResources> section of the maven-war-plugin's configuration, or filtered web.xml
The target/m2e-wtp/web-resources/ is derived. In Eclipse lingo, it means it'll display a warning if you try to manually edit the files it contains, as they'll most likely be overridden automatically in the next (incremental or not) project build.
If you look in your <project>/.settings/ormon.component file, you will see /target/m2e-wtp/web-resources is defined BEFORE the regular war source directory :
<project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="webapp">
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
<wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/>
<wb-resource deploy-path="/" source-path="/src/main/webapp"/>
<property name="context-root" value="webapp"/>
<property name="java-output-path" value="/webapp/target/classes"/>
</wb-module>
</project-modules>
The rationale behind this order is, if two files from two different source folders collide, WTP will deploy the first one it finds. So if you filter your web.xml sitting under src/main/webapp/WEB-INF, you will want the filtered version to be deployed on the server, that is target/m2e-wtp/web-resources/WEB-INF/web.xml. If, for some reason, you would like to disable the use of target/m2e-wtp/web-resources/, well, know that you can. i
修改myeclipse工程目录下.settings中:
org.eclipse.wst.common.component文件;
修改wb-resource顺序为:所要的排最上面
<?xml version="1.0" encoding="UTF-8"?>
<project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="winshare-center">
<wb-resource deploy-path="/" source-path="/src/main/webapp"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
<wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/>
<property name="java-output-path" value="/winshare-center/target/classes"/>
<property name="component.exclusion.patterns" value="build/**"/>
<property name="context-root" value="winshare-center"/>
</wb-module>
</project-modules>
- eclipse exception:File not found: .\target\m2e-wtp\web-resources\
- File not found: ..\target\m2e-wtp\web-resources\META-INF\MANIFEST.MF.
- m2e-wtp error: <path>/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF (No such file or directory)
- Maven does not create the "/target/m2e-wtp/web-resources" folder
- D:\eclipse\WorkspaceOne\ssm-demo2\target\m2e-wtp\web-resources\META-INF\MANIFEST.MF (系统找不到指定的路径。)
- tomcat运行springmvc项目:m2e-wtp error: <path>/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF (No such
- target\m2e-wtp\web-resources\META-INF\MANIFEST.MF (系统找不到指定的路径。)
- Exception:org.eclipse.m2e.wtp.MarkedException: Unable to configure OHBC
- eclipse的maven项目中target目录m2e-wtp无法提交到SVN的处理办法
- Spring config location file not found exception
- eclipse/sts 发布项目时出现错误Exception: Publishing failed. File not found: {path}/ pom.properties.
- m2e-wtp的作用
- eclipse安装m2e报错required items could not be found
- Eclipse: class file editor: source not found
- eclipse class file editor source not found
- Not found in 'org.owasp.esapi.resources' directory or file not readable
- TransformerFactoryImpl not found exception
- WordCount not Found Exception
- Struts2的转发和重定向
- android反编译工具
- js/jq获取浏览器宽高
- Ubuntu14上安装配置Hadoop2.6.0
- Mac上的抓包工具Charles
- eclipse exception:File not found: .\target\m2e-wtp\web-resources\
- Jacobi迭代法的C++代码实现
- ContentProvider和Uri详解
- 录制badboy脚本的时候弹出脚本错误
- java
- Chrome开发者工具不完全指南(一、基础功能篇)
- SpringMVC学习
- STL学习
- cisco lan switching cli