[메이븐] Received fatal alert: protocol_version 에러
[ERROR] 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 transfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.6 from/to central (https://repo.maven.apache.org/maven2): Received fatal alert: protocol_version -> [Help 1]

cmd에서 mvn compile 명령어를 쳤는데 분명히 컴파일되어야 할게 오류가 나면서 안되는거다.
내가 예제를 따라 치다가 오타가 났나 싶어서, (1) 예제 다시 코딩 (2) 깃헙에서 예제 그대로 다운로드 (3) 메이븐 재설치 (4) 자바 모든버전 전부 지우고 재설치 (5) C:\Users\사용자명\.m2 폴더 지우고 재시도, 별별짓 다하다가…
얼마 전까지 잘되던 예제가 왜 안될까 생각했다.
생각해보니 지난번과는 다른 노트북을 사용했다. 이번 노트북은 얇아서 랜선을 꽂을 수가 없었고, 그래서 와이파이를 썼다.
옳거니, 와이파이는 MVN저장소 연결을 막는구나.
“Received fatal alert: protocol_version”이 키워드다 싶어서 검색해보니 웬걸. 뭔가 설치하란다.
cmd 에 mvn -Dhttps.protocols=TLSv1.2 install 명령어 입력하니까 한참을 뭘 설치한다. 그리고 나서 mvn compile 해보니, 잘된다.

거의 2시간 넘게 버린 것 같다. 젠장.
(스택오버플로우 형님들 감사합니다.)