如何使用带有eclipse的maven2添加apache commons日志记录?

如何使用带有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