michael-o commented on PR #253: URL: https://github.com/apache/maven-plugin-tools/pull/253#issuecomment-1871431696
I jave just tried a snapshot against Maven Dependency Plugin as @khmarbaise has reported. I get: ``` [INFO] Results: [INFO] [ERROR] Errors: [ERROR] TestCollectMojo.testCollectTestEnvironment:44->AbstractMojoTestCase.lookupMojo:355->AbstractMojoTestCase.lookupMojo:410->PlexusTestCase.lookup:205 � ComponentLookup com.google.inject.ProvisionException: Unable to provision, see the following errors: 1) Error in custom provider, com.google.inject.OutOfScopeException: Cannot access Key[type=org.apache.maven.project.MavenProject, annotation=[none]] outside of a scoping block at ClassRealm[plexus.core, parent: null] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule -> org.apache.maven.execution.scope.internal.MojoExecutionScopeCoreModule) while locating org.apache.maven.project.MavenProject while locating org.apache.maven.plugins.dependency.resolvers.CollectDependenciesMojo at ClassRealm[plexus.core, parent: null] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule) while locating org.apache.maven.plugin.Mojo annotated with @com.google.inject.name.Named(value=org.apache.maven.plugins:maven-dependency-plugin:3.6.2-SNAPSHOT:collect) 1 error role: org.apache.maven.plugin.Mojo roleHint: org.apache.maven.plugins:maven-dependency-plugin:3.6.2-SNAPSHOT:collect [ERROR] TestCollectMojo.testCollectTestEnvironment_excludeTransitive:71->AbstractMojoTestCase.lookupMojo:355->AbstractMojoTestCase.lookupMojo:410->PlexusTestCase.lookup:205 � ComponentLookup com.google.inject.ProvisionException: Unable to provision, see the following errors: 1) Error in custom provider, com.google.inject.OutOfScopeException: Cannot access Key[type=org.apache.maven.project.MavenProject, annotation=[none]] outside of a scoping block at ClassRealm[plexus.core, parent: null] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule -> org.apache.maven.execution.scope.internal.MojoExecutionScopeCoreModule) while locating org.apache.maven.project.MavenProject while locating org.apache.maven.plugins.dependency.resolvers.CollectDependenciesMojo at ClassRealm[plexus.core, parent: null] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule) while locating org.apache.maven.plugin.Mojo annotated with @com.google.inject.name.Named(value=org.apache.maven.plugins:maven-dependency-plugin:3.6.2-SNAPSHOT:collect) 1 error role: org.apache.maven.plugin.Mojo roleHint: org.apache.maven.plugins:maven-dependency-plugin:3.6.2-SNAPSHOT:collect [ERROR] TestCollectMojo.testSilent:95->AbstractMojoTestCase.lookupMojo:355->AbstractMojoTestCase.lookupMojo:410->PlexusTestCase.lookup:205 � ComponentLookup com.google.inject.ProvisionException: Unable to provision, see the following errors: 1) Error in custom provider, com.google.inject.OutOfScopeException: Cannot access Key[type=org.apache.maven.project.MavenProject, annotation=[none]] outside of a scoping block at ClassRealm[plexus.core, parent: null] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule -> org.apache.maven.execution.scope.internal.MojoExecutionScopeCoreModule) while locating org.apache.maven.project.MavenProject while locating org.apache.maven.plugins.dependency.resolvers.CollectDependenciesMojo at ClassRealm[plexus.core, parent: null] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule) while locating org.apache.maven.plugin.Mojo annotated with @com.google.inject.name.Named(value=org.apache.maven.plugins:maven-dependency-plugin:3.6.2-SNAPSHOT:collect) 1 error role: org.apache.maven.plugin.Mojo roleHint: org.apache.maven.plugins:maven-dependency-plugin:3.6.2-SNAPSHOT:collect [ERROR] TestGetMojo.setUp:54->AbstractMojoTestCase.lookupMojo:355->AbstractMojoTestCase.lookupMojo:410->PlexusTestCase.lookup:205 � ComponentLookup com.google.inject.ProvisionException: Unable to provision, see the following errors: 1) Error in custom provider, com.google.inject.OutOfScopeException: Cannot access Key[type=org.apache.maven.execution.MavenSession, annotation=[none]] outside of a scoping block at ClassRealm[plexus.core, parent: null] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule -> org.apache.maven.session.scope.internal.SessionScopeModule) while locating org.apache.maven.execution.MavenSession while locating org.apache.maven.plugins.dependency.GetMojo at ClassRealm[plexus.core, parent: null] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule) while locating org.apache.maven.plugin.Mojo annotated with @com.google.inject.name.Named(value=org.apache.maven.plugins:maven-dependency-plugin:3.6.2-SNAPSHOT:get) 1 error role: org.apache.maven.plugin.Mojo roleHint: org.apache.maven.plugins:maven-dependency-plugin:3.6.2-SNAPSHOT:get [ERROR] TestGetMojo.setUp:54->AbstractMojoTestCase.lookupMojo:355->AbstractMojoTestCase.lookupMojo:410->PlexusTestCase.lookup:205 � ComponentLookup com.google.inject.ProvisionException: Unable to provision, see the following errors: 1) Error in custom provider, com.google.inject.OutOfScopeException: Cannot access Key[type=org.apache.maven.execution.MavenSession, annotation=[none]] outside of a scoping block at ClassRealm[plexus.core, parent: null] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule -> org.apache.maven.session.scope.internal.SessionScopeModule) while locating org.apache.maven.execution.MavenSession while locating org.apache.maven.plugins.dependency.GetMojo at ClassRealm[plexus.core, parent: null] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule) while locating org.apache.maven.plugin.Mojo annotated with @com.google.inject.name.Named(value=org.apache.maven.plugins:maven-dependency-plugin:3.6.2-SNAPSHOT:get) 1 error role: org.apache.maven.plugin.Mojo roleHint: org.apache.maven.plugins:maven-dependency-plugin:3.6.2-SNAPSHOT:get [ERROR] TestGetMojo.setUp:54->AbstractMojoTestCase.lookupMojo:355->AbstractMojoTestCase.lookupMojo:410->PlexusTestCase.lookup:205 � ComponentLookup com.google.inject.ProvisionException: Unable to provision, see the following errors: 1) Error in custom provider, com.google.inject.OutOfScopeException: Cannot access Key[type=org.apache.maven.execution.MavenSession, annotation=[none]] outside of a scoping block at ClassRealm[plexus.core, parent: null] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule -> org.apache.maven.session.scope.internal.SessionScopeModule) while locating org.apache.maven.execution.MavenSession while locating org.apache.maven.plugins.dependency.GetMojo at ClassRealm[plexus.core, parent: null] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule) while locating org.apache.maven.plugin.Mojo annotated with @com.google.inject.name.Named(value=org.apache.maven.plugins:maven-dependency-plugin:3.6.2-SNAPSHOT:get) 1 error role: org.apache.maven.plugin.Mojo roleHint: org.apache.maven.plugins:maven-dependency-plugin:3.6.2-SNAPSHOT:get [ERROR] TestGetMojo.setUp:54->AbstractMojoTestCase.lookupMojo:355->AbstractMojoTestCase.lookupMojo:410->PlexusTestCase.lookup:205 � ComponentLookup com.google.inject.ProvisionException: Unable to provision, see the following errors: 1) Error in custom provider, com.google.inject.OutOfScopeException: Cannot access Key[type=org.apache.maven.execution.MavenSession, annotation=[none]] outside of a scoping block at ClassRealm[plexus.core, parent: null] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule -> org.apache.maven.session.scope.internal.SessionScopeModule) while locating org.apache.maven.execution.MavenSession while locating org.apache.maven.plugins.dependency.GetMojo at ClassRealm[plexus.core, parent: null] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule) while locating org.apache.maven.plugin.Mojo annotated with @com.google.inject.name.Named(value=org.apache.maven.plugins:maven-dependency-plugin:3.6.2-SNAPSHOT:get) 1 error role: org.apache.maven.plugin.Mojo roleHint: org.apache.maven.plugins:maven-dependency-plugin:3.6.2-SNAPSHOT:get [ERROR] TestListClassesMojo.setUp:45->AbstractMojoTestCase.lookupMojo:355->AbstractMojoTestCase.lookupMojo:410->PlexusTestCase.lookup:205 � ComponentLookup com.google.inject.ProvisionException: Unable to provision, see the following errors: 1) Error in custom provider, com.google.inject.OutOfScopeException: Cannot access Key[type=org.apache.maven.execution.MavenSession, annotation=[none]] outside of a scoping block at ClassRealm[plexus.core, parent: null] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule -> org.apache.maven.session.scope.internal.SessionScopeModule) while locating org.apache.maven.execution.MavenSession while locating org.apache.maven.plugins.dependency.ListClassesMojo at ClassRealm[plexus.core, parent: null] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule) while locating org.apache.maven.plugin.Mojo annotated with @com.google.inject.name.Named(value=org.apache.maven.plugins:maven-dependency-plugin:3.6.2-SNAPSHOT:list-classes) 1 error role: org.apache.maven.plugin.Mojo roleHint: org.apache.maven.plugins:maven-dependency-plugin:3.6.2-SNAPSHOT:list-classes [ERROR] TestListClassesMojo.setUp:45->AbstractMojoTestCase.lookupMojo:355->AbstractMojoTestCase.lookupMojo:410->PlexusTestCase.lookup:205 � ComponentLookup com.google.inject.ProvisionException: Unable to provision, see the following errors: 1) Error in custom provider, com.google.inject.OutOfScopeException: Cannot access Key[type=org.apache.maven.execution.MavenSession, annotation=[none]] outside of a scoping block at ClassRealm[plexus.core, parent: null] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule -> org.apache.maven.session.scope.internal.SessionScopeModule) while locating org.apache.maven.execution.MavenSession while locating org.apache.maven.plugins.dependency.ListClassesMojo at ClassRealm[plexus.core, parent: null] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule) while locating org.apache.maven.plugin.Mojo annotated with @com.google.inject.name.Named(value=org.apache.maven.plugins:maven-dependency-plugin:3.6.2-SNAPSHOT:list-classes) 1 error role: org.apache.maven.plugin.Mojo roleHint: org.apache.maven.plugins:maven-dependency-plugin:3.6.2-SNAPSHOT:list-classes [ERROR] TestListClassesMojo.setUp:45->AbstractMojoTestCase.lookupMojo:355->AbstractMojoTestCase.lookupMojo:410->PlexusTestCase.lookup:205 � ComponentLookup com.google.inject.ProvisionException: Unable to provision, see the following errors: 1) Error in custom provider, com.google.inject.OutOfScopeException: Cannot access Key[type=org.apache.maven.execution.MavenSession, annotation=[none]] outside of a scoping block at ClassRealm[plexus.core, parent: null] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule -> org.apache.maven.session.scope.internal.SessionScopeModule) while locating org.apache.maven.execution.MavenSession while locating org.apache.maven.plugins.dependency.ListClassesMojo at ClassRealm[plexus.core, parent: null] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule) while locating org.apache.maven.plugin.Mojo annotated with @com.google.inject.name.Named(value=org.apache.maven.plugins:maven-dependency-plugin:3.6.2-SNAPSHOT:list-classes) 1 error role: org.apache.maven.plugin.Mojo roleHint: org.apache.maven.plugins:maven-dependency-plugin:3.6.2-SNAPSHOT:list-classes ``` I guess something is missing on the test classpath, but I have no idea what... -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org