I have not mentioned any dependencies in pom.xml, but the war created by maven has quite a few unwanted jars. Any idea why this is happening?
A:
Please post your pom.xml
file, to be more helpful.
However, you may have some transitive dependencies here.
You can see the whole dependency tree using the dependency plugin.
romaintaz
2010-02-10 09:31:54
A:
I have not mentioned any dependencies in pom.xml, but the war created by maven has quite a few unwanted jars. Any idea why this is happening?
Hard to say without seeing your POM but if you didn't declare any dependency, then you my bet would be that are inheriting them. Just in case, it is possible to exclude things in the war plugin configuration using the packagingExcludes
optional parameter. But the real question is "why are you inheriting dependencies that you don't want".
Pascal Thivent
2010-02-10 14:45:18