maven update tries to create databasechangeloglock on each build via Jenkins


I am trying to create a jenkins job that will execute a maven build which includes a section to apply changelog xml files to  a database (remote). This all works on the first build, but when we reattempt the build using the exact same set up we get an error saying it cannot create ‘databasechangeloglock’ table as it already exists. Why is it trying to recreate these liquibase tables on each build?



Just to let those who are experiencing the same issue. I have fixed this and it was because the Maven phase was set to ‘generate resources’ instead of ‘process-resources’.



Glad you figured it out. Thanks for the update.