Why is logback-classic not downloading slf4j-api in my ivy setup?
Why is logback-classic not downloading slf4j-api in my ivy setup?
I'm trying to add slf4j-api
and logback-classic
dependencies to a project in Eclipse using the IvyDE plugin, but the jars I need aren't showing up in the Ivy Library classpath entry - I'm only getting logback-classic-1.2.3.jar
instead of also getting logback-core-1.2.3.jar
and slf4j-api-1.7.25.jar
.
slf4j-api
logback-classic
logback-classic-1.2.3.jar
logback-core-1.2.3.jar
slf4j-api-1.7.25.jar
My ivy.xml
looks like this:
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>
Ivy console says that I should be getting them to show up:
[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
But my Ivy library looks like this:
Adding a separate dependency for slf4j-api
doesn't change anything, but I shouldn't have to add it since it's a transitive dependency of logback-classic
, right?
slf4j-api
logback-classic
What could cause IvyDE to not work as I think it should?
1 Answer
1
Delete conf="*->default"
part in ivy.xml and that will do it.
conf="*->default"
yes, but aside from taking up few megabytes, nothing wrong with that.In any way once you have that ivy xml you can see which confs exist and download only those.
– cantSleepNow
Jul 3 at 13:27
I've tried that already. I should be okay with using the default confs, but it doesn't work for some shady reason beyond my understanding.
– Konrad
Jul 6 at 15:19
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
Yeah but that will pull all dependencies for all configurations, won’t it?
– Konrad
Jul 3 at 13:22