Hello Mike

Farrukh is trying to generate his schema from the database, which the hbm
wouldn't help in this case.

Also as long as you specify as implementation configuration, your hbm.xml
files would be added to the plugin classpath.

Regards

Johann Reyes 

-----Original Message-----
From: Mike Ball [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 22, 2007 1:37 PM
To: [email protected]
Subject: Re: [mojo-user] hibernate3:hbm2ddl producing empty SQL file

I think you need to specify your hbms, this works for me, notice the
<filepattern>:
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>hibernate3-maven-plugin</artifactId>
            <version>2.0-SNAPSHOT</version>
            <configuration>
              <components>
                <component>
                  <name>hbm2ddl</name>
                  <implementation>configuration</implementation>
                </component>
              </components>
              <componentProperties>
                <drop>true</drop>

<propertyfile>src/main/resources/database.properties</propertyfile>
                <outputfilename>/target/schema.sql</outputfilename>
                <export>false</export>
                <filepattern>**/*hbm.xml</filepattern>
              </componentProperties>
            </configuration>
          </plugin>

On 2/22/07, Farrukh S. Najmi <[EMAIL PROTECTED]> wrote:
>
> I am having no luck trying to generate DDL from my hbm files using the
> hibernate3 plugin.
> Attached is my pom file (which also uses hyperjaxb2 plugin).
>
> I run hibernate3:hbm2ddl goal as follows:
>
>     mvn -e --debug hibernate3:hbm2ddl
>
> I saved the output and attached it here as hb.log
>
> The result is that there is no sql file ouput other than the empty file:
>
> ./target/hibernate3/sql/target/schema.sql
>
> I was unable to find a solution to this in the archives. Thanks for your
> help.
>
> --
> Regards,
> Farrukh
>
> Web: http://www.wellfleetsoftware.com
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>

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

    http://xircles.codehaus.org/manage_email




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

    http://xircles.codehaus.org/manage_email

Reply via email to