http://maven.apache.org/plugins/maven-war-plugin/examples/skinny-wars.ht ml
> -----Original Message----- > From: Laudio Info [mailto:laudio.i...@gmail.com] > Sent: Thursday, July 05, 2012 1:38 AM > To: users@maven.apache.org > Subject: libraries duplkication into ear and war > > Hello > i have one problem and i don't know how to solve it. > i have one parent project that has two maven moduloes (one war and one > ear). it prodeces one ear (jaxws webservice) that contains one war. > the problem is that always build the ear with the libraries duplicated. > into the lib (of ear) appears all the libraryes and into the lib of war > appears all the libraries. > how can y solve this duplicated lib? > > can you help me? > > thanks > > the poms are: > ###########parent######### > <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/xsd/maven-4.0.0.xsd"> > <modelVersion>4.0.0</modelVersion> > <groupId>my.group</groupId> > <artifactId>myartifactparent</artifactId> > <packaging>pom</packaging> > <version>0.0.1-SNAPSHOT</version> > <name></name> > <url>http://maven.apache.org</url> > <modules> > <module>../myWar</module> > <module>../myEAR</module> > </modules> > </project> > > ###########ear####################### > <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> > <groupId>my.group</groupId> > <artifactId>myartifactEAR</artifactId> > <packaging>ear</packaging> > <version>0.0.1-SNAPSHOT</version> > <name></name> > <url>http://maven.apache.org</url> > <parent> > <artifactId>myartifactparent</artifactId> > <groupId>my.group</groupId> > <version>0.0.1-SNAPSHOT</version> > <relativePath>.../myartifactparent/pom.xml</relativePath> > </parent> > <build> > <plugins> > <plugin> > <artifactId>maven-ear-plugin</artifactId> > <configuration> > <encoding>Cp1252</encoding> > <defaultLibBundleDir>/lib</defaultLibBundleDir> > <finalName>myEAR</finalName> > <modules> > <webModule> > <groupId>my.group</groupId> > <artifactId>myWar</artifactId> > <bundleFileName>myWar.war</bundleFileName> > </webModule> > </modules> > </configuration> > </plugin> > </plugins> > </build> > <dependencies> > <dependency> > <groupId>my.group</groupId> > <artifactId>myWar</artifactId> > <type>war</type> > <version>0.0.1-SNAPSHOT</version> > </dependency> > </dependencies> > </project> > > > ################WAR############################# > <?xml version="1.0" encoding="UTF-8"?> > <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"> > <parent> > <artifactId>myartifactparent</artifactId> > <groupId>my.group</groupId> > <version>0.0.1-SNAPSHOT</version> > <relativePath>.../myartifactparent/pom.xml</relativePath> > </parent> > <modelVersion>4.0.0</modelVersion> > <groupId>my.group</groupId> > <artifactId>myWar</artifactId> > <packaging>war</packaging> > <name></name> > <version>0.0.1-SNAPSHOT</version> > <build> > <sourceDirectory>${basedir}/src</sourceDirectory> > <outputDirectory>${basedir}/WebRoot/WEB- > INF/classes</outputDirectory> > <resources> > <resource> > <directory>${basedir}/src</directory> > <excludes> > <exclude>**/*.java</exclude> > </excludes> > </resource> > </resources> > <finalName>${artifactId}</finalName> > <plugins> > <plugin> > <artifactId>maven-compiler-plugin</artifactId> > <configuration> > <source>1.6</source> > <target>1.6</target> > </configuration> > </plugin> > <plugin> > <artifactId>maven-war-plugin</artifactId> > <configuration> > <warSourceDirectory>WebRoot</warSourceDirectory> > </configuration> > </plugin> > <plugin> > <groupId>org.codehaus.mojo</groupId> > <artifactId>jaxws-maven-plugin</artifactId> > <version>1.12</version> > <executions> > <execution> > <id>wsgen</id> > <goals> > <goal>wsgen</goal> > </goals> > <configuration> > <sei> > my.group.MyImpl > </sei> > <genWsdl>true</genWsdl> > <keep>true</keep> > <verbose>true</verbose> > </configuration> > </execution> > </executions> > </plugin> > </plugins> > </build> > <dependencies> > <dependency> > <groupId>com.sun.xml.ws</groupId> > <artifactId>jaxws-rt</artifactId> > <version>2.2</version> > </dependency> > ............. > </dependencies> > <repositories> > </repositories> > <pluginRepositories> > </pluginRepositories> > </project> ______________________________________________________________________ This message, including any attachments, is confidential and contains information intended only for the person(s) named above. Any other distribution, copying or disclosure is strictly prohibited. If you are not the intended recipient or have received this message in error, please notify us immediately by reply email and permanently delete the original transmission from all of your systems and hard drives, including any attachments, without making a copy. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org