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.plugins.annotations;
20  
21  /**
22   * <a href="/ref/3.0.4/maven-core/lifecycles.html">Lifecycle phases</a>.
23   * @author Olivier Lamy
24   * @since 3.0
25   */
26  public enum LifecyclePhase {
27      VALIDATE("validate"),
28      INITIALIZE("initialize"),
29      GENERATE_SOURCES("generate-sources"),
30      PROCESS_SOURCES("process-sources"),
31      GENERATE_RESOURCES("generate-resources"),
32      PROCESS_RESOURCES("process-resources"),
33      COMPILE("compile"),
34      PROCESS_CLASSES("process-classes"),
35      GENERATE_TEST_SOURCES("generate-test-sources"),
36      PROCESS_TEST_SOURCES("process-test-sources"),
37      GENERATE_TEST_RESOURCES("generate-test-resources"),
38      PROCESS_TEST_RESOURCES("process-test-resources"),
39      TEST_COMPILE("test-compile"),
40      PROCESS_TEST_CLASSES("process-test-classes"),
41      TEST("test"),
42      PREPARE_PACKAGE("prepare-package"),
43      PACKAGE("package"),
44      PRE_INTEGRATION_TEST("pre-integration-test"),
45      INTEGRATION_TEST("integration-test"),
46      POST_INTEGRATION_TEST("post-integration-test"),
47      VERIFY("verify"),
48      INSTALL("install"),
49      DEPLOY("deploy"),
50  
51      PRE_CLEAN("pre-clean"),
52      CLEAN("clean"),
53      POST_CLEAN("post-clean"),
54  
55      PRE_SITE("pre-site"),
56      SITE("site"),
57      POST_SITE("post-site"),
58      SITE_DEPLOY("site-deploy"),
59  
60      NONE("");
61  
62      private final String id;
63  
64      LifecyclePhase(String id) {
65          this.id = id;
66      }
67  
68      public String id() {
69          return this.id;
70      }
71  }