본문 바로가기
백엔드/Java

Failure to transfer commons-lang:commons-lang:pom:2.1 from https://repo.maven.apache.org/maven2 was cached in the local repository

by 1005ptr 2019. 1. 8.
반응형

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


Remove all your failed downloads:

find ~/.m2  -name "*.lastUpdated" -exec grep -q "Could not transfer" {} \; -print -exec rm {} \;

For windows:

cd %userprofile%\.m2\repository
for /r %i in (*.lastUpdated) do del %i

Then rightclick on your project in eclipse and choose Maven->"Update Project ...", make sure "Update Dependencies" is checked in the resulting dialog and click OK.

반응형

'백엔드 > Java' 카테고리의 다른 글

JVM이 이용가능한 프로세스 개수  (0) 2020.03.17
java.util.properties  (0) 2020.03.17
[Maven] in project cannot be read or is not a valid ZIP file  (0) 2018.10.16
Dynamic Web Module 버전 변경  (0) 2018.08.17
람다 인터페이스들  (0) 2018.06.26

댓글