The build throws a NoClassDefFoundError related to the Eclipse Aether resolver packages within the Plexus/ClassWorlds realm, indicating that the plugin is looking for a class structure or method signature that has changed or been removed in Maven 3.10's core libraries.
[ERROR] Failed to execute goal org.kie:kie-maven-plugin:10.1.0:build (default-build) on project...
[ERROR] Execution default-build of goal org.kie:kie-maven-plugin:10.1.0:build failed: An API incompatibility was encountered while executing org.kie:kie-maven-plugin:10.1.0:build: java.lang.NoClassDefFoundError: org/eclipse/aether/...
[ERROR] realm = plugin>org.kie:kie-maven-plugin:10.1.0
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/...
Environment Details:
- Maven version: 3.10.x
- KIE/Drools version: 10.1.0
- Java version: 21
Observations:
Downgrading the local Maven environment back to Maven 3.9.x completely resolves the issue, confirming that the plugin struggles with the upgraded dependency resolution APIs in Maven 3.10.
Thanks & Regards
Bharani Kumar.C