Hi Marco,
As we don't know what problems you are having, I am taking a stab in the
dark.
Have you included the dependency jars
ie
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate</artifactId>
<version>3.1.2</version>
</dependency>
<dependency>
<groupId>hsqldb</groupId>
<artifactId>hsqldb</artifactId>
<version>1.8.0.4</version>
</dependency>
<extensions>
<extension>
<groupId>hsqldb</groupId>
<artifactId>hsqldb</artifactId>
<version>1.8.0.4</version>
</extension>
</extensions>
Have you also configured the driver and url in your hibernate.cfg.xml
Thanks
Lakshman
> -----Original Message-----
> From: Marco Mistroni [mailto:[EMAIL PROTECTED]
> Sent: Monday, 21 August 2006 4:21 AM
> To: Maven Users List
> Subject: maven2 / hibernate3- schema-export
>
> hi all
> i am trying to generate a schema out of my hibernate classes but i
can't
> manage....
>
> i am trying first to generate hbm.xml files using xdoclet, and then i
am
> trying to generate a schema using hibernate3 plugin
>
> here's my pom.xml (only relevant part of build)
>
> <build>
>
> <plugins>
> <plugin>
> <artifactId>xdoclet-maven-plugin</artifactId>
> <groupId>org.codehaus.mojo</groupId>
> <executions>
> <execution>
> <phase>generate-sources</phase>
> <goals>
> <goal>xdoclet</goal>
> </goals>
> <configuration>
> <tasks>
> <echo message="Generating HBM files from java source
to
> ${basedir}/src/main/resources"/>
> <hibernatedoclet
destdir="${basedir}/src/main/resources/"
> excludedtags="@version,@author,@todo,@see,@desc" verbose="true">
> <fileset dir="${basedir}/src/main/java"
> includes="**/hibernate/*.java"/>
> <hibernate version="3.0" />
> </hibernatedoclet>
> </tasks>
> </configuration>
> </execution>
> </executions>
> </plugin>
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>hibernate3-maven-plugin</artifactId>
> <version>1.0-SNAPSHOT</version>
> <configuration>
> <hibernate>
>
>
<configurationFile>/src/main/resources/hibernate.properties</configurati
onFile>
> </hibernate>
> <outputDirectory>
> <hbm2ddl>src/main/resources</hbm2ddl>
> </outputDirectory>
> </configuration>
> </plugin>
> </plugins>
> </build>
>
>
> can anyone tell me what am i doing wrong??
>
> thanks in advance and regards
> Marco
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]