Created
April 13, 2013 21:12
-
-
Save friek/5380102 to your computer and use it in GitHub Desktop.
Exclude certain jars in a maven war build.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <build> | |
| <plugins> | |
| <plugin> | |
| <artifactId>maven-war-plugin</artifactId> | |
| <version>2.3</version> | |
| <configuration> | |
| <!-- Exclude servlet-api-2.5.jar from the lib dir --> | |
| <packagingExcludes>WEB-INF/lib/servlet-api-2.5.jar</packagingExcludes> | |
| <!-- Exclude all log4j jars from the lib dir --> | |
| <packagingExcludes>WEB-INF/lib/*log4j*.jar</packagingExcludes> | |
| </configuration> | |
| </plugin> | |
| </plugins> | |
| </build> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment