maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ifedore...@apache.org
Subject [1/2] git commit: MNG-5578 cleanup redundant session binding in mojo executin scope
Date Sat, 01 Mar 2014 14:11:23 GMT
Repository: maven
Updated Branches:
  refs/heads/master 3ebab9773 -> ac8e59ac6


MNG-5578 cleanup redundant session binding in mojo executin scope

Signed-off-by: Igor Fedorenko <ifedorenko@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/maven/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven/commit/48fec944
Tree: http://git-wip-us.apache.org/repos/asf/maven/tree/48fec944
Diff: http://git-wip-us.apache.org/repos/asf/maven/diff/48fec944

Branch: refs/heads/master
Commit: 48fec9440dab16d11aadd45db3216b3a5ea3f564
Parents: 3ebab97
Author: Igor Fedorenko <ifedorenko@apache.org>
Authored: Fri Feb 28 21:15:42 2014 -0500
Committer: Igor Fedorenko <ifedorenko@apache.org>
Committed: Fri Feb 28 21:15:42 2014 -0500

----------------------------------------------------------------------
 .../apache/maven/execution/scope/internal/MojoExecutionScope.java | 2 --
 .../java/org/apache/maven/plugin/DefaultBuildPluginManager.java   | 3 +--
 2 files changed, 1 insertion(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven/blob/48fec944/maven-core/src/main/java/org/apache/maven/execution/scope/internal/MojoExecutionScope.java
----------------------------------------------------------------------
diff --git a/maven-core/src/main/java/org/apache/maven/execution/scope/internal/MojoExecutionScope.java
b/maven-core/src/main/java/org/apache/maven/execution/scope/internal/MojoExecutionScope.java
index 61d01ce..fc8b1e6 100644
--- a/maven-core/src/main/java/org/apache/maven/execution/scope/internal/MojoExecutionScope.java
+++ b/maven-core/src/main/java/org/apache/maven/execution/scope/internal/MojoExecutionScope.java
@@ -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 );
             }

http://git-wip-us.apache.org/repos/asf/maven/blob/48fec944/maven-core/src/main/java/org/apache/maven/plugin/DefaultBuildPluginManager.java
----------------------------------------------------------------------
diff --git a/maven-core/src/main/java/org/apache/maven/plugin/DefaultBuildPluginManager.java
b/maven-core/src/main/java/org/apache/maven/plugin/DefaultBuildPluginManager.java
index 257bf17..c61c9fb 100644
--- a/maven-core/src/main/java/org/apache/maven/plugin/DefaultBuildPluginManager.java
+++ b/maven-core/src/main/java/org/apache/maven/plugin/DefaultBuildPluginManager.java
@@ -113,10 +113,9 @@ public class DefaultBuildPluginManager
 
         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 );


Mime
View raw message