[ https://issues.apache.org/jira/browse/MPLUGIN-419?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17623296#comment-17623296 ]
ASF GitHub Bot commented on MPLUGIN-419: ---------------------------------------- kwin commented on PR #156: URL: https://github.com/apache/maven-plugin-tools/pull/156#issuecomment-1289343490 The NPE in javadoc started with commit https://github.com/apache/maven-plugin-tools/commit/31d088e969f9863370256db3ab0ba71b2c75534f according to https://ci-maven.apache.org/job/Maven/job/maven-box/job/maven-plugin-tools/job/master/. No idea about it as I cannot reproduce locally. > Allow @Parameter on setters methods > ----------------------------------- > > Key: MPLUGIN-419 > URL: https://issues.apache.org/jira/browse/MPLUGIN-419 > Project: Maven Plugin Tools > Issue Type: New Feature > Reporter: Slawomir Jaranowski > Assignee: Slawomir Jaranowski > Priority: Major > Fix For: 3.7.0 > > > We needn't filed for Mojo parameters. > When setters method exist it is called first by Maven. > We can declare Mojo as: > {code:java} > @Mojo( name = "my-mojo" ) > public class MyMojo extends AbstractMojo > { > @Parameter > private String param; > public void execute() > { > } > } > {code} > In some case will be useful to have possibility to declare as: > {code:java} > @Mojo( name = "my-mojo" ) > public class MyMojo extends AbstractMojo > { > @Parameter > public void setParam(String param) > { > // do something with param > } > public void execute() > { > } > } > {code} > eg, useful: > - normalization > - validation > - split one input value to more items, the same or other type -- This message was sent by Atlassian Jira (v8.20.10#820010)