View Javadoc
1   package org.apache.maven.plugins.annotations;
2   
3   /*
4    * Licensed to the Apache Software Foundation (ASF) under one
5    * or more contributor license agreements.  See the NOTICE file
6    * distributed with this work for additional information
7    * regarding copyright ownership.  The ASF licenses this file
8    * to you under the Apache License, Version 2.0 (the
9    * "License"); you may not use this file except in compliance
10   * with the License.  You may obtain a copy of the License at
11   *
12   *   http://www.apache.org/licenses/LICENSE-2.0
13   *
14   * Unless required by applicable law or agreed to in writing,
15   * software distributed under the License is distributed on an
16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17   * KIND, either express or implied.  See the License for the
18   * specific language governing permissions and limitations
19   * under the License.
20   */
21  
22  /**
23   * <a href="/ref/3.0.4/maven-core/lifecycles.html">Lifecycle phases</a>.
24   * @author Olivier Lamy
25   * @since 3.0
26   */
27  public enum LifecyclePhase
28  {
29  
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      {
69          this.id = id;
70      }
71  
72      public String id()
73      {
74          return this.id;
75      }
76  
77  }