[
https://issues.apache.org/jira/browse/MPLUGIN-254?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Osipov closed MPLUGIN-254.
----------------------------------
Resolution: Auto Closed
This issue has been auto closed because it has been inactive for a long period
of time. If you think this issue still applies, retest your problem with the
most recent version of Maven and the affected component, reopen and post your
results.
> @parameter javadoc annotation and @Parameter Java annotation should be
> allowed on setters
> -----------------------------------------------------------------------------------------
>
> Key: MPLUGIN-254
> URL: https://issues.apache.org/jira/browse/MPLUGIN-254
> Project: Maven Plugin Tools
> Issue Type: Bug
> Components: maven-plugin-annotations, maven-plugin-tools-javadoc
> Affects Versions: 3.2
> Reporter: Shane StClair
> Priority: Minor
>
> maven-plugin-tools-javadc currently complains if the @parameter is used on a
> setter method rather than a field with this warning:
> warning - Tag @parameter cannot be used in method documentation. It can
> only be used in the following types of documentation: field.
> Likewise, the @Parameter Java annotation can't be placed on setter methods,
> since it is limited to @Target( { ElementType.FIELD } ).
> However, @parameter/@Parameter should be legal to use on both fields and
> setter methods, as referenced here:
>
> http://books.sonatype.com/mvnref-book/reference/writing-plugins-sect-mojo-params.html#writing-plugins-sect-param-annot
> "Marks a private field (or a setter method) as a parameter."
> maven-plugin-tools-javadoc and maven-plugin-annotations should be updated to
> allow the usage of @parameter/@Parameter on setter methods.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)