본문 바로가기

기타/Spring

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

IntelliJ에서 mvn clean package 명령어 사용 시, 아래와 같은 에러가 보임.

사실 몇 분 전까지 패키지 잘 생성되었으나, 갑자기 에러 발생된 상황.


[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:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException



1. 프로젝트 서버 중지 상태였으나, 콘솔(터미널)에서 확인해 본 결과 서버 포트 사용 중으로 확인됨

 

2. 터미널에서 서버 포트 중지

    netstat -nao | findstr "포트번호"

    taskkill /f /pid "PID번호"

 

3. IntelliJ 닫고 재실행하여 터미널에서 mvn clean package 명령어 입력하면 정상 실행되었음