Thanks Johann.

 

1.      Thanks, it explains the settings very well.
2.      I just tried with -U and get latest
hibernate3-maven-plugin-2.0-20070209.152443-9.jar file but hbm2doc and
hbm2java still have exactly the same issue.

 

Please let me know if I can provide more information.

 

Best regards,

                          Juri.

 

________________________________

From: Johann Reyes [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 09, 2007 5:31 PM
To: [email protected]
Subject: RE: [mojo-user] Hibernate3 plugin

 

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/#d0e114
8

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
.java:67)

      at
freemarker.ext.beans.BeansWrapper.<clinit>(BeansWrapper.java:127)

      at
freemarker.template.WrappingTemplateModel.<clinit>(WrappingTemplateModel
.java:63)

      at
org.hibernate.tool.hbm2x.TemplateHelper.init(TemplateHelper.java:65)

      at
org.hibernate.tool.hbm2x.AbstractExporter.setupTemplates(AbstractExporte
r.java:136)

      at
org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:93
)

      at
org.codehaus.mojo.hibernate3.HibernateExporterMojo.doExecute(HibernateEx
porterMojo.java:234)

      at
org.codehaus.mojo.hibernate3.HibernateExporterMojo.execute(HibernateExpo
rterMojo.java:139)

      at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nager.java:412)

      at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:534)

      at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoa
l(DefaultLifecycleExecutor.java:488)

      at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:458)

      at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.java:306)

      at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:273)

      at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.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)

Reply via email to