사용자 도구

사이트 도구


nexus

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
다음 판 양쪽 다음 판
nexus [2019/02/25 14:39]
kwon37xi [Nexus v2 Rest API]
nexus [2019/02/25 14:47]
kwon37xi
줄 52: 줄 52:
   * [[https://gist.github.com/cedricwalter/e7739aab3d370ef83f1a13b8322e50be|Sonatype NEXUS 2 has a rest API :-) but NEXUS 3 has none/not ready, the following simulate curl/wget call]]   * [[https://gist.github.com/cedricwalter/e7739aab3d370ef83f1a13b8322e50be|Sonatype NEXUS 2 has a rest API :-) but NEXUS 3 has none/not ready, the following simulate curl/wget call]]
   * **LATEST** 버전 체크 API 가 인덱스 갱신이 느린지 정상 작동하지 않음.   * **LATEST** 버전 체크 API 가 인덱스 갱신이 느린지 정상 작동하지 않음.
 +    * 차라리 https://stackoverflow.com/a/40378096/1051402 이 방식이 작동함<code sh>
 +# maven-metadata.xml URL을 group/artifact 에 따라 달라짐
 +wget -O - -o /dev/null https://repo1.maven.org/maven2/org/brutusin/wava/maven-metadata.xml | grep -Po '(?<=<version>)([0-9\.]+(-SNAPSHOT)?)' | sort --version-sort -r| head -n 1
 +
 +last_version=$(wget -O - -o /dev/null http://nexus.woowa.in/content/repositories/releases/woowa/ad/center/ad-migration-batch/ad-migration-batch-jar/maven-metadata.xml | grep -Po '(?<=<version>)([0-9\.]+(-SNAPSHOT)?)' |
 +sort --version-sort -r| head -n 1)
 +</code>
  
 <code sh> <code sh>
nexus.txt · 마지막으로 수정됨: 2019/06/12 15:35 저자 kwon37xi