You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sl...@apache.org on 2023/01/09 11:26:51 UTC

[maven-dependency-plugin] branch master updated: Remove unused fields

This is an automated email from the ASF dual-hosted git repository.

slachiewicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-dependency-plugin.git


The following commit(s) were added to refs/heads/master by this push:
     new 8c3b20f6 Remove unused fields
8c3b20f6 is described below

commit 8c3b20f68bcdda469bc0452b0f6fb7d810f09d00
Author: Piotrek Żygieło <pz...@users.noreply.github.com>
AuthorDate: Thu Dec 29 10:52:05 2022 +0100

    Remove unused fields
---
 .../apache/maven/plugins/dependency/GetMojo.java   | 49 ++++++++--------------
 1 file changed, 17 insertions(+), 32 deletions(-)

diff --git a/src/main/java/org/apache/maven/plugins/dependency/GetMojo.java b/src/main/java/org/apache/maven/plugins/dependency/GetMojo.java
index 283c753c..1d727048 100644
--- a/src/main/java/org/apache/maven/plugins/dependency/GetMojo.java
+++ b/src/main/java/org/apache/maven/plugins/dependency/GetMojo.java
@@ -84,38 +84,6 @@ public class GetMojo extends AbstractMojo {
 
     private DefaultDependableCoordinate coordinate = new DefaultDependableCoordinate();
 
-    /**
-     * The groupId of the artifact to download. Ignored if {@link #artifact} is used.
-     */
-    @Parameter(property = "groupId")
-    private String groupId;
-
-    /**
-     * The artifactId of the artifact to download. Ignored if {@link #artifact} is used.
-     */
-    @Parameter(property = "artifactId")
-    private String artifactId;
-
-    /**
-     * The version of the artifact to download. Ignored if {@link #artifact} is used.
-     */
-    @Parameter(property = "version")
-    private String version;
-
-    /**
-     * The classifier of the artifact to download. Ignored if {@link #artifact} is used.
-     *
-     * @since 2.3
-     */
-    @Parameter(property = "classifier")
-    private String classifier;
-
-    /**
-     * The packaging of the artifact to download. Ignored if {@link #artifact} is used.
-     */
-    @Parameter(property = "packaging", defaultValue = "jar")
-    private String packaging = "jar";
-
     /**
      * Repositories in the format id::[layout]::url or just url, separated by comma. ie.
      * central::default::https://repo.maven.apache.org/maven2,myrepo::::https://repo.acme.com,https://repo.acme2.com
@@ -271,36 +239,53 @@ public class GetMojo extends AbstractMojo {
     }
 
     /**
+     * The groupId of the artifact to download. Ignored if {@link #artifact} is used.
+     *
      * @param groupId The groupId.
      */
+    @Parameter(property = "groupId")
     public void setGroupId(String groupId) {
         this.coordinate.setGroupId(groupId);
     }
 
     /**
+     * The artifactId of the artifact to download. Ignored if {@link #artifact} is used.
+     *
      * @param artifactId The artifactId.
      */
+    @Parameter(property = "artifactId")
     public void setArtifactId(String artifactId) {
         this.coordinate.setArtifactId(artifactId);
     }
 
     /**
+     * The version of the artifact to download. Ignored if {@link #artifact} is used.
+     *
      * @param version The version.
      */
+    @Parameter(property = "version")
     public void setVersion(String version) {
         this.coordinate.setVersion(version);
     }
 
     /**
+     * The classifier of the artifact to download. Ignored if {@link #artifact} is used.
+     *
      * @param classifier The classifier to be used.
+     *
+     * @since 2.3
      */
+    @Parameter(property = "classifier")
     public void setClassifier(String classifier) {
         this.coordinate.setClassifier(classifier);
     }
 
     /**
+     * The packaging of the artifact to download. Ignored if {@link #artifact} is used.
+     *
      * @param type packaging.
      */
+    @Parameter(property = "packaging", defaultValue = "jar")
     public void setPackaging(String type) {
         this.coordinate.setType(type);
     }