简体   繁体   中英

How to stop maven tomcat

I am very new to Maven builds. I have created a maven project and running it using maven build. It is running fine using tomcat7:run as goal but then I am finding it hard to stop the server. I am getting following error when I try to run again.

java.net.BindException: Address already in use: JVM_Bind <null>:8080

Any suggestions ?

If the process is still running, you should be able to see it in your console. If you see a stop button (like 1 ), just press it and that should stop the tomcat server.

If you happen to have had more than one service running, then the button in 2 should be activated. That will show all the running and stopped services you have. Select the one for your Tomcat and then press the stop button.

在此处输入图片说明

You can use mvn tomcat7:shutdown command to stop.

Shuts down all possibly started embedded tomcat servers. This will be automatically down through a shutdown hook or you may call this Mojo to shut them down explictly.

Here is the documentation .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM