[英]Is it possible to use revapi maven plugin to do check against a SNAPSHOT version?
I'm currently setting up revapi-maven-plugin for a project, using latest version (0.7.0), and we want to check on our jenkins that no regression appears in our API during development. 我目前正在使用最新版本(0.7.0)为项目设置revapi-maven-plugin,我们想检查一下詹金斯,在开发过程中API中是否没有回归。 Then for my process I don't want to check the regression between a snapshot and a release but between two snapshots. 然后对于我的过程,我不想检查快照和发行版之间的回归,而是要检查两个快照之间的回归。
Unfortunately (?) we use a different repository for our snapshots and our releases, and apparently revapi-maven-plugin seems not able to get the latest snapshot version from the snapshot repo. 不幸的是(?)我们为快照和发行版使用了不同的存储库,显然revapi-maven-plugin似乎无法从快照存储库中获取最新的快照版本。
Or is it and I did not understand how to do that? 还是我不知道该怎么做?
I already put those value in my configuration but it does not change anything: 我已经将这些值放入我的配置中,但它没有任何改变:
<alwaysCheckForReleaseVersion>false</alwaysCheckForReleaseVersion>
<oldVersion>LATEST</oldVersion>
This is supported since the version 0.8.0
of the revapi-maven-plugin
. 从revapi-maven-plugin
0.8.0
版本0.8.0
就支持此功能。 The documentation of the oldVersion
property reads ( https://revapi.org/modules/revapi-maven-plugin/check-mojo.html#oldVersion ): oldVersion
属性的文档读取( https://revapi.org/modules/revapi-maven-plugin/check-mojo.html#oldVersion ):
If you don't want to compare a different artifact than the one being built, specifying just the old version is simpler way of specifying the old artifact. 如果您不想比较与正在构建的工件不同的工件,则仅指定旧版本是指定旧工件的更简单方法。 The default value is "RELEASE" meaning that the old version is the last released version of the artifact being built (either remote or found locally (to account for artifacts installed into the local repo that are not available in some public remote repository)). 默认值为“ RELEASE”,表示旧版本是所构建工件的最新发布版本(可以是远程的,也可以在本地找到(以解决安装到本地仓库中的某些公共远程存储库中不可用的工件))。 The version of the compared artifact will be strictly older than the version of the new artifact. 比较的工件的版本将严格比新工件的版本旧。 If you specify "LATEST", the old version will be resolved to the newest version available remotely, including snapshots (if found in one of the repositories active in the build). 如果指定“ LATEST”,则旧版本将解析为可远程使用的最新版本,包括快照(如果在构建中活动的存储库之一中找到)。 The version of the compared artifact will be either older or equal to the version of the new artifact in this case to account for comparing a locally built snapshot against the latest published snapshot. 在这种情况下,比较的工件的版本将较旧或等于新工件的版本,以考虑将本地构建的快照与最新发布的快照进行比较。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.