Exclude jar from war Maven 3
问题 We need to exclude few jars from war ...we are using maven 3 in weblogic. I tried <packagesourceexludes>...and <warsournceexludes..> but didn't work. Any other way to do this. Thanks Vijay 回答1: <dependency> <groupId>xerces</groupId> <artifactId>xerces</artifactId> <version>2.4.0</version> <scope>provided</scope> </dependency> So doesn't need to exclude from every dependency.. This solved my problem...Thanks for all your answer... 回答2: You need to use <packagingExcludes> as documented here.