Language/Java
[eclipse] offine 상태에서 maven update 하기 위하여 repository 사용자 경로 설정하기
trueman
2022. 5. 18. 16:51
728x90
728x90
offine 상태에서 maven update 하기 위하여 repository 사용자 경로 설정하기
settings.xml 이 없어서 library(.jar)를 update를 하지 못하는 경우가 발생하였다.
eclipse - Window - Preferences - Maven - User Settings
이클립스에서 프로젝트 작업 시 사용되는 라이브러리들의 기본 설치 경로는
C:\Users\(사용자 이름)\.m2\repository 에 위치하고, settings.xml 파일이 여기에 위치해있다.
이 파일이 없다면, 아래와 같이 .xml 파일을 생성하면 된다.
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<localRepository>C://(사용자 이름)/repository</localRepository>
<interactiveMode>true</interactiveMode>
<offline>false</offline>
</settings>
이후에 위에 User Settings에서 browse 클릭 후에 선택해주고, apply 하면 된다.
eclipse - Window - Preferences - Maven - offine 체크 - apply
출처 : https://ojava.tistory.com/114
728x90
728x90