M2Eclipse Deploys WEB-INF to WEB-INF / Classes

I am importing Appfuse 2.1 into Eclipse 3.5 using m2eclipse. When I deploy it to tomcat, my web.xml goes to "WEB-INF \ classes \ WEB-INF \ web.xml", This problem exactly matches this .

I can not find any problems in the org.eclipse.wst.common.component file:

<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"/>

If I change <wb-resource deploy-path="/" source-path="src/main/webapp"/>to <wb-resource deploy-path="/" source-path="target/appfuse_light_210m1-2.1.0-M1"/>, it works. But I do not want to change org.eclipse.wst.common.component every time I import a project. What is the cause of this problem?

+3
source share

Source: https://habr.com/ru/post/1749975/


All Articles