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