Thorntail-Examples / API Incompatibility

Atrum :

When trying to package the thorntail-examples project on github, the build fails on several of the examples stating an API incompatibility error similar to this...

[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
...

If I remove one of the dependencies, the problem goes away, for example with the jpa/jpa example, I receive an API Incompatibility error when I try to build as is, but if I remove the h2 dependency it clears the error.

Having a similar issue with my own project, adding h2 or hibernate results in an API Incompatibility error, but the app runs fine if i leave out both of these.

Has anyone else experienced this issue?

Ladicek :

Thorntail currently doesn't work well with Maven 3.6, as tracked in https://issues.jboss.org/browse/THORN-2229. Suggested workaround is to switch back to Maven 3.5 for the time being.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=76824&siteId=1