hibernate3-maven-plugin not running
I try to get a db schema out of maven. Here is my configuration org.codehaus.mojo hibernate3-maven-plugin 2.0-alpha-2 hbm2ddl annotationconfiguration hbm2hbmxml src/main/resources true true src/main/resources/hibernate.cfg.xml schema.sql src/main/resources true this does not produce any result? When does this run and how can I run the plugin? -- View this message in context: http://www.nabble.com/hibernate3-maven-plugin-not-running-tf4280489s177.html#a12183982 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: hibernate3-maven-plugin not running
You didn't attach the plugin to any goals/phases, so it doesn't know when to run. Fortunately, this is covered in the documentation: http://mojo.codehaus.org/maven-hibernate3/hibernate3-maven-plugin/examples/phase_embedding.html Wayne On 8/16/07, Mathias P.W Nilsson <[EMAIL PROTECTED]> wrote: > > I try to get a db schema out of maven. Here is my configuration > > > > >org.codehaus.mojo >hibernate3-maven-plugin >2.0-alpha-2 > > > >hbm2ddl > > annotationconfiguration > > > >hbm2hbmxml > > src/main/resources > > > > >true >true > > src/main/resources/hibernate.cfg.xml > > schema.sql > > > > > > >src/main/resources >true > > > > > this does not produce any result? When does this run and how can I run the > plugin? > -- > View this message in context: > http://www.nabble.com/hibernate3-maven-plugin-not-running-tf4280489s177.html#a12183982 > Sent from the Maven - Users mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: hibernate3-maven-plugin not running
Try "mvn hibernate3:hbm2ddl compile". Wayne On 8/16/07, Mathias P.W Nilsson <[EMAIL PROTECTED]> wrote: > > That didn't work. > > I sat an execution and a goal but it didn't work. > -- > View this message in context: > http://www.nabble.com/hibernate3-maven-plugin-not-running-tf4280489s177.html#a12185558 > Sent from the Maven - Users mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: hibernate3-maven-plugin not running
That didn't work. I sat an execution and a goal but it didn't work. -- View this message in context: http://www.nabble.com/hibernate3-maven-plugin-not-running-tf4280489s177.html#a12185558 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: hibernate3-maven-plugin not running
I got "Failed to configure plugin parameters for: org.codehaus.mojo:hibernate3-maven-plugin:2.0-alpha-2" here are the pom.xml org.codehaus.mojo hibernate3-maven-plugin 2.0-alpha-2 generate-sources hbm2ddl hbm2ddl annotationconfiguration hbm2hbmxml src/main/resources true true src/main/resources/hibernate.cfg.xml schema.sql src/main/resources true ... -- View this message in context: http://www.nabble.com/hibernate3-maven-plugin-not-running-tf4280489s177.html#a12186181 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: hibernate3-maven-plugin not running
The node goes inside and outside of . Wayne On 8/16/07, Mathias P.W Nilsson <[EMAIL PROTECTED]> wrote: > > I got > > "Failed to configure plugin parameters for: > org.codehaus.mojo:hibernate3-maven-plugin:2.0-alpha-2" > > here are the pom.xml > > > > > >org.codehaus.mojo >hibernate3-maven-plugin >2.0-alpha-2 > > > > > > generate-sources > > > hbm2ddl > > > > >hbm2ddl > > annotationconfiguration > > >hbm2hbmxml > > src/main/resources > > > >true >true > > src/main/resources/hibernate.cfg.xml > > schema.sql > > > > > > > src/main/resources >true > > > > ... > -- > View this message in context: > http://www.nabble.com/hibernate3-maven-plugin-not-running-tf4280489s177.html#a12186181 > Sent from the Maven - Users mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: hibernate3-maven-plugin not running
Thanks for you pation but it still doesn't work I get this for all my classes. I'm using annotations. Worked perfectly when I was using ant. org.hibernate.MappingException: Unable to load class declared as in the configuration: at org.hibernate.cfg.AnnotationConfiguration.parseMappingElement(AnnotationConfiguration.java:545) -- View this message in context: http://www.nabble.com/hibernate3-maven-plugin-not-running-tf4280489s177.html#a12186381 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: hibernate3-maven-plugin not running
Also the phase should be process-classes instead of generate-sources Your java classes need to be compiled first before they can be added to the plugin to create the db schema Regards Johann Reyes
Re: hibernate3-maven-plugin not running
Mathis try this: org.codehaus.mojo hibernate3-maven-plugin 2.0-alpha-2 hbm2ddl annotationconfiguration hbm2hbmxml src/main/resources true true src/main/resources/hibernate.cfg.xml schema.sql generate-sources hbm2ddl Regards Johann Reyes
Re: hibernate3-maven-plugin not running
can you run this command and then send the output: mvn -X hibernate3:hbm2ddl Regards Johann Reyes
Re: hibernate3-maven-plugin not running
Also you can run manually the plugin like this: mvn hibernate3:hbm2ddl Regards Johann Reyes
Re: hibernate3-maven-plugin not running
Am Donnerstag, 16. August 2007 19:56 schrieb Mathias P.W Nilsson: > Thanks for you pation but it still doesn't work > > I get this for all my classes. I'm using annotations. Worked perfectly when > I was using ant. > this is my pom snippte and it works with mvn process-resources hibernate3:hbm2ddl i am not using annotations but maybe it helps you in any way. org.codehaus.mojo hibernate3-maven-plugin 2.0-alpha-1 log4j log4j 1.2.13 postgresql postgresql 8.2-504.jdbc3 hbm2ddl configuration hbm2doc configuration false false false true true true /target/classes/hibernate.properties schema.sql **/*.hbm.xml kind regards, janning - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: hibernate3-maven-plugin not running
Thank you all! It's working now! :) -- View this message in context: http://www.nabble.com/hibernate3-maven-plugin-not-running-tf4280489s177.html#a12204851 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]