When I upgraded to Hibernate 4 the below config stopped working

<plugin>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>hibernate3-maven-plugin</artifactId>
  <executions>
    <execution>
      <id>generate-ddl</id>
      <phase>test</phase>
      <goals>
        <goal>hbm2ddl</goal>
      </goals>
    </execution>
  </executions>
  <configuration>
    <hibernatetool>
<jpaconfiguration persistenceunit="default" propertyfile="src/test/resources/hbm2ddl.properties" /> <hbm2ddl export="false" create="true" update="false" format="false" outputfilename="oracle-schema.ddl" />
    </hibernatetool>
  </configuration>
</plugin>

It failed because org.hibernate.util.ReflectHelper wasn't available. Of course I can make this work if I include

  <dependencies>
    <dependency>
      <groupId>org.hibernate</groupId>
      <artifactId>hibernate-core</artifactId>
      <version>3.6.10.Final</version>
    </dependency>
  </dependencies>

with the plugin. This however feels odd (although the plugin's name is Hibernate*3* specifically).

Is this really the way to go?

Cheers,
Marcel

--
Marcel Stör, http://www.frightanic.com
Couchsurfing: http://www.couchsurfing.com/people/marcelstoer
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to