Class AbstractJacocoMojo

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.apache.maven.project.MavenProject project
      Maven project.
      private boolean skip
      Flag used to suppress execution.
      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()  
      protected abstract void executeMojo()
      Executes Mojo.
      protected org.apache.maven.project.MavenProject getProject()  
      protected void skipMojo()
      Skips Mojo.
      • 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
    • Field Detail

      • project

        @Parameter(property="project",
                   readonly=true)
        private org.apache.maven.project.MavenProject project
        Maven project.
      • skip

        @Parameter(property="jacoco.skip",
                   defaultValue="false")
        private boolean skip
        Flag used to suppress execution.
    • Constructor Detail

      • AbstractJacocoMojo

        public AbstractJacocoMojo()
    • Method Detail

      • execute

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

        protected abstract void executeMojo()
                                     throws org.apache.maven.plugin.MojoExecutionException,
                                            org.apache.maven.plugin.MojoFailureException
        Executes Mojo.
        Throws:
        org.apache.maven.plugin.MojoExecutionException - if an unexpected problem occurs. Throwing this exception causes a "BUILD ERROR" message to be displayed.
        org.apache.maven.plugin.MojoFailureException - if an expected problem (such as a compilation failure) occurs. Throwing this exception causes a "BUILD FAILURE" message to be displayed.
      • skipMojo

        protected void skipMojo()
        Skips Mojo.
      • getProject

        protected final org.apache.maven.project.MavenProject getProject()
        Returns:
        Maven project