Class 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.AbstractMojo
    Generate a packager/announcer template.
    Since:
    0.1.0
    Author:
    Andres Almiray
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.io.File outputDirectory  
      protected org.apache.maven.project.MavenProject project
      The project whose model will be checked.
      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.io.PrintWriter createTracer()  
      void execute()  
      protected org.jreleaser.util.JReleaserLogger getLogger()  
      • 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(defaultValue="${project}",
                   readonly=true,
                   required=true)
        protected org.apache.maven.project.MavenProject project
        The project whose model will be checked.
      • outputDirectory

        @Parameter(property="jreleaser.output.directory",
                   defaultValue="${project.build.directory}/jreleaser")
        protected java.io.File outputDirectory
    • Constructor Detail

      • JReleaserTemplateMojo

        public JReleaserTemplateMojo()
    • 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
      • 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