com.smartcodeltd
Class UpdateVersionMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by com.smartcodeltd.ReleaseCandidateMojo
          extended by 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.


Field Summary
 
Fields inherited from class com.smartcodeltd.ReleaseCandidateMojo
charset, encoding, project
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
UpdateVersionMojo()
           
 
Method Summary
 void execute()
           
protected  de.pdark.decentxml.Element parentVersion(de.pdark.decentxml.Document doc)
           
 
Methods inherited from class com.smartcodeltd.ReleaseCandidateMojo
firstExisting, getOrElse, info, parsed, projectVersion, root, versionOf, with
 
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
 

Constructor Detail

UpdateVersionMojo

public UpdateVersionMojo()
Method Detail

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.