如何在Shell脚本中获取最新版本的快照

时间:2018-12-16 11:54:19

标签: shell version nexus snapshot

我想从Nexus存储库下载jar文件。但是该jar文件是使用时间戳创建的。我的目录如下:

 "https://myhost.com/nexus/repository/snapshots/com/tr/oms/om-liquibase-runner/27.0.5-20181215.221525-1/om-liquibase-runner-27.0.5-20181215.221525-1.jar"

但是我必须在脚本中生成该URL。我想要快照版本的最新版本。快照版本看起来像27.0.5-SNAPSHOT

我那样做,但这行不通:

 nexus_repo="snapshots"
 releaseNo="27.0.5-SNAPSHOT"
 "https://myhost.com/nexus/repository/$nexus_repo/com/tr/oms/om-liquibase-runner/$release_no/om-liquibase-runner-$releaseNo.jar&v=LATEST"

你知道我该怎么做!?

0 个答案:

没有答案