Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.1.6.RELEASE:repackage (re

异常产生环境

系统环境windows10 ,idea 开发工具 ,SpringBoot 项目打包后 无法启动项目,也无法clean 等待操作

异常描述

Failed to execute goal org.springframework.boot:spring-boot-maven-
plugin:2.1.6.RELEASE:repackage (repackage) on project CSDN: Execution 
repackage of goal org.springframework.boot:spring-boot-maven-plugin:2.1.6.RELEASE:repackage failed: Unable to 
rename 'xxxxx\target\xxx.jar' to 'xxxx\target\xxxx.jar.original'

异常原因

原因是后台还在占用此文件(端口占用问题)
Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.1.6.RELEASE:repackage (re
手动删除也删不掉

解决办法

Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.1.6.RELEASE:repackage (re
这里我项目的端口是2000
使用 以下命令查找端口使用情况

netstat -ano

Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.1.6.RELEASE:repackage (re
发现2000端口已经被占用了
使用以下命令将进程7520杀死

taskkill -f -pid 7520

Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.1.6.RELEASE:repackage (re
项目启动成功

上一篇:线程池


下一篇:pymssql模块使用