Reputation: 6179
I have a dynamic-web project set up on Eclipse and I'm using Tomcat 7 as my web server. It doesn't seem to be automatically putting 3rd party JARs I add to my library on my build path into the WEB-INF/lib folder. Is there a way I can do this automatically? Every time I search for an answer to this, I find something like this.
So how do I do that automatically? Is there a way to configure my build path to do this?
Upvotes: 51
Views: 77475
Reputation: 3
Instructios for Eclipse Indigo (version 3.7.2)
Upvotes: 0
Reputation: 29139
Here are the instructions for Helios. For earlier releases, see SeanA's answer.
Upvotes: 92
Reputation: 8605
I haven't tried this personally, but what I believe it does is what I think you are looking for:
Let me know if this automatically puts them in your exported WAR. I always just add mine to WEB-INF/lib :)
Upvotes: 1
Reputation: 5519
You can use "Ant" to copy files to WEB-INF/lib when you deploy files. Using Ant you will be able to copy only those files which have changed.
http://ant.apache.org/manual/Tasks/copy.html
Upvotes: 1