[ https://jira.codehaus.org/browse/MNG-5518?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=333064#comment-333064 ]
Anders Hammar commented on MNG-5518: ------------------------------------ IIRC you had to specify it in a similar fassion with the old javadoc-style annotations as well. Sometimes you don't want a parameter to be specifiable from command-line because it would break some best practice, such as reproducibility for example. > @Parameter annotation requires property element to use command-line -D > ---------------------------------------------------------------------- > > Key: MNG-5518 > URL: https://jira.codehaus.org/browse/MNG-5518 > Project: Maven 2 & 3 > Issue Type: Bug > Components: Plugin API > Affects Versions: 3.0.4, 3.1.0 > Environment: Windows 7 Pro 64 bit, JDK 1.7.0_40 > Reporter: Robert Patrick > Attachments: annotations.zip > > > When writing a plugin using the Maven Java annotations, the @Parameter > annotation currently requires the property element to allow the goal to > receive configuration information from the command-line using > -DparamName=value even though the goal works fine without it when using a POM. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira