MNG-5578 cleanup redundant session binding in mojo executin scope

Signed-off-by: Igor Fedorenko <ifedorenko@apache.org>
This commit is contained in:
Igor Fedorenko 2014-02-28 21:15:42 -05:00
parent 3ebab97737
commit 48fec9440d
2 changed files with 1 additions and 4 deletions

View File

@ -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 );
}

View File

@ -113,7 +113,6 @@ public class DefaultBuildPluginManager
try
{
scope.seed( MavenSession.class, session );
scope.seed( MavenProject.class, project );
scope.seed( MojoExecution.class, mojoExecution );