Are your libs being bundled in the WAR, as well as the EAR? Or are you making the libs available in your j2ee container's lib directory such that they are shared among several apps?
If you don't want the libs bundled in your WAR nor EAR, you should just change the scope to provided. Wayne On 10/12/07, Victor Okunev <[EMAIL PROTECTED]> wrote: > Folks, > > I need to build an EAR file composed of just one WAR file using > Maven2. However, in addition to the WAR file, the resulting EAR file > contains all the JARs that the web module has dependencies on, as well > as the pom.xml. How do I exclude everything but WAR file and > application.xml from the EAR file? > > I tried <earSourceExcludes>**/*.jar,pom.xml</earSourceExcludes>, but > it seems Maven just ignores it. > > Here is my pom file: > > <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> > <parent> > <groupId>mygroupid</groupId> > <artifactId>abc</artifactId> > <version>1.0-SNAPSHOT</version> > </parent> > <artifactId>xyz</artifactId> > <packaging>ear</packaging> > <name>ear_assembly</name> > > <dependencies> > <dependency> > <groupId>mygroupid</groupId> > <artifactId>web</artifactId> > <version>${project.version}</version> > <type>war</type> > </dependency> > </dependencies> > <build> > <plugins> > <plugin> > <artifactId>maven-ear-plugin</artifactId> > <configuration> > <earSourceExcludes>**/*.jar,pom.xml</earSourceExcludes> > <fileNameMapping/> > <archive> > <manifest> > <addClasspath>true</addClasspath> > </manifest> > </archive> > </configuration> > </plugin> > </plugins> > </build> > > </project> > > Thanks, > > Victor > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
