1 package org.apache.maven.execution; 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 /** 23 * Defines events that Maven fires during a build. <strong>Warning:</strong> This interface might be extended in future 24 * Maven versions to support further events. Hence it is strongly recommended to derive custom listeners from 25 * {@link AbstractExecutionListener} in order to avoid interoperability problems. 26 * 27 * @author Benjamin Bentmann 28 */ 29 public interface ExecutionListener 30 { 31 32 void projectDiscoveryStarted( ExecutionEvent event ); 33 34 void sessionStarted( ExecutionEvent event ); 35 36 void sessionEnded( ExecutionEvent event ); 37 38 void projectSkipped( ExecutionEvent event ); 39 40 void projectStarted( ExecutionEvent event ); 41 42 void projectSucceeded( ExecutionEvent event ); 43 44 void projectFailed( ExecutionEvent event ); 45 46 void mojoSkipped( ExecutionEvent event ); 47 48 void mojoStarted( ExecutionEvent event ); 49 50 void mojoSucceeded( ExecutionEvent event ); 51 52 void mojoFailed( ExecutionEvent event ); 53 54 void forkStarted( ExecutionEvent event ); 55 56 void forkSucceeded( ExecutionEvent event ); 57 58 void forkFailed( ExecutionEvent event ); 59 60 void forkedProjectStarted( ExecutionEvent event ); 61 62 void forkedProjectSucceeded( ExecutionEvent event ); 63 64 void forkedProjectFailed( ExecutionEvent event ); 65 66 }