[
https://jira.codehaus.org/browse/MNG-5520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=333115#comment-333115
]
Jason van Zyl commented on MNG-5520:
------------------------------------
Stuart is correct. They are only used during build time. We like to limit any
classpath scanning and generate metadata for all components/plugins upfront.
> RuntimePolicy is incorrect for org.apache.maven.plugins.annotations.Parameter
> -----------------------------------------------------------------------------
>
> Key: MNG-5520
> URL: https://jira.codehaus.org/browse/MNG-5520
> Project: Maven 2 & 3
> Issue Type: Bug
> Components: Plugin API
> Affects Versions: 3.0.4
> Environment: JDK 1.7
> MAVN 3.0.5
> Reporter: Martin Gainty
> Priority: Minor
> Attachments: RobertPatrickAnnotationsTest.zip
>
>
> looks like we need to hire you to check our code..(provided you work for free)
> package org.apache.maven.plugins.annotations;
> import java.lang.annotation.RetentionPolicy;
> @Documented
> @Retention( RetentionPolicy.CLASS )
> @Target( { ElementType.FIELD } )
> @Inherited
> public @interface Parameter
> RetentionPolicy parameters:
> CLASS
> Annotations are to be recorded in the class file by the compiler but need NOT
> be retained by the VM at run time.
>
> RUNTIME
> Annotations are to be recorded in the class file by the compiler and
> RETAINED by the VM at run time, so they may be read reflectively.
>
> SOURCE
> Annotations are to be discarded by the compiler.
--
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