I working with a maven project in eclipse and am having trouble with getting the deployment to work without some manual editing of xml files.
When I build the project through maven I get a org.eclipse.wst.common.component xml file in my .settings folder. The file looks like the following:
<?xml version="1.0" encoding="UTF-8"?>
<project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="ins-web">
<wb-resource deploy-path="/" source-path="/WebContent"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/java"/>
<property name="context-root" value="ins-web"/>
<property name="java-output-path"/>
</wb-module>
</project-modules>
The following line is causing the problem:
<wb-resource deploy-path="/" source-path="/WebContent"/>
Its looking to deploy everything below the WebContent folder when really it should be looking in src/webapp. The line should therefore look like this:
<wb-resource deploy-path="/" source-path="/src/webapp"/>
If I change it manually then it all works fine but I'd like to know if there is a way to avoid manually changing the file to make the build process easier for other people on my team.