nexus 설치 및 설정

 

nexus 설치 및 설정

URL : http://www.sonatype.org/nexus/go

Download Nexus 2.3.0

설치 및 서비스 포트 변경

]$ wget http://www.sonatype.org/downloads/nexus-2.3.0-04-bundle.tar.gz
]$ tar xvzf nexus-2.3.0-04-bundle.tar.gz
]$ cd nexus-2.3.0-04
]$ vi conf/nexus.properties
...
# Jetty section
application-port=8090
application-host=0.0.0.0
nexus-webapp=${bundleBasedir}/nexus
nexus-webapp-context-path=/nexus
...
]$ ./bin/nexus start
Starting Nexus OSS...
Started Nexus OSS.

관리자웹 로그인
http://domain:8090/nexus/
Username: admin
Password: admin123

기본설정
Administration > Server 에서 Anonymous Access에서 체크를 풀어서 로그인 안하면 못들어오도록 설정
Security > user 에서 apollo89 계정 추가 (Role : Nexus administrator role)
사용안하는 계정 삭제
admin 의 비밀번호 변경(우측상단에 admin > Profile 에서 Change Password 에서 변경

리파지토리 설정.
Views/Repositories > Repositories 의 리스트에서
Public Repositoires 를 클릭하면 아래쪽에 상세내용이 나오는데 Configuration 탭으로 이동
Ordered Group Repositories 에 디폴트로 여러개가 등록도 있을껀데 일단 Maven Central 만 남기고 다 빼버리자

리파지토리 목록중에 Maven Central 을 설정
Remote Repository Access 박스안에
Download Remote Indexes 가 디폴트로 False 로 되 있을건데 고걸 True 로 바꿔준다음 Save!

Download Remote Indexes 가 True 로 되있으면, Remote Storage Location 으로 설정된 http://repo1.maven.org/maven2 에 접속해서 인덱스 파일을 받아와서 고 인덱스 파일이랑 똑같이 나의 서버에 인덱스를 맨들어 준다.

 

This entry was posted in SCM/ITS and tagged , , , . Bookmark the permalink.

댓글 남기기