Actually there is two issues attached to this. The other is: Broken single-root rule: A project must have exactly one output folder historikk-service-web , Unknown , Project Structure Marker
And that is easily fixed by manually go into the web-project properties and change default output folder from historikk-service-web/target/classes to historikk-service-web/src/main/webapp/WEB-INF/classes but it’s so boring to do that every time I do Maven Update Project Configuration. Is there a way to get me2-wtp to set it correct everytime it runs Update Project Configuration ? Med vennlig hilsen Bjørn Willy Arntzen Fra: [email protected] [mailto:[email protected]] På vegne av Fred Bricon Sendt: 10. november 2011 08:52 Til: Maven Integration for Eclipse users mailing list Emne: Re: [m2e-users] Broken single root rule i RAD 8 You can workaround that issue, if you're not using web resource filtering : https://github.com/sonatype/m2eclipse-wtp/wiki/That-web-resources-folder-is-causing-me-some-trouble,-can-i-get-rid-of-it%3F HIH Fred Bricon 2011/11/10 Bjørn Willy Arntzen <[email protected]<mailto:[email protected]>> I’m running RAD 8.0.3 with m2e v1.1.0.20111108-0328, m2e wtp 0.14.0.20110928-2045 And I still get the validation error Broken single-root rule: Only one <wb-resource> element with a deploy path of "/" is allowed for a web project org.eclipse.wst.common.component /nettpensjon-bp-service-web/.settings I this it’s because of the duplication of deploy-path="/" Here’s the org.eclipse.wst.common.component file : <?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0"> <wb-module deploy-name="nettpensjon-bp-service-web"> <wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/> <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"/> <wb-resource deploy-path="/WEB-INF/classes" source-path="/src/test/resources"/> <wb-resource deploy-path="/WEB-INF/classes" source-path="/src/test/java"/> <dependent-module archiveName="nettpensjon-bp-service-core-1.0.9-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/nettpensjon-bp-service-core/nettpensjon-bp-service-core"> <dependency-type>uses</dependency-type> </dependent-module> <property name="context-root" value="nettpensjon-bp-service-web"/> <property name="java-output-path" value="/nettpensjon-bp-service-web/target/classes"/> </wb-module> </project-modules> How can I avoid this ? Med vennlig hilsen Bjørn Willy Arntzen Seniorkonsulent [cid:[email protected]] Kommunal Landspensjonskasse gjensidig forsikringsselskap Dronning Eufemias gate 10, 0191 Oslo, Pb 400, Sentrum, 0103 Oslo Mob: +4797759007<tel:%2B4797759007> www.klp.no<http://www.klp.no> _______________________________________________ m2e-users mailing list [email protected]<mailto:[email protected]> https://dev.eclipse.org/mailman/listinfo/m2e-users -- "Have you tried turning it off and on again" - The IT Crowd
<<inline: image001.gif>>
_______________________________________________ m2e-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/m2e-users
