Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] Broken single root rule i RAD 8

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: m2e-users-bounces@xxxxxxxxxxx [mailto:m2e-users-bounces@xxxxxxxxxxx] 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 : 

 

HIH

 

Fred Bricon

2011/11/10 Bjørn Willy Arntzen <Bjorn-Willy.Arntzen@xxxxxx>

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



Kommunal Landspensjonskasse
gjensidig forsikringsselskap
Dronning Eufemias gate 10, 0191 Oslo, Pb 400, Sentrum, 0103 Oslo
Mob: +4797759007 
www.klp.no

 


_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users



 

--
"Have you tried turning it off and on again" - The IT Crowd


Back to the top