diff --git a/src/it/projects/mdep-779-analyze-only-verbose-shows-class-names/verify.bsh b/src/it/projects/mdep-779-analyze-only-verbose-shows-class-names/verify.bsh index b3300d87b..38397b565 100644 --- a/src/it/projects/mdep-779-analyze-only-verbose-shows-class-names/verify.bsh +++ b/src/it/projects/mdep-779-analyze-only-verbose-shows-class-names/verify.bsh @@ -31,7 +31,7 @@ String expected = "[WARNING] Used undeclared dependencies found:\n" + if ( !log.contains(expected) ) { - throw new Exception( "Expected warning missing" ); + throw new Exception( "Expected warning missing. Found\n" + log); } return true; 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 3a4b9cd5f..bb7768a98 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 @@ -75,19 +75,19 @@ public abstract class AbstractAnalyzeMojo extends AbstractMojo { * a dependency for this plugin that contains the code for the analyzer. The analyzer must have a declared Plexus * role name, and you specify the role name here. */ - @Parameter(defaultValue = "default") + @Parameter(property = "analyzer", defaultValue = "default") private String analyzer; /** * Whether to fail the build if a dependency warning is found. */ - @Parameter(defaultValue = "false") + @Parameter(property = "failOnWarning", defaultValue = "false") private boolean failOnWarning; /** * Output used dependencies. */ - @Parameter(defaultValue = "false") + @Parameter(property = "verbose", defaultValue = "false") private boolean verbose; /** @@ -95,7 +95,7 @@ public abstract class AbstractAnalyzeMojo extends AbstractMojo { *
* Non-test scoped
list will be not affected.
*/
- @Parameter(defaultValue = "false")
+ @Parameter(property = "ignoreNonCompile", defaultValue = "false")
private boolean ignoreNonCompile;
/**
@@ -103,7 +103,7 @@ public abstract class AbstractAnalyzeMojo extends AbstractMojo {
*
* @since 3.2.0
*/
- @Parameter(defaultValue = "false")
+ @Parameter(property = "ignoreUnusedRuntime", defaultValue = "false")
private boolean ignoreUnusedRuntime;
/**
@@ -120,19 +120,19 @@ public abstract class AbstractAnalyzeMojo extends AbstractMojo {
/**
* Output XML for the missing dependencies (used but not declared).
*/
- @Parameter(defaultValue = "false")
+ @Parameter(property = "outputXML", defaultValue = "false")
private boolean outputXML;
/**
* Output scriptable values for the missing dependencies (used but not declared).
*/
- @Parameter(defaultValue = "false")
+ @Parameter(property = "scriptableOutput", defaultValue = "false")
private boolean scriptableOutput;
/**
* Flag to use for scriptable output.
*/
- @Parameter(defaultValue = "$$$%%%")
+ @Parameter(property = "scriptableFlag", defaultValue = "$$$%%%")
private String scriptableFlag;
/**