메이븐을 build 하는 과정에서 아래와 같은 에러가 날 때가 있습니다.
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building test 3.5.0
[INFO] ------------------------------------------------------------------------
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.777 s
[INFO] Finished at: 2020-03-10T10:55:46+09:00
[INFO] Final Memory: 6M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5: Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.5 from/to central (https://repo.maven.apache.org/maven2): Received fatal alert: protocol_version -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
Picked up JAVA_TOOL_OPTIONS: -Djava.net.preferIPv4Stack=true
문제 원인
JDK 버전 및 HTTPS 사용 문제
Maven Repository 정책으로 JDK 1.8 및 HTTPS 사용이 반드시 필요합니다.
에러 로그의 'Received fatal alert: protocol_version' 부분을 보면 알 수 있습니다.
문제해결
1.JDK 버전
IDE 구동시 JDK 1.8로 구동을 하시고 IDE 내부에서 JDK 버전 설정을 변경 하는 것으로 문제를 해결 할 수 있습니다.
2.HTTPS
Central Repository URL도 HTTPS로 변경해 주셔야 합니다.
http://repo1.maven.org/maven2 ==> https://repo1.maven.org/maven2
'트러블슈팅 > SPRING' 카테고리의 다른 글
SVN Connector 에러(SVN: '0x0400006': Validate Repository Location) (0) | 2022.10.05 |
---|---|
[스프링부트]No identifier specified for entity (0) | 2022.09.27 |
[스프링] Maven build error (0) | 2022.01.25 |
[JAVA] JRE System Library 우선 순위 문제 (0) | 2022.01.25 |
[spring] STS에서 자바 버전 문제 (0) | 2022.01.25 |