package org.apache.maven.api.plugin.annotations;

/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import org.apache.maven.api.annotations.Experimental;

/**
 * Used if your Mojo needs to fork a <a href="/ref/3.0.4/maven-core/lifecycles.html">lifecycle</a>.
 *
 * @since 4.0
 */
@Experimental
@Documented
@Retention( RetentionPolicy.CLASS )
@Target( ElementType.TYPE )
@Inherited
public @interface Execute
{
    /**
     * lifecycle phase to fork. Note that specifying a phase overrides specifying a goal.
     * @return the phase
     */
    LifecyclePhase phase() default LifecyclePhase.NONE;

    /**
     * goal to fork. Note that specifying a phase overrides specifying a goal. The specified <code>goal</code> must be
     * another goal of the same plugin.
     * @return the goal
     */
    String goal() default "";

    /**
     * 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 "";
}

@@ -1409,33 +1409,33 @@
 %0A    /**%0A     * 
-l
+L
 ifecycle phase t
@@ -1511,107 +1511,633 @@
   * 
-@return the phase%0A     */%0A    LifecyclePhase phase() default LifecyclePhase.NONE;%0A%0A    /**%0A     * g
+For custom lifecycle phase ids use %7B@link #customPhase()%7D instead.%0A     * Only one of %7B@link #customPhase()%7D and %7B@link #phase()%7D must be set.%0A     * @return the phase%0A     */%0A    LifecyclePhase phase() default LifecyclePhase.NONE;%0A%0A    /**%0A     * Custom lifecycle phase to fork. Note that specifying a phase overrides specifying a goal.%0A     * This element should only be used for non-standard phases. For standard phases rather use %7B@link #phase()%7D.%0A     * Only one of %7B@link #customPhase()%7D and %7B@link #phase()%7D must be set.%0A     * @return the custom phase id%0A     */%0A    String customPhase() default %22%22;%0A%0A    /**%0A     * G
 oal 
@@ -2361,17 +2361,17 @@
 %0A     * 
-l
+L
 ifecycle

Support custom lifecycle phase ids in Execute annotation (#865)