Re: Regenerate hibernate mapping files
I just do it with this configuration in my pom.xml plugin groupIdorg.codehaus.mojo/groupId artifactIdxdoclet-maven-plugin/artifactId executions execution idhbm generation with xdoclet/id phasegenerate-sources/phase configuration tasks hibernatedoclet destdir=target/classes fileset dir=src/main/java includes=**/*.java / hibernate version=3.0 / hibernatecfg version=3.0 dialect= org.hibernate.dialect.MySQLDialect driver=com.mysql.jdbc.Driver jdbcurl =jdbc:mysql://spirou.smals-mvm.be/spitools_prod username=dummy password =dummy showSql=true / /hibernatedoclet /tasks generatedSourcesDirectorytarget/classes/ generatedSourcesDirectory /configuration goals goalxdoclet/goal /goals /execution /executions /plugin - I wish to regenerate hibernate(version 2.0) mapping files in my project and currently am using Ant to do so.Can I achieve the same with the hibernate3-maven-plugin ? Here's the ant task : !-- regenerate the hibernate mapping files -- taskdef name=hibernatedoclet classname=xdoclet.modules.hibernate.HibernateDocletTask classpath refid=portallib.classpath / /taskdef hibernatedoclet destdir=${ant.common.eportal.services.dir}/src force=false excludedtags=@version,@author,@todo fileset dir=${ant.common.eportal.services.dir}/src include name=**/portal/**/*.java / include name=**/reference/**/*.java / /fileset hibernate version=2.0 / /hibernatedoclet echo message=Regenerated Hibernate mapping files in ${basedir}\bin level=info / -- Jeff Mutonho GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Regenerate hibernate mapping files
Hello Jeff Actually you are using Xdoclet to generate your hibernate mapping files. The hibernate3-maven-plugin is not based on Xdoclet; it's based on hibernate-tools which you can find more info here: http://tools.hibernate.org/ Regards Johann Reyes -Original Message- From: Jeff Mutonho [mailto:[EMAIL PROTECTED] Sent: Thursday, July 06, 2006 9:52 AM To: Maven Users List Subject: Regenerate hibernate mapping files I wish to regenerate hibernate(version 2.0) mapping files in my project and currently am using Ant to do so.Can I achieve the same with the hibernate3-maven-plugin ? Here's the ant task : !-- regenerate the hibernate mapping files -- taskdef name=hibernatedoclet classname=xdoclet.modules.hibernate.HibernateDocletTask classpath refid=portallib.classpath / /taskdef hibernatedoclet destdir=${ant.common.eportal.services.dir}/src force=false excludedtags=@version,@author,@todo fileset dir=${ant.common.eportal.services.dir}/src include name=**/portal/**/*.java / include name=**/reference/**/*.java / /fileset hibernate version=2.0 / /hibernatedoclet echo message=Regenerated Hibernate mapping files in ${basedir}\bin level=info / -- Jeff Mutonho GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - 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: Regenerate hibernate mapping files
On 7/6/06, Johann Reyes [EMAIL PROTECTED] wrote: Hello Jeff Actually you are using Xdoclet to generate your hibernate mapping files. The hibernate3-maven-plugin is not based on Xdoclet; it's based on hibernate-tools which you can find more info here: http://tools.hibernate.org/ Regards Johann Reyes -Original Message- From: Jeff Mutonho [mailto:[EMAIL PROTECTED] Sent: Thursday, July 06, 2006 9:52 AM To: Maven Users List Subject: Regenerate hibernate mapping files I wish to regenerate hibernate(version 2.0) mapping files in my project and currently am using Ant to do so.Can I achieve the same with the hibernate3-maven-plugin ? Here's the ant task : !-- regenerate the hibernate mapping files -- taskdef name=hibernatedoclet classname=xdoclet.modules.hibernate.HibernateDocletTask classpath refid=portallib.classpath / /taskdef hibernatedoclet destdir=${ant.common.eportal.services.dir}/src force=false excludedtags=@version,@author,@todo fileset dir=${ant.common.eportal.services.dir}/src include name=**/portal/**/*.java / include name=**/reference/**/*.java / /fileset hibernate version=2.0 / /hibernatedoclet echo message=Regenerated Hibernate mapping files in ${basedir}\bin level=info / -- Thanks.Worked out of the box :) Jeff Mutonho GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]