Class AbstractVersionMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.eclipse.jetty.toolchain.version.AbstractVersionMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
AttachVersionMojo,UpdateVersionTextMojo
public abstract class AbstractVersionMojo
extends org.apache.maven.plugin.AbstractMojo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FileThe project basedir.protected StringThe classifier to use for attaching the generated VERSION.txt artifactprotected org.apache.maven.project.MavenProjectMaven Project.protected org.apache.maven.project.MavenProjectHelperMaven ProjectHelper.protected StringThe type to use for the attaching the generated VERSION.txt artifactprotected FileThe existing VERSION.txt file.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected booleanhasVersionTextFile(String goal) Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.plugin.Mojo
execute
-
Field Details
-
basedir
The project basedir. -
versionTextInputFile
@Parameter(property="version.text.file", defaultValue="${project.basedir}/VERSION.txt") protected File versionTextInputFileThe existing VERSION.txt file. -
classifier
@Parameter(property="version.text.output.classifier", defaultValue="version") protected String classifierThe classifier to use for attaching the generated VERSION.txt artifact -
type
The type to use for the attaching the generated VERSION.txt artifact -
projectHelper
@Component protected org.apache.maven.project.MavenProjectHelper projectHelperMaven ProjectHelper. (internal component) -
project
@Parameter(property="project", readonly=true, required=true) protected org.apache.maven.project.MavenProject projectMaven Project.
-
-
Constructor Details
-
AbstractVersionMojo
public AbstractVersionMojo()
-
-
Method Details
-
ensureDirectoryExists
- Throws:
org.apache.maven.plugin.MojoFailureException
-
hasVersionTextFile
-