I actually had this exact same problem (that is, there was no error, but
hbm2java seemed to have no effect) , and I put in jdbcconfiguration for the
implementation.
Thus I have:
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>hibernate3-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
<components>
<component>
<name>hbm2java</name>
<implementation>jdbcconfiguration </implementation>
<outputDirectory>target/hibernate3/generated-sources</outputDirectory>
</component>
</components>
<componentProperties>
<drop> false</drop>
<configurationfile>/src/main/resources/hibernate-generation/hibernate.cfg.xml</configurationfile>
<revengfile>/src/main/resources/hibernate-generation/hibernate.reveng.xml</revengfile>
<jdk5>true</jdk5>
<ejb3>true</ejb3>
<export> true </export>
</componentProperties>
</configuration>
<dependencies>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.6</version>
</dependency>
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib-nodep</artifactId>
<version>2.2</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
Then I run: mvn clean hibernate3:hbm2java
----- Original Message ----
From: Johann Reyes <[email protected]>
To: [email protected]
Sent: Saturday, January 12, 2008 9:55:07 AM
Subject: Re: [mojo-user] Hibernate3 plugin issue - invalid configuration
from hbm2java goal
Hello Lawrence
First of all, you need to use "jpaconfiguration", no
"annotationconfiguration"
And you don't need to specify the configurationfile property when is JPA.
Regards
Johann Reyes
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs
--
View this message in context:
http://old.nabble.com/Hibernate3-plugin-issue---invalid-configuration-from-hbm2java-goal-tp14769094p29801301.html
Sent from the mojo - user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email