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
flyway:migrate complains about missing URL even when execution should be skipped #576
Comments
Thanks for your report. What is the specific real world use-case where such a constellation would apply? |
we have similar configuration in multiproject setup when in parent pom we have skip=true and in child poms we have skip=false. |
Isn't pluginManagement meant for these cases? |
I should have mentioned, in our setup, we explicitly invoke the flyway:migrate goal on the command line to update our individual dev databases, from the top-level pom:
It's a large project, and not all the modules have migration scripts, so we don't always want to run the migrate goal. Putting it the configuration in pluginManagement doesn't help since the goal is explicitly invoked. It'll pick up the configuration but the original issue still arises. |
With pluginManagement:
|
It seems that in documentation generated by maven plugin url is marked as required and it causes the problem. Alex, what do you think about relaxing this required statement, but in this way you can define plugin without configuration parameters. |
Constraint relaxed and validation moved to DataSource, in case it gets created (not if skip=true). |
The flyway:migrate goal should not complain about missing properties when skip is true.
Example POM:
The text was updated successfully, but these errors were encountered: