mirror of https://github.com/apache/maven.git
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 java.util.Map;
|
|||
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 @@ public class MojoExecutionScope
|
|||
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,7 +113,6 @@ public class DefaultBuildPluginManager
|
|||
|
||||
try
|
||||
{
|
||||
scope.seed( MavenSession.class, session );
|
||||
scope.seed( MavenProject.class, project );
|
||||
scope.seed( MojoExecution.class, mojoExecution );
|
||||
|
||||
|
|
Loading…
Reference in New Issue