How to stop jettyRun in IntelliJ


(Dario Rossi) #1

We had a Maven project that was using JettyRun beautifully in IntelliJ, by that I mean that you would start the build, even debug and then just stop the build (with the red button) and it was stopping jetty too.

We had to move to Gradle and we thought of using gradle JettyRun plugin, but it doesn’t work in the same way. In fact if you stop the build, jetty will keep running in background and I have to kill it manually from the terminal.

The configuration is simply:

apply plugin: ‘jetty’

jettyRun {

contextPath = “” } does anybody know how to have the old maven’s behaviour?