com.smartcodeltd
Class UpdateVersionMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.smartcodeltd.ReleaseCandidateMojo
com.smartcodeltd.UpdateVersionMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
@Mojo(name="updateVersion")
public class UpdateVersionMojo
- extends ReleaseCandidateMojo
Updates the pom.xml project version as per the configured releaseVersionFormat template.
The original structure of the pom.xml file is preserved when the file is updated
(including the comments, whitespace, formatting, etc.),
so that the only thing that changes is the version number.
| Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
| Methods inherited from class org.apache.maven.plugin.AbstractMojo |
getLog, getPluginContext, setLog, setPluginContext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UpdateVersionMojo
public UpdateVersionMojo()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
Copyright © 2016 smartcode ltd. All rights reserved.