문제

for a hubot script i need to determine the most recent release version of an artifact. All artifacts are deployed to a sonatype nexus, so i want to use the nexus api to do that.

Is there a way to get the nexus api to return just the version number?

도움이 되었습니까?

해결책

as described here i can use the "resolve" function that returns all information about an artifact i could ever want

For Example:

https://oss.sonatype.org/service/local/artifact/maven/resolve?r=cometd-snapshots&g=org.cometd.jetty&a=cometd-jetty-client&v=1.0-SNAPSHOT&e=jar

Note:

  • the type (e) is optional, the default value is jar
  • it is possible to get a json result, but in case of errors or non existing artifacts the result is ALWAYS html
  • the versions LATEST and RELEASE are supported
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top