Sunday 18 March 2012

Liquibase Maven Plugin - Issue with non local database

There is an option in Liquibase to prompt for permission if the database it connects to is not in local system.
By default this option is turned off as per the Liquibase documentation, but when execute through maven Liquibase plugin seems like this default is other way round and by default it is true and even if add the property


to liquibase properties file, it is not changing its behavior, when we execute this in non head environments like unix, it does through following exception

No X11 DISPLAY variable WAS set, this program aims Performed year operation Which
Requires it.
at java.awt.GraphicsEnvironment.checkHeadless ( 159)
at java.awt.Window.( 407)
at java.awt.Frame.( 402)
at java.awt.Frame.( 367)
at $ javax.swing.SwingUtilities SharedOwnerFrame.( 1731)
at javax.swing.SwingUtilities.getSharedOwnerFrame ( 1808)
at javax.swing.JOptionPane.getRootFrame ( 1673)
at javax.swing.JOptionPane.showOptionDialog ( 846)
at javax.swing.JOptionPane.showConfirmDialog ( 779)
at javax.swing.JOptionPane.showConfirmDialog ( 741)
at liquibase.SwingUIFacade.promptForNonLocalDatabase ( 15)

Solution to this problem is ,

Just add the following in to the maven plugin configuration section


Example :


Hope this helps....


  1. I can't even tell you how helpful this WAS. Thanks!

  2. I second and third the motion - thanks!

  3. Thanks a lot, very helpful!

  4. You are awesome. Thank you so much