diff --git a/maven-plugin-annotations/src/main/java/org/apache/maven/plugins/annotations/Component.java b/maven-plugin-annotations/src/main/java/org/apache/maven/plugins/annotations/Component.java index b585759..66b835a 100644 --- a/maven-plugin-annotations/src/main/java/org/apache/maven/plugins/annotations/Component.java +++ b/maven-plugin-annotations/src/main/java/org/apache/maven/plugins/annotations/Component.java @@ -32,7 +32,7 @@ import java.lang.annotation.Target; */ @Documented @Retention( RetentionPolicy.CLASS ) -@Target( { ElementType.FIELD, ElementType.METHOD } ) +@Target( { ElementType.FIELD } ) @Inherited public @interface Component { diff --git a/maven-plugin-annotations/src/main/java/org/apache/maven/plugins/annotations/Parameter.java b/maven-plugin-annotations/src/main/java/org/apache/maven/plugins/annotations/Parameter.java index 60f3429..b9da288 100644 --- a/maven-plugin-annotations/src/main/java/org/apache/maven/plugins/annotations/Parameter.java +++ b/maven-plugin-annotations/src/main/java/org/apache/maven/plugins/annotations/Parameter.java @@ -32,7 +32,7 @@ import java.lang.annotation.Target; */ @Documented @Retention( RetentionPolicy.CLASS ) -@Target( { ElementType.FIELD, ElementType.METHOD } ) +@Target( { ElementType.FIELD } ) @Inherited public @interface Parameter {