-
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
Failed to resolve properties file #1723
Comments
Thanks @bennypi for adding this issue. I think this may be a configuration issue but I'm not a maven expert. |
- Better handle file lookups in linux with FileSystemResourceAccessor LB-1294 #1723
The issue is coming from how we handle our file lookup. I have a fix for it at #1744 which will probably go out in 4.4.0. In the meantime, you should be able to work around the problem by making your Liquibase usually works best with paths that are relative to one of the configured resource root directories. For maven, ${project.basedir} is one of those, so you just have to specify |
Hi everyone, thanks for the help. |
➤ Erzsebet Carmean commented: Tested Liquibase 4.3.2-LB-1294-SNAPSHOT #3Issue reproduced on Mac with Liquibase 4.1.0. Thank you, Benny, for the example Git project. It was extremely helpful!Verify no null pointer exception is thrown when generate-sources profile runs. PASS
#################################################### Everything in manual testing looks good. Expect the fix for this bug in Liquibase v4.4.0. |
➤ Erzsebet Carmean commented: Moving this ticket to ready to merge. Will release with Liquibase v4.4.0. |
Environment
Liquibase Version: 4.1.0 (it still doesn't work with 4.3.1, but with a different error message)
Liquibase Integration & Version: maven 4.1.0 (it still doesn't work with 4.3.1, but with a different error message)
Liquibase Extension(s) & Version: none
Database Vendor & Version: MySQL 8
Operating System Type & Version: Linux Mint Cinnamon, Azul JDK 11.0.10, Maven 3.6.3
Description
When running
updateSQL
from the maven plugin, the plugin seems to be having issues loading the liquibase.properties file. Although the file exists, liquibase cannot read it's contents and aborts the execution. The same setup works on Windows 10 machines with Java 11.Steps To Reproduce
Clone this repo: https://github.com/bennypi/liquibase-test
Configure the liquibase.properties to use with an available MySQL 8 database
mvn clean package
in the root of the projectcd db-module
mvn clean process-resources -Pgenerate-sql
Actual Behavior
See this maven output:
The liquibase.properties file does exist (the path is copied from the INFO logging from the maven output):
Expected/Desired Behavior
The liquibase-maven-plugin performs the generateSQL goal and the SQL file is created.
Aditional Context
When using liquibase 4.3.1, the maven error is this one:
If necessary, I can provider the full stack trace for the 4.3.1 version using -X in the mvn command.
The text was updated successfully, but these errors were encountered: