Hi,
<component>
<name>hbm2hbmxml</name>
<outputDirectory>src/main/resources</outputDirectory>
I would suggest not to use the src directory ...use the target directory ...
</component>
<component>
<name>hbm2java</name>
<outputDirectory>src/main/java</outputDirectory>
Use the default (AFAIK target/generated-sources)...for other defaults
take a look at
http://mojo.codehaus.org/maven-hibernate3/hibernate3-maven-plugin/components.html
<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 ?
<extension>
<groupId>cglib</groupId>
<artifactId>cglib</artifactId>
<version>2.2</version>
</extension>
</extensions>
Why no leaving it to Maven to find the correct version of cglib ...
</build>
<dependencies>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate</artifactId>
<version>3.2.5.ga</version>
<exclusions>
<exclusion>
<groupId>javax.transaction</groupId>
<artifactId>jta</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-annotations</artifactId>
<version>3.3.0.ga</version>
</dependency>
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 should be solved by Maven...only if you have particular
circumstances...or needs...
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib</artifactId>
<version>2.2</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
Kind regards
Karl Heinz Marbaise
--
SoftwareEntwicklung Beratung Schulung Tel.: +49 (0) 2405 / 415 893
Dipl.Ing.(FH) Karl Heinz Marbaise ICQ#: 135949029
Hauptstrasse 177 USt.IdNr: DE191347579
52146 Würselen http://www.soebes.de
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]