본문 바로가기

노력/웹 개발

Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.2.2.RELEASE:run

Spring-boot:run을 터미널에서 실행할 때의 오류입니다.

 

 

./mvnw -X를 사용해서 기록을 확인해보니 Goal이 설정되어 있지 않다고 나왔습니다.

 

defaultGoal을 설정하니 다른 오류가 발생했습니다.

 

 

 

https://stackoverflow.com/questions/13170860/failed-to-execute-goal-org-apache-maven-pluginsmaven-surefire-plugin2-10test

 

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test

I have scoured the internet for almost five days now looking for a fix to this issue, but I cannot seem to find and fix it on my own, mainly because I am so new to both Maven and PlayN so I'm not

stackoverflow.com

goal은 defaultGoal을 입력해주자 괜찮아졌습니다.

 

다른 오류가 계속해서 발생하는데 DataSource에 관련된 오류인 것 같습니다.

 

application.properties를 조정해서 url을 입력해주니 오류가 사라지고 잘 동작했습니다.

 

이후에 url을 다시 조정했습니다. Timezone 오류도 함께 발생해서 값을 함께 줬습니다.

 

 

 

공식 문서에 있는 코드를 실험해봤는데 잘 구동됐습니다.