Class 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 mavenSession
      The current Maven session.
      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void afterProjectsRead​(org.apache.maven.execution.MavenSession session)  
      void execute()  
      org.apache.maven.plugin.logging.Log getLog()  
      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 Detail

      • mavenSession

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

      • JUnitPlatformMojo

        public JUnitPlatformMojo()
    • Method Detail

      • 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