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

Maven 4 issues #481

Open
velo opened this issue Jun 18, 2024 · 0 comments
Open

Maven 4 issues #481

velo opened this issue Jun 18, 2024 · 0 comments

Comments

@velo
Copy link

velo commented Jun 18, 2024

I saw the release notes for maven 4-beta-3, and decided to start experimenting.

Apparently some internals changed causing problems for sundrio-maven-plugin

[ERROR] Failed to execute goal io.sundr:sundr-maven-plugin:0.200.0:generate-bom (default) on project querydsl-root: Execution default of goal io.sundr:sundr-maven-plugin:0.200.0:generate-bom failed: Unable to load the mojo 'generate-bom' (or one of its required components) from the plugin 'io.sundr:sundr-maven-plugin:0.200.0': com.google.inject.ProvisionException: Unable to provision, see the following errors:
[ERROR] 
[ERROR] 1) No implementation for ArtifactHandler was bound.
[ERROR]   while locating GenerateBomMojo
[ERROR]   at ClassRealm[plugin>io.sundr:sundr-maven-plugin:0.200.0, parent: ClassLoaders$AppClassLoader@5ffd2b27]
[ERROR]       \_ installed by: WireModule -> PlexusBindingModule
[ERROR]   while locating Mojo annotated with @Named("io.sundr:sundr-maven-plugin:0.200.0:generate-bom")
[ERROR] 
[ERROR] 1 error
[ERROR] 
[ERROR] ======================
[ERROR] Full classname legend:
[ERROR] ======================
[ERROR] ArtifactHandler:             "org.apache.maven.artifact.handler.ArtifactHandler"
[ERROR] ClassLoaders$AppClassLoader: "jdk.internal.loader.ClassLoaders$AppClassLoader"
[ERROR] GenerateBomMojo:             "io.sundr.maven.GenerateBomMojo"
[ERROR] Mojo:                        "org.apache.maven.plugin.Mojo"
[ERROR] Named:                       "com.google.inject.name.Named"
[ERROR] PlexusBindingModule:         "org.eclipse.sisu.plexus.PlexusBindingModule"
[ERROR] WireModule:                  "org.eclipse.sisu.wire.WireModule"
[ERROR] ========================
[ERROR] End of classname legend:
[ERROR] ========================
[ERROR] 
[ERROR]       role: org.apache.maven.plugin.Mojo
[ERROR]   roleHint: io.sundr:sundr-maven-plugin:0.200.0:generate-bom
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the '-e' switch
[ERROR] Re-run Maven using the '-X' switch to enable verbose output
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException

OpenFeign/querydsl#474

I will reach out to maven community with this issue as well.

@velo velo changed the title Maven 4 incompatible Maven 4 issues Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant