开发者

Maven / Eclipse / WTP - /src/main/resources not deployed

I have a Maven/Web/Eclipse project running.

When I deploy in Eclipse, the contents of /src/main/resources are not deployed.

Here's my org.eclipse.wst.common.component file:

<?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" so开发者_开发知识库urce-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>

Note - if I do mvn install the war is built correctly, including the resources files.

I'm using:

  • m2e 0.10.2.20100623-1649
  • Eclipse 3.5 (20090621-0832)
  • WTP 3.1.1

What am I missing?


Is the compiler, by any chance, filtering the output folders?

Check if project properties -> Java Build Path -> source folders -> src/main/resources > excluded is anything other than (None).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜