Maven/Eclipse/WTP-/src/main/resources未部署 [英] Maven / Eclipse / WTP - /src/main/resources not deployed
本文介绍了Maven/Eclipse/WTP-/src/main/resources未部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在运行一个Maven/Web/Eclipse项目.
I have a Maven/Web/Eclipse project running.
当我在Eclipse中部署时,/src/main/resources的内容未部署.
When I deploy in Eclipse, the contents of /src/main/resources are not deployed.
这是我的org.eclipse.wst.common.component
文件:
<?xml version="1.0" encoding="UTF-8"?>
<project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="Grapevine">
<wb-resource deploy-path="/" source-path="/src/main/webapp"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
<property name="context-root" value="Grapevine"/>
<property name="java-output-path" value="/Grapevine/target/classes"/>
</wb-module>
</project-modules>
注意-如果执行mvn install
,则战争将正确建立,包括资源文件.
Note - if I do mvn install
the war is built correctly, including the resources files.
我正在使用:
- m2e 0.10.2.20100623-1649
- Eclipse 3.5(20090621-0832)
- WTP 3.1.1
我想念什么?
推荐答案
编译器是否有机会过滤输出文件夹?
Is the compiler, by any chance, filtering the output folders?
检查项目属性-> Java构建路径->源文件夹-> src/main/resources>是否排除(无).
Check if project properties -> Java Build Path -> source folders -> src/main/resources > excluded is anything other than (None).
这篇关于Maven/Eclipse/WTP-/src/main/resources未部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文