본문 바로가기
프로그래밍/Spark&Hadoop 공부

[Ambari]Failed to read artifact descriptor for org.apache.maven.plugins:maven-surefire-plugin:jar:2.12.4: Error 해결

by Mr.noobiest 2022. 12. 1.

Plugin org.apache.maven.plugins:maven-surefire-plugin:2.12.4 

or one of its dependencies could not be resolved: 

Failed to read artifact descriptor for org.apache.maven.plugins:maven-surefire-plugin:jar:2.12.4: 

Could not transfer artifact org.apache.maven.plugins:maven-surefire-plugin:pom:2.12.4 from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.12.4/maven-surefire-plugin-2.12.4.pom: Connection reset -> [Help 1]

 

 

https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.12.4/

 

Central Repository: org/apache/maven/plugins/maven-surefire-plugin/2.12.4

 

repo.maven.apache.org

 

로 들어가면 경로가 있는데 경로를 수정해주면 된다.

#1) jar파일 다운로드

sudo wget https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.12.4/maven-surefire-plugin-2.12.4.jar

 

#2) 다운로드한것을 maven에 설정해준다.

mvn install:install-file -Dfile=./maven-surefire-plugin-2.12.4.jar -DgroupId=org.apache.maven.plugins -DartifactId=maven-surefire-plugin -Dversion=2.12.4 -Dpackaging=jar

 

끝.

728x90
반응형