Hi Karl, Thank you for your suggestion about directory convention of generated files.
Karl Heinz Marbaise wrote: > > Hi, > >> <extensions> >> <extension> >> <groupId>postgresql</groupId> >> <artifactId>postgresql</artifactId> >> <version>8.3-603.jdbc4</version> >> </extension> > Why are you defining the postgresql driver not as dependency for > Hibernate ? > I'm new to maven. I put postgresql and cglib dependencies into hibernate-maven-plugin as dependencies. Then maven doesn't miss class net.sf.cglib.core.KeyFactory. Without cglib maven stops with the same error. Karl Heinz Marbaise wrote: > > Why no leaving it to Maven to find the correct version of cglib ... > Without version element maven stops with error message. Karl Heinz Marbaise wrote: > > The following is a transitive dependency of hibernate-annotations.... > >> <dependency> >> <groupId>org.hibernate</groupId> >> <artifactId>hibernate-commons-annotations</artifactId> >> <version>3.3.0.ga</version> >> </dependency> > The following is a snipped of an mvn dependency:tree > I have only hibernate.jar (3.2.6.ga) and hibernate-annotations.jar > (3.3.1.ga) as dependency nothing else... > > [INFO] +- org.hibernate:hibernate:jar:3.2.6.ga:compile > [INFO] | +- net.sf.ehcache:ehcache:jar:1.2.3:compile > [INFO] | +- asm:asm-attrs:jar:1.5.3:compile > [INFO] | +- dom4j:dom4j:jar:1.6.1:compile > [INFO] | +- antlr:antlr:jar:2.7.6:compile > [INFO] | +- cglib:cglib:jar:2.1_3:compile > [INFO] | +- asm:asm:jar:1.5.3:compile > [INFO] | \- commons-collections:commons-collections:jar:2.1.1:compile > [INFO] +- org.hibernate:hibernate-annotations:jar:3.3.1.GA:compile > [INFO] | +- > org.hibernate:hibernate-commons-annotations:jar:3.0.0.ga:compile > [INFO] | \- org.hibernate:ejb3-persistence:jar:1.0.1.GA:compile > Unfortunately, hibernate-commons-annotation is not dependency of version 3.3.0.ga of hibernate-annotation, but it is of version 3.3.1.GA. -- View this message in context: http://www.nabble.com/Hibernate-reveng-tp24845979p24862976.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
