[maven-plugin-tools] branch master updated: [MPLUGIN-367] Improve @Execute(lifecycle...) docs (#30)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[maven-plugin-tools] branch master updated: [MPLUGIN-367] Improve @Execute(lifecycle...) docs (#30)

mthmulders
This is an automated email from the ASF dual-hosted git repository.

mthmulders pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-plugin-tools.git


The following commit(s) were added to refs/heads/master by this push:
     new 9d1289e  [MPLUGIN-367] Improve @Execute(lifecycle...) docs (#30)
9d1289e is described below

commit 9d1289e02f4c1f0a2b6b2598f2cfd5f01460fa22
Author: Maarten Mulders <[hidden email]>
AuthorDate: Sun Nov 22 09:27:09 2020 +0100

    [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
---
 .../src/main/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 e08a7e6..1482d04 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 @@ public @interface Execute
     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 <a href="https://maven.apache.org/maven-plugin-api/lifecycle-mappings.html">Lifecycle Mappings</a>
      * @return the lifecycle id
      */
     String lifecycle() default "";