maven icon indicating copy to clipboard operation
maven copied to clipboard

Add --processes to list running Maven builds.

Open arturobernalg opened this issue 3 months ago • 2 comments

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 verify to 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.

Fixes https://github.com/apache/maven/issues/10627

arturobernalg avatar Sep 05 '25 11:09 arturobernalg

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

gnodet avatar Sep 08 '25 08:09 gnodet

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

please do another passs

arturobernalg avatar Sep 25 '25 14:09 arturobernalg