Ausschließen commons logging Abhängigkeit des Frühlings mit ivy?

Habe ich ein Projekt bauen mit ant mit ivy zum dependency-management. Ich habe keine ivysetting-Datei, sondern eine ivy.xml mit der folgenden Abhängigkeit (ich will Frühling mit slf4j statt commons logging):

<configurations>
  <conf name="compile" />
  <conf name="runtime" extends="compile"/>
</configurations>
<dependencies>
  <dependency org="org.springframework" name="spring-webmvc" rev="3.0.5.RELEASE" conf="compile->default">
    <exclude org="commons-logging" name="commons-logging"/>
  </dependency>
  <dependency org="org.slf4j" name="slf4j-api" rev="1.6.1" conf="compile->default" />
  <dependency org="org.slf4j" name="jcl-over-slf4j" rev="1.6.1" conf="runtime->default" />
</dependencies>

Aber bei der Auflösung der Kompilierung Konfiguration commons-logging behoben ist. Ich habe auch versucht, die ausschließen, die auf eine explizite spring-core Abhängigkeit aber commons-logging immer in den compile classpath.

Was ist meine Schuld? Ist es nicht das, was Nicht Über Commons Logging beschreibt für maven? Ist es ein ivy bug? Muss ich eine spezielle Einstellung? Hat ivy etwas gecacht? Irgendeine Idee?

Ich benutze ant-1.8.2-und ivy 2.2.0, Mit IvyDE in Eclipse hat das gleiche problem.

InformationsquelleAutor Arne Burmeister | 2011-06-15

Schreibe einen Kommentar