棘刺示例/ API不兼容

时间:2018-11-27 20:26:12

标签: java maven thorntail

当尝试在github上打包thorntail-examples project时,在多个示例上构建失败,这些示例说明了与此类似的API不兼容错误...

[ERROR] Failed to execute goal io.thorntail:thorntail-maven-plugin:2.3.0.Final-SNAPSHOT:package (package) on project example-stm: Execution package of goal io.thorntail:thorntail-maven-plugin:2.3.0.Final-SNAPSHOT:package failed: An API incompatibility was encountered while executing io.thorntail:thorntail-maven-plugin:2.3.0.Final-SNAPSHOT:package: java.lang.AbstractMethodError: null
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>io.thorntail:thorntail-maven-plugin:2.3.0.Final-SNAPSHOT
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/home/<user>/.m2/repository/io/thorntail/thorntail-maven-plugin/2.3.0.Final-SNAPSHOT/thorntail-maven-plugin-2.3.0.Final-SNAPSHOT.jar
[ERROR] urls[1] = file:/home/<user>/.m2/repository/io/thorntail/fraction-metadata/2.3.0.Final-SNAPSHOT/fraction-metadata-2.3.0.Final-SNAPSHOT.jar
[ERROR] urls[2] = file:/home/<user>/.m2/repository/io/thorntail/meta-spi/2.3.0.Final-SNAPSHOT/meta-spi-2.3.0.Final-SNAPSHOT.jar
[ERROR] urls[3] = file:/home/<user>/.m2/repository/org/jboss/shrinkwrap/descriptors/shrinkwrap-descriptors-impl-javaee/2.0.0/shrinkwrap-descriptors-impl-javaee-2.0.0.jar
...

如果我删除其中一个依赖项,问题就消失了,例如在jpa/jpa示例中,当我尝试按原样进行构建时,我收到API不兼容错误,但是如果我删除了h2依赖关系,它将清除错误。

我自己的项目有一个类似的问题,添加h2或休眠会导致API不兼容错误,但是如果我忽略了这两个应用程序,则该应用程序可以正常运行。

还有其他人遇到过这个问题吗?

1 个答案:

答案 0 :(得分:4)

https://issues.jboss.org/browse/THORN-2229所示,Thorntail当前无法在Maven 3.6上正常运行。建议的解决方法是暂时切换回Maven 3.5。