-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
includeAll not working with Liquibase 4.0.0 #1436
Comments
@nvoxland, @mariochampion and @molivasdat, is this change in behavior intentional from 3.x to 4.x? |
Any news about this issue? |
Hi @jglink . Have you tried this with v4.1.1? There was a change to the Resource Accessor class in how files are searched and loaded. |
No, I haven´t checked 4.1.1 - was not aware, that a new version was already published. |
@molivasdat Sorry, it took some time until I had the chance to look at it again. |
Hi @jglink Thanks for the feedback. |
Not completely. Tested on liquibase 4.2.0 |
Hi @acierto |
For me not working on JDK 11. Also not working with v4.2.0. |
I´m using Liquibase from within Quarkus (updated the dependency manually because Quarkus 1.9.x still used Liquibase 4.0). The definition of the import in a changeLog.xml looked like this: |
Same problem here with version 4.2.2 on JDK 14. |
So what happens in conjunction with Quarkus is that this returns an empty String: https://github.com/liquibase/liquibase/blob/v4.2.2/liquibase-core/src/main/java/liquibase/resource/ClassLoaderResourceAccessor.java#L236
(this is basically the same what has already been discussed in the forum topic that is liked in the issue description) There is also a Quarkus reproducer here: quarkusio/quarkus#14751
|
As already mentioned /linked on the Quarkus forum: the includeAll option worked for me with Quarkus 1.10.x which used Liquibase 4.1.1 but not anymore with updated Quarkus 1.11.x using Liquibase 4.2.2 |
➤ Nathan Voxland commented: PR #1665 should fix this. |
In testing #1665, we found that the specific error you were seeing was different than the error we had reproduced and fixed. I was able to reproduce the reported I'll see if I can reproduce it using the steps in quarkusio/quarkus#14751 to better understand what is going on. |
Starting with Liquibase 4.0.0, the includeAll definition in a change log file doesn´t work anymore if the referenced files are placed in a JAR file.
It´s working fine, if the files can be referenced from a target folder during development but not when the changesets should be accessed from JAR.
For details, see also https://forum.liquibase.org/t/includeall-with-v4-0-0/4655
Text from forum update
With the Quarkus version 1.7.1 which uses Liquibase 3.9.x everything works fine.
But Quarkus 1.8.x upgrades to Liquibase 4.0.0 and this causes issues with change sets using the includeAll tag.
Our changeLog.xml contains following:
When we start the application in the Quarkus dev mode (mvn quarkus:dev) everything works fine; the changeLog is read and every file under the given path (db/1.0.0/) is executed/checked from Liquibase.
But if we run the application directly (with java -jar) we are getting following error:
The resources under this given folder are just not found.
If I define the includes per file, it´s working fine:
How can we define the includeAll tags with the new Liquibase 4.0.0 version?
The text was updated successfully, but these errors were encountered: