database - Liquibase Maven & Command line working differently -


i have changelogs, when run command line multiple times liquibase command line script, works pretty fine.

everytime when run liquibase:update, on same changelog works , no warn thrown

[www-data@ajeets database]$ liquibase --changelogfile=changelog/changelog-install.xml update; liquibase update successful [www-data@ajeets database]$ liquibase --changelogfile=changelog/changelog-install.xml update; liquibase update successful [www-data@ajeets database]$ liquibase --changelogfile=changelog/changelog-install.xml update; liquibase update successful [www-data@ajeets database]$  

but when run same maven setup, throws error when run 2nd time onwards, seems right why different behavior , possible have same behavior in maven too, in command line, running everytime showing updated.

info 4/29/15 1:45 pm: liquibase: executing: /home/www-data/workspace/database/src/main/resource/com/obolus/database/changelog/changelog-install.xml despite precondition failure due onfail='warn':  not executing changes in v000/master.xml info 4/29/15 1:45 pm: liquibase: released change log lock. 

this warning correct, thing command line liquibase script never reports that, when work mvn , mvn liquibase:update 2nd time onwards this.

okies, got answer myself.

[www-data@ajeets resource]$ liquibase --changelogfile=changelog-install.xml --loglevel=info update info 4/29/15 3:22 pm: liquibase: acquired change log lock info 4/29/15 3:22 pm: liquibase: reading lb_test.databasechangelog info 4/29/15 3:22 pm: liquibase: executing: changelog-install.xml despite precondition failure due onfail='warn':  not executing changes in v000/master.xml info 4/29/15 3:22 pm: liquibase: released change log lock liquibase update successful 

it's showing warning in command line well. trick of loglevel believe in command line default logleve set "off" or "severe", problem had same loglevel in maven in property file , same property file used in command line not picked up.

okies, can live it.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -