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

Hmm, that seems to work. Great !

 

 

      <build>

      <outputDirectory>src/main/webapp/WEB-INF/classes</outputDirectory>

            <plugins>

                  <plugin>

                        <artifactId>maven-war-plugin</artifactId>

                        <version>2.1-alpha-2</version>

                        <configuration>

                             <archive>

                                   <manifest>

                                         <addClasspath>true</addClasspath>

                                   </manifest>

                             </archive>

                        </configuration>

                  </plugin>

 

 

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

Vennligst tenk på miljøet før du skriver ut denne e-posten

Fra: m2e-users-bounces@xxxxxxxxxxx [mailto:m2e-users-bounces@xxxxxxxxxxx] På vegne av Marcel Schutte
Sendt: 13. januar 2012 13:28
Til: Maven Integration for Eclipse users mailing list
Emne: Re: [m2e-users] Broken single root rule i RAD 8

 

It's not the maven-war-plugin config, but the direct descendant of the <build> tag.

2012/1/13 Bjørn-Willy Arntzen <Bjorn-Willy.Arntzen@xxxxxx>

Are you really shure about that?

outputDirectory: The directory for the generated WAR.

I need to set the Java Build Path Default output folder, not the generated output

This did not change the ‘Default output folder’ :

<plugin>

      <artifactId>maven-war-plugin</artifactId>

      <version>2.1-alpha-2</version>

      <configuration>

            <archive>

                  <manifest>

                        <addClasspath>true</addClasspath>

                  </manifest>

            </archive>

            <outputDirectory>src/main/webapp/WEB-INF/classes</outputDirectory>

      </configuration>

</plugin>

 

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

Vennligst tenk på miljøet før du skriver ut denne e-posten

Fra: m2e-users-bounces@xxxxxxxxxxx [mailto:m2e-users-bounces@xxxxxxxxxxx] På vegne av Marcel Schutte
Sendt: 13. januar 2012 12:07


Til: Maven Integration for Eclipse users mailing list
Emne: Re: [m2e-users] Broken single root rule i RAD 8

 

Hi,

 

In your pom, you can set the <outputDirectory> to your ....WEB-INF/classes, that will be picked up by m2e. Ofcourse your should make sure to exclude them from your version control.

 

Regards, Marcel

2012/1/13 Bjørn-Willy Arntzen <Bjorn-Willy.Arntzen@xxxxxx>

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


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



 

--
Fotografie
http://schutte.name/


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



 

--
Fotografie
http://schutte.name/


Back to the top