Hello Juri
1) I believe so. But usually how one goes is to specify the outputfilename to output the ddl to a file instead of the database. You can find more info about the properties used to configured the plugin here: http://www.hibernate.org/hib_docs/tools/reference/en/html_single/#d0e1148 2) I applied a fix for log4j, try it out and let me know. Regards Johann Reyes _____ From: Artamonov, Juri [mailto:[EMAIL PROTECTED] Sent: Thursday, February 08, 2007 11:09 AM To: [email protected] Subject: [mojo-user] Hibernate3 plugin Hi Johann, First of all thanks for supporting hibernate3 plugin. Here are some questions when I tried it today. 1. hmb2dll goal. Sometimes I need to just get ddl file without connection and updating my destination database. May I say that setting <export> to false means that the database will not be updated? 2. Plugin works with hbm2dll, but the following exception I see when I try to start hbm2doc or hbm2java goals. I have log4j jar file in classpath as m2 transitive dependency. [INFO] hibernate3:hbm2java [INFO] using annotationconfiguration task. [INFO] Configuration XML file loaded: D:\projects\pkg\core\src\main\resources\hibernate.cfg.xml [INFO] Configuration XML file loaded: D:\projects\pkg\core\src\main\resources\hibernate.cfg.xml [INFO] Configuration Properties file loaded: D:\projects\pkg\core\src\main\resources\hibernate.properties java.lang.NoClassDefFoundError: org/apache/log4j/Priority at freemarker.log.Log4JLoggerFactory.getLogger(Log4JLoggerFactory.java:65) at freemarker.log.Logger.getLogger(Logger.java:255) at freemarker.template.utility.SecurityUtilities.<clinit>(SecurityUtilities.jav a:67) at freemarker.ext.beans.BeansWrapper.<clinit>(BeansWrapper.java:127) at freemarker.template.WrappingTemplateModel.<clinit>(WrappingTemplateModel.jav a:63) at org.hibernate.tool.hbm2x.TemplateHelper.init(TemplateHelper.java:65) at org.hibernate.tool.hbm2x.AbstractExporter.setupTemplates(AbstractExporter.ja va:136) at org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:93) at org.codehaus.mojo.hibernate3.HibernateExporterMojo.doExecute(HibernateExport erMojo.java:234) at org.codehaus.mojo.hibernate3.HibernateExporterMojo.execute(HibernateExporter Mojo.java:139) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManage r.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLife cycleExecutor.java:534) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(De faultLifecycleExecutor.java:488) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifec ycleExecutor.java:458) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFail ures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Defa ultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle Executor.java:140) at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:441) at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:382) at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
