-
Notifications
You must be signed in to change notification settings - Fork 40.2k
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
Document how to override attributes already specified in Maven plugin configuration #21536
Comments
Maven convention is for properties provided in the POM to take precedence over properties provided on the command line. In a few cases like See the discussion that led to this decision in this issue: #20024 |
Hi @scottfrederick thanks for your quick reply, I understand! |
As you probably noticed in the previous issue, we were a bit surprised by this order of precedence ourselves. It would be good to add a note about this in the documentation somewhere and to make sure we don't have any misleading statements. I'll re-open this as a documentation issue to address that. |
I don't think there is a single place where we can write this down that would be discoverable. Looking at our current doc, it feels to me that it is something we'd have to states more than once to be useful and I don't think our doc should explain how Maven works. My vote is to close this, flagging for team attention to see what the rest of the team thinks. |
Perhaps we could mention it in https://docs.spring.io/spring-boot/docs/2.3.3.RELEASE/maven-plugin/reference/html/#using, even if it's just to link to Maven's own documentation on configuration precedence? |
We'd like to document the trick that @scottfrederick has described here where you use a project property to make things overridable. |
Hi all,
I'm facing a problem with
spring-boot-maven-plugin
and spring-boot version >= 2.2.5-RELEASE.If the plugin configuration has some
configuration/arguments/argument
, they are not replaced by the command line arguments.This can be reproduced with an application that print the args received.
Having the plugin
when you run
the args are:
If you run
again the output (wrong) is
If you do the same with ver
2.2.4-RELEASE
everything works fine.Thanks!
The text was updated successfully, but these errors were encountered: