简体   繁体   English

是否可以使用revapi maven插件来检查SNAPSHOT版本?

[英]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.

相关问题 为什么Maven Versions Plugin(版本:use-latest-versions)没有更新/更改-SNAPSHOT版本才能发布(无-SNAPSHOT版本)? - Why Maven Versions Plugin (versions:use-latest-versions) not updating/changing -SNAPSHOT version to release (none -SNAPSHOT version)? Maven版本插件:将版本与哪个版本进行比较 - Maven versions plugin : where are version compared against 将maven-release-plugin升级到2.5.2后,快照版本未发布 - snapshot version not published after upgrading maven-release-plugin to 2.5.2 如何防止在maven-release-plugin中推送SNAPSHOT版本? - How to prevent pushing SNAPSHOT version in maven-release-plugin? 我怎么知道要使用哪个版本的Maven插件? - How do I know what version of a Maven plugin to use? Maven-release插件:版本中没有快照的分支 - Maven-release plugin: Branch without snapshot in version Maven:构建时没有release:plugin,也没有SNAPSHOT-version-number - Maven: Build without the release:plugin and without a SNAPSHOT-version-number Maven Release Plugin - 在发布中跳过快照版本更新:准备步骤 - Maven Release Plugin - Skip snapshot version update in release:prepare step Eclipse Maven插件未针对正确的Java版本进行编译 - Eclipse Maven Plugin not compiling against correct java version 检查Maven pom是否为SNAPSHOT - Check if Maven pom is SNAPSHOT
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM