[jboss-as7-dev] Reminder about pom.xml exclusions

David M. Lloyd david.lloyd at redhat.com
Mon May 14 13:05:12 EDT 2012


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.
-- 
- DML


More information about the jboss-as7-dev mailing list