dev

[ MAC ] Spring Tool Suite 3(STS) 프로젝트 생성시 CoreException

Josh 2021. 11. 17. 11:00
반응형

Spring Tool Suite 3(STS)를 이용해 Spring 프로젝트를 생성했는데 pom.xml에서 Errors가 발생했습니다.

 

Eclipse하단 Problems를 확인해보니 Errors의 맨 위에 CoreException으로 

 

CoreException: Could not calculate build plan : Plugin org.apache.maven.plugins: maven-compiler-plugin:2.5.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-compiler-plugin:jar:2.5.1: 

ArtifactResolutionException: org.apache.maven.plugins:

maven-compiler-plugin:pom:2.5.1 failed to transfer from https://repo.maven.apache.org/maven2 

during a previous attempt. This failure was cached in the local repository and resolution is not 

reattempted until the update interval of central has elapsed or updates are forced. Original error: 

Could not transfer artifact org.apache.maven.plugins:maven-compiler-plugin:pom:2.5.1 from/to central 

(https://repo.maven.apache.org/maven2): repo.maven.apache.org pom.xml /board line 137
Maven Project Build Lifecycle Mapping Problem

 

이렇게 긴 설명이 되어있습니다.

pom.xml 137번째 줄에 문제가 있고 maven jar 파일이 import 되지 않아 생기는 오류로 확인되었습니다.

 

그래서 pom.xml 137번 줄을 확인해보니

 

 

이렇게 빨간 줄이 나와있었습니다. 자 이제 해결을 해보도록 하겠습니다.

 

1. 먼저 project maven update를 해줍니다. 프로젝트 우클릭 > Maven > Update Project... 를 클릭합니다.

Mac의 경우 option + fn + F5 단축키를 사용할 수 있습니다.

 

 

2. Force Update of Snapshots/Releases 선택OK를 눌러줍니다.

 

3. 우측 하단 maven update,  validating이 진행되며 완료 후 해당 Error가 해결된 걸 확인할 수 있습니다.

 

이상입니다.

 

감사합니다.

 

반응형