I am using Eclipse J2EE 3.5 with Maven and tomcat. To deploy my maven webapp using WTP, I added a dynamic web module fax and changed the project file org.eclipse.wst.common.component because webapp is not in the WebContent directory, here is the contents of the file:
<?xml version="1.0" encoding="UTF-8"?>
<project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="toto">
<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"/>
<property name="context-root" value="toto"/>
<property name="java-output-path" value="/toto/target/classes"/>
</wb-module>
</project-modules>
But it never deploys the content correctly, in "workspace.metadata.plugins \ org.eclipse.wst.server.core \ tmp1 \ wtpwebapps \ toto \" the directory structure is correct with WEB-INF and META-INF, but empty, jsp files , html, css are in "workspace.metadata.plugins \ org.eclipse.wst.server.core \ tmp1 \ wtpwebapps \ toto \ WEB-INF \ classes \" with another WEB-INF and META-INF structure, but with files .
I don’t understand this at all, thanks.