You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error message (when executing mvn plugin:descriptor@default-descriptor for :diktat-maven-plugin):
Failed to execute goal org.apache.maven.plugins:maven-plugin-plugin:3.8.1:descriptor (default-descriptor) on project diktat-maven-plugin: 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.
Analysis
The problem is reproducible locally when running the build using either Maven 3.8 or 3.9 (be sure to include -Prelease):
The GroupKey getGroupKey() method first appeared in MojoDescriptorExtractor in version 3.7.0, so we should fix maven-plugin-tools-api at version 3.6.4.
kotlin-maven-plugin-tools, even if upgraded to version 1.1.0, is not yet compatible with o.a.m:maven-plugin-tools-api3.7 through 3.8.1.
Environment information
diktat version: 1.2.5-SNAPSHOT
The text was updated successfully, but these errors were encountered:
Maven is run as
mvn clean deploy -Prelease --projects '!diktat-ruleset'
Error message (when executing
mvn plugin:descriptor@default-descriptor
for:diktat-maven-plugin
):Analysis
-Prelease
):KotlinMojoDescriptorExtractor
comes fromcom.github.gantsign.maven.plugin-tools:kotlin-maven-plugin-tools
, version 0.9.26 gets downloaded from https://maven.pkg.github.com/gantsign/kotlin-maven-plugin-tools and is incompatible with Maven 3.9 API (see Update all non-major dependencies (except core Kotlin) #1595).Version matrix
The
GroupKey getGroupKey()
method first appeared inMojoDescriptorExtractor
in version 3.7.0, so we should fixmaven-plugin-tools-api
at version 3.6.4.kotlin-maven-plugin-tools
, even if upgraded to version 1.1.0, is not yet compatible witho.a.m:maven-plugin-tools-api
3.7 through 3.8.1.Environment information
The text was updated successfully, but these errors were encountered: