无法执行 maven-enforcer-plugin

Failed to execute maven-enforcer-plugin

我正在尝试使用 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 主干中的配置,以根据语义版本检查下一个版本应该是 2.7.1 还是 2.8.0。

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

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

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

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