diff --git a/maven-plugin-tools/src/main/java/org/apache/maven/plugin/generator/AbstractGenerator.java b/maven-plugin-tools/src/main/java/org/apache/maven/plugin/generator/AbstractGenerator.java index cdc07581a7..7b9b021ee9 100644 --- a/maven-plugin-tools/src/main/java/org/apache/maven/plugin/generator/AbstractGenerator.java +++ b/maven-plugin-tools/src/main/java/org/apache/maven/plugin/generator/AbstractGenerator.java @@ -256,7 +256,7 @@ public abstract class AbstractGenerator pd.setType( parameter.getNamedParameter( "type" ) ); - pd.setRequired( Boolean.getBoolean( parameter.getNamedParameter( "required" ) ) ); + pd.setRequired( parameter.getNamedParameter( "required" ).equals( "true" ) ? true : false ); pd.setValidator( parameter.getNamedParameter( "validator" ) );