001package org.apache.maven.execution;
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 * Defines events that Maven fires during a build. <strong>Warning:</strong> This interface might be extended in future
024 * Maven versions to support further events. Hence it is strongly recommended to derive custom listeners from
025 * {@link AbstractExecutionListener} in order to avoid interoperability problems.
026 * 
027 * @author Benjamin Bentmann
028 */
029public interface ExecutionListener
030{
031
032    void projectDiscoveryStarted( ExecutionEvent event );
033
034    void sessionStarted( ExecutionEvent event );
035
036    void sessionEnded( ExecutionEvent event );
037
038    void projectSkipped( ExecutionEvent event );
039
040    void projectStarted( ExecutionEvent event );
041
042    void projectSucceeded( ExecutionEvent event );
043
044    void projectFailed( ExecutionEvent event );
045
046    void mojoSkipped( ExecutionEvent event );
047
048    void mojoStarted( ExecutionEvent event );
049
050    void mojoSucceeded( ExecutionEvent event );
051
052    void mojoFailed( ExecutionEvent event );
053
054    void forkStarted( ExecutionEvent event );
055
056    void forkSucceeded( ExecutionEvent event );
057
058    void forkFailed( ExecutionEvent event );
059
060    void forkedProjectStarted( ExecutionEvent event );
061
062    void forkedProjectSucceeded( ExecutionEvent event );
063
064    void forkedProjectFailed( ExecutionEvent event );
065
066}