[
http://jira.codehaus.org/browse/MHIBERNATE-90?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=263553#action_263553
]
Stevo Slavic commented on MHIBERNATE-90:
----------------------------------------
Ignore my previous comment, plugin repository configuration was wrong. After
fixing this, build runs but fails with latest 3.0-SNAPSHOT:
{noformat}
[ERROR] Failed to execute goal
org.codehaus.mojo:hibernate3-maven-plugin:3.0-SNAPSHOT:hbm2ddl
(generate-schema-drop-ddl)
on project foo.bar.model: There was an error parsing the configuration:
NullPointerException ->
[Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal
org.codehaus.mojo:hibernate3-maven-plugin
:3.0-SNAPSHOT:hbm2ddl (generate-schema-drop-ddl) on project foo.bar.model:
There was an error parsing the configuration
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: There was an error
parsing the configuration
at
org.codehaus.mojo.hibernate3.AbstractHibernateMojo.getTargetconfiguration(AbstractHibernateMojo.java:144)
at
org.codehaus.mojo.hibernate3.AbstractHibernateMojo.execute(AbstractHibernateMojo.java:72)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
Caused by: java.lang.NullPointerException
at
org.codehaus.plexus.configuration.DefaultPlexusConfiguration.add(DefaultPlexusConfiguration.java:174)
at
org.codehaus.plexus.configuration.DefaultPlexusConfiguration.addChild(DefaultPlexusConfiguration.java:150)
at
org.codehaus.mojo.hibernate3.util.PlexusConfigurationUtils.setHibernateConfiguration(PlexusConfigurationUtils
.java:288)
at
org.codehaus.mojo.hibernate3.util.PlexusConfigurationUtils.parseHibernateTool(PlexusConfigurationUtils.java:1
87)
at
org.codehaus.mojo.hibernate3.util.PlexusConfigurationUtils.parse(PlexusConfigurationUtils.java:35)
at
org.codehaus.mojo.hibernate3.AbstractHibernateMojo.getTargetconfiguration(AbstractHibernateMojo.java:140)
... 22 more
{noformat}
It seems
[code|https://svn.codehaus.org/mojo/trunk/sandbox/hibernate3-maven-plugin/] has
changed since last snapshot build.
> Support for Hibernate Envers
> -----------------------------
>
> Key: MHIBERNATE-90
> URL: http://jira.codehaus.org/browse/MHIBERNATE-90
> Project: Maven 2.x Hibernate Plugin
> Issue Type: Improvement
> Components: hbm2ddl
> Affects Versions: 2.2
> Environment: All environments
> Reporter: Viktor Rees
> Assignee: Johann Reyes
> Fix For: 3.0
>
>
> The hibernate sub project Envers is not supported jet by the
> hibernate3-maven-plugin. See http://www.jboss.org/envers/
> This project creates version tables for all selected 'normal' tables. In the
> version tables all historical data is stored for each update, delete insert
> command of the 'normal' tables.
> The problem is that mvn hibernate3:hbm2ddl does create database schema for
> the normal tables but not for the version tables.
> Is this feature planned to get implemented?
> Viktor
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email