Remove warning when using flyway.version maven property #1348
What version of Flyway are you using? 4.0.3
What database are you using (type & version)? MySQL 5.6
What operating system are you using? Windows 10
What did you do? built using the flyway-maven-plugin
What did you expect to see? no warnings
What did you see instead? [WARNING] Unknown configuration property: flyway.version
There's actually no problem, but the warning made me think there was and threw me for a while. I use a number of maven properties called flyway.whatever. For example let's take flyway.version. At the top of the POM:
and later in the dependencies:
The flyway maven plugin passes all properties into core flyway which then filters them and logs a warning because it has a property starting with "flyway." that it doesn't recognize. Of course it's not a problem at all, it was used correctly by maven and was never intended for flyway core.
Might be worth considering whether this kind of warning should be printed. Realize that it's helpful in scenarios where a user may have intended a genuine flyway setting but got the name wrong. I'm really not sure what the best course of action is. Any thoughts?
The text was updated successfully, but these errors were encountered: