'Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom'에 해당되는 글 1건

  1. 2013.12.31 [펌] Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom 1
52.Apache Project &.../Maven2013. 12. 31. 15:04
반응형

이클립스에서 메이븐 프로젝트를 만들어서 쓰다보면 아래와 같은 에러가 나는 경우가 있다.


Description Resource Path Location Type Could not calculate build plan: Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom:2.0.2 from http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-compiler-plugin:pom:2.0.2 from/to central (http://repo1.maven.org/maven2): No response received after 60000 ExampleProject Unknown Maven Problem


메이븐에서 의존성이 있는 라이브러리를 다운로드받는 중에서 실패한 경우, lastUpdated 파일이 있으면 다운로드가 실패하더라도 라이브러리를 새로 업데이트 받지 못하는 문제인 듯 하다.


아래의 명령어를 실행한 후, 이클립스에서 인덱스를 업데이트 하면 해결이 가능하다.


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


다른 해결책도 있으며, 아래의 참조를 읽어보라.

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


출처 : http://socurites.com/139

Posted by 1010