Q: Include jar but not dependencies in war I am building my project using maven and every thing was working fine. 
Now I have added one new dependency in my pom and maven is including all the dependencies of new jar on war, I just want to include that new jar in my war and not its dependencies.
So for I have tried excludes in maven-war-plugin. In that case I have to add tons of exclude entries in pom. Is there any better way??

A: First thing there is no harm in having independent jars into your war. sometimes it required at the runtime.
I dont think there is another option for this. if there are multile jars exsists try to pickup specific one...
Try with scope as compile
