java 如何在 Eclipse 中使用 maven2 添加 apache commons 日志记录?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2241487/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-29 20:16:04  来源:igfitidea点击:

how do I add apache commons logging using the maven2 with eclipse?

javaspringmaven-2apache-commonsm2eclipse

提问by Blankman

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

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

I need it for spring3 mvc apparently.

显然,我需要它用于 spring3 mvc。

回答by Pascal Thivent

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

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

alt text

替代文字

And this will add this to your pom:

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

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

Another option is to use one of the numerousrepositorysearch engine, for example:

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

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

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