-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Liquibase fails when changelog file is not the default resource path #41236
Comments
It seems that Thanks |
@murilo-develop when you say
as the error shows your change log file name is "changeLog.xml" but is located in a directory named "local", right? the "local" directory is in the classpath or where is it? |
It's part of the file system - the attached sample perfectly reproduces the problem being described |
understood, when I have some time I will take a look at it. |
Thanks a lot! |
Thanks! |
(cherry picked from commit 3f81057)
Describe the bug
When I try to build a native app which uses Liquibase and the changelog file path is not the default the build fails.
Expected behavior
Native app successfully built.
Actual behavior
The build process fails with a message:
How to Reproduce?
liquibase-quickstart.zip
Output of
uname -a
orver
Linux L-PW03AH72 5.15.153.1-microsoft-standard-WSL2 #1 SMP Fri Mar 29 23:14:13 UTC 2024 x86_64 GNU/Linux
Output of
java -version
Picked up JAVA_TOOL_OPTIONS: -Dos.version=arch openjdk version "17.0.5" 2022-10-18 LTS OpenJDK Runtime Environment Zulu17.38+21-CA (build 17.0.5+8-LTS) OpenJDK 64-Bit Server VM Zulu17.38+21-CA (build 17.0.5+8-LTS, mixed mode, sharing)
Mandrel or GraalVM version (if different from Java)
No response
Quarkus version or git rev
3.11.2
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)
Additional information
I also tried to add additional resource files through the property "quarkus.native.resources.includes". For instance, "quarkus.native.resources.includes=db/changelog/**". But it also did not work.
However, when I created the file "src/main/resources/local/changeLog.xml" and removed the quarkus property, "quarkus.liquibase.search-path=db/changelog", it worked.
Furthermore, if I let the quarkus's property,"quarkus.liquibase.search-path=db/changelog", in the application.properties file it finds twice the same file and fail.
Therefore, I hope to have the same behavior, once set the quarkus.liquibase.search-path it should be handled in the same way no matter the sort of the build.
The text was updated successfully, but these errors were encountered: