Class AbstractFlattenMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.flatten.AbstractFlattenMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
CleanMojo, FlattenMojo

public abstract class AbstractFlattenMojo extends org.apache.maven.plugin.AbstractMojo
This is the abstract base class for MOJOs that realize the different goals of this plugin.
  • Field Details

    • outputDirectory

      @Parameter(defaultValue="${project.basedir}") private File outputDirectory
      The directory where the generated flattened POM file will be written to.
    • flattenedPomFilename

      @Parameter(property="flattenedPomFilename", defaultValue=".flattened-pom.xml") private String flattenedPomFilename
      The filename of the generated flattened POM file.
    • skip

      @Parameter(property="flatten.skip", defaultValue="false") private boolean skip
      If true the plugin will be skipped.
      Since:
      1.6.0
  • Constructor Details

    • AbstractFlattenMojo

      public AbstractFlattenMojo()
      The constructor.
  • Method Details

    • getFlattenedPomFilename

      public String getFlattenedPomFilename()
      Returns:
      the filename of the generated flattened POM file.
    • getOutputDirectory

      public File getOutputDirectory()
      Returns:
      the directory where the generated flattened POM file will be written to.
    • getFlattenedPomFile

      protected File getFlattenedPomFile()
      Returns:
      a File instance pointing to the flattened POM.
    • shouldSkip

      protected boolean shouldSkip()
    • shouldSkipGoal

      protected abstract boolean shouldSkipGoal()