Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mvn plugin:descriptor@default-descriptor fails when performing a release #1632

Closed
0x6675636b796f75676974687562 opened this issue Mar 17, 2023 · 0 comments · Fixed by #1634
Closed
Assignees
Labels
bug Something isn't working
Milestone

Comments

@0x6675636b796f75676974687562
Copy link
Member

0x6675636b796f75676974687562 commented Mar 17, 2023

Maven is run as

mvn clean deploy -Prelease --projects '!diktat-ruleset'

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

Version matrix

c.g.gantsign.m.p:kotlin-maven-plugin-tools org.apache.maven:* org.apache.maven.plugin-tools:*
1.1.0 3.5.4 3.6.4
1.0.0 3.5.4 3.6.4
0.9.26 3.5.4 3.5.2

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-api 3.7 through 3.8.1.

Environment information

  • diktat version: 1.2.5-SNAPSHOT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant