My maven projects in Eclipse Luna are giving me this two warnings:
Broken single-root rule: Only one element with a deploy path of "/" is allowed for a web project or an EAR project
and
Broken single-root rule: The output folder for a web project must be /WEB-INF/classes configurations-web
This happens because the maven plugin sets the project configuration with the follow wb-resources in 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="sample-web">
<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/java"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/.apt_generated"/>
<property name="context-root" value="sample"/>
<property name="java-output-path" value="/sample-web/target/classes"/>
</wb-module>
</project-modules>
How can I disable this validation to get rid of this annoying warnings?
<wb-resource deploy-path="/" source-path="..."/>
entry. How to prevent the second warning, I want to know too... – Ferdeoutput folder for a web project must be /WEB-INF/classes
is hard to find. I'm still looking, but I can tell you what didn't work: - removing<property name="java-output-path" ...>
from org.eclipse.wst.common.component (because I have read that it is no longer used) - in Eclipse changing the Output folder for the web app project (Java Build Path --> Source tab) to web-app-name/WEB-INF/classes – Ostyak<wb-resource deploy-path="/WEB-INF/classes" source-path="src/main/java"/>
and<wb-resource deploy-path="/WEB-INF/classes" source-path="src/main/resources"/>
. I deleted them and got rid of the second warning – Neotype