使用 Eclipse/Tomcat 自动将 3rd 方 jar 添加到 WEB-INF/lib [英] Adding 3rd party jars to WEB-INF/lib automatically using Eclipse/Tomcat

查看:29
本文介绍了使用 Eclipse/Tomcat 自动将 3rd 方 jar 添加到 WEB-INF/lib的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Eclipse 上设置了一个动态 Web 项目,我使用 Tomcat 7 作为我的 Web 服务器.它似乎不会自动将我添加到我的构建路径上的库中的 3rd 方 JAR 放入 WEB-INF/lib 文件夹中.有没有办法可以自动执行此操作?每次我搜索这个问题的答案时,我都会发现类似this.

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?

推荐答案

这里是 Helios 的说明.对于早期版本,请参阅 SeanA 的回答.

Here are the instructions for Helios. For earlier releases, see SeanA's answer.

  1. 项目属性 -> 部署程序集
  2. 添加 -> Java 构建路径条目
  3. 您现在应该会看到构建路径上的库列表,您可以指定这些库列表以包含在完成的 WAR 中.
  4. 选择您想要的并点击完成.

这篇关于使用 Eclipse/Tomcat 自动将 3rd 方 jar 添加到 WEB-INF/lib的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆