Actually i just made it!

I had to add the following into my  pom:
             <goals>
               <goal>
                 <name>hbm2ddl</name>
                 <implementation>configuration</implementation>
               </goal>
             </goals>

You see i'm using java 1.5 on build and the default is annotations (i think).

I have to make the following 3 remarks:

1) It is my view that selecting different defaults based on the build
environment is worse than specifying a fixed but bad default. It is
Geoffrey De Smet who said that first, and i agree with him.

2) The code in svn could not pass 2 tests:
-------------------------------------------------------------------------------
Test set: org.codehaus.mojo.hibernate3.plugin.Hbm2HbmXmlMojoTest
-------------------------------------------------------------------------------
Tests run: 4, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.561
sec <<< FAILURE!
testJdbcMojoExecution(org.codehaus.mojo.hibernate3.plugin.Hbm2HbmXmlMojoTest)
Time elapsed: 0.709 sec  <<< ERROR!
org.hibernate.tool.hbm2x.ExporterException: Error while writing result to file
       at 
org.hibernate.tool.hbm2x.TemplateProducer.produce(TemplateProducer.java:45)
       at 
org.hibernate.tool.hbm2x.TemplateProducer.produce(TemplateProducer.java:97)
       at 
org.hibernate.tool.hbm2x.GenericExporter.exportPOJO(GenericExporter.java:84)
       at 
org.hibernate.tool.hbm2x.GenericExporter.exportPersistentClass(GenericExporter.java:73)
       at 
org.hibernate.tool.hbm2x.GenericExporter.exportClasses(GenericExporter.java:56)
       at 
org.hibernate.tool.hbm2x.GenericExporter.doStart(GenericExporter.java:41)
       at 
org.hibernate.tool.hbm2x.HibernateMappingExporter.doStart(HibernateMappingExporter.java:34)
       at 
org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:95)
       at 
org.codehaus.mojo.hibernate3.HibernateExporterMojo.doExecute(HibernateExporterMojo.java:175)
       at 
org.codehaus.mojo.hibernate3.HibernateExporterMojo.execute(HibernateExporterMojo.java:123)
       at 
org.codehaus.mojo.hibernate3.plugin.Hbm2HbmXmlMojoTest.testJdbcMojoExecution(Hbm2HbmXmlMojoTest.java:28)


-------------------------------------------------------------------------------
Test set: org.codehaus.mojo.hibernate3.plugin.Hbm2JavaMojoTest
-------------------------------------------------------------------------------
Tests run: 4, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.444
sec <<< FAILURE!
testJdbcMojoExecution(org.codehaus.mojo.hibernate3.plugin.Hbm2JavaMojoTest)
Time elapsed: 0.378 sec  <<< ERROR!
org.hibernate.tool.hbm2x.ExporterException: Error while writing result to file
       at 
org.hibernate.tool.hbm2x.TemplateProducer.produce(TemplateProducer.java:45)
       at 
org.hibernate.tool.hbm2x.TemplateProducer.produce(TemplateProducer.java:97)
       at 
org.hibernate.tool.hbm2x.GenericExporter.exportPOJO(GenericExporter.java:84)
       at 
org.hibernate.tool.hbm2x.GenericExporter.exportPersistentClass(GenericExporter.java:73)
       at 
org.hibernate.tool.hbm2x.GenericExporter.exportClasses(GenericExporter.java:56)
       at 
org.hibernate.tool.hbm2x.GenericExporter.doStart(GenericExporter.java:41)
       at 
org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:95)
       at 
org.codehaus.mojo.hibernate3.HibernateExporterMojo.doExecute(HibernateExporterMojo.java:175)
       at 
org.codehaus.mojo.hibernate3.HibernateExporterMojo.execute(HibernateExporterMojo.java:123)
       at 
org.codehaus.mojo.hibernate3.plugin.Hbm2JavaMojoTest.testJdbcMojoExecution(Hbm2JavaMojoTest.java:28)




3) The source repository URL in pom.xml should be overidden to point
into the parent project, so that people checkout the complete project,
not just the plugin.

Regards,
 Kostis

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

   http://xircles.codehaus.org/manage_email

Reply via email to