Hi,

When I use the following maven configuration, the sql script generated is
empty. How can I provide to the plugin the location of my **hbm.xml files. I
presume that the issue comes from there.

Config

                        <!-- Hibernate  plugin -->
                        <plugin>
                                <groupId>org.codehaus.mojo</groupId>
                                <artifactId>hibernate3-maven-plugin</artifactId>
                                <version>2.2</version>
                                <configuration>
                                        <components>
                                                <component>
                                                        <name>hbm2ddl</name>
                                                </component>
                                        </components>
                                        <componentProperties>
                                                <drop>true</drop>
                                                <create>true</create>
                                                <format>true</format>
                                        
<configurationfile>/src/main/resources/org/apache/camel/example/reportincident/config/hibernate.cfg.xml</configurationfile>
                                     
<outputfilename>db_reportincident_create_hsqldb.sql</outputfilename>
                                        </componentProperties>
                                </configuration>
                                <dependencies>
                                        <dependency>
                                                <groupId>hsqldb</groupId>
                                                <artifactId>hsqldb</artifactId>
                                                <version>1.8.0.7</version>
                                        </dependency>
                                        <dependency>
                                                <groupId>mysql</groupId>
                                                
<artifactId>mysql-connector-java</artifactId>
                                                <version>5.0.4</version>
                                        </dependency>
                                </dependencies>

                                <executions>
                                        <execution>
                                                <phase>process-classes</phase>
                                                <goals>
                                                        <goal>hbm2ddl</goal>
                                                </goals>
                                        </execution>
                                </executions>

                        </plugin>

My hbm files are in the dicrectory :
/src/main/resources/org/apache/camel/example/reportincident/

Regards

-----
Charles Moulliard
SOA Architect

My Blog :  http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/  
-- 
View this message in context: 
http://www.nabble.com/hbm2ddl-generates-empty-sql-schema-%21%21%21-tp22601214p22601214.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


Reply via email to