Questions tagged [liquibase-maven-plugin]
28 questions
0
votes
1 answer
Liquibase generateChangeLog generates no data at all
I want to dump some data with liquibase maven plugin from a legacy database. So I ran this command :
mvn liquibase:generateChangeLog -Poracle. The build ran successfully with no errors, but the output file (01-initial-data-dump) is empty.
It also…

Dimitri
- 8,122
- 19
- 71
- 128
0
votes
0 answers
Testcontainers performance slower than plain docker
I have the following scripted out and it works, but it was suggested that I try using testcontainers.
function die { mvn docker:stop ; exit 1; }
function initializeDatabase {
docker exec -it mysql-1 mysql -uroot -proot \
-e "DROP USER IF…

Victor Rodriguez
- 75
- 2
- 8
0
votes
0 answers
MAVEN: How to run something BEFORE each plugin execution
I have the following script, that works. It starts a docker mysql container, and initializes the database before running several executions of the liquibase plugin that run different stuff.
function die { mvn docker:stop ; exit 1; }
function…

Victor Rodriguez
- 75
- 2
- 8
0
votes
0 answers
LIQUIBASE: [Amazon](500310) Invalid operation: terminating connection due to administrator command
I'm trying to do a liquibase generateChangeLog on 48 schemas in an Amazon Redshift database and I'm getting the following error:
[Amazon](500310) Invalid operation: terminating connection due to administrator command
When I do a smaller number of…

Victor Rodriguez
- 75
- 2
- 8
0
votes
0 answers
Cannot handle classloader url -warning from liquibase
I'm getting this warning after updating liquibase-core to 4.17.2 version:
`
Dec 08, 2022 3:22:00 PM liquibase.resource
WARNING: Cannot handle classloader url file:/C:/Program%20Files/Java/jdk1.8.0_172/jre/lib/ext/jaccess.jar: null. Operations that…

Edwin James
- 23
- 2
0
votes
1 answer
export Oracle DB schema in H2 format with liquibase. Difference between `sql` and `xml` outputs
I'm exporting a Oracle schema, and I want to have a script that I can use for in-memory tests with H2.
I export the schema with maven, mvn liquibase:generateChangeLog.
I have noticed that when I specify an outputChangeLogFile of type sql, the…

user103716
- 190
- 12
0
votes
1 answer
How to set tag to changeset in SQL format to run rollbackTag Liquibase Maven?
I want to set tag to my changeset to rollback to this changeset again if I need.
So I wondered about how to set tag to changeset in SQL format.
Thanks in advance.
Here is my databasechangelog table on database.
databasechangelog table
Here is my…

Yusuf Özkan
- 11
- 3
0
votes
1 answer
Is there a possibility in Liquibase to create a changelog between a changelog and a database?
I feel like I´m missing something obvious, but is there a maven goal (or command in normal liquibase) to create a changelog to recreate a database, but as a difference from an existing Changelog. So for example I have a Database with 3 tables and a…

Jonas Menne
- 1
- 2
0
votes
1 answer
How to get the previous tag in liquibase?
I am running gradle commands for liquibase to get the tag,validate,update.
I want to create a rollback as well. In my pipeline, how can get the last tag to rollback to ?
Where can I get the tags from.
./gradlew -Ddb_url=$DB_HOST_URL -Ddb_username=…

Priyanka Sharma
- 87
- 11
0
votes
0 answers
liquibase JAVA_OPTS was unexpected at this time
I have installed liquibase and I am trying to use it. Every liquibase command returns with an error
JAVA_OPTS was unexpected at this time.
I saw solutions to set JAVA_OPT environment variables but none of my colleagues have it even though their…

kyo
- 164
- 14
0
votes
1 answer
How can I link to a liquibase changelog file inside a jar?
Currently, I have a multi-module maven spring project. I'm planning to separate one module and use it as a jar dependency. This module has all the liquibase change-log files that other modules in my project refer (through their own change-log…
0
votes
0 answers
Why liquibase generate a change log with all columns specified with autoincrement=true
column tags all in generated changelog like this whatever colume type is!!!
enter image description here
and is of course, unable to updateSQL or generate sql format changelog
enter image description here
0
votes
1 answer
Maven Execution of Liquibase
I am executing liquibase through Maven like mvn liquibase:update and as you can see I am getting output in the console
[INFO] Scanning for projects...
[INFO]
[INFO] -------< LiquibaseInstanaExperiment:LiquibaseInstanaExperiment >--------
[INFO]…

Raghav Gupta
- 341
- 1
- 6
- 20