mirror of
https://github.com/apache/maven.git
synced 2025-02-22 18:04:52 +00:00
MNG-5578 cleanup redundant session binding in mojo executin scope
Signed-off-by: Igor Fedorenko <ifedorenko@apache.org>
This commit is contained in:
parent
3ebab97737
commit
48fec9440d
@ -25,7 +25,6 @@
|
||||
import javax.inject.Named;
|
||||
import javax.inject.Singleton;
|
||||
|
||||
import org.apache.maven.execution.MavenSession;
|
||||
import org.apache.maven.execution.MojoExecutionEvent;
|
||||
import org.apache.maven.execution.MojoExecutionListener;
|
||||
import org.apache.maven.execution.scope.MojoExecutionScoped;
|
||||
@ -169,7 +168,6 @@ protected void configure()
|
||||
bindScope( MojoExecutionScoped.class, scope );
|
||||
|
||||
// standard scope bindings
|
||||
bind( MavenSession.class ).toProvider( MojoExecutionScope.<MavenSession> seededKeyProvider() ).in( scope );
|
||||
bind( MavenProject.class ).toProvider( MojoExecutionScope.<MavenProject> seededKeyProvider() ).in( scope );
|
||||
bind( MojoExecution.class ).toProvider( MojoExecutionScope.<MojoExecution> seededKeyProvider() ).in( scope );
|
||||
}
|
||||
|
@ -113,10 +113,9 @@ public void executeMojo( MavenSession session, MojoExecution mojoExecution )
|
||||
|
||||
try
|
||||
{
|
||||
scope.seed( MavenSession.class, session );
|
||||
scope.seed( MavenProject.class, project );
|
||||
scope.seed( MojoExecution.class, mojoExecution );
|
||||
|
||||
|
||||
mojo = mavenPluginManager.getConfiguredMojo( Mojo.class, session, mojoExecution );
|
||||
|
||||
legacySupport.setSession( session );
|
||||
|
Loading…
x
Reference in New Issue
Block a user