gnodet opened a new pull request, #12466: URL: https://github.com/apache/maven/pull/12466
## Summary Backport of #12465 to `maven-4.0.x`. - In `bin/mvn`, gate `$MAVEN_ARGS` inclusion on `MAVEN_MAIN_CLASS` equaling the default `MavenCling`. When `--up`, `--enc`, or `--shell` is used, skip `MAVEN_ARGS` to avoid passing unrecognized build-specific flags (e.g. `-ntp`, `-T4`, `-U`) to sub-commands. - Same fix in `bin/mvn.cmd` by clearing `MAVEN_ARGS` when the main class is not `MavenCling`. Closes #12464 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
