[ https://issues.apache.org/jira/browse/MNG-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Osipov closed MNG-6210. ------------------------------- Resolution: Fixed Works flawlessly now. Thanks for the fix. > can't load @SessionScoped/@MojoExecutionScoped components from > .mvn/extensions.xml > ---------------------------------------------------------------------------------- > > Key: MNG-6210 > URL: https://issues.apache.org/jira/browse/MNG-6210 > Project: Maven > Issue Type: Bug > Components: Class Loading > Affects Versions: 3.3.1, 3.3.3, 3.3.9 > Reporter: Igor Fedorenko > Assignee: Igor Fedorenko > Fix For: 3.5.1 > > > The build fails with the exception below if Maven core extensions defined in > .mvn/extensions.xml includes any @SessionScoped or MojoExecutionScoped > components > {code} > [WARNING] > ClassRealm[coreExtension>io.takari.maven:takari-workspace-reader:0.3.31-SNAPSHOT, > parent: ClassRealm[plexus.core, parent: null]] > com.google.inject.CreationException: Unable to create injector, see the > following errors: > 1) No scope is bound to org.apache.maven.SessionScoped. > at io.takari.maven.workspace.GenerationsWorkspaceReader.class(Unknown > Source) > at > ClassRealm[coreExtension>io.takari.maven:takari-workspace-reader:0.3.31-SNAPSHOT, > parent: ClassRealm[plexus.core, parent: null]] (via modules: > org.eclipse.sisu.wire.WireModule -> > org.eclipse.sisu.plexus.PlexusBindingModule) > 1 error > at > com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:466) > at > com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:155) > at > com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:107) > at com.google.inject.Guice.createInjector(Guice.java:96) > at com.google.inject.Guice.createInjector(Guice.java:73) > at com.google.inject.Guice.createInjector(Guice.java:62) > at > org.codehaus.plexus.DefaultPlexusContainer.addPlexusInjector(DefaultPlexusContainer.java:481) > at > org.codehaus.plexus.DefaultPlexusContainer.discoverComponents(DefaultPlexusContainer.java:460) > at > org.codehaus.plexus.DefaultPlexusContainer.discoverComponents(DefaultPlexusContainer.java:435) > at org.apache.maven.cli.MavenCli.container(MavenCli.java:568) > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:287) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:205) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at > org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) > at > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) > at > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) > at > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346)