Class AbstractProcessMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.github.veithen.alta.AbstractProcessMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
AbstractGenerateMojo, CopyMojo

public abstract class AbstractProcessMojo extends org.apache.maven.plugin.AbstractMojo
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.apache.maven.project.MavenProject
     

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

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected static Template<com.github.veithen.alta.Context>
    compileTemplate(String template, String name)
     
    protected static String
    evaluateTemplate(Template<com.github.veithen.alta.Context> template, org.apache.maven.artifact.Artifact artifact)
     
    final void
     
    protected abstract void
    process(List<org.apache.maven.artifact.Artifact> artifacts)
     

    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 Details

    • project

      @Parameter(property="project", readonly=true, required=true) protected org.apache.maven.project.MavenProject project
  • Constructor Details

    • AbstractProcessMojo

      public AbstractProcessMojo()
  • Method Details

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

      protected abstract void process(List<org.apache.maven.artifact.Artifact> artifacts) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException
    • compileTemplate

      protected static Template<com.github.veithen.alta.Context> compileTemplate(String template, String name) throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • evaluateTemplate

      protected static String evaluateTemplate(Template<com.github.veithen.alta.Context> template, org.apache.maven.artifact.Artifact artifact) throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException