Class AbstractVersionInfoMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.tentackle.maven.AbstractTentackleMojo
org.tentackle.maven.plugin.AbstractVersionInfoMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
PluginVersionInfoMojo, VersionInfoMojo
Base class for the version info mojos.
Logs the versions of a set of artifacts as XML elements, ready to be pasted into the properties section
of a pom. The property names are of the form version.groupIdInCamelCase.artifactIdInCamelCase, where
dots, dashes and underscores separate the camel case words. Optionally, the result is written to a file
as well.
-
Field Summary
Fields inherited from class AbstractTentackleMojo
charset, JDK_TOOLCHAIN, minLogLevel, verbosity, verbosityLevelFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidgenerateVersionProperties(String comment, Set<org.eclipse.aether.artifact.Artifact> artifacts) Generates the version properties.Methods inherited from class AbstractTentackleMojo
createFileSetManager, createPackageMap, determineEncoding, determineJavaToolVersion, determineVerbosity, execute, executeImpl, finishExecute, getBaseDir, getCanonicalPath, getExecutionLock, getHostName, getIncludedFiles, getJavaHome, getLogger, getMajorVersion, getMavenProject, getMavenSession, getMojoExecution, getPathRelativeToBasedir, getRepositorySystem, getResourceDir, getResourceDirs, getSettings, getSettingsDecrypter, getToolchain, getToolchain, getToolchain, getToolchainManager, getToolFinder, installJavaLoggingHandler, isExecutionRecursive, isSkippedByDefault, loadResourceFileIntoString, prepareExecute, setLogger, toDescriptorName, validateMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
AbstractVersionInfoMojo
public AbstractVersionInfoMojo()
-
-
Method Details
-
generateVersionProperties
protected void generateVersionProperties(String comment, Set<org.eclipse.aether.artifact.Artifact> artifacts) throws org.apache.maven.plugin.MojoExecutionException Generates the version properties.- Parameters:
comment- the comment/titleartifacts- the artifacts- Throws:
org.apache.maven.plugin.MojoExecutionException- if writing the output file failed
-