Repository navigation
[MNG-5001] Block the option to set Mojo parameters marked as @readonly - #240
slachiewicz wants to merge 1 commit into
Conversation
eolivelli
left a comment
There was a problem hiding this comment.
We should add a parameter/system property to disable this check.
We could break builds
|
I would do all parameter validation at once, so you only have to loop one time. This means that readonly and required check are done by the same method. |
Could You suggest where this should be combined? That was my initial idea but during testing i found issues that not all test pass. |
|
I'd suggest to merge the code from |
|
core IT prepared in MNG-5001 branch https://github.com/apache/maven-integration-testing/tree/MNG-5001 |
|
@slachiewicz do you need help to finish this? |
|
Let me try again, thx for ITs. |
eolivelli
left a comment
There was a problem hiding this comment.
Please remember to add a system property flag to disable temporary this check.
Otherwise adoption of 3.7.0 will be slower IMHO
| if ( value != null && defaultValue != null && !Objects.equals( defaultValue, value ) ) | ||
| { | ||
| invalidParameters.add( parameter ); | ||
| logger.error( "Setting read-only parameter '" + parameter.getName() + "' to " + value ); |
There was a problem hiding this comment.
Please report mojo/plugin/execution id f possible
|
happy to help: changing core is not easy |
|
Resolve #7147 |
No description provided.