반응형
현상:
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 폴더 삭제
반응형
'프로그래밍 > 자바(Java)|웹(Web)' 카테고리의 다른 글
[CentOS 7] 자바 OpenJDK 17 버전 설치 하기 (0) | 2024.01.24 |
---|