Package com.github.veithen.alta
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
FieldsFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static Template<com.github.veithen.alta.Context>compileTemplate(String template, String name) protected static StringevaluateTemplate(Template<com.github.veithen.alta.Context> template, org.apache.maven.artifact.Artifact artifact) final voidexecute()protected abstract voidMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
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.MojoExecutionExceptionorg.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.MojoExecutionExceptionorg.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
-