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
how do I add apache commons logging using the maven2 with eclipse?
提问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,您可以像这样使用它:
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


