Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
对于 hubot 脚本,我需要确定工件的最新发布版本。所有工件都部署到 sonatype nexus,所以我想使用 nexus api 来做到这一点。
有没有办法让nexus api只返回版本号?
如此处所述,我可以使用“resolve”函数返回有关我可能想要的工件的所有信息
例如:
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
笔记: