我正在尝试使用 IvyDE 插件向 Eclipse 中的项目添加slf4j-api
和logback-classic
依赖项,但我需要的 jar 没有出现在 Ivy Library 类路径条目中 - 我只是得到logback-classic-1.2.3.jar
而不是得到logback-core-1.2.3.jar
和slf4j-api-1.7.25.jar
.
我的ivy.xml
样子是这样的:
<ivy-module version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd">
<info organisation="foo" module="bar" status="integration"/>
<dependencies>
<dependency org="ch.qos.logback" name="logback-classic" rev="1.2.3" conf="*->default"/>
</dependencies>
</ivy-module>
常春藤控制台说我应该让他们出现:
[IvyDE] Resolve job starting...
[IvyDE] Processing resolve request ivy.xml[*] in test-ivyde
[IvyDE] 1 module(s) to resolve outside the workspace
[IvyDE] Resolving ivy.xml[*] in test-ivyde
:: resolving dependencies :: foo#bar;working@k
confs: [default]
found ch.qos.logback#logback-classic;1.2.3 in public
found ch.qos.logback#logback-core;1.2.3 in public
found org.slf4j#slf4j-api;1.7.25 in public
:: resolution report :: resolve 14ms :: artifacts dl 2ms
---------------------------------------------------------------------
| | modules || artifacts |
| conf | number| search|dwnlded|evicted|| number|dwnlded|
---------------------------------------------------------------------
| default | 3 | 0 | 0 | 0 || 3 | 0 |
---------------------------------------------------------------------
[IvyDE] Successuful resolve of ivy.xml[*] in test-ivyde
但我的常春藤图书馆看起来像这样:
添加单独的依赖项 forslf4j-api
不会改变任何东西,但我不应该添加它,因为它是 的传递依赖项logback-classic
,对吧?
什么可能导致 IvyDE 无法正常工作?