Author: mkleint
Date: Fri Feb 22 07:31:54 2008
New Revision: 630225

URL: http://svn.apache.org/viewvc?rev=630225&view=rev
Log:
majke the mojo compilable against the latest maven core bits

Modified:
    
maven/sandbox/trunk/plugins/maven-lifecycle-plugin/src/main/java/org/apache/maven/plugin/lifecycle/BuildPlanMojo.java

Modified: 
maven/sandbox/trunk/plugins/maven-lifecycle-plugin/src/main/java/org/apache/maven/plugin/lifecycle/BuildPlanMojo.java
URL: 
http://svn.apache.org/viewvc/maven/sandbox/trunk/plugins/maven-lifecycle-plugin/src/main/java/org/apache/maven/plugin/lifecycle/BuildPlanMojo.java?rev=630225&r1=630224&r2=630225&view=diff
==============================================================================
--- 
maven/sandbox/trunk/plugins/maven-lifecycle-plugin/src/main/java/org/apache/maven/plugin/lifecycle/BuildPlanMojo.java
 (original)
+++ 
maven/sandbox/trunk/plugins/maven-lifecycle-plugin/src/main/java/org/apache/maven/plugin/lifecycle/BuildPlanMojo.java
 Fri Feb 22 07:31:54 2008
@@ -33,6 +33,7 @@
 import java.util.ArrayList;
 import java.util.List;
 import java.util.StringTokenizer;
+import org.apache.maven.execution.MavenSession;
 
 /**
  * Retrieves the build plan for the current project, and displays it to the 
logger's INFO log-level, or a file.
@@ -72,6 +73,12 @@
     private MavenProject project;
 
     /**
+     * @parameter default-value="${session}"
+     * @required
+     * @readonly
+     */
+    private MavenSession session;
+    /**
      * @component
      */
     private BuildPlanner buildPlanner;
@@ -90,7 +97,7 @@
         BuildPlan buildPlan;
         try
         {
-            buildPlan = buildPlanner.constructBuildPlan( taskList, project );
+            buildPlan = buildPlanner.constructBuildPlan( taskList, project, 
session );
         }
         catch ( LifecycleLoaderException e )
         {


Reply via email to