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]
