Hello Kostis 1) Yep, so I added a global <implementation> to the configurationTaskProperties.
2) Hmm, looks like something had locked the file. Are you using windows or linux? Have you tried before doing an mvn install do an mvn clean? 3) Yes I guess the doco points to that, but the problem is when I change the scm the doco shows the following $ svn checkout https://svn.codehaus.org/mojo/trunk/mojo/mojo-sandbox/maven-hibernate3 hibernate3-maven-plugin This still is wrong, and also I don't know what would do this at the moment to release the prject, so for the moment I'll leave the scm alone. Regards Johann Reyes -----Original Message----- From: Kostis Anagnostopoulos [mailto:[EMAIL PROTECTED] Sent: Thursday, December 07, 2006 8:21 AM To: [email protected] Subject: Re: [mojo-dev] [hibernate3-maven-plugin] Testers needed 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(GenericExport er.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(HibernateMappingEx porter.java:34) at org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:95) at org.codehaus.mojo.hibernate3.HibernateExporterMojo.doExecute(HibernateExport erMojo.java:175) at org.codehaus.mojo.hibernate3.HibernateExporterMojo.execute(HibernateExporter Mojo.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(GenericExport er.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(HibernateExport erMojo.java:175) at org.codehaus.mojo.hibernate3.HibernateExporterMojo.execute(HibernateExporter Mojo.java:123) at org.codehaus.mojo.hibernate3.plugin.Hbm2JavaMojoTest.testJdbcMojoExecution(H bm2JavaMojoTest.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 --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
