Nishant: Adding <excludes>**/lib/*</excludes> to the maven-war-plugin configuration will forcibly exclude all libraries. http://maven.apache.org/plugins/maven-war-plugin/examples/skinny-wars.html <http://maven.apache.org/plugins/maven-war-plugin/examples/skinny-wars.html> We typically call these "Skinny" WARs. Note on that page, it says that it's decidedly broken with the 2.0 release of the war-plugin. That might be your problem. Barrett :: Barrett Nuzum Sr. Consultant Direct: 918.640.4414 Fax: 972.789.1340
Valtech Technologies, Inc. 5080 Spectrum Drive Suite 700 West Addison, Texas 75001 www.valtech.us <http://www.valtech.us/> Delivering Business Agility ________________________________ From: Sonar, Nishant [mailto:[EMAIL PROTECTED] Sent: Tue 9/18/2007 10:18 AM To: Maven Users List Subject: how NOT to include any lib (dependencies) in the WAR ? Whenever I create a WAR , it creates a WEB-INF/lib inside the war and adds all the dependencies in the WAR . What can I do NOT to include any lib (dependencies) in the WAR , and exclude the lib folder to be in war, here's my POM <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> workspace.samples</groupId> <artifactId>simpleWebService</artifactId> <version>1.0</version> </parent> <groupId>workspace.samples.simpleWebService</groupId> <artifactId>webService</artifactId> <name>${project.artifactId} module for ${project.parent.artifactId}</name> <description>${project.artifactId} module for ${project.parent.artifactId}</description> <packaging>war</packaging> <dependencies> <dependency> <groupId>javax.jws</groupId> <artifactId>jsr181</artifactId> <version>1.0</version> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> <dependency> <groupId>jaxws-ri</groupId> <artifactId>jaxb-api</artifactId> <version>2.1.1</version> </dependency> <dependency> <groupId>jaxws-ri</groupId> <artifactId>jaxws-api</artifactId> <version>2.1.1</version> </dependency> <dependency> <groupId>easymock</groupId> <artifactId>easymock</artifactId> <version>2.0</version> </dependency> <dependency> <groupId>easymock</groupId> <artifactId>easymockclassextension</artifactId> <version>2.2</version> </dependency> <dependency> <groupId>commons-logging</groupId> <artifactId>commons-logging-api</artifactId> <version>1.0.4</version> </dependency> <dependency> <groupId>com.sun.xml.ws</groupId> <artifactId>jaxws-rt</artifactId> <version>2.1.1</version> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>jaxws-maven-plugin</artifactId> <version>1.2</version> <configuration> <verbose>false</verbose> <sei>com.service.DateServiceImpl</sei> <genWsdl>false</genWsdl> <keep>false</keep> <destDir>target\classes</destDir> </configuration> <executions> <execution> <goals> <goal>wsgen</goal> </goals> <phase>compile</phase> </execution> </executions> <!-- for AnnotationProcessorFactory --> <dependencies> <dependency> <groupId>com.sun</groupId> <artifactId>tools</artifactId> <version>1.5.0_11</version> </dependency> <dependency> <groupId>com.sun.xml.ws</groupId> <artifactId>jaxws-tools</artifactId> <version>2.1.1</version> </dependency> </dependencies> </plugin> Thanks, Nishant --------------------------------------------------------------------- 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]