一、报错如下
[ERROR] Failed to execute goal org.mortbay.jetty:jetty-maven-plugin:8.1.12.v20130726:run (default-cli) on project hk-ecrm-corp-service-web: Failure: Address already in use: bind -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
二、原因分析:
端口号被占用,导致无法运行
三、解决方法:
终止对应的端口号即可
netstat -ano | findstr "port" 查询被占用的端口号
tasklist |findstr "PID"
taskkill /T /F /PID pid 结束进程