인프런 커뮤니티 질문&답변

juyoungno5님의 프로필 이미지
juyoungno5

작성한 질문수

예제로 배우는 스프링 입문 (개정판)

프로젝트 설정

빌드 오류가 납니다.

작성

·

789

1

윈도우로 따라하고 있는데

mvnw package 명령어를 치면 아래와 같이 빌드 오류가 뜨네요.. 뭐가 문제인지 잘 모르겠습니다..

C:\Users\82104\IdeaProjects\spring-petclinic-master>mvnw package

[INFO] Scanning for projects...

[INFO]

[INFO] ------------< org.springframework.samples:spring-petclinic >------------

[INFO] Building petclinic 2.2.0.BUILD-SNAPSHOT

[INFO] --------------------------------[ jar ]---------------------------------

[INFO]

[INFO] --- spring-javaformat-maven-plugin:0.0.17:validate (default) @ spring-petclinic ---

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time:  5.214 s

[INFO] Finished at: 2020-01-24T21:10:07+09:00

[INFO] ------------------------------------------------------------------------

[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]  * C:\Users\82104\IdeaProjects\spring-petclinic-master\src\main\java\org\springframework\samples\petclinic\model\BaseEntity.java

[ERROR]  * C:\Users\82104\IdeaProjects\spring-petclinic-master\src\main\java\org\springframework\samples\petclinic\model\NamedEntity.java

[ERROR]  * C:\Users\82104\IdeaProjects\spring-petclinic-master\src\main\java\org\springframework\samples\petclinic\model\package-info.java

[ERROR]  * C:\Users\82104\IdeaProjects\spring-petclinic-master\src\main\java\org\springframework\samples\petclinic\model\Person.java

[ERROR]  * C:\Users\82104\IdeaProjects\spring-petclinic-master\src\main\java\org\springframework\samples\petclinic\owner\Owner.java

[ERROR]  * C:\Users\82104\IdeaProjects\spring-petclinic-master\src\main\java\org\springframework\samples\petclinic\owner\OwnerController.java

[ERROR]  * C:\Users\82104\IdeaProjects\spring-petclinic-master\src\main\java\org\springframework\samples\petclinic\owner\OwnerRepository.java

[ERROR]  * C:\Users\82104\IdeaProjects\spring-petclinic-master\src\main\java\org\springframework\samples\petclinic\owner\Pet.java

[ERROR]  * C:\Users\82104\IdeaProjects\spring-petclinic-master\src\main\java\org\springframework\samples\petclinic\owner\PetController.java

[ERROR]  * C:\Users\82104\IdeaProjects\spring-petclinic-master\src\main\java\org\springframework\samples\petclinic\owner\PetRepository.java

[ERROR]  * C:\Users\82104\IdeaProjects\spring-petclinic-master\src\main\java\org\springframework\samples\petclinic\owner\PetType.java

[ERROR]  * C:\Users\82104\IdeaProjects\spring-petclinic-master\src\main\java\org\springframework\samples\petclinic\owner\PetTypeFormatter.java

[ERROR]  * C:\Users\82104\IdeaProjects\spring-petclinic-master\src\main\java\org\springframework\samples\petclinic\owner\PetValidator.java

[ERROR]  * C:\Users\82104\IdeaProjects\spring-petclinic-master\src\main\java\org\springframework\samples\petclinic\owner\VisitController.java

[ERROR]  * C:\Users\82104\IdeaProjects\spring-petclinic-master\src\main\java\org\springframework\samples\petclinic\PetClinicApplication.java

[ERROR]  * C:\Users\82104\IdeaProjects\spring-petclinic-master\src\main\java\org\springframework\samples\petclinic\system\CacheConfiguration.java

[ERROR]  * C:\Users\82104\IdeaProjects\spring-petclinic-master\src\main\java\org\springframework\samples\petclinic\system\CrashController.java

[ERROR]  * C:\Users\82104\IdeaProjects\spring-petclinic-master\src\main\java\org\springframework\samples\petclinic\system\WelcomeController.java

[ERROR]  * C:\Users\82104\IdeaProjects\spring-petclinic-master\src\main\java\org\springframework\samples\petclinic\vet\Specialty.java

[ERROR]  * C:\Users\82104\IdeaProjects\spring-petclinic-master\src\main\java\org\springframework\samples\petclinic\vet\Vet.java

[ERROR]  * C:\Users\82104\IdeaProjects\spring-petclinic-master\src\main\java\org\springframework\samples\petclinic\vet\VetController.java

[ERROR]  * C:\Users\82104\IdeaProjects\spring-petclinic-master\src\main\java\org\springframework\samples\petclinic\vet\VetRepository.java

[ERROR]  * C:\Users\82104\IdeaProjects\spring-petclinic-master\src\main\java\org\springframework\samples\petclinic\vet\Vets.java

[ERROR]  * C:\Users\82104\IdeaProjects\spring-petclinic-master\src\main\java\org\springframework\samples\petclinic\visit\Visit.java

[ERROR]  * C:\Users\82104\IdeaProjects\spring-petclinic-master\src\main\java\org\springframework\samples\petclinic\visit\VisitRepository.java

[ERROR]  * C:\Users\82104\IdeaProjects\spring-petclinic-master\src\test\java\org\springframework\samples\petclinic\model\ValidatorTests.java

[ERROR]  * C:\Users\82104\IdeaProjects\spring-petclinic-master\src\test\java\org\springframework\samples\petclinic\owner\OwnerControllerTests.java

[ERROR]  * C:\Users\82104\IdeaProjects\spring-petclinic-master\src\test\java\org\springframework\samples\petclinic\owner\PetControllerTests.java

[ERROR]  * C:\Users\82104\IdeaProjects\spring-petclinic-master\src\test\java\org\springframework\samples\petclinic\owner\PetTypeFormatterTests.java

[ERROR]  * C:\Users\82104\IdeaProjects\spring-petclinic-master\src\test\java\org\springframework\samples\petclinic\owner\VisitControllerTests.java

[ERROR]  * C:\Users\82104\IdeaProjects\spring-petclinic-master\src\test\java\org\springframework\samples\petclinic\PetclinicIntegrationTests.java

[ERROR]  * C:\Users\82104\IdeaProjects\spring-petclinic-master\src\test\java\org\springframework\samples\petclinic\service\ClinicServiceTests.java

[ERROR]  * C:\Users\82104\IdeaProjects\spring-petclinic-master\src\test\java\org\springframework\samples\petclinic\service\EntityUtils.java

[ERROR]  * C:\Users\82104\IdeaProjects\spring-petclinic-master\src\test\java\org\springframework\samples\petclinic\system\CrashControllerTests.java

[ERROR]  * C:\Users\82104\IdeaProjects\spring-petclinic-master\src\test\java\org\springframework\samples\petclinic\vet\VetControllerTests.java

[ERROR]  * C:\Users\82104\IdeaProjects\spring-petclinic-master\src\test\java\org\springframework\samples\petclinic\vet\VetTests.java

[ERROR]

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

[ERROR] -> [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:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

답변 3

6

저도 같은 오류메세지로 빌드 오류가 났는데 커맨드 창에
mvnw spring-javaformat:apply
입력해서 해결했습니다!

2

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

0

백기선님의 프로필 이미지
백기선
지식공유자

에러 메시지를 읽어 보시면 해결할 수 있으실꺼 같은데요. 하루 더 시간을 드리겠습니다. 이미 답은 질문에 붙여 넣어주신 로그에 다 들어있습니다.

juyoungno5님의 프로필 이미지
juyoungno5

작성한 질문수

질문하기