本文介绍了常春藤不能从Maven Central解决log4j的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Apache Ivy的新功能,无法从Maven Central中解决最新的 log4j jar。我使用IvyDE来管理我的所有依赖项,并使用它的所有默认值,我认为它配置为使用Maven repo或Ibiblio。

New to Apache Ivy, and can't get it to resolve the latest log4j jar from Maven Central. I'm using IvyDE to manage all of my dependencies and using all of its defaults, which I believe configure it to use either the Maven repo or Ibiblio.

将您带到Maven的log4j页面。从这里我只是使用该页面上提供的Apache Ivy < dependency> 标签:

This link takes you to Maven's log4j page. From here I am just using the Apache Ivy <dependency> tag provided on that page:

<dependency org="log4j" name="log4j" rev="1.2.16" >
    <artifact name="log4j" type="bundle" />
</dependency>

当我添加到我的 ivy.xml 文件并将其保存在Eclipse中,IvyDE自动运行常春藤解决方案...并且我收到错误:

When I add this to my ivy.xml file and save it inside Eclipse, IvyDE automatically runs an Ivy resolve...and I am getting an error:

不可能解决myOrg#myProject的依赖关系工作@ myMachine

Impossible to resolve dependencies of myOrg#myProject;working@myMachine

下载失败:log4j#log4j; 1.2.16!log4j.bundle

download failed: log4j#log4j;1.2.16!log4j.bundle

下载失败:log4j#log4j; 1.2.16!log4j.bundle

download failed: log4j#log4j;1.2.16!log4j.bundle

下载失败:log4j#log4j; 1.2.16!log4j.bundle

download failed: log4j#log4j;1.2.16!log4j.bundle

下载失败:log4j#log4j; 1.2。 16!log4j.bundle

download failed: log4j#log4j;1.2.16!log4j.bundle

(最后4行,尽管相同,事实上重复了 4次!)

(Those last 4 lines, although identical, are in fact repeated 4 times!)

Maven Central上的log4j有问题吗? 我所有的其他罐子都解决了,没有任何困难,我使用相同的技术来获取我的所有罐子。这是唯一一个失败的(大约30个左右)。感谢提前!

Is something wrong with log4j on Maven Central? All of my other jars resolve without a hitch, and I am using the same technique for getting all of my jars. This is the only one (out of 30 or so) that is failing. Thanks in advance!

推荐答案

退出

<artifact name="log4j" type="bundle" />

部分,它将下载正常的jar文件。

part and it will download the normal jar file.

我不认为你需要捆绑规范部分,似乎(对我来说)像某种异常。

I don't think you need the bundle-specification part and it seems (to me) like some kind of anomaly.

捆绑甚至不是maven的:

bundle is not even a core packaging value for maven:

这篇关于常春藤不能从Maven Central解决log4j的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-30 14:40