[slf4j-user] Migrating from commons-logging

Ceki Gülcü ceki at qos.ch
Fri Aug 12 18:57:13 CEST 2011


On 12/08/2011 6:13 PM, Chris Pratt wrote:
> My guess is you're not seeing the actual inclusion of the
> commons-logging.jar, but the API's included in that jar.

No, that cannot be correct. Maven does not know about the contents of
artifacts. So it cannot know about APIs. All Maven knows are
dependency declarations.

 > If the API exists, programmers can use it, regardless of the jar file
 > name that contains it.  So whether it's commons-logging.jar of
 > jcl-over-slf4j.jar the API is available for 3rd party libraries (like
 > Spring) AND your programmers, and (as far as I'm aware) there's
 > nothing Maven can do about that fact.  Same for Log4j, since the
 > log4j.jar file has to be there for slf4j-log4j12.jar to work, your
 > programmers can use it as well.

Yep, that sounds correct.

Coming back to the original exclusion problem, can it be that
spring-ws-core is declared elsewhere? Which dependency does
spring-ws-core.jar come from? In other words what's above this line?

[INFO]+- org.springframework.ws:spring-ws-core:jar:2.0.0.RELEASE:compile

HTH,
--
Ceki


More information about the slf4j-user mailing list