본문 바로가기
프로그래밍/자바(Java)|웹(Web)

[Web] Maven 프로젝트의 pom.xml 중 Could not calcurate build..plug error

by virusuk 2024. 4. 21.
반응형

현상:

Maven plugin 에러

 

이슈 내용:

Dnymaic Web Project -> Maven Project로 변환 시,

pom.xml에서 maven-compiler-plugin 및 maven-war-plugin 부분에서 에러 발생

Errors occurred during the build.
Errors running builder 'Maven Project Builder' on project 'Wildfly_igmite'.
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6
Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6
Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6

 

 

해결:

[Eclipse]에서 Window -> Preferences -> Maven -> User Settings 클릭 후, User settings의 경로를 볼 수 있습니다.

해당 경로를 찾아서 삭제합니다.

예) /root/.m2/repository/org/apache/maven/plugins/maven-resources-plugin 의 <해당버전> 폴더 삭제

 

or

.m2 폴더 삭제

반응형