I have 10 web applications deployed on JBoss. Each one has about 20 jars in web-inf/lib ... most of which are the same in each web application.
It's tedious to add all of these identical libraries to each WAR file. I'd rather just have these libraries shared across all applications. So I'd like to put all of these jar files in one place where all of the web applications can reference them.
Also, I only want 5 of these 10 web applications to reference these shared jar files, I want to pick and choose which applications references these shared libraries.
How could this be accomplished?