如何在 Eclipse 中使用 maven2 添加 apache commons 日志记录? [英] how do I add apache commons logging using the maven2 with eclipse?

查看:31
本文介绍了如何在 Eclipse 中使用 maven2 添加 apache commons 日志记录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用 eclipse w/maven2 插件时,我似乎找不到 apache 通用日志记录.

I can't seem to find apache common logging when using eclipse w/maven2 plugin.

显然我需要它用于 spring3 mvc.

I need it for spring3 mvc apparently.

推荐答案

您知道 m2eclipse 插件可以搜索一些索引存储库,例如 central 吗?例如,如果您右键单击您的项目并转到Maven > 添加依赖项,您可以像这样使用它:

Do you know that the m2eclipse plugin can search some indexed repositories, like central? For example, if you right-click on your project and go to Maven > Add Dependency, you can use it like this:

这会将它添加到您的 pom 中:

And this will add this to your pom:

<dependency>
  <groupId>commons-logging</groupId>
  <artifactId>commons-logging</artifactId>
  <version>1.1.1</version>
</dependency>

另一种选择是使用 众多 存储库 搜索引擎,例如:

Another option is to use one of the numerous repository search engine, for example:

http://search.maven.org/#artifactdetails|commons-logging|commons-logging|1.1.1|jar

这篇关于如何在 Eclipse 中使用 maven2 添加 apache commons 日志记录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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