gpt4 book ai didi

java - 无法执行 maven-enforcer-plugin

转载 作者:行者123 更新时间:2023-11-30 08:06:32 25 4
gpt4 key购买 nike

我正在尝试使用 maven 安装 UIMA JDK。然而,总有一个警告

<小时/>
Rule 0: org.semver.enforcer.RequireBackwardCompatibility failed with message:
Current codebase is not backward compatible (BACKWARD_COMPATIBLE_IMPLEMENTER) with version <2.7.0>. Compatibility type has been detected as <BACKWARD_COMPATIBLE_USER>

然后报错:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:1.3.1:enforce (enforce-compatibility) on project uimaj-core: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed.

请帮我解决这个问题

最佳答案

我们正在考虑切换到语义版本控制。我昨天更改了 UIMA trunk 中的配置,以检查根据语义版本控制下一个版本应该是 2.7.1 还是 2.8.0。

您可以更改兼容性检查 - 或者 - 您应该只使用 Maven Central 的最新稳定版本 2.7.0,而不是自行构建。

要将其改回来,请打开 uimaj-parent/pom.xml 并设置:

<compat.level>BACKWARD_COMPATIBLE_USER</compat.level>

披露:是我破坏了构建;)

关于java - 无法执行 maven-enforcer-plugin,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31016180/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com