Jason,
actually it should be the other way. Rather than exclusions, we
should have inclusions. Out of this universe of transitive
dependencies, I like to choose this, this and that. Just download those
and nothing else.
Regards,
Anil
On 05/14/2012 12:42 PM, Jason T. Greene wrote:
On 5/14/12 12:05 PM, David M. Lloyd wrote:
> Just a reminder that when you add a new Maven dependency to AS7, before
> submitting the pull request, be SURE to thoroughly audit the output of
> "mvn dependency:tree" and make sure that all transitive dependencies are
> excluded in the main "pom.xml" - even if they look harmless! If you
> don't, we can run into a problem where different versions of Maven or
> different JDKs give different dependency graphs, resulting in builds
> that work for some people but not others, which sucks for everyone involved.
>
> If there is a transitive dependency that you need, then add it in as a
> first-level dependency in the main pom.xml and specify the version directly.
>
> I think this is what is underlying
>
https://issues.jboss.org/browse/AS7-4782 and I'm sure others will run
> into similar issues as well.
Paul,
Does maven have a no-transitive feature? :)