[ 
https://issues.apache.org/jira/browse/MNG-7468?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17556704#comment-17556704
 ] 

Herve Boutemy commented on MNG-7468:
------------------------------------

[~sjaranowski] IIUC, the parameters existence check is currently not done at 
plugin level but at goal level
what happens if there is a parameter that is defined at plugin level (because 
it's simpler) but that only exists for some goals but not others?
I fear we'll have unwanted warning

maven-dependency-plugin is for example a typical plugin, where each goal has 
quite specific parameters

I did not check yet, then I did not yet open a separate Jira issue related to 
this one, but I suppose we'll need it...

> Unsupported plugins parameters in configuration should be verified
> ------------------------------------------------------------------
>
>                 Key: MNG-7468
>                 URL: https://issues.apache.org/jira/browse/MNG-7468
>             Project: Maven
>          Issue Type: New Feature
>          Components: Plugins and Lifecycle
>            Reporter: Slawomir Jaranowski
>            Assignee: Slawomir Jaranowski
>            Priority: Major
>             Fix For: 3.9.0, 4.0.0-alpha-1, 4.0.0
>
>
> Currently we can provide any xml tags in plugin configuration even if plugin 
> Mojo doesn't support specific parameters.
> eg we can have:
> {code:xml}
> <plugin>
>     <artifactId>example-maven-plugin</artifactId>
>     <version>1.1.1</version>
>     <configuration>
>         <xxx>zzzz</xxx>
>     </configuration>
> </plugin>
> {code}
> With example configuration Mojo is executed without any warning.
> Simply if parameters is not supported - build should break with some of 
> invalid plugin configuration exception ...



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to