Thanks for the tool advice. These are both very cool.
David Newton wrote:http://maven.apache.org/plugins/maven-dependency-plugin/tree-mojo.html
It'd be weird for non-dependencies to be put into the WAR, though; are you sure they're not required? Or perhaps they're required for a different phase (like test)?
Yeah, so the thing is I'm building a
JSF application and I'm ending up with ant-1.7.0 and ant-launcher-1.7.0 in my WEB-INF/lib. According to dependency:tree (ant entries at the bottom, axis2 at the top) these dependencies are showing up by way of Axis2. Axis2 is a dependency because I have some Axis2 web service clients (built by wsdl2java) as dependencies.
I'm certainly not going to be calling ant from my application, and I've been running this app for quite a while without these jars on my classpath. When you create an Axis2 client with wsdl2java a build.xml script is generated as well. This build.xml uses all of the content of your Axis2/lib folder as the build classpath. Instead of manually adding all of these (many) jars as dependencies to the pom.xml I created for this Axis2 client when migrating to Maven2 I just added Axis2 and this, I guess, is the result. I'm thinking I'll just specify excluding files as needed, because I think that it will be less work and less verbose then specifying all the files I do need.
Does this seem like improper use of Maven's dependency management?