본문 바로가기

디버깅/Spring mvc (Maven, Mybatis)

[Maven] dependency 추가시 에러처리 index downloads are disabled search results may be incomplete

반응형


다음과 같은 경고와 함께 Dependency 검색이 되지 않아, 라이브러리를 추가할 수 없는 경우가 생긴다.

(Maven을 설치하자마자 바로 검색이 되는적이 한번도 없던듯합니다 -_-)


해결방법은 다음과 같다

Windows > Preferences 에서 Maven 탭에서

Download repository index updates on startup

Download Artifact Sources

Download Artifact JavaDoc

를 체크 하고, 이클립스를 재시작 하면 된다. 

원리는 Maven의 기본 repository를 업데이트 하게 하는 것이다.




혹은 

Window > Show View > other에서 Maven > Maven Repositories 를 누르고 OK를 하면


다음 처럼 Maven의 기본 Repository를 관리할 수 있는데.

이곳에서 Update Index를 먼저 눌러 최신화한다 

(central 좌측의 +버튼을 눌렀을때 브라우저로 우측 주소를 접속하여 나열되는 라이브러리가 똑같이 나와야 정상 작동하는 것)


만약 반응이 없다면 Rebuild Index를 눌러 rebuilding을 하면 된다

이때 Indexing Progress가 0%에서 멈춰있다고 강제 종료 하지 말 것!

이 과정은 최소 10분정도가 걸리며, 버그로 인해 0%에서 멈춰있다가 한번에 완료가 되기 때문이다.


만약 제대로 활성화가 된다면 다음과 비슷한 형태로 되어야 한다.



 

출처 : 

http://stackoverflow.com/questions/24252256/how-do-i-enable-index-downloads-in-eclipse-for-maven-dependency-search

http://emflant.tistory.com/77

http://stackoverflow.com/questions/33059134/rebuilding-maven-indexes-using-eclipse-makes-no-progress




반응형