back end/Maven

[Maven] mvnw package (컴파일) 시 [ERROR] Run `spring-javaformat:apply` to fix. 오류 발생

노루아부지 2020. 9. 27. 23:17

mvnw package 명령어 실행 시 아래와 같은 오류 메시지가 발생합니다.(요약)

 

더보기

[INFO] BUILD FAILURE

[ERROR] Failed to execute goal io.spring.javaformat:spring-javaformat-maven-plugin:0.0.17:validate (default) on project spring-petclinic: Formatting violations found in the following files:

[중략 ... ]

[ERROR] Run `spring-javaformat:apply` to fix.

 

이 경우 아래와 같이 명령어를 실행해 주면 됩니다.

 

mvnw spring-javaformat:apply
728x90
loading