> Couldn't you have defined hibernate 3.6.0.Final as plugin dependency > in plugin management section?
Thanks for your answer. I forgot to email that I tried that. Just tried it again, and got the same error. I would expect that the the 3.6.0.Final in de pom dependency (see below) would override the default hibernate-core Dependency, but that's not what happens, as seems in the maven debug output below. Any idea why? ---- [INFO] [hibernate3:hbm2ddl {execution: default-cli}] 17:45:14,679 INFO org.hibernate.cfg.Environment - Hibernate 3.3.1.GA 17:45:14,683 INFO org.hibernate.cfg.Environment - loaded properties from resource hibernate.properti .... ... ---- Error snippet: ---- [INFO] Trace java.lang.NoSuchFieldError: INSTANCE at org.hibernate.type.StandardBasicTypes.<clinit>(StandardBasicTypes.java:45) at com.ited.domain.impl.StringEnumUserType.sqlTypes(StringEnumUserType.java:54) at org.hibernate.type.CustomType.<init>(CustomType.java:91) .... ----- And my pom snippet. <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>hibernate3-maven-plugin</artifactId> <version>2.2</version> <configuration> <components> <component> <name>hbm2ddl</name> <implementation>configuration</implementation> </component> <component> <name>hbm2hbmxml</name> <outputDirectory>/test-data/resources</outputDirectory> </component> </components> <componentProperties> <configurationfile>/etc/hibernate/hibernate.cfg.xml</configurationfile> <drop>false</drop> <format>true</format> <outputfilename>schema.sql</outputfilename> </componentProperties> <dependencies> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-core</artifactId> <version>3.6.0.Final</version> </dependency> </dependencies> </configuration> </plugin> ----- Maven debug output snippet: ---- [DEBUG] Retrieving parent-POM: org.codehaus.mojo:mojo-parent:pom:20 for project: org.codehaus.mojo.hibernate3:maven-hibernate3:pom:2.2 from the repository. [DEBUG] Adding managed dependencies for org.codehaus.mojo:hibernate3-maven-plugin [DEBUG] hsqldb:hsqldb:jar:1.8.0.7:test [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0.6 [DEBUG] org.apache.maven:maven-project:jar:2.0.6 [DEBUG] org.apache.maven:maven-model:jar:2.0.6 [DEBUG] org.apache.maven:maven-artifact:jar:2.0.6 [DEBUG] org.apache.maven.shared:maven-plugin-testing-harness:jar:1.1 [DEBUG] org.hibernate:hibernate-core:jar:3.3.1.GA [DEBUG] org.hibernate:ejb3-persistence:jar:1.0.2.GA [DEBUG] org.hibernate:hibernate-entitymanager:jar:3.4.0.GA [DEBUG] org.hibernate:hibernate-tools:jar:3.2.3.GA [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.5.6 [DEBUG] org.apache.geronimo.specs:geronimo-jta_1.0.1B_spec:jar:1.1.1:runtime [DEBUG] log4j:log4j:jar:1.2.14:runtime [DEBUG] org.slf4j:slf4j-log4j12:jar:1.5.6:runtime [DEBUG] org.slf4j:slf4j-api:jar:1.5.6:runtime [DEBUG] org.slf4j:jcl-over-slf4j:jar:1.5.6:runtime [DEBUG] junit:junit:jar:3.8.2:test [DEBUG] Adding extension: org.apache.maven.model.Extension@74cdaad4 [DEBUG] Initialising extension: mysql:mysql-connector-java [DEBUG] com.bv:bv-core:jar:1.0-SNAPSHOT (selected for null) [DEBUG] mysql:mysql-connector-java:jar:5.1.13:runtime (selected for runtime) [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus:pom:1.0.4 for project: null:plexus-utils:jar:1.1 .. ... [DEBUG] Plugin dependencies for: org.codehaus.mojo:hibernate3-maven-plugin:2.2 are: log4j:log4j:jar:1.2.14:runtime org.hibernate:hibernate-tools:jar:3.2.3.GA:runtime org.hibernate:hibernate-core:jar:3.3.1.GA:runtime org.codehaus.mojo.hibernate3:maven-hibernate3-api:jar:2.2:runtime org.apache.maven:maven-model:jar:2.0.6:runtime org.apache.maven:maven-project:jar:2.0.6:runtime org.apache.maven:maven-plugin-api:jar:2.0.6:runtime org.codehaus.mojo.hibernate3:maven-hibernate3-jdk14:jar:2.2:runtime org.codehaus.mojo.hibernate3:maven-hibernate3-jdk15:jar:2.2:runtime org.codehaus.plexus:plexus-utils:jar:1.1:runtime ---- > -----Original Message----- > From: Stevo Slavic [mailto:ssla...@gmail.com] > Sent: zaterdag 22 januari 2011 15:20 > To: user@mojo.codehaus.org > Subject: Re: [mojo-user] hibernate 3.6.0.Final usage ? > > Couldn't you have defined hibernate 3.6.0.Final as plugin dependency > in plugin management section? > > Regards, > Stevo. > > On Sat, Jan 22, 2011 at 3:16 PM, Ed Bras <z...@debrasjes.com> wrote: > > I upgraded to hibernate version 3.6.0.Final and version 2.2 of the > plugin > > didn't work anymore as it uses an older hibernate version and throw > an > > exception. > > I solved this by changing the hibernate-core dependency version in > the > > pom.xml plugin from 3.3.1.GA to 3.6.0.Final (in my local repo). > > > > What are the plans on solving this issue? > > I tried to look in the mailing list archive but can't find it as the > link is > > incorrect, sorry. > > Ed > > > > > > --------------------------------------------------------------------- > > To unsubscribe from this list, please visit: > > > > http://xircles.codehaus.org/manage_email > > > > > > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email