James Adams 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.
There are no silver bullets AFAIK. One hopes that each of your project's dependencies declare their own dependencies carefully and properly scoped (e.g. compile, test).

A jar dependency analyzer tool like:

<http://www.jfrog.org/sites/dep-analyzer/1.0/>

may be helpful to understand dependencies both direct and indirect.
Best of luck and do share if you find any good solutions to this common problem.

--
Regards,
Farrukh

Web: http://www.wellfleetsoftware.com



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to