-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Open
Labels
enhancementNew feature or requestNew feature or requestpriority:majorMajor loss of functionMajor loss of function
Description
Christoph Läubrich opened MNG-8608 and commented
Java provides a jps command to list all running java processes.
It would be useful to have such capability for maven as well, as an example I like to call:
mvn -ps
and get a list of maven processes running on the system, it should include:
- the process id
- the workdirectory
- the session execution root directory
- the maven version
How this is achieved, could be platform specific like it is for jps, and it might not discover all maven processes but only those for the current user.
+Why is this useful needed:+
- Currently a maven build do not perform any way of locking so one can easily run two maven processes working on the same project tree
- But due to how maven works this can only end in disaster (e.g. one process clean what the other has build) or at best result in some strange state if two maven processes run in parallel
- Currently there is no way for an IDE to prevent interference with running maven processes that work on the same file tree
Because of this maven should detect other processes running in the same file-tree and either wait or refuse execution.
No further details from MNG-8608
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestpriority:majorMajor loss of functionMajor loss of function