1 package org.apache.maven.demo.extension;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import org.apache.maven.AbstractMavenLifecycleParticipant;
23 import org.apache.maven.MavenExecutionException;
24 import org.apache.maven.execution.MavenSession;
25 import org.codehaus.plexus.component.annotations.Component;
26
27
28
29
30
31
32 @Component( role = AbstractMavenLifecycleParticipant.class, hint = "demo-plexus" )
33 public class LifecycleParticipantDemoPlexus
34 extends AbstractMavenLifecycleParticipant
35 {
36 public void afterProjectsRead( MavenSession session )
37 throws MavenExecutionException
38 {
39 System.err.println( "LifecycleParticipantDemoPlexus afterProjectsRead" );
40 }
41
42 public void afterSessionStart( MavenSession session )
43 throws MavenExecutionException
44 {
45 System.err.println( "LifecycleParticipantDemoPlexus afterSessionStart" );
46 }
47
48
49
50
51 public void afterSessionEnd( MavenSession session )
52 throws MavenExecutionException
53 {
54 System.err.println( "LifecycleParticipantDemoPlexus afterSessionEnd" );
55 }
56 }