mirror of https://github.com/apache/maven.git
[MNG-7504] Don't print warning unsupported reportPlugins for m-site-p
This commit is contained in:
parent
f0cef23c6e
commit
b3e7e57e4b
|
@ -156,7 +156,9 @@ public class DefaultMojoExecutionConfigurator
|
|||
|
||||
unknownParameters = getUnknownParameters( mojoExecution, parametersNamesAll );
|
||||
|
||||
unknownParameters.forEach(
|
||||
unknownParameters.stream()
|
||||
.filter( parameterName -> isNotReportPluginsForMavenSite( parameterName, mojoExecution ) )
|
||||
.forEach(
|
||||
name ->
|
||||
{
|
||||
MessageBuilder messageBuilder = MessageUtils.buffer()
|
||||
|
@ -180,6 +182,13 @@ public class DefaultMojoExecutionConfigurator
|
|||
} );
|
||||
}
|
||||
|
||||
private boolean isNotReportPluginsForMavenSite( String parameterName,
|
||||
MojoExecution mojoExecution )
|
||||
{
|
||||
return !( "reportPlugins".equals( parameterName )
|
||||
&& "maven-site-plugin".equals( mojoExecution.getArtifactId() ) );
|
||||
}
|
||||
|
||||
private Stream<String> getParameterNames( Parameter parameter )
|
||||
{
|
||||
if ( parameter.getAlias() != null )
|
||||
|
|
Loading…
Reference in New Issue