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