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

    Fields
    Modifier and Type
    Field
    Description
    protected org.apache.maven.execution.MavenSession
    The current Maven session.

    Fields inherited from interface org.apache.maven.plugin.Mojo

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    afterProjectsRead​(org.apache.maven.execution.MavenSession session)
     
    void
     
    org.apache.maven.plugin.logging.Log
     
    org.apache.maven.plugin.MojoExecution
     
    void
    setLog​(org.apache.maven.plugin.logging.Log log)
     

    Methods inherited from class org.apache.maven.AbstractMavenLifecycleParticipant

    afterSessionEnd, afterSessionStart

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • mavenSession

      @Parameter(defaultValue="${session}", readonly=true) protected org.apache.maven.execution.MavenSession mavenSession
      The current Maven session.
  • Constructor Details

    • JUnitPlatformMojo

      public JUnitPlatformMojo()
  • Method Details

    • setLog

      public void setLog(org.apache.maven.plugin.logging.Log log)
      Specified by:
      setLog in interface org.apache.maven.plugin.Mojo
    • getLog

      public org.apache.maven.plugin.logging.Log getLog()
      Specified by:
      getLog in interface org.apache.maven.plugin.Mojo
    • afterProjectsRead

      public void afterProjectsRead(org.apache.maven.execution.MavenSession session)
      Overrides:
      afterProjectsRead in class org.apache.maven.AbstractMavenLifecycleParticipant
    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Specified by:
      execute in interface org.apache.maven.plugin.Mojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException
    • getMojoExecution

      public org.apache.maven.plugin.MojoExecution getMojoExecution()