public class UpdateVersionTextMojo extends AbstractVersionMojo
| Modifier and Type | Field and Description |
|---|---|
private boolean |
attachArtifact
Allow the plugin to attach the generated VERSION.txt file to the project
|
private boolean |
copyGenerated
Allow the plugin to replace the input VERSION.txt file
|
private boolean |
refreshTags
Allow the plugin to issue a 'git fetch --tags' to update the local tags from.
|
private boolean |
sortExisting
Allow the existing issues to be sorted alphabetically.
|
private boolean |
updateDate
Allow the plugin to update the release date for an issue (if none is provided)
|
private java.lang.String |
version
The maven project version.
|
private java.lang.String |
versionTagKey
The version key to use when looking up a git tag ref.
|
private java.lang.String |
versionTextKey
The version key to use in the VERSION.txt file.
|
private java.io.File |
versionTextOuputFile
The generated VERSION.txt file.
|
basedir, classifier, project, projectHelper, type, versionTextInputFile| Constructor and Description |
|---|
UpdateVersionTextMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
private void |
generateVersion(VersionText versionText) |
ensureDirectoryExists, hasVersionTextFileprivate java.lang.String version
private java.lang.String versionTextKey
private java.lang.String versionTagKey
private boolean sortExisting
private boolean refreshTags
private boolean updateDate
private boolean copyGenerated
private boolean attachArtifact
private java.io.File versionTextOuputFile
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprivate void generateVersion(VersionText versionText) throws org.apache.maven.plugin.MojoFailureException, java.io.IOException
org.apache.maven.plugin.MojoFailureExceptionjava.io.IOException