View Javadoc
1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License.  You may obtain a copy of the License at
9    *
10   *   http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing,
13   * software distributed under the License is distributed on an
14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   * KIND, either express or implied.  See the License for the
16   * specific language governing permissions and limitations
17   * under the License.
18   */
19  package org.apache.maven.api.plugin.annotations;
20  
21  import org.apache.maven.api.annotations.Experimental;
22  
23  /**
24   * <a href="/ref/3.0.4/maven-core/lifecycles.html">Lifecycle phases</a>.
25   *
26   * @since 4.0
27   */
28  @Experimental
29  public enum LifecyclePhase {
30      VALIDATE("validate"),
31      INITIALIZE("initialize"),
32      GENERATE_SOURCES("generate-sources"),
33      PROCESS_SOURCES("process-sources"),
34      GENERATE_RESOURCES("generate-resources"),
35      PROCESS_RESOURCES("process-resources"),
36      COMPILE("compile"),
37      PROCESS_CLASSES("process-classes"),
38      GENERATE_TEST_SOURCES("generate-test-sources"),
39      PROCESS_TEST_SOURCES("process-test-sources"),
40      GENERATE_TEST_RESOURCES("generate-test-resources"),
41      PROCESS_TEST_RESOURCES("process-test-resources"),
42      TEST_COMPILE("test-compile"),
43      PROCESS_TEST_CLASSES("process-test-classes"),
44      TEST("test"),
45      PREPARE_PACKAGE("prepare-package"),
46      PACKAGE("package"),
47      PRE_INTEGRATION_TEST("pre-integration-test"),
48      INTEGRATION_TEST("integration-test"),
49      POST_INTEGRATION_TEST("post-integration-test"),
50      VERIFY("verify"),
51      INSTALL("install"),
52      DEPLOY("deploy"),
53  
54      PRE_CLEAN("pre-clean"),
55      CLEAN("clean"),
56      POST_CLEAN("post-clean"),
57  
58      PRE_SITE("pre-site"),
59      SITE("site"),
60      POST_SITE("post-site"),
61      SITE_DEPLOY("site-deploy"),
62  
63      NONE("");
64  
65      private final String id;
66  
67      LifecyclePhase(String id) {
68          this.id = id;
69      }
70  
71      public String id() {
72          return this.id;
73      }
74  }