Class TestInstrumentMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="test-instrument",
          defaultPhase=PROCESS_TEST_CLASSES,
          requiresDependencyResolution=COMPILE)
    public final class TestInstrumentMojo
    extends AbstractInstrumentMojo
    Mojo to run coroutine instrumentation. Instruments test classes.

    Sample usage in POM:

         <build>
             <plugins>
                 <plugin>
                     <groupId>com.offbynull.coroutines</groupId>
                     <artifactId>maven-plugin</artifactId>
                     <version>LATEST VERSION HERE</version>
                     <executions>
                         <execution>
                             <goals>
                                 <goal>test-instrument</goal>
                             </goals>
                         </execution>
                     </executions>
                 </plugin>
             </plugins>
         </build>
     
    or directly call the goal instrument (e.g. mvn coroutine:test-instrument)
    • Field Summary

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

        ROLE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()  
      • Methods inherited from class org.apache.maven.plugin.AbstractMojo

        getLog, getPluginContext, setLog, setPluginContext
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TestInstrumentMojo

        public TestInstrumentMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException,
                            org.apache.maven.plugin.MojoFailureException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException