kotlin-maven-plugin-tools icon indicating copy to clipboard operation
kotlin-maven-plugin-tools copied to clipboard

Extractor Fails with maven 3.9.0

Open jangalinski opened this issue 2 years ago • 2 comments

I tried to run this dependency in my mavan-plugin-plugin 3.9.0 project and get the following build: error

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-plugin-plugin:3.9.0:descriptor (default-descriptor) on project ...: 
The API of the mojo scanner is not compatible with this plugin version. 
Please check the plugin dependencies configured in the POM and ensure the versions match.: 
Receiver class com.github.gantsign.maven.tools.plugin.extractor.kotlin.KotlinMojoDescriptorExtractor does not define 
or inherit an implementation of the 
resolved method 'abstract org.apache.maven.tools.plugin.extractor.GroupKey getGroupKey()' 
of interface org.apache.maven.tools.plugin.extractor.MojoDescriptorExtractor. -> [Help 1]

jangalinski avatar Jun 21 '23 10:06 jangalinski

@freemanjp , any chance to get an updated release for Maven 3.9.x? Is there anything we can help with (Maven 3.9 integration test PR, ...)?

As mentioned above, Maven Plugin Tools release 3.7.0 introduced a breaking change in MPLUGIN-378) of new method MojoDescriptorExtractor#getGroupKey()

marcelmay avatar Jan 01 '24 15:01 marcelmay

I tried to apply a fix to overcome this issue. Upgraded all libraries and implemented new interface. Currently failing on integration tests for help-mojo. So a bit stuck, if someone wants to take the patch forward and submit a pull reques. Upgrade_dependencies_and_implement_new_interface.patch

bobjana avatar Feb 06 '24 09:02 bobjana