geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r432928 - /geronimo/trunk/m2-plugins/car-maven-plugin/src/main/java/org/apache/geronimo/plugin/car/AbstractCarMojo.java
Date Sun, 20 Aug 2006 02:55:30 GMT
Author: jdillon
Date: Sat Aug 19 19:55:28 2006
New Revision: 432928

URL: http://svn.apache.org/viewvc?rev=432928&view=rev
Log:
Using @component
Drop redundant artifact factory instance

Modified:
    geronimo/trunk/m2-plugins/car-maven-plugin/src/main/java/org/apache/geronimo/plugin/car/AbstractCarMojo.java

Modified: geronimo/trunk/m2-plugins/car-maven-plugin/src/main/java/org/apache/geronimo/plugin/car/AbstractCarMojo.java
URL: http://svn.apache.org/viewvc/geronimo/trunk/m2-plugins/car-maven-plugin/src/main/java/org/apache/geronimo/plugin/car/AbstractCarMojo.java?rev=432928&r1=432927&r2=432928&view=diff
==============================================================================
--- geronimo/trunk/m2-plugins/car-maven-plugin/src/main/java/org/apache/geronimo/plugin/car/AbstractCarMojo.java
(original)
+++ geronimo/trunk/m2-plugins/car-maven-plugin/src/main/java/org/apache/geronimo/plugin/car/AbstractCarMojo.java
Sat Aug 19 19:55:28 2006
@@ -65,7 +65,7 @@
     /**
      * Used to look up Artifacts in the remote repository.
      *
-     * @parameter expression="${component.org.apache.maven.artifact.factory.ArtifactFactory}"
+     * @component
      * @required
      * @readonly
      */
@@ -74,7 +74,7 @@
     /**
      * Used to look up Artifacts in the remote repository.
      *
-     * @parameter expression="${component.org.apache.maven.artifact.resolver.ArtifactResolver}"
+     * @component
      * @required
      * @readonly
      */
@@ -110,19 +110,12 @@
     /**
      * The maven project's helper.
      *
-     * @parameter expression="${component.org.apache.maven.project.MavenProjectHelper}"
+     * @component
      * @required
      * @readonly
      */
     protected MavenProjectHelper projectHelper;
 
-    /**
-     * @parameter expression="${component.org.apache.maven.artifact.factory.ArtifactFactory}"
-     * @required
-     * @readonly
-     */
-    protected ArtifactFactory artifactFactory;
-
     protected Set getProjectArtifacts(final MavenProject project) {
         Set artifacts = new HashSet();
 
@@ -145,7 +138,7 @@
                 scope = Artifact.SCOPE_COMPILE;
             }
 
-            Artifact artifact = artifactFactory.createDependencyArtifact(
+            Artifact artifact = factory.createDependencyArtifact(
                 groupId,
                 artifactId,
                 versionRange,



Mime
View raw message