使用Eclipse / Tomcat自动添加第三方jar到WEB-INF / lib [英] Adding 3rd party jars to WEB-INF/lib automatically using Eclipse/Tomcat
本文介绍了使用Eclipse / Tomcat自动添加第三方jar到WEB-INF / lib的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
那么我该怎么做呢?有没有办法配置我的构建路径来做到这一点?
解决方案
以下是Helios的说明。对于早期版本,请参阅SeanA的答案。
- 项目属性 - >部署程序集
- 添加 - > Java构建路径条目
- 您现在应该可以看到构建路径上的库列表,您可以指定它们列入完成的WAR。
- 选择所需的并点击完成。
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?
解决方案
Here are the instructions for Helios. For earlier releases, see SeanA's answer.
- Project Properties -> Deployment Assembly
- Add -> Java Build Path Entries
- You should now see the list of libraries on your build path that you can specify for inclusion into your finished WAR.
- Select the ones you want and hit Finish.
这篇关于使用Eclipse / Tomcat自动添加第三方jar到WEB-INF / lib的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文