[ https://issues.apache.org/jira/browse/MPLUGIN-419?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17623274#comment-17623274 ]
ASF GitHub Bot commented on MPLUGIN-419: ---------------------------------------- slawekjaranowski commented on PR #156: URL: https://github.com/apache/maven-plugin-tools/pull/156#issuecomment-1289288261 > I would suggest to move the examples links to the parent at https://github.com/apache/maven-plugin-tools/blob/master/src/site/site.xml so it is available in all modules (even in non-Maven plugin ones). WDYT? I can try in such way. @kwin can you look at build on jenkins ... Maven site build is broken with error: ``` javadoc: error - An internal exception has occurred. (java.lang.NullPointerException) Please file a bug against the javadoc tool via the Java bug reporting page (http://bugreport.java.com/) after checking the Bug Database (http://bugs.java.com/) for duplicates. Include error messages and the following diagnostic in your report. Thank you. java.lang.NullPointerException at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.util.Utils.getFileObject(Utils.java:834) at jdk.javadoc/jdk.javadoc.internal.doclets.formats.html.SourceToHTMLConverter.convertClass(SourceToHTMLConverter.java:176) at jdk.javadoc/jdk.javadoc.internal.doclets.formats.html.SourceToHTMLConverter.generate(SourceToHTMLConverter.java:136) at jdk.javadoc/jdk.javadoc.internal.doclets.formats.html.SourceToHTMLConverter.convertRoot(SourceToHTMLConverter.java:117) ``` Very strange .... from build: https://ci-maven.apache.org/job/Maven/job/maven-box/job/maven-plugin-tools/job/master/60/ on GitHub the same pass > 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)