You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by el...@apache.org on 2024/10/14 11:44:14 UTC

(maven-dependency-plugin) branch param created (now 56dfdf03)

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

elharo pushed a change to branch param
in repository https://gitbox.apache.org/repos/asf/maven-dependency-plugin.git


      at 56dfdf03 Replace old workaround for Maven 3.2.5 bug

This branch includes the following new commits:

     new 56dfdf03 Replace old workaround for Maven 3.2.5 bug

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(maven-dependency-plugin) 01/01: Replace old workaround for Maven 3.2.5 bug

Posted by el...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 56dfdf039fca9b253cd619e88c58e5a11f13107d
Author: Elliotte Rusty Harold <el...@ibiblio.org>
AuthorDate: Mon Oct 14 07:44:06 2024 -0400

    Replace old workaround for Maven 3.2.5 bug
---
 .../maven/plugins/dependency/analyze/AbstractAnalyzeMojo.java     | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/main/java/org/apache/maven/plugins/dependency/analyze/AbstractAnalyzeMojo.java b/src/main/java/org/apache/maven/plugins/dependency/analyze/AbstractAnalyzeMojo.java
index 35b287ec..b6eed99c 100644
--- a/src/main/java/org/apache/maven/plugins/dependency/analyze/AbstractAnalyzeMojo.java
+++ b/src/main/java/org/apache/maven/plugins/dependency/analyze/AbstractAnalyzeMojo.java
@@ -261,13 +261,11 @@ public abstract class AbstractAnalyzeMojo extends AbstractMojo {
      *
      * @since 3.2.1
      */
-    // defaultValue value on @Parameter - not work with Maven 3.2.5
-    // When is set defaultValue always win, and there is no possibility to override by plugin configuration.
-    @Parameter
-    private List<String> ignoredPackagings = Arrays.asList("pom", "ear");
+    @Parameter(defaultValue = "pom,ear")
+    private List<String> ignoredPackagings;
 
     /**
-     * List Excluded classes patterns from analyze. Java regular expression pattern is applied to full class name.
+     * List of class patterns excluded from analyze. Java regular expression pattern is applied to full class name.
      *
      * @since 3.7.0
      */