Package org.jreleaser.maven.plugin
Class JReleaserTemplateMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.jreleaser.maven.plugin.JReleaserTemplateMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="template") public class JReleaserTemplateMojo extends org.apache.maven.plugin.AbstractMojoGenerate a packager/announcer template.- Since:
- 0.1.0
- Author:
- Andres Almiray
-
-
Field Summary
Fields Modifier and Type Field Description protected java.io.FileoutputDirectoryprotected org.apache.maven.project.MavenProjectprojectThe project whose model will be checked.
-
Constructor Summary
Constructors Constructor Description JReleaserTemplateMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.io.PrintWritercreateTracer()voidexecute()protected org.jreleaser.util.JReleaserLoggergetLogger()
-
-
-
Field Detail
-
project
@Parameter(defaultValue="${project}", readonly=true, required=true) protected org.apache.maven.project.MavenProject projectThe project whose model will be checked.
-
outputDirectory
@Parameter(property="jreleaser.output.directory", defaultValue="${project.build.directory}/jreleaser") protected java.io.File outputDirectory
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
getLogger
protected org.jreleaser.util.JReleaserLogger getLogger() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
createTracer
protected java.io.PrintWriter createTracer() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
-