com.google.inject.CreationException: Unable to create injector, see the following errors: 1) Scope org.apache.maven.execution.scope.internal.MojoExecutionScope@766653e6 is already bound to org.apache.maven.execution.scope.MojoExecutionScoped at org.apache.maven.execution.scope.internal.MojoExecutionScopeModule.configure(MojoExecutionScopeModule.java:49) (via modules: org.eclipse.sisu.wire.WireModule -> org.apache.maven.execution.scope.internal.MojoExecutionScopeModule). Cannot bind org.apache.maven.execution.scope.internal.MojoExecutionScope@35d6ca49. at ClassRealm[plugin>io.company.on-premise.agents.plugin:company-maven-plugin:1.0.0, parent: sun.misc.Launcher$AppClassLoader@70dea4e] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule -> org.apache.maven.execution.scope.internal.MojoExecutionScopeCoreModule) 1 error

Stack Overflow | nadavy | 4 months ago
  1. 0

    Exception in custom Maven plugin

    Stack Overflow | 4 months ago | nadavy
    com.google.inject.CreationException: Unable to create injector, see the following errors: 1) Scope org.apache.maven.execution.scope.internal.MojoExecutionScope@766653e6 is already bound to org.apache.maven.execution.scope.MojoExecutionScoped at org.apache.maven.execution.scope.internal.MojoExecutionScopeModule.configure(MojoExecutionScopeModule.java:49) (via modules: org.eclipse.sisu.wire.WireModule -> org.apache.maven.execution.scope.internal.MojoExecutionScopeModule). Cannot bind org.apache.maven.execution.scope.internal.MojoExecutionScope@35d6ca49. at ClassRealm[plugin>io.company.on-premise.agents.plugin:company-maven-plugin:1.0.0, parent: sun.misc.Launcher$AppClassLoader@70dea4e] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule -> org.apache.maven.execution.scope.internal.MojoExecutionScopeCoreModule) 1 error
  2. 0

    CreationException: Unable to create injector | Noriaki Horiuchi Tech Blog

    noriakihoriuchi.com | 8 months ago
    play.api.UnexpectedException: Unexpected exception[CreationException: Unable to create injector, see the following errors: 1) A binding to play.api.db.DBApi was already configured at play.api.db.slick.evolutions.EvolutionsModule.bindings(EvolutionsModule.scala:14): Binding(interface play.api.db.DBApi to ConstructionTarget(class play.api.db.slick.evolutions.internal.DBApiAdapter) in interface javax.inject.Singleton) (via modules: com.google.inject.util.Modules$OverrideModule -> play.api.inject.guice.GuiceableModuleConversions$$anon$1). at play.api.db.DBModule.bindings(DBModule.scala:25): Binding(interface play.api.db.DBApi to ProviderConstructionTarget(class play.api.db.DBApiProvider)) (via modules: com.google.inject.util.Modules$OverrideModule -> play.api.inject.guice.GuiceableModuleConversions$$anon$1) 1 error]
  3. 0

    2.4 Sample not working

    GitHub | 1 year ago | oexza
    play.api.UnexpectedException: Unexpected exception[CreationException: Unable to create injector, see the following errors: 1) No implementation for be.objectify.deadbolt.java.cache.HandlerCache was bound. while locating be.objectify.deadbolt.java.cache.HandlerCache for parameter 3 at be.objectify.deadbolt.java.ViewSupport.<init>(ViewSupport.java:70) at be.objectify.deadbolt.java.DeadboltModule.bindings(DeadboltModule.java:27): Binding(class be.objectify.deadbolt.java.ViewSupport to self in interface javax.inject.Singleton) (via modules: com.google.inject.util.Modules$OverrideModule -> play.api.inject.guice.GuiceableModuleConversions$$anon$1) 1 error]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    A binding to play.api.db.DBApi was already configured, evolutions and injector error with play-slick

    Stack Overflow | 1 year ago | ttt
    com.google.inject.CreationException: Unable to create injector, see the following errors: 1) A binding to play.api.db.DBApi was already configured at play.api.db.DBModule.bindings(DBModule.scala:25): Binding(interface play.api.db.DBApi to ProviderConstructionTarget(class play.api.db.DBApiProvider)) (via modules: com.google.inject.util.Modules$OverrideModule -> play.api.inject.guice.GuiceableModuleConversions$$anon$1). at play.api.db.slick.evolutions.EvolutionsModule.bindings(EvolutionsModule.scala:15): Binding(interface play.api.db.DBApi to ConstructionTarget(class play.api.db.slick.evolutions.internal.DBApiAdapter) in interface javax.inject.Singleton) (via modules: com.google.inject.util.Modules$OverrideModule -> play.api.inject.guice.GuiceableModuleConversions$$anon$1) 1 error
  6. 0

    Intellij IDE: A binding to play.api.db.DBApi was already configured, evolutions and injector error with play-slick

    GitHub | 1 year ago | ysihaoy
    com.google.inject.CreationException: Unable to create injector, see the following errors: 1) A binding to play.api.db.DBApi was already configured at play.api.db.DBModule.bindings(DBModule.scala:25): Binding(interface play.api.db.DBApi to ProviderConstructionTarget(class play.api.db.DBApiProvider)) (via modules: com.google.inject.util.Modules$OverrideModule -> play.api.inject.guice.GuiceableModuleConversions$$anon$1). at play.api.db.slick.evolutions.EvolutionsModule.bindings(EvolutionsModule.scala:15): Binding(interface play.api.db.DBApi to ConstructionTarget(class play.api.db.slick.evolutions.internal.DBApiAdapter) in interface javax.inject.Singleton) (via modules: com.google.inject.util.Modules$OverrideModule -> play.api.inject.guice.GuiceableModuleConversions$$anon$1) 1 error

    5 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.google.inject.CreationException

      Unable to create injector, see the following errors: 1) Scope org.apache.maven.execution.scope.internal.MojoExecutionScope@766653e6 is already bound to org.apache.maven.execution.scope.MojoExecutionScoped at org.apache.maven.execution.scope.internal.MojoExecutionScopeModule.configure(MojoExecutionScopeModule.java:49) (via modules: org.eclipse.sisu.wire.WireModule -> org.apache.maven.execution.scope.internal.MojoExecutionScopeModule). Cannot bind org.apache.maven.execution.scope.internal.MojoExecutionScope@35d6ca49. at ClassRealm[plugin>io.company.on-premise.agents.plugin:company-maven-plugin:1.0.0, parent: sun.misc.Launcher$AppClassLoader@70dea4e] (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()
    2. Google Guice - Core Library
      Guice.createInjector
      1. com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:466)
      2. com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:155)
      3. com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:107)
      4. com.google.inject.Guice.createInjector(Guice.java:96)
      5. com.google.inject.Guice.createInjector(Guice.java:73)
      6. com.google.inject.Guice.createInjector(Guice.java:62)
      6 frames
    3. Plexus
      DefaultPlexusContainer.discoverComponents
      1. org.codehaus.plexus.DefaultPlexusContainer.addPlexusInjector(DefaultPlexusContainer.java:481)
      2. org.codehaus.plexus.DefaultPlexusContainer.discoverComponents(DefaultPlexusContainer.java:460)
      2 frames
    4. Maven Core
      DefaultMavenPluginManager.setupPluginRealm
      1. org.apache.maven.plugin.internal.DefaultMavenPluginManager.discoverPluginComponents(DefaultMavenPluginManager.java:433)
      2. org.apache.maven.plugin.internal.DefaultMavenPluginManager.createPluginRealm(DefaultMavenPluginManager.java:412)
      3. org.apache.maven.plugin.internal.DefaultMavenPluginManager.setupPluginRealm(DefaultMavenPluginManager.java:372)
      3 frames
    5. Maven Plugin
      DefaultBuildPluginManager.executeMojo
      1. org.apache.maven.plugin.DefaultBuildPluginManager.getPluginRealm(DefaultBuildPluginManager.java:231)
      2. org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:102)
      2 frames
    6. Maven Core
      DefaultMaven.execute
      1. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
      2. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      3. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      4. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
      5. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
      6. org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
      7. org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
      8. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
      9. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
      10. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
      10 frames
    7. M3 Interceptor
      MavenCli.main
      1. org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
      2. org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
      3. org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
      3 frames
    8. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    9. Plexus
      Launcher.main
      1. org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
      2. org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
      3. org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
      4. org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
      4 frames