From 6ba823511188bd9e71f677655dcffef4b1ee1420 Mon Sep 17 00:00:00 2001 From: Konrad Windszus Date: Sat, 10 Aug 2024 11:45:01 +0200 Subject: [PATCH] [MPLUGIN-530] Deprecate o.a.m.plugins.annotations.Component Recommend using JSR 330 annotations instead --- .../java/org/apache/maven/plugins/annotations/Component.java | 2 ++ 1 file changed, 2 insertions(+) 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 1ea30069..7cea6f0c 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,11 +32,13 @@ * * @author Olivier Lamy * @since 3.0 + * @deprecated Use JSR 330 annotations or {@link Parameter} with according default expressions instead. */ @Documented @Retention(RetentionPolicy.CLASS) @Target({ElementType.FIELD}) @Inherited +@Deprecated public @interface Component { /** * role of the component to inject.