Skip to content

Commit 3fd0746

Browse files
Improve usage of silent parameter in Copy and Unpack goals
- parameter should be defined where is used, so move to child class from root class AbstractDependencyMojo - use it during logging of coping or unpacking
1 parent cd9084a commit 3fd0746

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/main/java/org/apache/maven/plugins/dependency/fromDependencies/AbstractFromDependenciesMojo.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,15 @@ public abstract class AbstractFromDependenciesMojo extends AbstractDependencyFil
112112
@Parameter(property = "mdep.failOnMissingClassifierArtifact", defaultValue = "false")
113113
protected boolean failOnMissingClassifierArtifact;
114114

115+
/**
116+
* If the plugin should be more silent with logging.
117+
* <br/>
118+
* Use {@code -q} command line option if you want to suppress all output.
119+
* @since 2.0
120+
*/
121+
@Parameter(property = "silent", defaultValue = "false")
122+
private boolean silent;
123+
115124
protected AbstractFromDependenciesMojo(
116125
MavenSession session,
117126
BuildContext buildContext,

0 commit comments

Comments
 (0)