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",
instantiationStrategy=KEEP_ALIVE)
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 |
|
Method Summary |
void |
execute()
|
protected de.pdark.decentxml.Element |
parentVersion(de.pdark.decentxml.Document doc)
|
| 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
parentVersion
protected de.pdark.decentxml.Element parentVersion(de.pdark.decentxml.Document doc)
- Overrides:
parentVersion in class ReleaseCandidateMojo
Copyright © 2016 smartcode ltd. All rights reserved.