Class AbstractVersionsDisplayMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.versions.AbstractVersionsUpdaterMojo
org.codehaus.mojo.versions.AbstractVersionsDisplayMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
DisplayDependencyUpdatesMojo, DisplayExtensionUpdatesMojo, DisplayParentUpdatesMojo, DisplayPluginUpdatesMojo, DisplayPropertyUpdatesMojo

public abstract class AbstractVersionsDisplayMojo extends AbstractVersionsUpdaterMojo
Abstract base class for the Display___ mojos.
Author:
Stephen Connolly
  • Field Details

    • outputFile

      @Parameter(property="versions.outputFile") protected File outputFile
      If specified then the display output will be sent to the specified file.
      Since:
      2.2
    • logOutput

      @Parameter(property="versions.logOutput", defaultValue="true") protected boolean logOutput
      Controls whether the display output is logged to the console.
      Since:
      2.2
    • outputEncoding

      @Parameter(property="outputEncoding", defaultValue="${project.reporting.outputEncoding}") protected String outputEncoding
      The character encoding to use when writing to outputFile.
      Since:
      2.2
    • outputLineWidth

      @Parameter(property="versions.outputLineWidth", defaultValue="80") protected int outputLineWidth
      Line width which should be used to format the padding of the version info list output.
      Since:
      2.10.0
  • Constructor Details

    • AbstractVersionsDisplayMojo

      @Inject protected AbstractVersionsDisplayMojo(org.apache.maven.artifact.handler.manager.ArtifactHandlerManager artifactHandlerManager, org.eclipse.aether.RepositorySystem repositorySystem, Map<String,org.apache.maven.wagon.Wagon> wagonMap, Map<String,ChangeRecorder> changeRecorders)
  • Method Details

    • logInit

      protected void logInit()
    • logLine

      protected void logLine(boolean error, String line)
    • getOutputLineWidthOffset

      protected int getOutputLineWidthOffset()
      Returns:
      Offset of the configured output line width compared to the default with of 80.