maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r1601137 - in /maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site: AbstractSiteMojo.java deploy/AbstractDeployMojo.java render/AbstractSiteRenderingMojo.java
Date Sat, 07 Jun 2014 15:49:25 GMT
Author: hboutemy
Date: Sat Jun  7 15:49:25 2014
New Revision: 1601137

URL: http://svn.apache.org/r1601137
Log:
use @Parameters for Maven objects instead of deprecated @Component

Modified:
    maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/AbstractSiteMojo.java
    maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/deploy/AbstractDeployMojo.java
    maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/render/AbstractSiteRenderingMojo.java

Modified: maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/AbstractSiteMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/AbstractSiteMojo.java?rev=1601137&r1=1601136&r2=1601137&view=diff
==============================================================================
--- maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/AbstractSiteMojo.java
(original)
+++ maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/AbstractSiteMojo.java
Sat Jun  7 15:49:25 2014
@@ -74,7 +74,7 @@ public abstract class AbstractSiteMojo
     /**
      * The maven project.
      */
-    @Component
+    @Parameter( defaultValue = "${project}" )
     protected MavenProject project;
 
     /**

Modified: maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/deploy/AbstractDeployMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/deploy/AbstractDeployMojo.java?rev=1601137&r1=1601136&r2=1601137&view=diff
==============================================================================
--- maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/deploy/AbstractDeployMojo.java
(original)
+++ maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/deploy/AbstractDeployMojo.java
Sat Jun  7 15:49:25 2014
@@ -134,13 +134,13 @@ public abstract class AbstractDeployMojo
     /**
      * The current user system settings for use in Maven.
      */
-    @Component
+    @Parameter( defaultValue = "${settings}" )
     private Settings settings;
 
     /**
      * @since 3.0-beta-2
      */
-    @Component
+    @Parameter( defaultValue = "${session}" )
     protected MavenSession mavenSession;
 
     private String topDistributionManagementSiteUrl;

Modified: maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/render/AbstractSiteRenderingMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/render/AbstractSiteRenderingMojo.java?rev=1601137&r1=1601136&r2=1601137&view=diff
==============================================================================
--- maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/render/AbstractSiteRenderingMojo.java
(original)
+++ maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/render/AbstractSiteRenderingMojo.java
Sat Jun  7 15:49:25 2014
@@ -166,7 +166,7 @@ public abstract class AbstractSiteRender
     /**
      * The current Maven session.
      */
-    @Component
+    @Parameter( defaultValue = "${session}" )
     protected MavenSession mavenSession;
 
     /**



Mime
View raw message