This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 255941 - Netbeans cannot stop a running maven project
Summary: Netbeans cannot stop a running maven project
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Execution (show other bugs)
Version: 8.1
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-15 06:12 UTC by xylifyx
Modified: 2015-10-20 13:07 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (71.51 KB, text/plain)
2015-10-15 06:12 UTC, xylifyx
Details

Note You need to log in before you can comment on or make changes to this bug.
Description xylifyx 2015-10-15 06:12:36 UTC
Product Version = NetBeans IDE 8.1 RC (Build 201510012201)
Operating System = Mac OS X version 10.10.5 running on x86_64
Java; VM; Vendor = 1.8.0_31
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.31-b07

Reproducibility: Happens every time

STEPS:
  * Run a maven project that opens a port, i.e. a spring-boot app
  * Press the square red stop button in the Output tab
  * Run it again

ACTUAL:
  * It fails because the first process is still running

EXPECTED:
  * The first process should be stopped and the second one running
Comment 1 xylifyx 2015-10-15 06:12:40 UTC
Created attachment 156736 [details]
IDE log
Comment 2 xylifyx 2015-10-15 06:15:09 UTC
It is a very annoying bug because it is time consuming to find the process and kill it from the command line.

Jenkins knows how to kill entire process trees of builds. You may use the same technique.
Comment 3 xylifyx 2015-10-15 06:17:13 UTC
As far as I know, Jenkins sets a JOB_ID environment variable to something unique on the parent process. A kill lists all processes that has the same value and kills them.
Comment 4 Jiri Kovalsky 2015-10-15 15:19:35 UTC
Reassigned for further evaluation.
Comment 5 Tomas Stupka 2015-10-20 13:07:51 UTC
could reproduce with guide app at https://spring.io/guides/gs/spring-boot/
- downoad source
- open, build and run "complete" app
- stop from output view
- try to rerun from output view

on stop is maven simply calling:

Processes.killTree(prcs, env);

reassigning for further evaluation ...