[英]Failed to execute maven-enforcer-plugin
I am trying to install UIMA JDK with maven. 我正在尝试使用Maven安装UIMA JDK。 However, there's always a waring
但是,总会有警告
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>
and then error: 然后错误:
[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.
[错误]无法在项目uimaj-core上执行目标org.apache.maven.plugins:maven-enforcer-plugin:1.3.1:enforce(强制兼容):某些Enforcer规则失败。 Look above for specific messages explaining why the rule failed.
在上方查看特定的消息,以解释规则失败的原因。
Please help me fix this issue 请帮助我解决此问题
We are considering to switch to semantic versioning. 我们正在考虑切换到语义版本控制。 I changed the configuration in UIMA trunk yesterday to check if according to semantic versioning the next version should be 2.7.1 or 2.8.0.
我昨天更改了UIMA主干中的配置,以根据语义版本检查下一个版本是否应为2.7.1或2.8.0。
You can change the compatibility check back - or - you should just use the last stable release 2.7.0 from Maven Central instead of building yourself. 您可以改回兼容性检查-或-您应该只使用Maven Central的最新稳定版本2.7.0,而不是自己构建。
To change it back, open uimaj-parent/pom.xml
and set: 要改回它,请打开
uimaj-parent/pom.xml
并设置:
<compat.level>BACKWARD_COMPATIBLE_USER</compat.level>
Disclosure: It was me that broke the build ;) 披露:是我破坏了构建;)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.