Maven Error - Failure to transfer..

Maven Error - Failure to transfer..

Maven error “Failure to transfer…”

문제#

Failure to transfer com.google.guava:guava:jar:10.0.1 
from https://repo.maven.apache.org/maven2 was cached in the local repository, 
resolution will not be reattempte from/to central (https://repo.maven.apache.org/maven2): The operation was cancelled.

https://repo.maven.apache.org/maven2에서 디펜던시를 전송하지 못하는 오류가 발생하였고, 로컬 저장소에 캐시되었습니다.

해결책 1#

  1. 프로젝트 우클릭 -> Run as -> Maven Install
  2. 프로젝트 우클릭 -> Refresh
  3. 프로젝트 우클릭 -> Update Project (옵션 클릭 force update of snapshots/releases)

해결책 2#

  1. 실행중인 IDE(이클립스, Sts) 종료
  2. 로컬 레퍼지토리 삭제
    C:\Users{userNm}.m2\repository

참조#

https://stackoverflow.com/questions/5074063/maven-error-failure-to-transfer

Maven Error - Failure to transfer..