debate: Is adding third party libraries to a war a good idea?

Posted by Master Chief on Stack Overflow See other posts from Stack Overflow or by Master Chief
Published on 2010-06-17T17:14:58Z Indexed on 2010/06/17 17:23 UTC
Read the original article Hit count: 153

Filed under:
|
|
|

We have a debate going on .

a. The "standard" way of assembling a web app. Create a WAR with all our app artifacts and all other components like hibernate and memcached etc are deployed in the tomcat/shared/lib area.

b. Create a humongous war with everything included and nothing in tomcat/shared/lib.

Pros for a - It keeps things modular and the war is small. Cons for a - dependency on shared/lib has to be managed especially by the deployment process.

Pros for b - All dependencies are controlled by the build process removing any room for error. Cons for b - War is really, really big. If you are deploying over a network to a huge farm, then it might have an impact.

want to see what thoughts others might have about this.

© Stack Overflow or respective owner

Related posts about web-applications

Related posts about j2ee