Class JUnitPlatformMojo
java.lang.Object
org.apache.maven.AbstractMavenLifecycleParticipant
de.sormuras.junit.platform.maven.plugin.JUnitPlatformMojo
- All Implemented Interfaces:
org.apache.maven.plugin.Mojo
@Mojo(name="launch",
defaultPhase=TEST,
threadSafe=true,
requiresDependencyCollection=TEST,
requiresDependencyResolution=TEST)
@Component(role=org.apache.maven.AbstractMavenLifecycleParticipant.class)
public class JUnitPlatformMojo
extends org.apache.maven.AbstractMavenLifecycleParticipant
implements org.apache.maven.plugin.Mojo
Launch JUnit Platform Mojo.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.maven.execution.MavenSessionThe current Maven session.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterProjectsRead(org.apache.maven.execution.MavenSession session)voidexecute()org.apache.maven.plugin.logging.LoggetLog()org.apache.maven.plugin.MojoExecutionvoidsetLog(org.apache.maven.plugin.logging.Log log)Methods inherited from class org.apache.maven.AbstractMavenLifecycleParticipant
afterSessionEnd, afterSessionStart
-
Field Details
-
mavenSession
@Parameter(defaultValue="${session}", readonly=true) protected org.apache.maven.execution.MavenSession mavenSessionThe current Maven session.
-
-
Constructor Details
-
JUnitPlatformMojo
public JUnitPlatformMojo()
-
-
Method Details
-
setLog
public void setLog(org.apache.maven.plugin.logging.Log log)- Specified by:
setLogin interfaceorg.apache.maven.plugin.Mojo
-
getLog
public org.apache.maven.plugin.logging.Log getLog()- Specified by:
getLogin interfaceorg.apache.maven.plugin.Mojo
-
afterProjectsRead
public void afterProjectsRead(org.apache.maven.execution.MavenSession session)- Overrides:
afterProjectsReadin classorg.apache.maven.AbstractMavenLifecycleParticipant
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Specified by:
executein interfaceorg.apache.maven.plugin.Mojo- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
getMojoExecution
public org.apache.maven.plugin.MojoExecution getMojoExecution()
-