Add --processes to list running Maven builds.
Implements a per-user registry under ~/.m2/.maven/runs (create on start, remove on exit). Pure Java 17 using ProcessHandle; no jps or vendor tools.
Following this checklist to help us incorporate your contribution quickly and easily:
- [ X] Your pull request should address just one issue, without pulling in other changes.
- [ X] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
- [ X] Each commit in the pull request should have a meaningful subject line and body. Note that commits might be squashed by a maintainer on merge.
- [ X] Write unit tests that match behavioral changes, where the tests fail if the changes to the runtime are not applied. This may not always be possible but is a best-practice.
- [ X] Run
mvn verifyto make sure basic checks pass. A more thorough check will be performed on your pull request automatically. - [ ] You have run the Core IT successfully.
If your pull request is about ~20 lines of code you don't need to sign an Individual Contributor License Agreement if you are unsure please ask on the developers list.
To make clear that you license your contribution under the Apache License Version 2.0, January 2004 you have to acknowledge this by using the following check-box.
- [ X] I hereby declare this contribution to be licenced under the Apache License Version 2.0, January 2004
- [ ] In any other case, please file an Apache Individual Contributor License Agreement.
Fixes https://github.com/apache/maven/issues/10627
I think we're missing a mvnsh integration. This can be done by adding a command to the builtin command registry:
https://github.com/apache/maven/blob/bcf98382a62f2445a3c65fec5a9c680424414e18/impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnsh/builtin/BuiltinShellCommandRegistryFactory.java#L94
I think we're missing a
mvnshintegration. This can be done by adding a command to the builtin command registry:https://github.com/apache/maven/blob/bcf98382a62f2445a3c65fec5a9c680424414e18/impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnsh/builtin/BuiltinShellCommandRegistryFactory.java#L94
please do another passs