You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ERROR] Failed to execute goal org.liquibase:liquibase-maven-plugin:3.2.0:diff (default-cli) on project liquibase-hibernate-test: Error setting up or running Liquibase: liquibase.command.CommandExecutionException: java.lang.NullPointerException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.liquibase:liquibase-maven-plugin:3.2.0:diff (default-cli) on project liquibase-hibernate-test: Error setting up or running Liquibase: liquibase.command.CommandExecutionException: java.lang.NullPointerException
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:320)
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:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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: Error setting up or running Liquibase: liquibase.command.CommandExecutionException: java.lang.NullPointerException
at org.liquibase.maven.plugins.AbstractLiquibaseMojo.execute(AbstractLiquibaseMojo.java:371)
at org.liquibase.maven.plugins.LiquibaseDatabaseDiff.execute(LiquibaseDatabaseDiff.java:129)
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: liquibase.exception.LiquibaseException: liquibase.command.CommandExecutionException: java.lang.NullPointerException
at liquibase.integration.commandline.CommandLineUtils.doDiff(CommandLineUtils.java:74)
at liquibase.integration.commandline.CommandLineUtils.doDiff(CommandLineUtils.java:58)
at org.liquibase.maven.plugins.LiquibaseDatabaseDiff.performLiquibaseTask(LiquibaseDatabaseDiff.java:159)
at org.liquibase.maven.plugins.AbstractLiquibaseMojo.execute(AbstractLiquibaseMojo.java:367)
... 22 more
Caused by: liquibase.command.CommandExecutionException: java.lang.NullPointerException
at liquibase.command.AbstractCommand.execute(AbstractCommand.java:13)
at liquibase.integration.commandline.CommandLineUtils.doDiff(CommandLineUtils.java:72)
... 25 more
Caused by: java.lang.NullPointerException
at liquibase.diff.core.StandardDiffGenerator.compareObjectType(StandardDiffGenerator.java:73)
at liquibase.diff.core.StandardDiffGenerator.compare(StandardDiffGenerator.java:49)
at liquibase.diff.DiffGeneratorFactory.compare(DiffGeneratorFactory.java:100)
at liquibase.command.DiffCommand.createDiffResult(DiffCommand.java:143)
at liquibase.command.DiffCommand.run(DiffCommand.java:132)
at liquibase.command.AbstractCommand.execute(AbstractCommand.java:8)
... 26 more
When I change the Liquibase Maven Plugin version from 3.2.0 to 3.1.1 I get a different error, but it seems that this version is no longer supported, so it's probably normal.
[ERROR] Failed to execute goal org.liquibase:liquibase-maven-plugin:3.1.1:diff (default-cli) on project liquibase-hibernate-test: Execution default-cli of goal org.liquibase:liquibase-maven-plugin:3.1.1:diff failed: An API incompatibility was encountered while executing org.liquibase:liquibase-maven-plugin:3.1.1:diff: java.lang.NoSuchMethodError: liquibase.structure.core.Schema.setDefault(Ljava/lang/Boolean;)Lliquibase/structure/core/Schema;
Running with Liquibase 3.2.0 from the command line instead of Maven plugin works as expected.
$ liquibase --url "jdbc:h2:~/tmp/sampledb;AUTO_SERVER=TRUE;DB_CLOSE_ON_EXIT=FALSE" --username sa --password sa --referenceUrl="hibernate:ejb3:samplepu?hibernate.ejb.naming_strategy=org.hibernate.cfg.ImprovedNamingStrategy" --changeLogFile="src/main/resources/db-changelog.xml" --classpath="target/classes" diffChangeLog
The text was updated successfully, but these errors were encountered:
Hi,
Unfortunately it looks like liquibase-hibernate4 version 3.4 does not work with Liquibase Maven Plugin. I created a very simple project to reproduce the issue: https://github.com/mdettlaff-mb/LiquibaseHibernateTest
When I run:
$ mvn -e liquibase:diff
I get this error:
When I change the Liquibase Maven Plugin version from 3.2.0 to 3.1.1 I get a different error, but it seems that this version is no longer supported, so it's probably normal.
Running with Liquibase 3.2.0 from the command line instead of Maven plugin works as expected.
The text was updated successfully, but these errors were encountered: