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 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
      • getMojoExecution

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