Package org.apache.maven.cli.event
Class ExecutionEventLogger
java.lang.Object
org.apache.maven.execution.AbstractExecutionListener
org.apache.maven.cli.event.ExecutionEventLogger
- All Implemented Interfaces:
org.apache.maven.execution.ExecutionListener
public class ExecutionEventLogger
extends org.apache.maven.execution.AbstractExecutionListener
Logs execution events to logger, eventually user-supplied.
- Author:
- Benjamin Bentmann
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
forkedProjectStarted
(org.apache.maven.execution.ExecutionEvent event) void
forkStarted
(org.apache.maven.execution.ExecutionEvent event) >>> mojo-artifactId:version:goal (mojo-executionId) > :forked-goal @ project-artifactId >>>void
forkSucceeded
(org.apache.maven.execution.ExecutionEvent event) <<< mojo-artifactId:version:goal (mojo-executionId) < :forked-goal @ project-artifactId <<<void
mojoSkipped
(org.apache.maven.execution.ExecutionEvent event) void
mojoStarted
(org.apache.maven.execution.ExecutionEvent event) --- mojo-artifactId:version:goal (mojo-executionId) @ project-artifactId ---void
projectDiscoveryStarted
(org.apache.maven.execution.ExecutionEvent event) void
projectSkipped
(org.apache.maven.execution.ExecutionEvent event) void
projectStarted
(org.apache.maven.execution.ExecutionEvent event) void
sessionEnded
(org.apache.maven.execution.ExecutionEvent event) void
sessionStarted
(org.apache.maven.execution.ExecutionEvent event) Methods inherited from class org.apache.maven.execution.AbstractExecutionListener
forkedProjectFailed, forkedProjectSucceeded, forkFailed, mojoFailed, mojoSucceeded, projectFailed, projectSucceeded
-
Constructor Details
-
ExecutionEventLogger
public ExecutionEventLogger() -
ExecutionEventLogger
public ExecutionEventLogger(org.slf4j.Logger logger)
-
-
Method Details
-
projectDiscoveryStarted
public void projectDiscoveryStarted(org.apache.maven.execution.ExecutionEvent event) - Specified by:
projectDiscoveryStarted
in interfaceorg.apache.maven.execution.ExecutionListener
- Overrides:
projectDiscoveryStarted
in classorg.apache.maven.execution.AbstractExecutionListener
-
sessionStarted
public void sessionStarted(org.apache.maven.execution.ExecutionEvent event) - Specified by:
sessionStarted
in interfaceorg.apache.maven.execution.ExecutionListener
- Overrides:
sessionStarted
in classorg.apache.maven.execution.AbstractExecutionListener
-
sessionEnded
public void sessionEnded(org.apache.maven.execution.ExecutionEvent event) - Specified by:
sessionEnded
in interfaceorg.apache.maven.execution.ExecutionListener
- Overrides:
sessionEnded
in classorg.apache.maven.execution.AbstractExecutionListener
-
projectSkipped
public void projectSkipped(org.apache.maven.execution.ExecutionEvent event) - Specified by:
projectSkipped
in interfaceorg.apache.maven.execution.ExecutionListener
- Overrides:
projectSkipped
in classorg.apache.maven.execution.AbstractExecutionListener
-
projectStarted
public void projectStarted(org.apache.maven.execution.ExecutionEvent event) - Specified by:
projectStarted
in interfaceorg.apache.maven.execution.ExecutionListener
- Overrides:
projectStarted
in classorg.apache.maven.execution.AbstractExecutionListener
-
mojoSkipped
public void mojoSkipped(org.apache.maven.execution.ExecutionEvent event) - Specified by:
mojoSkipped
in interfaceorg.apache.maven.execution.ExecutionListener
- Overrides:
mojoSkipped
in classorg.apache.maven.execution.AbstractExecutionListener
-
mojoStarted
public void mojoStarted(org.apache.maven.execution.ExecutionEvent event) --- mojo-artifactId:version:goal (mojo-executionId) @ project-artifactId ---
- Specified by:
mojoStarted
in interfaceorg.apache.maven.execution.ExecutionListener
- Overrides:
mojoStarted
in classorg.apache.maven.execution.AbstractExecutionListener
-
forkStarted
public void forkStarted(org.apache.maven.execution.ExecutionEvent event) >>> mojo-artifactId:version:goal (mojo-executionId) > :forked-goal @ project-artifactId >>>
>>> mojo-artifactId:version:goal (mojo-executionId) > [lifecycle]phase @ project-artifactId >>>
- Specified by:
forkStarted
in interfaceorg.apache.maven.execution.ExecutionListener
- Overrides:
forkStarted
in classorg.apache.maven.execution.AbstractExecutionListener
-
forkSucceeded
public void forkSucceeded(org.apache.maven.execution.ExecutionEvent event) <<< mojo-artifactId:version:goal (mojo-executionId) < :forked-goal @ project-artifactId <<<
<<< mojo-artifactId:version:goal (mojo-executionId) < [lifecycle]phase @ project-artifactId <<<
- Specified by:
forkSucceeded
in interfaceorg.apache.maven.execution.ExecutionListener
- Overrides:
forkSucceeded
in classorg.apache.maven.execution.AbstractExecutionListener
-
forkedProjectStarted
public void forkedProjectStarted(org.apache.maven.execution.ExecutionEvent event) - Specified by:
forkedProjectStarted
in interfaceorg.apache.maven.execution.ExecutionListener
- Overrides:
forkedProjectStarted
in classorg.apache.maven.execution.AbstractExecutionListener
-