Package org.codehaus.mojo.versions
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
Abstract base class for the Display___ mojos.
- Author:
- Stephen Connolly
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanControls whether the display output is logged to the console.protected StringThe character encoding to use when writing tooutputFile.protected FileIf specified then the display output will be sent to the specified file.protected intLine width which should be used to format the padding of the version info list output.Fields inherited from class org.codehaus.mojo.versions.AbstractVersionsUpdaterMojo
allowSnapshots, artifactHandlerManager, generateBackupPoms, ignoredVersions, project, reactorProjects, repositorySystem, ruleSet, session, wagonMapFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractVersionsDisplayMojo(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 Summary
Methods inherited from class org.codehaus.mojo.versions.AbstractVersionsUpdaterMojo
execute, findLatestVersion, getChangeRecorder, getHelper, getProject, getVersion, process, saveChangeRecorderResults, setProject, shouldApplyUpdate, shouldApplyUpdate, update, updatePropertyToNewestVersion, validateInputMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
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 logOutputControls whether the display output is logged to the console.- Since:
- 2.2
-
outputEncoding
@Parameter(property="outputEncoding", defaultValue="${project.reporting.outputEncoding}") protected String outputEncodingThe character encoding to use when writing tooutputFile.- Since:
- 2.2
-
outputLineWidth
@Parameter(property="versions.outputLineWidth", defaultValue="80") protected int outputLineWidthLine 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
-
getOutputLineWidthOffset
protected int getOutputLineWidthOffset()- Returns:
- Offset of the configured output line width compared to the default with of 80.
-