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

Bla*_*man 8 java spring maven-2 apache-commons m2eclipse

当使用eclipse w/maven2插件时,我似乎无法找到apache常见的日志记录.

我显然需要它为spring3 mvc.

Pas*_*ent 17

你知道m2eclipse插件可以搜索一些索引的存储库,比如中心吗?例如,如果右键单击项目并转到Maven> Add Dependency,则可以像这样使用它:

替代文字http://img96.imageshack.us/img96/4220/screenshotadddependency.png

这将把它添加到你的pom:

<dependency>
  <groupId>commons-logging</groupId>
  <artifactId>commons-logging</artifactId>
  <version>1.1.1</version>
</dependency>
Run Code Online (Sandbox Code Playgroud)

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

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