You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Osiris-Team (Jira)" <ji...@apache.org> on 2022/08/07 20:49:00 UTC

[jira] [Updated] (MNG-7526) MojoExecutionScope is already bound

     [ https://issues.apache.org/jira/browse/MNG-7526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Osiris-Team updated MNG-7526:
-----------------------------
    Summary: MojoExecutionScope is already bound  (was: MojoExecutionScope)

> MojoExecutionScope is already bound
> -----------------------------------
>
>                 Key: MNG-7526
>                 URL: https://issues.apache.org/jira/browse/MNG-7526
>             Project: Maven
>          Issue Type: Bug
>            Reporter: Osiris-Team
>            Priority: Trivial
>              Labels: question
>
> This is more a question and cry for help than a bug report.
> What does this exception mean, I don't get it.
> {code:java}
> [INFO] --- javapackager:1.7.0:package (default) @ HelloWorldMaven ---
> [WARNING] The POM for io.github.fvarrui:launch4j:jar:2.5.2 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
> [WARNING] ClassRealm[plugin>io.github.fvarrui:javapackager:1.7.0, parent: jdk.internal.loader.ClassLoaders$AppClassLoader@4e0e2f2a]
> com.google.inject.CreationException: Unable to create injector, see the following errors:
> 1) Scope org.apache.maven.execution.scope.internal.MojoExecutionScope@6ad59d92 is already bound to org.apache.maven.execution.scope.MojoExecutionScoped at org.apache.maven.execution.scope.internal.MojoExecutionScopeModule.configure(MojoExecutionScopeModule.java:52) (via modules: org.eclipse.sisu.wire.WireModule -> org.apache.maven.execution.scope.internal.MojoExecutionScopeModule).
>  Cannot bind org.apache.maven.execution.scope.internal.MojoExecutionScope@1d226f27.
>   at ClassRealm[plugin>io.github.fvarrui:javapackager:1.7.0, parent: jdk.internal.loader.ClassLoaders$AppClassLoader@4e0e2f2a] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule -> org.apache.maven.execution.scope.internal.MojoExecutionScopeCoreModule)
> 1 error
>     at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist (Errors.java:543)
>     at com.google.inject.internal.InternalInjectorCreator.initializeStatically (InternalInjectorCreator.java:159)
>     at com.google.inject.internal.InternalInjectorCreator.build (InternalInjectorCreator.java:106)
>     at com.google.inject.Guice.createInjector (Guice.java:87)
>     at com.google.inject.Guice.createInjector (Guice.java:69)
>     at com.google.inject.Guice.createInjector (Guice.java:59)
>     at org.codehaus.plexus.DefaultPlexusContainer.addPlexusInjector (DefaultPlexusContainer.java:481)
>     at org.codehaus.plexus.DefaultPlexusContainer.discoverComponents (DefaultPlexusContainer.java:460)
>     at org.apache.maven.plugin.internal.DefaultMavenPluginManager.discoverPluginComponents (DefaultMavenPluginManager.java:436)
>     at org.apache.maven.plugin.internal.DefaultMavenPluginManager.createPluginRealm (DefaultMavenPluginManager.java:415)
>     at org.apache.maven.plugin.internal.DefaultMavenPluginManager.setupPluginRealm (DefaultMavenPluginManager.java:374)
>     at org.apache.maven.plugin.DefaultBuildPluginManager.getPluginRealm (DefaultBuildPluginManager.java:234)
>     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:105)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
>     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
>     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
>     at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
>     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
>     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
>     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
>     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
>     at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:64)
>     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke (Method.java:564)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347) {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)