You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by strug <st...@web.de> on 2012/05/08 12:09:49 UTC

Strange difference between enforcer dependency convergence and dependency tree (hibernate4/jboss-logging)

Hi there, 

I'm a bit lost. We are using Hibernate4. Unfortunately they mixed up their
dependencies a bit, so that we managed them in our pom:

<dependency>
  <groupId>org.jboss.logging</groupId>
  <artifactId>jboss-logging</artifactId>
  <version>3.1.0.GA</version>
</dependency>

The dependency tree looks good. The dependency jboss-logging 3.1.0.CR2 is
"overwritten" by the above definition:

[INFO] |  \- ourgroup:nic-api:jar:103:compile
[INFO] |     +- ourgroup:persistence:jar:2.22-Hibernate4:compile
[INFO] |     |  +- org.springframework:spring-test:jar:3.1.1.RELEASE:compile
[INFO] |     |  +- javax.annotation:jsr250-api:jar:1.0:compile
[INFO] |     |  +- (de.hypoport.ef2:ef2-types:jar:2.22-Hibernate4:compile -
omitted for duplicate)
[INFO] |     |  +- de.hypoport.ef2:ef2-core:jar:2.22-Hibernate4:compile
[INFO] |     |  |  +- (de.hypoport.ef2:ef2-types:jar:2.22-Hibernate4:compile
- omitted for duplicate)
[INFO] |     |  |  \-
org.springframework:spring-context:jar:3.1.1.RELEASE:compile
[INFO] |     |  |     +-
(org.springframework:spring-beans:jar:3.1.1.RELEASE:compile - omitted for
duplicate)
[INFO] |     |  |     \-
org.springframework:spring-expression:jar:3.1.1.RELEASE:compile
[INFO] |     |  +- org.hibernate:hibernate-core:jar:4.1.2.Final:compile
[INFO] |     |  |  +- org.jboss.logging:jboss-logging:jar:3.1.0.GA:compile
[INFO] |     |  |  +-
org.jboss.spec.javax.transaction:jboss-transaction-api_1.1_spec:jar:1.0.0.Final:compile
[INFO] |     |  |  +- dom4j:dom4j:jar:1.6.1:compile
[INFO] |     |  |  +-
org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.1.Final:compile
[INFO] |     |  |  +- org.javassist:javassist:jar:3.15.0-GA:compile
[INFO] |     |  |  \-
org.hibernate.common:hibernate-commons-annotations:jar:4.0.1.Final:compile
[INFO] |     |  |     \-
(org.jboss.logging:jboss-logging:jar:3.1.0.CR2:compile - omitted for
conflict with 3.1.0.GA)

Running the enforcer rule DependencyConvergence results in an error:


[ERROR] 
Dependency convergence error for org.jboss.logging:jboss-logging:3.1.0.GA
paths to dependency are:
+-ourgroup:rules-assembly:11-SNAPSHOT
  +-ourgroup:scoring:139
    +-ourgroup:nic-api:103
      +-ourgroup:persistence:2.22-Hibernate4
        +-org.hibernate:hibernate-core:4.1.2.Final
          +-org.jboss.logging:jboss-logging:3.1.0.GA
and
+-ourgroup:rules-assembly:11-SNAPSHOT
  +-ourgroup:scoring:139
    +-ourgroup:nic-api:103
      +-ourgroup:persistence:2.22-Hibernate4
        +-org.hibernate:hibernate-core:4.1.2.Final
          +-org.hibernate.common:hibernate-commons-annotations:4.0.1.Final
            +-org.jboss.logging:jboss-logging:3.1.0.CR2

This feels unexpected. Is this a bug, or do I understand s.th. wrong:)
Thanks a lot, Leif

--
View this message in context: http://maven.40175.n5.nabble.com/Strange-difference-between-enforcer-dependency-convergence-and-dependency-tree-hibernate4-jboss-logg-tp5693140.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Strange difference between enforcer dependency convergence and dependency tree (hibernate4/jboss-logging)

Posted by Wayne Fay <wa...@gmail.com>.
> I'm a bit lost. We are using Hibernate4. Unfortunately they mixed up their
> dependencies a bit, so that we managed them in our pom:

Perhaps you need to use an exclusion in the project-level hibernate
dependency against jboss-logging, then add it back in yourself with a
project-level dependency against jboss-logging?

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org