001/*
002 * Licensed to the Apache Software Foundation (ASF) under one
003 * or more contributor license agreements.  See the NOTICE file
004 * distributed with this work for additional information
005 * regarding copyright ownership.  The ASF licenses this file
006 * to you under the Apache License, Version 2.0 (the
007 * "License"); you may not use this file except in compliance
008 * with the License.  You may obtain a copy of the License at
009 *
010 *   http://www.apache.org/licenses/LICENSE-2.0
011 *
012 * Unless required by applicable law or agreed to in writing,
013 * software distributed under the License is distributed on an
014 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
015 * KIND, either express or implied.  See the License for the
016 * specific language governing permissions and limitations
017 * under the License.
018 */
019package org.apache.maven.plugins.annotations;
020
021/**
022 * <a href="/ref/3.0.4/maven-core/lifecycles.html">Lifecycle phases</a>.
023 * @author Olivier Lamy
024 * @since 3.0
025 */
026public enum LifecyclePhase {
027    VALIDATE("validate"),
028    INITIALIZE("initialize"),
029    GENERATE_SOURCES("generate-sources"),
030    PROCESS_SOURCES("process-sources"),
031    GENERATE_RESOURCES("generate-resources"),
032    PROCESS_RESOURCES("process-resources"),
033    COMPILE("compile"),
034    PROCESS_CLASSES("process-classes"),
035    GENERATE_TEST_SOURCES("generate-test-sources"),
036    PROCESS_TEST_SOURCES("process-test-sources"),
037    GENERATE_TEST_RESOURCES("generate-test-resources"),
038    PROCESS_TEST_RESOURCES("process-test-resources"),
039    TEST_COMPILE("test-compile"),
040    PROCESS_TEST_CLASSES("process-test-classes"),
041    TEST("test"),
042    PREPARE_PACKAGE("prepare-package"),
043    PACKAGE("package"),
044    PRE_INTEGRATION_TEST("pre-integration-test"),
045    INTEGRATION_TEST("integration-test"),
046    POST_INTEGRATION_TEST("post-integration-test"),
047    VERIFY("verify"),
048    INSTALL("install"),
049    DEPLOY("deploy"),
050
051    PRE_CLEAN("pre-clean"),
052    CLEAN("clean"),
053    POST_CLEAN("post-clean"),
054
055    PRE_SITE("pre-site"),
056    SITE("site"),
057    POST_SITE("post-site"),
058    SITE_DEPLOY("site-deploy"),
059
060    NONE("");
061
062    private final String id;
063
064    LifecyclePhase(String id) {
065        this.id = id;
066    }
067
068    public String id() {
069        return this.id;
070    }
071}