On 17/10/2007, James Adams <[EMAIL PROTECTED]> wrote: > I have a few dependencies in my pom.xml which pull in many transitive > dependencies, and this results in a huge war artifact. I want to pare down > the dependencies using exclusions in order that the resulting war will > contain only the jars that it really needs, but my problem is that I don't > know how to go about figuring out which dependencies are necessary and which > ones can be excluded. Is there a good way to do this other than trial and > error? > > Thanks in advance for any suggestions.
You can use dependency:analyze to determine which direct project dependencies are actually required to compile, although it won't currently tell you which transitive dependencies you can exclude. See: http://maven.apache.org/plugins/maven-dependency-plugin/analyze-mojo.html Mark --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
