Add argLine to Maven Surefire and Failsafe plugins
MSALAdds the specified arguments to the argLine configuration of the Maven Surefire and Failsafe plugins, merging with any existing argLine value without duplicating arguments. The @{argLine} late property reference is prepended so that an agent injected by another plugin during the build, such as the JaCoCo coverage agent from jacoco-maven-plugin:prepare-agent, is preserved rather than overwritten. It is not added when the existing argLine already references the argLine property.
org. openrewrite. java. migrate. AddSurefireFailsafeArgLineRequired
The arguments to add to the Maven Surefire and Failsafe plugin argLine configuration. Individual arguments are space-separated. Arguments already present in the existing argLine are not duplicated.
mod run . --recipe= org. openrewrite. java. migrate. AddSurefireFailsafeArgLine \
-P argLine= '--add-opens java. base/ java. lang= ALL-UNNAMED --add-opens java. base/ java. util= ALL-UNNAMED'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.