Thank you Guillaume :) you are great. The mapping fixed my problem :) Thank you very very much.
All the best, Hal -------- Original-Nachricht -------- > Datum: Tue, 9 Sep 2008 11:35:26 +0200 > Von: "Guillaume Boucherie" <[EMAIL PROTECTED]> > An: "Maven Users List" <[email protected]> > Betreff: Re: Problems building EAR with HAR > Hi, > Try to add this in your ear plugin configuration : > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-ear-plugin</artifactId> > <configuration> > [...] > <artifactTypeMappings> > <artifactTypeMapping type="jboss-har" mapping="har"/> > </artifactTypeMappings> > </configuration> > </plugin> > > > Guillaume Boucherie > > > 2008/9/8 hal arres <[EMAIL PROTECTED]> > > > Hi, > > > > maybe you recognize from this morning :) > > After my first problem building a JAR with a dependeny on a HAR artifact > I > > am trying to build the EAR which contains both files, the JAR and the > HAR. > > But during this issue I got a build failure which I don't understand. I > am > > trying to fix this since a few hours, but without success. It would be > very > > nice if you could help me also with this problem. > > > > Maven prints the following message into the console: > > [INFO] Scanning for projects... > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] Building Example Backend > > [INFO] task-segment: [install] > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] [ear:generate-application-xml] > > [INFO] > > ------------------------------------------------------------------------ > > [ERROR] BUILD FAILURE > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] Artifact[har:example:c-backend-persistence] is not a dependency > of > > the project. > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] For more information, run Maven with the -e switch > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] Total time: 1 second > > [INFO] Finished at: Mon Sep 08 16:40:32 CEST 2008 > > [INFO] Final Memory: 4M/8M > > [INFO] > > ------------------------------------------------------------------------ > > > > > > But inside the pom.xml of the ear I have defined the dependency on this > > artefact. > > > > <project xmlns="http://maven.apache.org/POM/4.0.0" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > > http://maven.apache.org/maven-v4_0_0.xsd"> > > > > <modelVersion>4.0.0</modelVersion> > > <artifactId>c-backend</artifactId> > > <packaging>ear</packaging> > > <name>Example Backend</name> > > > > <parent> > > <groupId>example</groupId> > > <artifactId>example-parent</artifactId> > > <version>1-SNAPSHOT</version> > > </parent> > > > > <dependencies> > > <dependency> > > <groupId>example</groupId> > > <artifactId>c-backend-persistence</artifactId> > > <version>1-SNAPSHOT</version> > > <type>jboss-har</type> > > </dependency> > > <dependency> > > <groupId>example</groupId> > > <artifactId>c-backend-crs</artifactId> > > <version>1-SNAPSHOT</version> > > </dependency> > > </dependencies> > > > > > > <build> > > <plugins> > > <plugin> > > <groupId>org.codehaus.mojo</groupId> > > <artifactId>jboss-packaging-maven-plugin</artifactId> > > <!-- Enable packaging types and lifecycle bindings. --> > > <extensions>true</extensions> > > </plugin> > > <plugin> > > <groupId>org.apache.maven.plugins</groupId> > > <artifactId>maven-ear-plugin</artifactId> > > <configuration> > > <!-- Configurationfiles will be generated --> > > > > > <applicationXml>${artifactId}/src/main/resources/application.xml</applicationXml> > > <defaultLibBundleDir>lib</defaultLibBundleDir> > > <archive> > > <manifest> > > <addClasspath>true</addClasspath> > > </manifest> > > </archive> > > <modules> > > <jarModule> > > <groupId>example</groupId> > > <artifactId>c-backend-crs</artifactId> > > > > <includeInApplicationXml>true</includeInApplicationXml> > > </jarModule> > > <harModule> > > <groupId>example</groupId> > > > <artifactId>c-backend-persistence</artifactId> > > </harModule> > > </modules> > > </configuration> > > </plugin> > > </plugins> > > </build> > > > > </project> > > > > > > I would be glad if someone could help me to fix this problem. > > > > Thank you, > > Hal > > > > -- > > Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! > > Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > -- GMX Kostenlose Spiele: Einfach online spielen und Spaß haben mit Pastry Passion! http://games.entertainment.gmx.net/de/entertainment/games/free/puzzle/6169196 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
