New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node keeps running when killing maven #41
Comments
Are you running Grunt through Maven, or directly via the |
Through Maven using a custom profile. Something like: mvn generate-resources -PwatchSass |
I see. Is there a reason why you don't just run "grunt watch" directly? (using the helper scripts you find in this repo) |
I use it this way to get access to some variables that are set in my settings.xml. For example, to run cssmin or not etc. Our gruntfile is quite dynamic. |
Here're my 2 cents. We use In fact, before we discovered this plugin, we were using a bunch of maven-whatever-plugins to minify js and css, to compile coffeescript etc. That was just not working out for us. These maven plugins were too complex, required a lot of configuration and were not playing very well with each other. And virtually every single one of them assumed that the needed frontend tools are available in PATH. The whole point of |
I understand what you are saying but those "modern" frontend tools forces us to separate our environment configurations, don't provide any good packaging, don't provide private referential or any private sharing mechanism nor does it provide any server side compilation. With Maven, we are able to unify the build system for all of this (invoking Grunt where needed). I agree that right now there are no good plugin available for client side development in the Maven world but the philosophy is still much better than Grunt where I have the impression of going back 10 years with scons or Ant. By playing with Maven and the frontend plugin, we were able to do something like : And start using angularjs without writing anything else - no Gruntfile, no package.json. Both files were written once and are inherited by a parent pom. |
@jzelenkov is right about the separation being a goal in itself - but many of us don't live in an ideal world, and I've felt the pain of Gruntfiles that depend on external variables, like the ones coming from Maven. I consider this a bug that has to be fixed; but I'm open for suggestions/pull requests on how to fix it! |
I'm seeing a similar bug with Node. After running Karma through Node with the frontend plugin, Node does not stop once the build ends, regardless of the build result. This prevents us from running another build without manually stopping the Node process in the task manager. Is this bug actively being worked on? |
Hmm, not good :-/ |
…-exec By using commons-exec instead of ProcessBuilder we can support killing the Node process if the Maven build is stopped. An optional timeout can be specified (not exposed to the task runners yet). A workaround for eirslett#343 is implemented as well.
Same problem here. What is with the possible solution of @tjuerge? Isn't it possible to merge it or isn't it a real solution? |
#41 Replaced ProcessBuilder usage with commons-exec
When running a Grunt watch task and hitting "Ctrl-C" to stop the process. Node.exe keeps running in the background.
I haven't found a way to kill node.exe other than going manually in the task manager...
We are using a watch task to compile sass files in the background.
The text was updated successfully, but these errors were encountered: