I think this is a change precipitated by the move to automatic publishing in Tomcat?, but basically, it looks like when I have a project in eclipse that uses the war overlay, the resources are being copied from the local parent project, rather than that parent's war file. There's lots of building going on in the parent project, and pulling in files will not work, I need to base the child project off of the parent projects war file. Ideas on how to do this?
*Edit -- some more details.
The overlay works, and is specified in the POM as:
<dependency>
<groupId>org.parentproject</groupId>
<artifactId>parentproject-web</artifactId>
<version>2.0-SNAPSHOT</version>
<type>war</type>
</dependency>
this leads to the following the 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="eurekastreams-web-ym2">
<wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/>
<wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
<dependent-module deploy-path="/" handle="module:/overlay/prj/parentproject-web?includes=**/**&excludes=META-INF/MANIFEST.MF">
<dependency-type>consumes</dependency-type>
</dependent-module>
<dependent-module deploy-path="/" handle="module:/overlay/slf/?includes=**/**&excludes=META-INF/MANIFEST.MF">
<dependency-type>consumes</dependency-type>
</dependent-module>
<property name="context-root" value="parentproject-web-childproject"/>
<property name="java-output-path" value="/parentproject-web-childproject/target/classes"/>
</wb-module>
Seems the answer is to add the target folder to the deployment assembly:
<wb-resource deploy-path="/" source-path="/target/ROOT"/>
where ROOT is the target build folder with the results of the maven war overlay-
You need to install m2e-wtp extension to handle WAR overlays. Then you declare overlay project as dependency and should also have it in your Eclipse Workspace.