quarkus: Failed to execute goal io.quarkus:quarkus-maven-plugin:3.0.0.CR1:build
Describe the bug
Getting the below:
Failed to execute goal io.quarkus:quarkus-maven-plugin:3.0.0.CR1:build
when attempting to leverage 3.0.0.CR1
version which was released a couple days back.
Stacktrace:
[2023-04-03T16:06:32.215Z] Apache Maven 3.6.0
[2023-04-03T16:06:32.215Z] Maven home: /usr/share/maven
[2023-04-03T16:06:32.215Z] Java version: 11.0.18, vendor: GraalVM Community, runtime: /usr/lib/jabba/jdk/11.0.18-graalvm-ce-22.3.1
[2023-04-03T16:06:32.215Z] Default locale: en, platform encoding: UTF-8
[2023-04-03T16:06:32.215Z] OS name: "linux", version: "5.4.0-1094-aws", arch: "amd64", family: "unix"
...
[2023-04-03T16:06:39.250Z] [INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/freemarker/freemarker/2.3.32/freemarker-2.3.32.jar (1.7 MB at 9.3 MB/s)
[2023-04-03T16:06:39.250Z] [WARNING] Error injecting: io.quarkus.maven.BuildMojo
[2023-04-03T16:06:39.250Z] com.google.inject.ProvisionException: Unable to provision, see the following errors:
[2023-04-03T16:06:39.250Z]
[2023-04-03T16:06:39.250Z] 1) No implementation for io.quarkus.maven.QuarkusBootstrapProvider was bound.
[2023-04-03T16:06:39.250Z] while locating io.quarkus.maven.BuildMojo
[2023-04-03T16:06:39.250Z]
[2023-04-03T16:06:39.250Z] 1 error
[2023-04-03T16:06:39.250Z] at com.google.inject.internal.InjectorImpl$2.get (InjectorImpl.java:1025)
[2023-04-03T16:06:39.250Z] at com.google.inject.internal.InjectorImpl.getInstance (InjectorImpl.java:1051)
[2023-04-03T16:06:39.250Z] at org.eclipse.sisu.space.AbstractDeferredClass.get (AbstractDeferredClass.java:48)
[2023-04-03T16:06:39.250Z] at com.google.inject.internal.ProviderInternalFactory.provision (ProviderInternalFactory.java:81)
[2023-04-03T16:06:39.250Z] at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision (InternalFactoryToInitializableAdapter.java:53)
[2023-04-03T16:06:39.250Z] at com.google.inject.internal.ProviderInternalFactory$1.call (ProviderInternalFactory.java:65)
[2023-04-03T16:06:39.250Z] at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision (ProvisionListenerStackCallback.java:115)
[2023-04-03T16:06:39.250Z] at org.eclipse.sisu.bean.BeanScheduler$Activator.onProvision (BeanScheduler.ja:176)
[2023-04-03T16:06:39.250Z] at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision (ProvisionListenerStackCallback.java:126)
[2023-04-03T16:06:39.250Z] at com.google.inject.internal.ProvisionListenerStackCallback.provision (ProvisionListenerStackCallback.java:68)
[2023-04-03T16:06:39.250Z] at com.google.inject.internal.ProviderInternalFactory.circularGet (ProviderInternalFactory.java:63)
[2023-04-03T16:06:39.250Z] at com.google.inject.internal.InternalFactoryToInitializableAdapter.get (InternalFactoryToInitializableAdapter.java:45)
[2023-04-03T16:06:39.250Z] at com.google.inject.internal.InjectorImpl$2$1.call (InjectorImpl.java:1016)
[2023-04-03T16:06:39.250Z] at com.google.inject.internal.InjectorImpl.callInContext (InjectorImpl.java:1092)
[2023-04-03T16:06:39.250Z] at com.google.inject.internal.InjectorImpl$2.get (InjectorImpl.java:1012)
[2023-04-03T16:06:39.250Z] at org.eclipse.sisu.inject.Guice4$1.get (Guice4.java:162)
[2023-04-03T16:06:39.250Z] at org.eclipse.sisu.inject.LazyBeanEntry.getValue (LazyBeanEntry.java:81)
[2023-04-03T16:06:39.250Z] at org.eclipse.sisu.plexus.LazyPlexusBean.getValue (LazyPlexusBean.java:51)
[2023-04-03T16:06:39.250Z] at org.codehaus.plexus.DefaultPlexusContainer.lookup (DefaultPlexusContainer.java:263)
[2023-04-03T16:06:39.250Z] at org.codehaus.plexus.DefaultPlexusContainer.lookup (DefaultPlexusContainer.java:255)
[2023-04-03T16:06:39.250Z] at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo (DefaultMavenPluginManager.java:520)
[2023-04-03T16:06:39.250Z] at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:124)
[2023-04-03T16:06:39.250Z] at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
[2023-04-03T16:06:39.250Z] at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
[2023-04-03T16:06:39.250Z] at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
[2023-04-03T16:06:39.250Z] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
[2023-04-03T16:06:39.250Z] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
[2023-04-03T16:06:39.250Z] at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
[2023-04-03T16:06:39.250Z] at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
[2023-04-03T16:06:39.250Z] at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
[2023-04-03T16:06:39.250Z] at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
[2023-04-03T16:06:39.250Z] at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
[2023-04-03T16:06:39.250Z] at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
[2023-04-03T16:06:39.250Z] at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
[2023-04-03T16:06:39.250Z] at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
[2023-04-03T16:06:39.250Z] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
[2023-04-03T16:06:39.250Z] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
[2023-04-03T16:06:39.250Z] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
[2023-04-03T16:06:39.250Z] at java.lang.reflect.Method.invoke (Method.java:566)
[2023-04-03T16:06:39.250Z] at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
[2023-04-03T16:06:39.250Z] at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
[2023-04-03T16:06:39.250Z] at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
[2023-04-03T16:06:39.250Z] at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
...
[2023-04-03T16:06:39.250Z] [ERROR] Failed to execute goal io.quarkus:quarkus-maven-plugin:3.0.0.CR1:build (default) on project test-project-quarkus-integration-tests: Execution default of goal io.quarkus:quarkus-maven-plugin:3.0.0.CR1:build failed: Unable to load the mojo 'build' (or one of its required components) from the plugin 'io.quarkus:quarkus-maven-plugin:3.0.0.CR1': com.google.inject.ProvisionException: Unable to provision, see the following errors:
[2023-04-03T16:06:39.250Z] [ERROR]
[2023-04-03T16:06:39.250Z] [ERROR] 1) No implementation for io.quarkus.maven.QuarkusBootstrapProvider was bound.
[2023-04-03T16:06:39.250Z] [ERROR] while locating io.quarkus.maven.BuildMojo
[2023-04-03T16:06:39.250Z] [ERROR] at ClassRealm[plugin>io.quarkus:quarkus-maven-plugin:3.0.0.CR1, parent: jdk.internal.loader.ClassLoaders$AppClassLoader@55f96302] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule)
[2023-04-03T16:06:39.250Z] [ERROR] while locating org.apache.maven.plugin.Mojo annotated with @com.google.inject.name.Named(value=io.quarkus:quarkus-maven-plugin:3.0.0.CR1:build)
[2023-04-03T16:06:39.250Z] [ERROR]
[2023-04-03T16:06:39.250Z] [ERROR] 1 error
[2023-04-03T16:06:39.250Z] [ERROR] role: org.apache.maven.plugin.Mojo
[2023-04-03T16:06:39.250Z] [ERROR] roleHint: io.quarkus:quarkus-maven-plugin:3.0.0.CR1:build
[2023-04-03T16:06:39.250Z] [ERROR] -> [Help 1]
...
### Expected behavior
Build suceeding.
### Actual behavior
Erroring out.
### How to Reproduce?
_No response_
### Output of `uname -a` or `ver`
_No response_
### Output of `java -version`
_No response_
### GraalVM version (if different from Java)
_No response_
### Quarkus version or git rev
3.0.0.CR1
### Build tool (ie. output of `mvnw --version` or `gradlew --version`)
_No response_
### Additional information
_No response_
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 16 (10 by maintainers)
Could you please try with Maven 3.6.3 or later?
Thank you team & @aloubyansky!. It worked with maven
3.6.3+
.