WAR plugin is broken in 2.0.4 so excludes don't work. As a workaround I'm using the following:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <id>package</id> <phase>package</phase> <goals> <goal>run</goal> </goals> <configuration> <tasks> <!-- | Repackages the generated WAR file to exclude | JARs from the WEB-INF/lib directory. This is | a workaround until the WAR plugin is fixed to | allow to exclude these files. |--> <property name="war.dir" value="${project.build.directory}/${project.build.finalName}" /> <unjar src="${war.dir}.war" dest="${war.dir}"/> <jar destfile="${war.dir}.war" basedir="${war.dir}" excludes="WEB-INF/lib/*.jar" manifest="${war.dir}/META-INF/MANIFEST.MF" /> </tasks> </configuration> </execution> </executions> </plugin> -- View this message in context: http://www.nabble.com/WEB-INF-lib-excludes-once-more-tf1913187.html#a5327843 Sent from the Maven - Users forum at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]