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.lifecycle.providers.lifecycle;
20  
21  import javax.inject.Named;
22  import javax.inject.Singleton;
23  
24  /**
25   * Default lifecycle provider.
26   *
27   * @since 3.10.0
28   */
29  @Singleton
30  @Named(DefaultLifecycleProvider.NAME)
31  public class DefaultLifecycleProvider extends AbstractLifecycleProvider {
32      public static final String NAME = "default";
33  
34      // START SNIPPET: default
35      private static final String[] PHASES = {
36          "validate",
37          "initialize",
38          "generate-sources",
39          "process-sources",
40          "generate-resources",
41          "process-resources",
42          "compile",
43          "process-classes",
44          "generate-test-sources",
45          "process-test-sources",
46          "generate-test-resources",
47          "process-test-resources",
48          "test-compile",
49          "process-test-classes",
50          "test",
51          "prepare-package",
52          "package",
53          "pre-integration-test",
54          "integration-test",
55          "post-integration-test",
56          "verify",
57          "install",
58          "deploy"
59      };
60      // END SNIPPET: default
61  
62      private static final String[] PLUGIN_BINDINGS = {};
63  
64      public DefaultLifecycleProvider() {
65          super(NAME, PHASES, PLUGIN_BINDINGS);
66      }
67  }