Hi -
I am trying to use the maven plugin with the update goal - but it does not really work
When I use to 1.9.3 liquibase creates a lock table and then insists it exists… strange enough it creates it in a schema called “px” - which is the name of the database. strange thing.
When I use 1.9.4 I get the following exception:
java.lang.NullPointerException at org.liquibase.maven.plugins.AbstractLiquibaseMojo.execute(AbstractLiquibaseMojo.java:199) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) 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:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
My pom.xml looks like that:
org.liquibase liquibase-plugin 1.9.4.0 META-INF/liquibase/masetta-module.xml ${mvn.db.driver} ${mvn.db.username} ${mvn.db.password} jdbc:${mvn.db.vendor}://${mvn.db.host}:${mvn.db.port}/${mvn.db.name} true postgresql postgresql 8.1-408.jdbc3 true<mvn.db.vendor>postgresql</mvn.db.vendor> <mvn.db.driver>org.postgresql.Driver</mvn.db.driver> <mvn.db.host>localhost</mvn.db.host> <mvn.db.port>5432</mvn.db.port> <mvn.db.name>px</mvn.db.name> <mvn.db.username>px</mvn.db.username> <mvn.db.password>px</mvn.db.password> <mvn.db.debug>true</mvn.db.debug>
And here is the output of liquibase:
rpiter@tamara:~/pz/test-instrument-index$ mvn org.liquibase:liquibase-plugin:migrate [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building Test for instrument indexing [INFO] task-segment: [org.liquibase:liquibase-plugin:migrate] [INFO] ------------------------------------------------------------------------ [INFO] [liquibase:migrate {execution: default-cli}] [INFO] ------------------------------------------------------------------------ [INFO] Loading artfacts into URLClassLoader [INFO] artifact: file:/home/rpiter/.m2/repository/org/liquibase/liquibase-core/1.9.4/liquibase-core-1.9.4.jar [INFO] artifact: file:/home/rpiter/dev/workspaces/pz/test-instrument-index/target/classes/ [INFO] ------------------------------------------------------------------------ [WARNING] This plugin goal is DEPRICATED and will be removed in a future release, please use "update" instead of "migrate". [INFO] Settings---------------------------- [INFO] driver: org.postgresql.Driver [INFO] url: jdbc:postgresql://localhost:5432/px [INFO] username: px [INFO] password: px [INFO] use empty password: false [INFO] properties file: null [INFO] properties file will override? false [INFO] prompt on non-local database? true [INFO] clear checksums? false [INFO] changeLogFile: /META-INF/liquibase/masetta-module.xml [INFO] drop first? false [INFO] context(s): null [INFO] number of changes to apply: 0 [INFO] ------------------------------------------------------------------------ [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] null [INFO] ------------------------------------------------------------------------ [INFO] Trace java.lang.NullPointerException at org.liquibase.maven.plugins.AbstractLiquibaseMojo.execute(AbstractLiquibaseMojo.java:199) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) 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:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) [INFO] ------------------------------------------------------------------------ [INFO] Total time: < 1 second [INFO] Finished at: Fri Sep 04 20:55:21 CEST 2009 [INFO] Final Memory: 4M/79M [INFO] ------------------------------------------------------------------------