negora opened a new issue, #6472:
URL: https://github.com/apache/netbeans/issues/6472

   ### Apache NetBeans version
   
   Apache NetBeans 19
   
   ### What happened
   
   If you configure NetBeans to use `mvnd` with the parameter `--serial` (or 
`--threads 1`), the background process closes prematurely (after 10 seconds 
approximately). This makes `mvnd` useless, because if you run it again after 
that period, the gains (optimized code, cache, etc.) will be lost by then and a 
new process will have to be started.
   
   On the contrary, if we not set that parameter (or if we set `--threads` to a 
number greater than 1), the background process survives.
   
   ---
   
   I've realized that, when you use `--serial`, the command of the background 
process has an additional parameter:
   
   ```
   
-Dmvnd.extClasspath=/usr/local/lib/netbeans/java/maven-nblib/netbeans-eventspy.jar
   ```
   
   Without `--serial`, this parameter is not added to the command. I don't know 
whether it has any relation with the behaviour described here or not. Just in 
case.
   
   ---
   
   This report has its origin in the following discussion: [Has NetBeans 19 
changed the life time of the "mvnd" 
process?](https://github.com/apache/netbeans/discussions/6470).
   
   
   ### How to reproduce
   
   1. Go to *Tools* -> *Options* -> *Java* -> *Maven* -> *Execution*.
   
   1. In the *Maven home* field, enter the path to `mvnd`.
   
   1. In the *Global execution options* field, enter the `--serial` parameter.
   
   1. Click on *OK*.
   
   1. Open the process viewer of your OS.
   
   1. Build any Maven project in NetBeans.
   
   1. Open the process viewer again, and look how the Java process started for 
`mvnd` closes after 10 seconds approximately.
   
   
   ### Did this work correctly in an earlier version?
   
   Apache NetBeans 18
   
   ### Operating System
   
   Debian GNU/Linux 11.7 (Bullseye)
   
   ### JDK
   
   OpenJDK Runtime Environment (build 17.0.7+7-Debian-1deb11u1)
   
   ### Apache NetBeans packaging
   
   Apache NetBeans binary zip
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   No


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to