I recently tried upgrading hibernate-annotations from 3.2.1.ga to 3.3.0.ga in a Maven 2 environment. This caused the following error:
Code:
Caused by:
java.lang.NoClassDefFoundError: org/hibernate/annotations/common/reflection/ReflectionManager
Adding the following dependency to my pom.xml fixes the problem:
Code:
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-commons-annotations</artifactId>
<version>3.3.0.ga</version>
</dependency>
Shouldn't hibernate-commons-annotations be a declared dependency in the hibernate-annotations pom.xml so transitive dependencies resolves this?
I found a similar issue when upgrading hibernate-entitymanager from 3.2.1.ga to 3.3.1.ga. The 3.3.1.ga has a dependency on jboss-common-core, but this JAR is not located in a central repository.
Code:
Missing:
----------
1) jboss:jboss-common-core:jar:2.0.4.GA
The first issue seems easy enough to fix. The 2nd requires uploading the new dependency. I can enter issues in JIRA for these if you like.
Thanks,
Matt