You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "gnodet (via GitHub)" <gi...@apache.org> on 2026/09/02 09:59:39 UTC
[PR] [Backport 4.0.x] Improve standalone ApiRunner to properly apply settings [maven]
gnodet opened a new pull request, #13014:
URL: https://github.com/apache/maven/pull/13014
## Summary
Backport of #12998 to `maven-4.0.x`.
The standalone `ApiRunner` is the main entry point for using the Maven 4 API outside of a full Maven build (e.g. in tools like mvnup). This improves it to be production-ready:
- Remove hardcoded `user.home = "target"` — read settings from real user home
- Store effective settings on the session
- Apply proxy, mirror, and server authentication from `settings.xml`
- Configure dependency resolution machinery
- Support encrypted settings passwords with `SecurityMode` enum
- Load `maven-system.properties` and `maven-user.properties`
- Detect and set Maven version from classpath `pom.properties`
- Honor offline mode from settings
- Use ApiRunner-provided repositories in mvnup instead of replacing them
## Test plan
- [x] Cherry-pick applied cleanly (no conflicts)
- [ ] CI passes on `maven-4.0.x`
🤖 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: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Backport 4.0.x] Improve standalone ApiRunner to properly apply settings [maven]
Posted by "gnodet (via GitHub)" <gi...@apache.org>.
gnodet merged PR #13014:
URL: https://github.com/apache/maven/pull/13014
--
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: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org