tags:

views:

57

answers:

2

Hello all,

I installed ZK Studio plugin for eclipse and have used it to create a new ZK based webapp. However, inside my /WebContent/WEB-INF/lib folder, there are a number of .jar files that were included automatically (beloning to the zk framework). I'm assuming this was done by selecting "create a new ZK project". However, when it comes time to deploy this to the webserver, I only want to include the libraries I actually need and use. Is there a way of finding that information out so I can shrink the size of my .WAR file?

Thanks!

+1  A: 

These are called "transitive dependencies" - libraries that required by libraries that you use. The libraries that you use can't work without their dependencies, so ultimately you need all of the jars in WEB-INF/lib.

Maven is a dependency-management tool that tells you what are the transitive dependencies, (via a dependency graph). I would recommend using maven, although it would require some effort to introduce it in the current project.

Bozho
So there is no doubt that I need all the libraries currently in that folder?
NewTomcatUser
almost certainly, yes
Bozho
And the only way to be sure is to try and integrate something like maven inside my project?
NewTomcatUser
You can check manually, jar by jar looking into the maven repository, without integrating it. But that'd be tedious
Bozho
A: 

Take a look at The Content of ZK Binary Distribution then you can remove the library you don't need :)

Flyworld