From 9d1289e02f4c1f0a2b6b2598f2cfd5f01460fa22 Mon Sep 17 00:00:00 2001 From: Maarten Mulders Date: Sun, 22 Nov 2020 09:27:09 +0100 Subject: [PATCH] [MPLUGIN-367] Improve @Execute(lifecycle...) docs (#30) * [MPLUGIN-367] Improve @Execute(lifecycle...) docs * Improve docs to emphasise the semantics of @Execute(lifecycle...) * Add reference to lifecycle mapping doc * Of course it should be https --- .../java/org/apache/maven/plugins/annotations/Execute.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/maven-plugin-annotations/src/main/java/org/apache/maven/plugins/annotations/Execute.java b/maven-plugin-annotations/src/main/java/org/apache/maven/plugins/annotations/Execute.java index e08a7e638..1482d04e5 100644 --- a/maven-plugin-annotations/src/main/java/org/apache/maven/plugins/annotations/Execute.java +++ b/maven-plugin-annotations/src/main/java/org/apache/maven/plugins/annotations/Execute.java @@ -52,7 +52,10 @@ String goal() default ""; /** - * lifecycle id to fork. + * lifecycle id of the lifecycle that defines {@link #phase()}. Only valid in combination with {@link #phase()}. If + * not specified, Maven will use the lifecycle of the current build. + * + * @see Lifecycle Mappings * @return the lifecycle id */ String lifecycle() default "";