-
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
Do not set user properties as system properties #1661
base: master
Are you sure you want to change the base?
Conversation
I think many plugins and frameworks depend on the fact that Maven properties can be read through system properties. If we decide to drop this (undocumented) feature, it would certainly warrant a JIRA ticket that clearly mentions this breaks from previous releases. |
Can we NOT do this for Model v4.0.0 (hence use of Maven3 plugins) and DO THIS for Model 4.1+ maybe? As @mthmulders says, I would bet in some beer there are Maven3 plugins relying on this. |
How is this model related? |
This is the same as with |
It may be possible to replace the system properties with a |
I'd not give up fully, maybe "just" postpone for 4.1 or 5.x? With new API we can have "clean slate", a sorta new beginning. For sure that things coming from Maven3 expect user properties pushed to System properties, but for newly done stuff we can avoid that. |
I agree, people have the options to set properties via For starters we can issue a warning when an existing system property has been overwritten. |
This never happens, nor happened ever: the push was always "set property if key not present already". See maven/impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java Lines 182 to 203 in 3761953
|
In Maven 3 we always pushed, no matter what. |
Correct, see
This goes back to: |
No description provided.