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

Reply via email to