maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r1620214 - /maven/archetype/trunk/maven-archetype-plugin/src/main/java/org/apache/maven/archetype/mojos/CreateArchetypeFromProjectMojo.java
Date Sun, 24 Aug 2014 22:19:58 GMT
Author: hboutemy
Date: Sun Aug 24 22:19:57 2014
New Revision: 1620214

URL: http://svn.apache.org/r1620214
Log:
Injection via @Parameter instead of @Component

Modified:
    maven/archetype/trunk/maven-archetype-plugin/src/main/java/org/apache/maven/archetype/mojos/CreateArchetypeFromProjectMojo.java

Modified: maven/archetype/trunk/maven-archetype-plugin/src/main/java/org/apache/maven/archetype/mojos/CreateArchetypeFromProjectMojo.java
URL: http://svn.apache.org/viewvc/maven/archetype/trunk/maven-archetype-plugin/src/main/java/org/apache/maven/archetype/mojos/CreateArchetypeFromProjectMojo.java?rev=1620214&r1=1620213&r2=1620214&view=diff
==============================================================================
--- maven/archetype/trunk/maven-archetype-plugin/src/main/java/org/apache/maven/archetype/mojos/CreateArchetypeFromProjectMojo.java
(original)
+++ maven/archetype/trunk/maven-archetype-plugin/src/main/java/org/apache/maven/archetype/mojos/CreateArchetypeFromProjectMojo.java
Sun Aug 24 22:19:57 2014
@@ -157,7 +157,7 @@ public class CreateArchetypeFromProjectM
     /**
      * The Maven project to create an archetype from.
      */
-    @Component
+    @Parameter( defaultValue = "${project}", readonly = true, required = true )
     private MavenProject project;
 
     /**
@@ -220,7 +220,7 @@ public class CreateArchetypeFromProjectM
     @Parameter( property = "packageName" )
     private String packageName; //Find a better way to resolve the package!!! enforce usage
of the configurator
 
-    @Component
+    @Parameter( defaultValue = "${session}", readonly = true, required = true )
     private MavenSession session;
 
     public void execute()



Mime
View raw message