我被迫不使用Kogito parent bom,原因我无法解释。所以我得到了一个基于Quarkus 1.2 based和Kogito 0.7.1的Maven项目,能够解决所有版本不匹配的问题。代码可以编译,但无法运行测试。它抛出以下错误,并且我的依赖项中确实有kogito-ruleunit。
9:18:53,268 ERROR [io.qua.dev.DevModeMain] Failed to start Quarkus: java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[error]: Build step io.quarkus.kogito.deployment.KogitoAssetsProcessor#generateModel threw an exception: java.lang.NoClassDefFoundError: org/kie/kogito/rules/impl/AbstractRuleUnits我已经在github上发布了这个项目:https://github.com/mravi786/junk/tree/master/dingo-dmn
发布于 2020-02-27 02:04:02
出现此问题是因为您使用的版本与Quarkus 1.2.1不兼容。
我不知道为什么你不能使用Kogito BOM,但肯定有一些工件不是正确的版本。
更新: Quarkus 1.2.x支持Kogito 0.6.x。由于两者之间的紧密集成,您不能这样升级Kogito。如果您绝对需要Kogito 0.7.1,您可以开始使用Quarkus 1.3.0.Alpha2。我们将很快发布CR1,并在一周后发布最终版。
https://stackoverflow.com/questions/60418493
复制相似问题