Filename value is different when running as ServletListener vs through Maven

I should be able to run Liquibase from both the ServletListener and through a maven command and have it add entries in the DATABASECHANGELOG table with the same filename.  Currently they add records with different filenames because during Maven it will set filename to src/main/resources/changesets/xxxx.xml and with the ServletListener it is changesets/xxxx.xml.


This leads to issues where Liquibase attempts to run changeset that have already ran.

Make sure you use the (documented) elements.  You can make this value be whatever you want, and it will avoid the many, many problems that result from relying on filenames.

Best,
Laird


http://about.me/lairdnelson