Maven Global dependency exclusion

With Maven becoming the build tool of choice for Jave EE developers, one of the problems that a developer faces frequently is that of Transitive dependencies. Problems like ClassCastException and LinkageError  are encountered during deployment of an application because of the same class being loaded by different ClassLoaders  or presence of different versions of the same set of APIs as a result of transitive dependency.

Such issues become even more elusive to debug if the Application server your using comes bundled with a whole galaxy of commonly used jar files(yes i am talking ’bout JBoss :D).  Lets see couple of such cases.

Read more of this post