Class AbstractRPMMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
    Direct Known Subclasses:
    AttachedRPMMojo, RPMMojo

    public abstract class AbstractRPMMojo
    extends org.apache.maven.plugin.AbstractMojo
    Abstract base class for building RPMs.
    Author:
    Carlos, Brett Okken, Cerner Corp.
    • Field Detail

      • project

        @Parameter(defaultValue="${project}",
                   readonly=true,
                   required=true)
        protected org.apache.maven.project.MavenProject project
    • Constructor Detail

      • AbstractRPMMojo

        public AbstractRPMMojo()
    • Method Detail

      • execute

        public final void execute()
                           throws org.apache.maven.plugin.MojoExecutionException,
                                  org.apache.maven.plugin.MojoFailureException
        Specified by:
        execute in interface org.apache.maven.plugin.Mojo
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException
      • afterExecution

        protected void afterExecution()
                               throws org.apache.maven.plugin.MojoExecutionException,
                                      org.apache.maven.plugin.MojoFailureException
        Will be called on completion of execute(). Provides subclasses an opportunity to perform any post execution logic (such as attaching an artifact).
        Throws:
        org.apache.maven.plugin.MojoExecutionException - If an error occurs.
        org.apache.maven.plugin.MojoFailureException - If failure occurs.
      • getRPMFile

        protected File getRPMFile()
        Returns the generated rpm File.
        Returns:
        The generated rpm File.
      • getRelease

        public final String getRelease()
        Returns:
        Returns the release.
      • getBuildTimestamp

        public Date getBuildTimestamp()
      • getVersion

        public final String getVersion()