I don't think you are using the maven plugin, in which case you should be killing the process through the netbeans UI, whatever option they give to kill a process you are running.
Typically you tie the jetty thread in an embedded process into whatever lifecycle your application has since jetty is a component of your software at that point. If you are just running jetty and deploying a servlet and the like and you want a proper shutdown process then you can look to the ShutdownHandler. https://www.eclipse.org/jetty/documentation/current/shutdown-handler.html Tons of different ways to manage the shutdown issue...if you are just embedded and testing in your IDE, just use their 'Kill' button though. cheers, Jesse -- jesse mcconnell [email protected] On Tue, May 24, 2016 at 3:17 PM, Alexander Farber < [email protected]> wrote: > No, I have tried 2 versions: > > <jettyVersion>9.0.2.v20130417</jettyVersion> > > and > > <jettyVersion>9.3.9.v20160517</jettyVersion> > > and unfortunately "mvn jetty:stop" is not known: > > mvn jetty:stop > > [INFO] Scanning for projects... > > Downloading: > https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml > > Downloading: > https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml > > Downloaded: > https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml > (13 KB at 14.6 KB/sec) > > Downloaded: > https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml > (20 KB at 22.1 KB/sec) > > [INFO] > ------------------------------------------------------------------------ > > [INFO] BUILD FAILURE > > [INFO] > ------------------------------------------------------------------------ > > [INFO] Total time: 1.973 s > > [INFO] Finished at: 2016-05-24T22:11:53+02:00 > > [INFO] Final Memory: 10M/155M > > [INFO] > ------------------------------------------------------------------------ > > [ERROR] No plugin found for prefix 'jetty' in the current project and in > the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available > from the repositories [local (/Users/afarber/.m2/repository), central ( > https://repo.maven.apache.org/maven2)] -> [Help 1] > > I have also tried "mvn jetty-server:stop" and also "start" and "run". > > Currently my workaround to kill the example embedded Jetty is to run: > > # ps -ef | awk '/HelloWorld/ {print $2}' | xargs kill > Regards > Alex > > On Tue, May 24, 2016 at 9:09 PM, Simone Bordet <[email protected]> > wrote: > >> >> Unfortunately I don't use NetBeans, but the proper command would be: >> >> mvn jetty:stop >> >> issued from the same directory from where "mvn jetty:run" was launched. >> > > _______________________________________________ > jetty-users mailing list > [email protected] > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > https://dev.eclipse.org/mailman/listinfo/jetty-users >
_______________________________________________ jetty-users mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/jetty-users
