Thanks for the suggestions.
Using -X I can see that maven 3.0.3 is adding to the classpath a few
jars which I was not expecting:
[DEBUG] com.atomikos:transactions-hibernate3:jar:3.6.4:compile
+[DEBUG] org.hibernate:hibernate:jar:3.2.5.ga:
+[DEBUG] net.sf.ehcache:ehcache:jar:1.2.3:compile
+[DEBUG] asm:asm-attrs:jar:1.5.3:compile
In particular, org.hibernate:hibernate:jar:3.2.5.ga: clashes with my
explicitly managed dependency:
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>3.6.4.Final</version>
</dependency>
Hibernate 3.2.5.ga and 3.6.4.Final have a different api (if I recall
correctly, the former is a jpa1 implementation, while the latter is
jpa2).
I was able to fix this with an exclusion in <dependencyManagement>:
<dependency>
<groupId>com.atomikos</groupId>
<artifactId>transactions-hibernate3</artifactId>
<version>${atomikos.version}</version>
<exclusions>
<exclusion>
<groupId>org.hibernate</groupId>
<artifactId>hibernate</artifactId>
</exclusion>
</exclusions>
</dependency>
Everything builds fine now. Thanks for your help.
Mirko
On Mon, Aug 1, 2011 at 9:52 PM, Wayne Fay <[email protected]> wrote:
>> dependency:tree reports incorrect results on maven 3
>
> In light of this, you may want to capture mvn -X debug output for your
> builds on 3.0.2 and 3.0.3 and diff that instead of dependency:tree.
>
> Wayne
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]