문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
nexus [2014/01/06 12:09] kwon37xi |
nexus [2019/06/12 15:35] kwon37xi |
||
---|---|---|---|
줄 1: | 줄 1: | ||
====== SonaType Nexus ====== | ====== SonaType Nexus ====== | ||
* http:// | * http:// | ||
+ | |||
+ | ===== 설정시 주의점 ===== | ||
+ | * gradle이나 maven이 Nexus에 요청을 보낼때 GET이 아닌 **HEAD** 요청을 보내 파일의 존재 여부를 체크하는 경우가 있는데, 이때 nginx 1.2 버전에서 HEAD + gzip 설정이 돼 있을 경우 HEAD에 body 까지 담아 보내는 버그가 있어서 파일 다운로드 체크가 올바로 안되는 현상이 발생함. [[nginx: | ||
+ | * Maven Central 리포지토리 설정에서 '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
===== Proxy 설정 ===== | ===== Proxy 설정 ===== | ||
- | * Proxy 설정 후 **Public Repository**에 추가해줘야 | + | * Proxy 설정 후 **Public Repository**에 추가해줘야 |
===== jcenter.bintray.com 과 Github Raw Repository ===== | ===== jcenter.bintray.com 과 Github Raw Repository ===== | ||
줄 12: | 줄 19: | ||
* **Remote Repository Access > Auto blocking active**를 **false**로 지정하고 '' | * **Remote Repository Access > Auto blocking active**를 **false**로 지정하고 '' | ||
* **Repository Status**가 '' | * **Repository Status**가 '' | ||
+ | |||
+ | ===== Snapshot buildNumber 안 맞는 문제 ===== | ||
+ | SNAPSHOT을 배포했는데, | ||
+ | < | ||
+ | <?xml version=" | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | 아때 Nexus 리포지토리에서 해당 아티팩트를 선택하고 **Rebuild Metadata**를 했더니 정상으로 변경되었다. | ||
+ | |||
+ | ===== Nexus v2 Rest API ===== | ||
+ | * [[http:// | ||
+ | * [[network: | ||
+ | * [[https:// | ||
+ | * **LATEST** 버전 체크 API 가 인덱스 갱신이 느린지 정상 작동하지 않음. | ||
+ | * 차라리 https:// | ||
+ | <code sh> | ||
+ | # maven-metadata.xml URL을 group/ | ||
+ | wget -O - -o /dev/null https:// | ||
+ | # 혹은 curl 로 | ||
+ | curl -s https:// | ||
+ | |||
+ | last_version=$(wget -O - -o /dev/null http:// | ||
+ | sort --version-sort -r| head -n 1) | ||
+ | |||
+ | # snapshot 의 최신 빌드를 확인하려면 - last_version 을 안다고 했을 때 | ||
+ | curl -s " | ||
+ | |||
+ | </ | ||
+ | |||
+ | <code sh> | ||
+ | # 서버 상태 | ||
+ | http -a admin: | ||
+ | |||
+ | # 최신버전. r=리포지토리ID, | ||
+ | http -a admin: | ||
+ | |||
+ | # 최신버전 curl 잘 작동안함 | ||
+ | curl -u " | ||
+ | |||
+ | # 특정 버전 명시 curl : 특정버전 명시할 때는 잘 작동함. | ||
+ | ## r=snapshots, | ||
+ | curl -u " | ||
+ | </ | ||