commit a443cec3d166c2f1637c99c37c373ee5e3a78af9
Merge: 0eb306c e520039
Author: dkirrane <dkirrane@avaya.com>
Date:   Mon Oct 17 15:01:19 2016 +0100

    Merge branch 'release/3.0'

commit e520039f9a9863531ddc30e8f7b7b2b2cf4924f8
Author: dkirrane <dkirrane@avaya.com>
Date:   Mon Oct 17 12:36:52 2016 +0100

    release version

diff --git a/ggitflow-maven-archetype/pom.xml b/ggitflow-maven-archetype/pom.xml
index 110a500..62433e7 100644
--- a/ggitflow-maven-archetype/pom.xml
+++ b/ggitflow-maven-archetype/pom.xml
@@ -1,45 +1,45 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
-        <version>3.0-SNAPSHOT</version>
+        <version>3.0</version>
     </parent>
 
     <groupId>com.dkirrane.maven.archetype</groupId>
     <artifactId>ggitflow-maven-archetype</artifactId>
-    <version>3.0-SNAPSHOT</version>
+    <version>3.0</version>
     <packaging>maven-archetype</packaging>
     <name>ggitflow-maven-archetype</name>
 
     <build>
         <extensions>
             <extension>
                 <groupId>org.apache.maven.archetype</groupId>
                 <artifactId>archetype-packaging</artifactId>
                 <version>2.4</version>
             </extension>
         </extensions>
 
         <pluginManagement>
             <plugins>
                 <plugin>
                     <artifactId>maven-archetype-plugin</artifactId>
                     <version>2.4</version>
                 </plugin>
             </plugins>
         </pluginManagement>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.4</version>
                 <configuration>
                     <skip>true</skip>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index b25ad62..898f5cd 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,194 +1,194 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
-        <version>3.0-SNAPSHOT</version>
+        <version>3.0</version>
     </parent>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
-    <version>3.0-SNAPSHOT</version>
+    <version>3.0</version>
     <packaging>maven-plugin</packaging>
     <name>ggitflow-maven-plugin</name>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
-            <version>3.0-SNAPSHOT</version>
+            <version>3.0</version>
         </dependency>
 
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-api</artifactId>
             <version>1.7.21</version>
         </dependency>
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-simple</artifactId>
             <version>1.7.21</version>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>${maven.version}</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-core</artifactId>
             <version>${maven.version}</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>${maven.plugin.version}</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>${maven.release.plugin.version}</version>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-component-annotations</artifactId>
             <version>${plexus.component.version}</version>
         </dependency>
 
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
         <dependency>
             <groupId>jline</groupId>
             <artifactId>jline</artifactId>
             <version>2.14</version>
         </dependency>
         <dependency>
             <groupId>org.fusesource.jansi</groupId>
             <artifactId>jansi</artifactId>
             <version>1.12</version>
         </dependency>
         <dependency>
             <groupId>com.google.guava</groupId>
             <artifactId>guava</artifactId>
             <version>19.0</version>
         </dependency>
         <dependency>
             <groupId>org.freemarker</groupId>
             <artifactId>freemarker</artifactId>
             <version>2.3.23</version>
         </dependency>
         <dependency>
             <groupId>org.valid4j</groupId>
             <artifactId>valid4j</artifactId>
             <version>0.5.0</version>
         </dependency>
         <dependency>
             <groupId>org.hamcrest</groupId>
             <artifactId>java-hamcrest</artifactId>
             <version>2.0.0.0</version>
         </dependency>     
         
 
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.12</version>
             <scope>test</scope>
         </dependency>
     </dependencies>
 
     <build>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <version>3.5</version>
                 <configuration>
                     <encoding>${project.build.sourceEncoding}</encoding>
                 </configuration>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-resources-plugin</artifactId>
                 <version>2.7</version>
                 <configuration>
                     <encoding>${project.build.sourceEncoding}</encoding>
                 </configuration>
             </plugin>
 
             <plugin>
                 <groupId>org.codehaus.plexus</groupId>
                 <artifactId>plexus-component-metadata</artifactId>
                 <version>${plexus.component.version}</version>
                 <executions>
                     <execution>
                         <goals>
                             <goal>generate-metadata</goal>
                             <goal>generate-test-metadata</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
 
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>${maven.plugin.version}</version>
                 <configuration>
                     <goalPrefix>gitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
 
             <plugin>
                 <groupId>com.github.github</groupId>
                 <artifactId>site-maven-plugin</artifactId>
                 <version>0.12</version>
                 <configuration>
                     <message>Creating site for ${project.version}</message>
                     <server>github</server>
                     <merge>true</merge>
                 </configuration>
                 <executions>
                     <execution>
                         <goals>
                             <goal>site</goal>
                         </goals>
                         <phase>site</phase>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.4</version>
                 <configuration>
                     <reportPlugins>
                         <plugin>
                             <groupId>org.apache.maven.plugins</groupId>
                             <artifactId>maven-plugin-plugin</artifactId>
                             <version>${maven.plugin.version}</version>
                         </plugin>
                     </reportPlugins>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/pom.xml b/pom.xml
index f22b942..05ce2c5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,192 +1,192 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven</artifactId>
-    <version>3.0-SNAPSHOT</version>
+    <version>3.0</version>
     <name>ggitflow-maven</name>
     <packaging>pom</packaging>
 
     <modules>
         <module>ggitflow-maven-plugin</module>
         <module>ggitflow-maven-archetype</module>
     </modules>
 
     <properties>
         <maven.compiler.source>1.7</maven.compiler.source>
         <maven.compiler.target>1.7</maven.compiler.target>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
 
         <maven.version>3.0.5</maven.version>
         <maven.plugin.version>3.5</maven.plugin.version>
         <maven.release.plugin.version>2.5.3</maven.release.plugin.version>
         <plexus.component.version>1.6</plexus.component.version>
     </properties>
 
 
     <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
 
     <scm>
         <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
         <connection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</connection>
         <developerConnection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</developerConnection>
     </scm>
 
     <description>Maven Archetype for the Gitflow Maven Plugin</description>
     <developers>
         <developer>
             <id>dkirrane</id>
             <name>Desmond Kirrane</name>
             <email>desmond.kirrane@gmail.com</email>
         </developer>
     </developers>
     <licenses>
         <license>
             <name>Apache License Version 2.0, January 2004</name>
             <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
             <distribution>repo</distribution>
         </license>
     </licenses>
 
     <build>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <version>3.5</version>
                 <configuration>
                     <encoding>${project.build.sourceEncoding}</encoding>
                 </configuration>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-resources-plugin</artifactId>
                 <version>2.7</version>
                 <configuration>
                     <encoding>${project.build.sourceEncoding}</encoding>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 
     <profiles>
         <!-- For Release versions the Sonatype Nexus Stage rules require artifacts to be signed -->
         <!-- http://blog.sonatype.com/2010/01/how-to-generate-pgp-signatures-with-maven -->
         <!-- 1. Setup gpg, @see https://github.com/dkirrane/ggitflow/blob/develop/gradle.properties.sample -->
         <!-- 2. Run Maven deploy sign from Git terminal:
                     export M2_HOME=C:/apache-maven-3.0.5
                     mvn clean deploy -Prelease-sign-artifacts
         -->
         <!-- 3. Login to Nexus to release from the Stage: https://oss.sonatype.org | Login | Staging Repositories | Search for: com.dkirrane | Release -->
         <profile>
             <id>release-sign-artifacts</id>
             <activation>
                 <activeByDefault>false</activeByDefault>
             </activation>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-gpg-plugin</artifactId>
                         <version>1.6</version>
                         <executions>
                             <execution>
                                 <id>sign-artifacts</id>
                                 <phase>verify</phase>
                                 <goals>
                                     <goal>sign</goal>
                                 </goals>
                                 <configuration>
                                     <useAgent>false</useAgent>
                                 </configuration>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
             </build>
         </profile>
         <profile>
             <id>run-its</id>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-invoker-plugin</artifactId>
                         <version>1.8</version>
                         <configuration>
                             <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
                             <settingsFile>src/it/settings.xml</settingsFile>
                             <debug>true</debug>
                             <showErrors>true</showErrors>
                             <detail>true</detail>
                             <streamLogs>true</streamLogs>
                             <projectsDirectory>src/it/projects</projectsDirectory>
                             <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
                             <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
                             <addTestClassPath>true</addTestClassPath>
                             <preBuildHookScript>setup</preBuildHookScript>
                             <postBuildHookScript>verify</postBuildHookScript>
                             <pomIncludes>
                                 <pomInclude>*/pom.xml</pomInclude>
                             </pomIncludes>
                             <goals>
                                 <goal>clean</goal>
                                 <goal>test-compile</goal>
                             </goals>
                         </configuration>
                         <executions>
                             <execution>
                                 <id>integration-test</id>
                                 <goals>
                                     <goal>install</goal>
                                     <goal>integration-test</goal>
                                     <goal>verify</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
 
             </build>
         </profile>
     </profiles>
 
     <!--
         Sonatype upload details:
         http://central.sonatype.org/pages/ossrh-guide.html
         http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
         https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
         https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
         https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
 
             - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
             - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
             - Promote staged artifacts into repository 'Releases'
             - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
             - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
     -->
     <distributionManagement>
         <snapshotRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
         </snapshotRepository>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
         </repository>
     </distributionManagement>
     <repositories>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
             <snapshots>
                 <enabled>true</enabled>
             </snapshots>
         </repository>
     </repositories>
 </project>

commit fdfabc2c65580d67bfcc2c60708ff0596a046370
Author: dkirrane <dkirrane@avaya.com>
Date:   Mon Oct 17 12:31:35 2016 +0100

    FIXES

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
index b33e56c..2850a4b 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
@@ -29,76 +29,78 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  * Creates a new support branch from a specific commit on the master branch.
  */
 @Mojo(name = "support-start", aggregator = true)
 public class SupportStartMojo extends AbstractSupportMojo {
 
     /**
      * The commit to start the support branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     protected String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         String prefix = getGitflowInit().getSupportBranchPrefix();
         String masterBranch = getGitflowInit().getMasterBranch();
 
         List<String> localTags = getGitflowInit().gitLocalTagsOnBranch(masterBranch);
         if (localTags.isEmpty()) {
             exceptionMapper.handle(new MojoFailureException("Could not find any local Git tags (on master) to create support branch from!"));
         }
 
 //        if (StringUtils.isBlank(supportName)) {
 //            try {
-//                supportName = prompter.promptWithDefault("Enter an optional support branch name (e.g SP1, SP2)? " + prefix, "");
+//                supportName = prompter.promptWithDefault("Enter a support branch name (optional, examples SP1, SP2)? ", "");
+//                supportName = namer.trimRefName(supportName);
 //            } catch (IOException ex) {
 //                exceptionMapper.handle(new MojoExecutionException("Error reading support name from command line " + ex.getMessage(), ex));
 //            }
 //        }
 
         if (StringUtils.isBlank(startCommit)) {
             try {
                 startCommit = prompter.promptChoice("Tags", "Please select a tag to create Support branch from", localTags);
             } catch (IOException ex) {
                 exceptionMapper.handle(new MojoFailureException("Error reading tag name from command line " + ex.getMessage()));
             }
         }
 
         getGitflowInit().executeLocal("git checkout " + startCommit);
         reloadReactorProjects();
         String supportVersion = getSupportVersion(project.getVersion());
         String supportSnapshotVersion = getSupportSnapshotVersion(project.getVersion());
+        String supportBranchName = namer.getBranchName(prefix, supportName, supportVersion);
 
-        getLog().info("Starting support branch '" + supportVersion + "'");
+        getLog().info("Starting support branch '" + supportBranchName + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowSupport gitflowSupport = new GitflowSupport();
         gitflowSupport.setInit(getGitflowInit());
         gitflowSupport.setMsgPrefix(getMsgPrefix());
         gitflowSupport.setMsgSuffix(getMsgSuffix());
         gitflowSupport.setPush(true);
         gitflowSupport.setStartCommit(startCommit);
 
         try {
-            gitflowSupport.start(supportVersion);
+            gitflowSupport.start(supportBranchName);
         } catch (GitCommandException gce) {
             String header = "Failed to run support start";
             exceptionMapper.handle(header, gce);
         } catch (GitflowException ge) {
             String header = "Failed to run support start";
             exceptionMapper.handle(header, ge);
         }
 
-        setVersion(supportSnapshotVersion, prefix + supportVersion, false);
+        setVersion(supportSnapshotVersion, supportBranchName, false);
 
-        if (getGitflowInit().gitRemoteBranchExists(prefix + supportVersion)) {
-            getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + supportVersion);
+        if (getGitflowInit().gitRemoteBranchExists(supportBranchName)) {
+            getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + supportBranchName);
         }
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/name/NamerImpl.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/name/NamerImpl.java
index 187d5fb..e52ce9e 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/name/NamerImpl.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/name/NamerImpl.java
@@ -26,51 +26,52 @@ import static org.valid4j.matchers.ArgumentMatchers.notEmptyString;
 /**
  * Default {@link Namer} implementation.
  *
  * @since 3.0
  */
 @Component(role = Namer.class, instantiationStrategy = "per-lookup")
 public class NamerImpl implements Namer {
 
     @Override
     public String trimRefName(String refName) {
-        validate(refName, notEmptyString(), new IllegalArgumentException("Argument refName cannot be null or emtpy"));
+        if (StringUtils.isBlank(refName)) {
+            return "";
+        }
 
         /* Valid Git ref name: https://www.kernel.org/pub/software/scm/git/docs/git-check-ref-format.html */
         return refName
                 .replaceAll("\\.lock", "") // cannot end with the sequence .lock
                 .replaceAll("^[.]+", "") // cannot begin with a dot .
                 .replaceAll("/\\.", "") // cannot contain /.
-                //                .replaceAll("[.]+$", "") // cannot end with a dot .
                 .replaceAll("\\.{2,}", "") // cannot have two consecutive dots .. anywhere
                 .replaceAll("[\040\0177 ~^:]+", "") // cannot have ASCII control characters (i.e. bytes whose values are lower than \040, or \177 DEL), space, tilde ~, caret ^, or colon : anywhere
                 .replaceAll("[?*\\[\\]]+", "") // cannot have question-mark ?, asterisk *, or open bracket [ anywhere
                 .replaceAll("[/]{2,}", "/") // cannot contain multiple consecutive slashes /
                 .replaceAll("^/+|/+$", "") // or cannot begin or end with a slash /
                 .replaceAll("[.]+$", "") // cannot end with a dot .
                 .replaceAll("@\\{", "") // cannot contain a sequence @{
                 .replaceAll("@", "") // cannot be the single character @
                 .replaceAll("\\\\", "") // cannot contain a \
                 ;
     }
 
     @Override
     public String getBranchName(String prefix, String name, String version) {
         validate(prefix, notEmptyString(), new IllegalArgumentException("Argument prefix cannot be null or emtpy"));
         validate(version, notEmptyString(), new IllegalArgumentException("Argument version cannot be null or emtpy"));
         validate(version, matchesPattern(VERSION_REGEX), new IllegalArgumentException("Argument is not a valid maven verison: " + version));
 
         String branchName;
         if (StringUtils.isBlank(name)) {
-            branchName = prefix + version;
+            branchName = prefix + version; // just use Gitflwo branch prefix and version
         } else {
             name = name.replaceFirst("^" + Pattern.quote(prefix), "");
             if (name.equals(version)) {
                 branchName = prefix + name;
             } else {
                 branchName = prefix + name + '/' + version;
             }
         }
         return branchName;
     }
 
 }

commit d7cccd74f5a8d8b566080e67e16f20e8479453d6
Author: dkirrane <dkirrane@avaya.com>
Date:   Mon Oct 17 12:01:27 2016 +0100

    Get valid Branch name

diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index 5839845..b25ad62 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,183 +1,194 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
         <version>3.0-SNAPSHOT</version>
     </parent>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
     <version>3.0-SNAPSHOT</version>
     <packaging>maven-plugin</packaging>
     <name>ggitflow-maven-plugin</name>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
             <version>3.0-SNAPSHOT</version>
         </dependency>
 
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-api</artifactId>
             <version>1.7.21</version>
         </dependency>
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-simple</artifactId>
             <version>1.7.21</version>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>${maven.version}</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-core</artifactId>
             <version>${maven.version}</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>${maven.plugin.version}</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>${maven.release.plugin.version}</version>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-component-annotations</artifactId>
             <version>${plexus.component.version}</version>
         </dependency>
 
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
         <dependency>
             <groupId>jline</groupId>
             <artifactId>jline</artifactId>
             <version>2.14</version>
         </dependency>
         <dependency>
             <groupId>org.fusesource.jansi</groupId>
             <artifactId>jansi</artifactId>
             <version>1.12</version>
         </dependency>
         <dependency>
             <groupId>com.google.guava</groupId>
             <artifactId>guava</artifactId>
             <version>19.0</version>
         </dependency>
         <dependency>
             <groupId>org.freemarker</groupId>
             <artifactId>freemarker</artifactId>
             <version>2.3.23</version>
         </dependency>
+        <dependency>
+            <groupId>org.valid4j</groupId>
+            <artifactId>valid4j</artifactId>
+            <version>0.5.0</version>
+        </dependency>
+        <dependency>
+            <groupId>org.hamcrest</groupId>
+            <artifactId>java-hamcrest</artifactId>
+            <version>2.0.0.0</version>
+        </dependency>     
+        
 
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.12</version>
             <scope>test</scope>
         </dependency>
     </dependencies>
 
     <build>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <version>3.5</version>
                 <configuration>
                     <encoding>${project.build.sourceEncoding}</encoding>
                 </configuration>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-resources-plugin</artifactId>
                 <version>2.7</version>
                 <configuration>
                     <encoding>${project.build.sourceEncoding}</encoding>
                 </configuration>
             </plugin>
 
             <plugin>
                 <groupId>org.codehaus.plexus</groupId>
                 <artifactId>plexus-component-metadata</artifactId>
                 <version>${plexus.component.version}</version>
                 <executions>
                     <execution>
                         <goals>
                             <goal>generate-metadata</goal>
                             <goal>generate-test-metadata</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
 
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>${maven.plugin.version}</version>
                 <configuration>
                     <goalPrefix>gitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
 
             <plugin>
                 <groupId>com.github.github</groupId>
                 <artifactId>site-maven-plugin</artifactId>
                 <version>0.12</version>
                 <configuration>
                     <message>Creating site for ${project.version}</message>
                     <server>github</server>
                     <merge>true</merge>
                 </configuration>
                 <executions>
                     <execution>
                         <goals>
                             <goal>site</goal>
                         </goals>
                         <phase>site</phase>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.4</version>
                 <configuration>
                     <reportPlugins>
                         <plugin>
                             <groupId>org.apache.maven.plugins</groupId>
                             <artifactId>maven-plugin-plugin</artifactId>
                             <version>${maven.plugin.version}</version>
                         </plugin>
                     </reportPlugins>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index 89124e5..47cdc7c 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -22,2 +22,3 @@ import com.dkirrane.gitflow.groovy.ex.GitflowException;
 import com.dkirrane.maven.plugins.ggitflow.ex.ExceptionMapper;
+import com.dkirrane.maven.plugins.ggitflow.name.Namer;
 import com.dkirrane.maven.plugins.ggitflow.prompt.Prompter;
@@ -86,537 +87,540 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 public class AbstractGitflowMojo extends AbstractMojo {
 
     Scanner scanner = new Scanner(System.in);
 
     public final Pattern matchSnapshotRegex = Pattern.compile("-SNAPSHOT");
 
     public static final ImmutableList<String> DEFAULT_INSTALL_ARGS = ImmutableList.of(
             "-DinstallAtEnd=false");
 
     public static final ImmutableList<String> DEFAULT_DEPLOY_ARGS = ImmutableList.of(
             "-DdeployAtEnd=false",
             "-DretryFailedDeploymentCount=2");
 
     public static final Splitter PROFILES_SPLITTER = Splitter.on(',').trimResults().omitEmptyStrings();
     public static final Joiner PROFILES_JOINER = Joiner.on(',').skipNulls();
 
     private static final Plugin VERSIONS_MVN_PLUGIN = plugin(
             groupId("org.codehaus.mojo"),
             artifactId("versions-maven-plugin"),
             version("2.3")
     );
 
     @Parameter(defaultValue = "${session}", readonly = true)
     protected MavenSession session;
 
     @Parameter(defaultValue = "${project}", readonly = true)
     protected MavenProject project;
 
     @Parameter(defaultValue = "${reactorProjects}", readonly = true, required = true)
     protected List<MavenProject> reactorProjects;
 
     @Component
     private ProjectBuilder projectBuilder;
 
     @Component
     protected BuildPluginManager pluginManager;
 
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
     @Component(role = Prompter.class)
     protected Prompter prompter;
 
+    @Component(role = Namer.class)
+    protected Namer namer;
+
     @Component(role = ExceptionMapper.class)
     protected ExceptionMapper exceptionMapper;
 
     /**
      * Gitflow branches and prefixes to use.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
     /**
      * Message prefix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgPrefix", defaultValue = "", required = false)
     protected String msgPrefix;
 
     /**
      * Message suffix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgSuffix", defaultValue = "", required = false)
     protected String msgSuffix;
 
     private GitflowInit init;
     private Path tempDir;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             getLog().debug("Gitflow pom  '" + project.getBasedir() + "'");
         }
         GitflowInit gitflowInit = getGitflowInit();
 
         exceptionMapper.setRepoDir(gitflowInit.getRepoDir());
 
         try {
             gitflowInit.requireGitRepo();
         } catch (GitflowException ge) {
             exceptionMapper.handle("Invalid Git repo", ge);
         }
         try {
             gitflowInit.checkRemoteConnection();
         } catch (GitCommandException ge) {
             exceptionMapper.handle("Git connection issue", ge);
         }
         try {
             gitflowInit.requireCleanWorkingTree();
         } catch (GitflowException ge) {
             exceptionMapper.handle("Check git status", ge);
         }
 
         if (!gitflowInit.gitflowIsInitialized()) {
             try {
                 gitflowInit.cmdDefault();
             } catch (GitCommandException gce) {
                 String header = "Unable to initialise Gitflow";
                 exceptionMapper.handle(header, gce);
             } catch (GitflowException ge) {
                 String header = "Unable to initialise Gitflow";
                 exceptionMapper.handle(header, ge);
             }
         }
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     protected final GitflowInit getGitflowInit() {
         if (null == init) {
             getLog().debug("Initialising Gitflow");
             init = new GitflowInit();
             File basedir = getProject().getBasedir();
             getLog().debug("Setting base directory " + basedir);
             init.setRepoDir(basedir);
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
 
             /* root Git directory may not be the pom directory */
             String gitRootPath = init.executeLocal("git rev-parse --show-toplevel");
             getLog().debug("Git repo top level " + gitRootPath);
             File baseGitDir = new File(gitRootPath);
             if (baseGitDir.isDirectory()) {
                 getLog().debug("Setting git base directory " + baseGitDir);
                 init.setRepoDir(baseGitDir);
             }
 
             /* Create temp directory - delete any previous first */
             try {
                 Path osTempDir = Paths.get(System.getProperty("java.io.tmpdir"));
                 for (File f : osTempDir.toFile().listFiles()) {
                     if (f.isDirectory() && f.getName().startsWith("mvn-gitflow")) {
                         Files.walkFileTree(f.toPath(), new SimpleFileVisitor<Path>() {
                             @Override
                             public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {
                                 Files.delete(file);
                                 return FileVisitResult.CONTINUE;
                             }
 
                             @Override
                             public FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOException {
                                 Files.delete(dir);
                                 return FileVisitResult.CONTINUE;
                             }
                         });
                     }
                 }
                 tempDir = Files.createTempDirectory("mvn-gitflow");
             } catch (IOException ioe) {
                 getLog().error("Failed to create temp directory", ioe);
             }
         }
         return init;
     }
 
     public String getVersionTagPrefix() {
         String prefix = getGitflowInit().getVersionTagPrefix();
         if (null == prefix) {
             prefix = DEFAULT_VERSION_TAG_PREFIX;
         }
         return prefix;
     }
 
     protected final boolean setVersion(String version, String branch, boolean push) throws MojoExecutionException, MojoFailureException {
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         MavenProject topLevelProject = session.getTopLevelProject();
         session.setCurrentProject(topLevelProject);
 
         String goal = goal("set");
         Xpp3Dom configuration = configuration(
                 element(name("generateBackupPoms"), "false"),
                 element(name("newVersion"), version)
         );
 
         String mavenCommand = getMavenCommand(VERSIONS_MVN_PLUGIN, goal);
 
         getLog().info("");
         getLog().info("--- " + mavenCommand + " " + topLevelProject.getArtifactId() + " to " + version + " (" + branch + ") ---");
         executeMyMojo(VERSIONS_MVN_PLUGIN, goal, configuration);
         getLog().info("------------------------------------------------------------------------");
 
         boolean commitMade = false;
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (push && getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change " + version + " to origin. ExitCode:" + exitCode);
                 }
             }
 
             commitMade = true;
         }
         /* We don't want to fail maybe the version was manually set correctly */
 //        else {
 //            throw new MojoFailureException("Failed to update poms to version " + version);
 //        }
         return commitMade;
     }
 
     protected final boolean setNextVersions(Boolean allowSnapshots, Boolean updateParent, String includes) throws MojoExecutionException, MojoFailureException {
         getLog().debug("setNextVersions");
 
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         MavenProject topLevelProject = session.getTopLevelProject();
         session.setCurrentProject(topLevelProject);
 
         if (updateParent) {
             String updateParentGoal = goal("update-parent");
             Xpp3Dom configuration = configuration(
                     element(name("generateBackupPoms"), "false"),
                     element(name("allowSnapshots"), allowSnapshots.toString())
             );
 
             String mavenCommand = getMavenCommand(VERSIONS_MVN_PLUGIN, updateParentGoal);
             getLog().info("");
             getLog().info("--- " + mavenCommand + " " + topLevelProject.getArtifactId() + " ---");
             executeMyMojo(VERSIONS_MVN_PLUGIN, updateParentGoal, configuration);
             getLog().info("------------------------------------------------------------------------");
         }
 
         if (!StringUtils.isBlank(includes)) {
             String useNextVersionsGoal = goal("use-next-versions");
             Xpp3Dom configuration = configuration(
                     element(name("generateBackupPoms"), "false"),
                     element(name("allowSnapshots"), allowSnapshots.toString()),
                     element(name("includesList"), includes)
             );
 
             String mavenCommand = getMavenCommand(VERSIONS_MVN_PLUGIN, useNextVersionsGoal);
             getLog().info("");
             getLog().info("--- " + mavenCommand + " " + topLevelProject.getArtifactId() + " ---");
             executeMyMojo(VERSIONS_MVN_PLUGIN, useNextVersionsGoal, configuration);
             getLog().info("------------------------------------------------------------------------");
         } else {
             getLog().warn("Parameter <includes> is not set. Skipping dependency updates");
         }
 
         boolean commitMade = false;
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg;
             if (allowSnapshots) {
                 msg = getMsgPrefix() + "Replaces any release versions with the next snapshot version (if it has been deployed)." + getMsgSuffix();
             } else {
                 msg = getMsgPrefix() + "Replaces snapshot versions with the corresponding release version" + getMsgSuffix();
             }
 
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change to origin. ExitCode:" + exitCode);
                 }
             }
             commitMade = true;
         }
         return commitMade;
     }
 
     protected final void executeMyMojo(Plugin plugin, String goal, Xpp3Dom configuration) throws MojoExecutionException, MojoFailureException {
         String mavenCommand = getMavenCommand(plugin, goal);
         MavenProject topLevelProject = session.getTopLevelProject();
         String projArtifactId = topLevelProject.getArtifactId();
         getLog().debug("START " + mavenCommand + " on " + projArtifactId);
         getLog().debug("configuration " + configuration.toUnescapedString());
 
         /* Maven 3.3.x log settings */
         session.getRequest().setLoggingLevel(MavenExecutionRequest.LOGGING_LEVEL_ERROR);
         System.setProperty("org.slf4j.simpleLogger.defaultLogLevel", "error");
         System.setProperty("maven.logging.root.level", "error");
         PrintStream stdout = System.out;
         PrintStream stderr = System.err;
         PrintStream stoutStream = null;
         Path tempStoutFile = null;
         try {
 
             /* Capture System.out */
             if (!getLog().isDebugEnabled()) {
                 try {
                     String logFileName = plugin.getArtifactId() + '-' + goal + '-';
                     tempStoutFile = Files.createTempFile(tempDir, logFileName, ".log");
                     stoutStream = new PrintStream(new FileOutputStream(tempStoutFile.toFile(), true));
                     System.setOut(stoutStream);
                     System.setErr(stoutStream);
                 } catch (Exception ioe) {
                     getLog().warn("Failed to capture System.out", ioe);
                 }
             }
 
             /* Execute Maven plugin goal */
             executeMojo(
                     plugin,
                     goal,
                     configuration,
                     executionEnvironment(
                             session.getTopLevelProject(),
                             session,
                             pluginManager
                     )
             );
 
         } catch (MojoExecutionException mee) {
             /* Reset System.out */
             System.setOut(stdout);
             System.setErr(stderr);
             String rootCauseMessage = ExceptionUtils.getRootCauseMessage(mee);
             if (rootCauseMessage.contains("Project version is inherited from parent")) {
                 getLog().debug("Skipping " + mavenCommand + " for project " + projArtifactId + ". Project version is inherited from parent.");
             } else {
                 getLog().error("Failed to execute " + mavenCommand + " on " + projArtifactId, mee);
                 throw mee;
             }
         } finally {
             if (!getLog().isDebugEnabled()) {
                 /* Reset System.out */
                 System.setOut(stdout);
                 System.setErr(stderr);
 
                 if (null != tempStoutFile) {
                     getLog().info(mavenCommand + " log " + tempStoutFile.toString());
                 }
 
                 if (null != stoutStream) {
                     try {
                         stoutStream.close();
                     } catch (Exception e) {
                     }
                 }
             }
             getLog().debug("DONE " + mavenCommand);
         }
     }
 
     private String getMavenCommand(Plugin plugin, String goal) {
         return plugin.getArtifactId() + ':' + plugin.getVersion() + ':' + goal;
     }
 
     protected final void runGoals(String goals, List<String> additionalArgs) throws MojoExecutionException, MojoFailureException {
         getLog().debug("START executing " + goals + " with args " + additionalArgs);
 
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         File basedir = rootProject.getBasedir();
 
         ReleaseResult result = new ReleaseResult();
         ReleaseEnvironment env = new DefaultReleaseEnvironment();
         env.setSettings(session.getSettings());
         MavenExecutor mavenExecutor = mavenExecutors.get(env.getMavenExecutorId());
 
         Joiner joiner = Joiner.on(" ").skipNulls();
         String additionalArguments = joiner.join(additionalArgs);
         getLog().debug("additionalArguments " + additionalArguments);
 
         try {
             mavenExecutor.executeGoals(basedir, goals, env, false, additionalArguments, result);
         } catch (MavenExecutorException ex) {
             throw new MojoExecutionException(result.getOutput(), ex);
         }
         getLog().debug("DONE executing " + goals);
     }
 
     protected final String getReleaseVersion(String version) throws MojoFailureException {
         getLog().debug("Current Develop version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
             getLog().debug("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
     protected final void checkForSnapshotDependencies() throws MojoExecutionException {
         getLog().info("Checking for SNAPSHOT dependencies");
         Boolean hasDepSnapshots = false;
         Boolean hasParentSnapshot = false;
         for (MavenProject mavenProject : reactorProjects) {
             String artifactId = mavenProject.getArtifactId();
 
             /* Check <parent> */
             Artifact parentArtifact = mavenProject.getParentArtifact();
             if (parentArtifact != null && parentArtifact.isSnapshot()) {
                 getLog().error("Parent of project " + artifactId + " is a SNAPSHOT " + parentArtifact.getId());
                 hasParentSnapshot = true;
             }
 
             /* Check <dependencyManagement> */
             DependencyManagement dependencyManagement = mavenProject.getDependencyManagement();
             if (null != dependencyManagement) {
                 if (checkForSnapshot(artifactId, dependencyManagement.getDependencies())) {
                     hasDepSnapshots = true;
                 }
             }
 
             /* Check <dependencies> */
             if (checkForSnapshot(artifactId, mavenProject.getDependencies())) {
                 hasDepSnapshots = true;
             }
         }
         if (hasParentSnapshot || hasDepSnapshots) {
             throw new MojoExecutionException("Cannot release because SNAPSHOT dependencies exist");
         }
         getLog().info("No SNAPSHOT dependencies found");
     }
 
     private boolean checkForSnapshot(String artifactId, List<Dependency> dependencies) throws MojoExecutionException {
         Boolean hasSnapshotDependency = false;
         for (Dependency dependency : dependencies) {
             String version = dependency.getVersion();
             Matcher versionMatcher = matchSnapshotRegex.matcher(version);
             if (versionMatcher.find() && versionMatcher.end() == version.length()) {
                 getLog().error("Project " + artifactId + " contains SNAPSHOT dependency: " + dependency.getGroupId() + ":" + dependency.getArtifactId() + ":" + version);
                 hasSnapshotDependency = true;
             }
         }
         return hasSnapshotDependency;
     }
 
     protected final void reloadReactorProjects() {
         getLog().debug("Reloading poms...");
 
         List<MavenProject> updatedReactorProjects = new ArrayList<>();
 
         MavenProject rootProject = ReleaseUtil.getRootProject(reactorProjects);
         getLog().debug("rootProject = " + rootProject);
         try {
             if (rootProject.getFile().exists() && rootProject.getFile().canRead()) {
                 MavenExecutionRequest mavenExecutionRequest = session.getRequest();
                 ProjectBuildingRequest projectBuildingRequest = mavenExecutionRequest.getProjectBuildingRequest();
                 try {
                     List<ProjectBuildingResult> buildResults = projectBuilder.build(newArrayList(rootProject.getFile()), true, projectBuildingRequest);
                     for (ProjectBuildingResult buildResult : buildResults) {
                         MavenProject reloadProject = buildResult.getProject();
                         reloadProject.setActiveProfiles(rootProject.getActiveProfiles());
                         updatedReactorProjects.add(reloadProject);
                     }
                 } catch (ProjectBuildingException ex) {
                     getLog().error("Build error reloading Maven projects", ex);
                 }
             }
         } catch (Exception ex) {
             getLog().error("Failed to reload reactor projects", ex);
             throw ex;
         }
 
         try {
             ReactorManager reactorManager = new ReactorManager(updatedReactorProjects);
             updatedReactorProjects = reactorManager.getSortedProjects();
         } catch (CycleDetectedException | DuplicateProjectException ex) {
             getLog().error("Failed to sort reactor projects", ex);
         }
 
         session.setProjects(updatedReactorProjects);
         project = ReleaseUtil.getRootProject(updatedReactorProjects);
         reactorProjects = updatedReactorProjects;
 
         if (getLog().isDebugEnabled()) {
             getLog().debug("Reloaded MavenProject: " + project);
             getLog().debug("Reloaded reactorProjects: ");
             for (int i = 0; i < reactorProjects.size(); i++) {
                 MavenProject updatedReactorProject = updatedReactorProjects.get(i);
                 System.out.printf(" %-4s %-70s [Parent:%s]\n",
                         i + ")",
                         updatedReactorProject.getArtifact(),
                         updatedReactorProject.getParentArtifact());
 //                DependencyManagement dependencyManagement = updatedReactorProject.getDependencyManagement();
 //                if (null != dependencyManagement && null != dependencyManagement.getDependencies()) {
 //                    System.out.printf("\t\t\t DependencyManagement:\n");
 //                    for (Dependency dependency : dependencyManagement.getDependencies()) {
 //                        System.out.printf("\t\t\t\t\t %s:%s:%s \n", dependency.getGroupId(), dependency.getArtifactId(), dependency.getVersion());
 //                    }
 //                }
 //                if (null != updatedReactorProject.getDependencies()) {
 //                    System.out.printf("\t\t\t Dependencies:\n");
 //                    for (Dependency dependency : updatedReactorProject.getDependencies()) {
 //                        System.out.printf("\t\t\t\t\t %s:%s:%s \n", dependency.getGroupId(), dependency.getArtifactId(), dependency.getVersion());
 //                    }
 //                }
             }
         }
 
         getLog().debug("Reloading poms complete");
     }
 
     protected List<String> rearrange(String input, List<String> strings) {
         strings.remove(input);
         strings.add(0, input);
         return strings;
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/name/Namer.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/name/Namer.java
new file mode 100644
index 0000000..d460930
--- /dev/null
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/name/Namer.java
@@ -0,0 +1,27 @@
+/*
+ * Copyright 2016 dkirrane.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.dkirrane.maven.plugins.ggitflow.name;
+
+/**
+ *
+ * @author dkirrane
+ */
+public interface Namer {
+
+    String trimRefName(String name);
+
+    String getBranchName(String prefix, String name, String version);
+}
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/name/NamerImpl.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/name/NamerImpl.java
new file mode 100644
index 0000000..187d5fb
--- /dev/null
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/name/NamerImpl.java
@@ -0,0 +1,76 @@
+/*
+ * Copyright 2016 dkirrane.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.dkirrane.maven.plugins.ggitflow.name;
+
+import java.util.regex.Pattern;
+import org.codehaus.plexus.component.annotations.Component;
+import org.codehaus.plexus.util.StringUtils;
+import static org.hamcrest.Matchers.matchesPattern;
+import static org.jfrog.hudson.util.GenericArtifactVersion.VERSION_REGEX;
+import static org.valid4j.Validation.validate;
+import static org.valid4j.matchers.ArgumentMatchers.notEmptyString;
+
+/**
+ * Default {@link Namer} implementation.
+ *
+ * @since 3.0
+ */
+@Component(role = Namer.class, instantiationStrategy = "per-lookup")
+public class NamerImpl implements Namer {
+
+    @Override
+    public String trimRefName(String refName) {
+        validate(refName, notEmptyString(), new IllegalArgumentException("Argument refName cannot be null or emtpy"));
+
+        /* Valid Git ref name: https://www.kernel.org/pub/software/scm/git/docs/git-check-ref-format.html */
+        return refName
+                .replaceAll("\\.lock", "") // cannot end with the sequence .lock
+                .replaceAll("^[.]+", "") // cannot begin with a dot .
+                .replaceAll("/\\.", "") // cannot contain /.
+                //                .replaceAll("[.]+$", "") // cannot end with a dot .
+                .replaceAll("\\.{2,}", "") // cannot have two consecutive dots .. anywhere
+                .replaceAll("[\040\0177 ~^:]+", "") // cannot have ASCII control characters (i.e. bytes whose values are lower than \040, or \177 DEL), space, tilde ~, caret ^, or colon : anywhere
+                .replaceAll("[?*\\[\\]]+", "") // cannot have question-mark ?, asterisk *, or open bracket [ anywhere
+                .replaceAll("[/]{2,}", "/") // cannot contain multiple consecutive slashes /
+                .replaceAll("^/+|/+$", "") // or cannot begin or end with a slash /
+                .replaceAll("[.]+$", "") // cannot end with a dot .
+                .replaceAll("@\\{", "") // cannot contain a sequence @{
+                .replaceAll("@", "") // cannot be the single character @
+                .replaceAll("\\\\", "") // cannot contain a \
+                ;
+    }
+
+    @Override
+    public String getBranchName(String prefix, String name, String version) {
+        validate(prefix, notEmptyString(), new IllegalArgumentException("Argument prefix cannot be null or emtpy"));
+        validate(version, notEmptyString(), new IllegalArgumentException("Argument version cannot be null or emtpy"));
+        validate(version, matchesPattern(VERSION_REGEX), new IllegalArgumentException("Argument is not a valid maven verison: " + version));
+
+        String branchName;
+        if (StringUtils.isBlank(name)) {
+            branchName = prefix + version;
+        } else {
+            name = name.replaceFirst("^" + Pattern.quote(prefix), "");
+            if (name.equals(version)) {
+                branchName = prefix + name;
+            } else {
+                branchName = prefix + name + '/' + version;
+            }
+        }
+        return branchName;
+    }
+
+}
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/name/NewMain.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/name/NewMain.java
new file mode 100644
index 0000000..9e98ce1
--- /dev/null
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/name/NewMain.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2016 dkirrane.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.dkirrane.maven.plugins.ggitflow.name;
+
+/**
+ *
+ * @author dkirrane
+ */
+public class NewMain {
+
+    /**
+     * @param args the command line arguments
+     */
+    public static void main(String[] args) throws Exception {
+        Namer namer = new NamerImpl();
+//        String branchName = namer.getReleaseBranchName("", "");
+//        String branchName = namer.getReleaseBranchName("FP", "X>Y>Z");
+//        String branchName = namer.getReleaseBranchName("FP", "1.0.0-1");
+//        String branchName = namer.getBranchName("release/", "release/1.0.0-1", "");
+
+        String branchName = namer.getBranchName("support/", "SP1", "1.0.0-1");
+
+
+        System.out.println("branchName = " + branchName);
+    }
+
+}
diff --git a/ggitflow-maven-plugin/src/main/java/org/jfrog/hudson/util/GenericArtifactVersion.java b/ggitflow-maven-plugin/src/main/java/org/jfrog/hudson/util/GenericArtifactVersion.java
index fb378f0..e1e489c 100644
--- a/ggitflow-maven-plugin/src/main/java/org/jfrog/hudson/util/GenericArtifactVersion.java
+++ b/ggitflow-maven-plugin/src/main/java/org/jfrog/hudson/util/GenericArtifactVersion.java
@@ -7,676 +7,676 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  * Represents a generic standard artifact version. This class can be used either
  * for parsing a version string and/or for building a version string
  * programatically. Consistency is guaranteed at all times so that no invalid
  * version is formed. Also, new
  * {@link GenericArtifactVersion}(versionString).toString().equals(versionString)
  * is guaranteed to be always true if 'versionString' is in the right format.
  *
  * A standard artifact version is a string in the following format:
  *
  * <pre>
  * <primary_numbers>[[-_]<annotation>][[-_]<annotation_revision>][[-_]<build_specifier>]
  * </pre>
  * <ul>
  * where:
  * <li>primary_numbers: <p1>[.<p2>[...<pn>]...] are non-negative integers
  * separated by '.'. Examples: 1; 1.2; 1.2.3; etc.</li>
  * <li>annotation: Sequence of letters that usually describe the release type.
  * Examples: alpha, beta, RC, etc.</li>
  * <li>annotation_revision: A non-negative integer associated to the
  * annotation.</li>
  * <li>build_specifier: SNAPSHOT|YYYYMMdd.hhmmss-n[n[...[n]...]] Examples:
  * SNAPSHOT, 20120110.152615-1, 20120110.152615-543</li>
  * </ul>
  *
  * Note that we used generic terms as components. Even though "major", "minor",
  * and "incremental" are terms used for the first three primary components, we
  * want to abstract that to be as generic as possible. Other implementations can
  * reuse this class and rename components as desired.
  *
  * Notes: The version format is based on Maven's
  * org.apache.maven.shared.release.versions.DefaultVersionInfo. As of today,
  * that class can be found in the following artifact:
  * org.apache.maven.release:maven-release-manager:2.2
  * <p>
  * The reason why I decided to reimplement this is becase of the unwanted
  * dependencies added with that artifact that clash with some Jenkins'
  * dependencies. Besides that, the implementation is not very flexible, it does
  * not provide means to retrieve the component separators and it cannot be
  * extended either. Moreover, if we depended on that class, our code can easily
  * break if we upgrade that artifact and they update their version scheme. What
  * we do when releasing is tied to our interpretation of version schemes.
  *
  *
  * @author Nicolas Grobisa
  *
  */
 public class GenericArtifactVersion {
 
     public static final String SNAPSHOT_QUALIFIER = "SNAPSHOT";
 
     public static final Character DEFAULT_VERSION_COMPONENT_SEPARATOR = '-';
 
     private static final Integer DEFAULT_BASE_ANNOTATION_REVISION = 1;
 
     private static final String VERSION_COMPONENT_SEPARATOR_REGEX = "([-_]?)";
 
     private static final Pattern VERSION_COMPONENT_SEPARATOR_PATTERN = Pattern.compile(VERSION_COMPONENT_SEPARATOR_REGEX);
 
     private static final String VERSION_PRIMARY_NUMBERS_REGEX = "(\\d+(\\.\\d+)*)";
 
     private static final String VERSION_ANNOTATION_REGEX = "([a-zA-Z]+)";
 
     private static final Pattern VERSION_ANNOTATION_PATTERN = Pattern.compile(VERSION_ANNOTATION_REGEX);
 
     private static final String VERSION_ANNOTATIONREV_REGEX = "(\\d+)";
 
     private static final String VERSION_BUILD_SPECIFIER_REGEX = "((?i)" + SNAPSHOT_QUALIFIER + "|\\d{8}\\.\\d{6}\\-(\\d+))";
 
     private static final Pattern VERSION_BUILD_SPECIFIER_PATTERN = Pattern.compile(VERSION_BUILD_SPECIFIER_REGEX);
 
-    private static final String VERSION_REGEX = "^" + VERSION_PRIMARY_NUMBERS_REGEX + "(" + VERSION_COMPONENT_SEPARATOR_REGEX
+    public static final String VERSION_REGEX = "^" + VERSION_PRIMARY_NUMBERS_REGEX + "(" + VERSION_COMPONENT_SEPARATOR_REGEX
             + VERSION_ANNOTATION_REGEX + ")?(" + VERSION_COMPONENT_SEPARATOR_REGEX + VERSION_ANNOTATIONREV_REGEX + ")?("
             + VERSION_COMPONENT_SEPARATOR_REGEX + VERSION_BUILD_SPECIFIER_REGEX + ")?$";
 
     private static final int VERSION_REGEXGROUP_PRIMARYNUMS = 1;
 
     private static final int VERSION_REGEXGROUP_ANNOTATION_SEPARATOR = 4;
 
     private static final int VERSION_REGEXGROUP_ANNOTATION = 5;
 
     private static final int VERSION_REGEXGROUP_ANNOTATIONREV_SEPARATOR = 7;
 
     private static final int VERSION_REGEXGROUP_ANNOTATIONREV = 8;
 
     private static final int VERSION_REGEXGROUP_BUILDSPEC_SEPARATOR = 10;
 
     private static final int VERSION_REGEXGROUP_BUILDSPEC = 11;
 
     private static final Pattern VERSION_PATTERN = Pattern.compile(VERSION_REGEX);
 
     private final Integer[] primaryNumbers;
 
     private Character annotationSeparator;
 
     private String annotation;
 
     private Character annotationRevisionSeparator;
 
     private Integer annotationRevision;
 
     private Character buildSpecifierSeparator;
 
     private String buildSpecifier;
 
     public GenericArtifactVersion(final String versionString) {
         final Matcher matcher = VERSION_PATTERN.matcher(versionString);
 
         if (!matcher.matches()) {
             throw new IllegalArgumentException("Provided version string is not a valid version.");
         }
 
         Integer annotationRevision = parseAnnotationRevision(matcher.group(VERSION_REGEXGROUP_ANNOTATIONREV));
         Character annotationSeparator = parseSeparator(matcher.group(VERSION_REGEXGROUP_ANNOTATION_SEPARATOR));
         String annotation = nullIfBlank(matcher.group(VERSION_REGEXGROUP_ANNOTATION));
         Character buildSpecifierSeparator = parseSeparator(matcher.group(VERSION_REGEXGROUP_BUILDSPEC_SEPARATOR));
         String buildSpecifier = nullIfBlank(matcher.group(VERSION_REGEXGROUP_BUILDSPEC));
 
         // The regex will capture the snapshot qualifier as an annotation.
         // Therefore, we need to set it as the build specifier.
         if (buildSpecifier == null && SNAPSHOT_QUALIFIER.equalsIgnoreCase(annotation)) {
             buildSpecifierSeparator = annotationSeparator;
             buildSpecifier = annotation;
             annotationSeparator = null;
             annotation = null;
         }
 
         // Set the separators, using the default ones where appropriate. This is a subtle use case. The user might have provided a
         // version with annotation but no annotation revision. E.g., 1.0_alpha.
         // This means that we would know what the annotation separator is ('_' in the example) but we don't have information about
         // the annotation revision separator. If later the user wants to add an annotation revision, we want to be sure that the
         // default separator is used instead of the null separator. Example, if the users adds a revision of '5', then the result
         // would be "1.0_alpha-5", and not "1.0_alpha5".
         this.annotationSeparator = (annotation == null) ? DEFAULT_VERSION_COMPONENT_SEPARATOR : annotationSeparator;
         this.annotationRevisionSeparator = (annotationRevision == null) ? DEFAULT_VERSION_COMPONENT_SEPARATOR
                 : parseSeparator(matcher.group(VERSION_REGEXGROUP_ANNOTATIONREV_SEPARATOR));
         this.buildSpecifierSeparator = (buildSpecifier == null) ? DEFAULT_VERSION_COMPONENT_SEPARATOR : buildSpecifierSeparator;
 
         // Set version components
         this.primaryNumbers = parsePrimaryNumber(matcher.group(VERSION_REGEXGROUP_PRIMARYNUMS));
         this.annotation = annotation;
         this.annotationRevision = annotationRevision;
         this.buildSpecifier = buildSpecifier;
     }
 
     /**
      * Parses a primary component number.
      *
      * @param primaryNumbers A string representing a sequence of primary numbers
      * separated by dot ('.'). Examples: "1", "1.2.3". Must be in the correct
      * format.
      * @return An array where each element is an integer. Index 0 contains the
      * most significant primary number.
      */
     private Integer[] parsePrimaryNumber(final String primaryNumbers) {
         final String[] primaryNumberStrings = primaryNumbers.split("\\.");
         final int n = primaryNumberStrings.length;
         final Integer[] result = new Integer[n];
 
         for (int i = 0; i < n; i++) {
             result[i] = Integer.parseInt(primaryNumberStrings[i]);
         }
 
         return result;
     }
 
     /**
      * Returns the input string or null if that string is blank or null.
      *
      * @param string The input string.
      * @return The input string or null if that string is blank or null.
      */
     private String nullIfBlank(final String string) {
         return StringUtils.isBlank(string) ? null : string;
     }
 
     /**
      * Parses a version component separator string and returns it as a
      * character.
      *
      * @param separator The separator string to parse.
      * @return The first character of the string, or null if that string is
      * empty.
      */
     private Character parseSeparator(final String separator) {
         return StringUtils.isNotEmpty(separator) ? separator.charAt(0) : null;
     }
 
     /**
      * Parses a string representing the version annotation revision.
      *
      * @param annotationRev The string to parse.
      * @return An integer representing the version annotation revision, or null
      * if the string is empty.
      */
     private Integer parseAnnotationRevision(final String annotationRev) {
         return StringUtils.isNotEmpty(annotationRev) ? Integer.parseInt(annotationRev) : null;
     }
 
     /**
      * Increments the least significant number in the version components by 1.
      * <p>
      * If the annotation revision is defined, it's incremented. Otherwise, the
      * last primary number is incremented.
      * <p>
      * Examples:
      * <ul>
      * <li>"1.2.3.4-alpha-5" is upgraded to "1.2.3.4-alpha-6"</li>
      * <li>"1.2.3.4-alpha" is upgraded to "1.2.3.5-alpha"</li>
      * <li>"1-SNAPSHOT" is upgraded to "2-SNAPSHOT"</li>
      * </ul>
      *
      * @return The instance, for method chaining.
      */
     public GenericArtifactVersion upgradeLeastSignificantNumber() {
         if (this.annotationRevision != null) {
             upgradeAnnotationRevision();
         } else {
             upgradeLeastSignificantPrimaryNumber();
         }
 
         return this;
     }
 
     /**
      * Increments the least significant primary number by 1, resetting the
      * annotation revision if it is defined.
      * <p>
      * Examples (assuming a base annotation revision of 1):
      * <ul>
      * <li>"1.2.3.4-alpha-5" is upgraded to "1.2.3.5-alpha-1"</li>
      * <li>"1.2.3.4-alpha" is upgraded to "1.2.3.5-alpha"</li>
      * <li>"1-SNAPSHOT" is upgraded to "2-SNAPSHOT"</li>
      * </ul>
      *
      * @return The instance, for method chaining.
      */
     public GenericArtifactVersion upgradeLeastSignificantPrimaryNumber() {
         upgradePrimaryNumber(this.primaryNumbers.length - 1);
 
         return this;
     }
 
     /**
      * Increments a primary number by 1, resetting the remaining less
      * significant components.
      * <p>
      * Examples (assuming a base annotation revision of 1):
      * <ul>
      * <li>"1.2.3.4-alpha-5" is upgraded to "2.0.0.0-alpha-1" with an index of
      * 0</li>
      * <li>"1.2.3.4-alpha-5" is upgraded to "1.2.3.0-alpha-1" with an index of
      * 3</li>
      * <li>"1.2-alpha" is upgraded to "1.3-alpha" with an index of 1</li>
      * <li>"1-SNAPSHOT" is upgraded to "2-SNAPSHOT" with an index of 0</li>
      * </ul>
      *
      * @param primaryNumberIndex The index identifying the primary number to
      * increase.
      * @return The instance, for method chaining.
      * @throws IllegalArgumentException if the index is negative.
      * @throws IllegalStateException if this version doesn't have a primary
      * number at the specified index.
      */
     public GenericArtifactVersion upgradePrimaryNumber(final int primaryNumberIndex) {
         if (primaryNumberIndex < 0) {
             throw new IllegalArgumentException("Primary number index cannot be negative.");
         }
         if (this.primaryNumbers.length <= primaryNumberIndex) {
             throw new IllegalStateException("Cannot upgrade version becase '" + this + "' does not have a "
                     + "primary number at index " + primaryNumberIndex);
         }
 
         this.primaryNumbers[primaryNumberIndex]++;
         resetPrimaryNumbers(primaryNumberIndex + 1);
         resetAnnotationRevision();
 
         return this;
     }
 
     /**
      * Increments the annotation revision by 1.
      *
      * @return The instance, for method chaining.
      * @throws IllegalStateException if this version doesn't have an annotation
      * revision defined.
      */
     public GenericArtifactVersion upgradeAnnotationRevision() {
         if (this.annotationRevision == null) {
             throw new IllegalStateException("Cannot upgrade annotation revision for version '" + this
                     + "' because it does not have that component.");
         }
 
         this.annotationRevision++;
         return this;
     }
 
     /**
      * Resets (sets to 0) all consecutive primary numbers starting at a specific
      * index.
      *
      * @param fromIndex The index pointing to the first primary number that will
      * be reset.
      */
     private void resetPrimaryNumbers(final int fromIndex) {
         for (int i = fromIndex, n = this.primaryNumbers.length; i < n; i++) {
             this.primaryNumbers[i] = 0;
         }
     }
 
     /**
      * Resets the annotation revision (if it is defined). It is set to
      * {@link #DEFAULT_BASE_ANNOTATION_REVISION}.
      */
     private void resetAnnotationRevision() {
         if (this.annotationRevision != null) {
             this.annotationRevision = DEFAULT_BASE_ANNOTATION_REVISION;
         }
     }
 
     /**
      * Returns the string representation of the primary numbers.
      * <p>
      * The string representation is the concatenation of all numbers separated
      * by the dot character ('.').
      *
      * @return The primary numbers as a single string.
      */
     public String getPrimaryNumbersAsString() {
         return createPrimaryNumbersString(new StringBuilder(8)).toString();
     }
 
     /**
      * Returns the string representation of the annotation string.
      *
      * [[-_]<annotation>][[-_]<annotation_revision>]
      *
      * @return The annotation as a single string.
      */
     public String getAnnotationAsString() {
         return createAnnotationString(new StringBuilder(0)).toString();
     }
 
     /**
      * Returns the string representation of the annotation string.
      *
      * [[-_]<build_specifier>]
      *
      * @return The build specifier as a single string.
      */
     public String getBuildSpecifierAsString() {
         return createBuildSpecifierString(new StringBuilder(0)).toString();
     }
 
     /**
      * Returns how many primary numbers are defined for this version.
      *
      * @return The primary number count.
      */
     public int getPrimaryNumberCount() {
         return this.primaryNumbers.length;
     }
 
     /**
      * Returns the primary number located at a specific index.
      *
      * @param index The index pointing to the primary number. Must be
      * non-negative.
      * @return The primary number, or null if it's not defined.
      * @throws IllegalArgumentException if the index is provided is negative.
      */
     public Integer getPrimaryNumber(final int index) {
         if (index < 0) {
             throw new IllegalArgumentException("Primary number index must be non-negative.");
         }
 
         return (this.primaryNumbers.length > index) ? this.primaryNumbers[index] : null;
     }
 
     /**
      * Defines the primary number located at a specific index.
      *
      * @param index The index pointing to the primary number to define. Must be
      * non-negative.
      * @param value The number to define as the primary component. Must be
      * non-negative.
      * @return The instance, for method chaining.
      * @throws IllegalArgumentException if the index or value is negative, or if
      * a primary number does not exist at that index.
      */
     public GenericArtifactVersion setPrimaryNumber(final int index, final int value) {
         if (index < 0) {
             throw new IllegalArgumentException("Primary number index must be non-negative.");
         }
         if (index >= this.primaryNumbers.length) {
             throw new IllegalArgumentException("Invalid index for version digit. Maximum digit index for this version is "
                     + (this.primaryNumbers.length - 1));
         }
         if (value < 0) {
             throw new IllegalArgumentException("Primary numbers must be non-negative.");
         }
 
         this.primaryNumbers[index] = value;
 
         return this;
     }
 
     /**
      * Returns the separator character for the version annotation component.
      *
      * @return The annotation separator, or null if there's none.
      */
     public Character getAnnotationSeparator() {
         return this.annotationSeparator;
     }
 
     /**
      * Sets the separator character for the version annotation component.
      *
      * @param annotationSeparator A valid separator character (read this class'
      * documentation for more information about the valid format). null can be
      * used to indicate that there's no separator.
      * @return The instance, for method chaining.
      * @throws IllegalArgumentException if the character provided is invalid.
      */
     public GenericArtifactVersion setAnnotationSeparator(final Character annotationSeparator) {
         validateSeparator(annotationSeparator);
         this.annotationSeparator = annotationSeparator;
 
         return this;
     }
 
     /**
      * Returns the version annotation component.
      *
      * @return The annotation, or null if it is not defined.
      */
     public String getAnnotation() {
         return this.annotation;
     }
 
     /**
      * Defines the version annotation component.
      *
      * @param annotation A valid annotation string (read this class'
      * documentation for more information about the valid format). null can be
      * used to indicate that there's no annotation.
      * @return The instance, for method chaining.
      * @throws IllegalArgumentException if the annotation is invalid.
      */
     public GenericArtifactVersion setAnnotation(final String annotation) {
         if (annotation != null && !VERSION_ANNOTATION_PATTERN.matcher(annotation).matches()) {
             throw new IllegalArgumentException("Invalid version separator.");
         }
         this.annotation = annotation;
 
         return this;
     }
 
     /**
      * Returns the separator character for the annotation revision.
      *
      * @return The separator, or null if there's none.
      */
     public Character getAnnotationRevisionSeparator() {
         return annotationRevisionSeparator;
     }
 
     /**
      * Defines the separator character for the version annotation revision
      * component.
      *
      * @param annotationRevisionSeparator A valid separator character (read this
      * class' documentation for more information about the valid format). null
      * can be used to indicate that there's no separator.
      * @return The instance, for method chaining.
      * @throws IllegalArgumentException if the character provided is invalid.
      */
     public GenericArtifactVersion setAnnotationRevisionSeparator(final Character annotationRevisionSeparator) {
         validateSeparator(annotationRevisionSeparator);
         this.annotationRevisionSeparator = annotationRevisionSeparator;
 
         return this;
     }
 
     /**
      * Returns the annotation revision number.
      *
      * @return The revision number, or null if it's not defined.
      */
     public Integer getAnnotationRevision() {
         return annotationRevision;
     }
 
     /**
      * Defines the annotation revision number.
      *
      * @param annotationRevision The revision number. Must be non-negative. null
      * can be used to indicate that there's no annotation revision number.
      * @return The instance, for method chaining.
      * @throws IllegalArgumentException if 'annotationRevision' is negative.
      */
     public GenericArtifactVersion setAnnotationRevision(final Integer annotationRevision) {
         if (annotationRevision != null && annotationRevision < 0) {
             throw new IllegalArgumentException("Annotation revision must be non-negative.");
         }
         this.annotationRevision = annotationRevision;
 
         return this;
     }
 
     /**
      * Returns the separator character for the build specifier component.
      *
      * @return The separator, or null if there's none.
      */
     public Character getBuildSpecifierSeparator() {
         return buildSpecifierSeparator;
     }
 
     /**
      * Defines the separator character for the version build specifier
      * component.
      *
      * @param buildSpecifierSeparator A valid separator character (read this
      * class' documentation for more information about the valid format). null
      * can be used to indicate that there's no separator.
      * @return The instance, for method chaining.
      * @throws IllegalArgumentException if the character provided is invalid.
      */
     public GenericArtifactVersion setBuildSpecifierSeparator(final Character buildSpecifierSeparator) {
         validateSeparator(buildSpecifierSeparator);
         this.buildSpecifierSeparator = buildSpecifierSeparator;
 
         return this;
     }
 
     /**
      * Returns the build specifier component.
      *
      * @return The build specifier, or null if it's not defined.
      */
     public String getBuildSpecifier() {
         return buildSpecifier;
     }
 
     /**
      * Defines the build specifier component.
      *
      * @param buildSpecifier A valid build specifier (read this class'
      * documentation for more information about the valid format). null can be
      * used to indicate that there's no build specifier component.
      * @return The instance, for method chaining.
      * @throws IllegalArgumentException if the build specifier is invalid.
      */
     public GenericArtifactVersion setBuildSpecifier(final String buildSpecifier) {
         if (buildSpecifier != null && !VERSION_BUILD_SPECIFIER_PATTERN.matcher(buildSpecifier).matches()) {
             throw new IllegalArgumentException("Invalid build specifier.");
         }
         this.buildSpecifier = buildSpecifier;
 
         return this;
     }
 
     /**
      * Checks that a character is a valid version component separator, only if
      * it's not null.
      *
      * @param separator The separator character that we want to check.
      * @throws IllegalArgumentException if the character is not a valid version
      * component separator.
      */
     private void validateSeparator(final Character separator) {
         if (separator != null && !VERSION_COMPONENT_SEPARATOR_PATTERN.matcher(String.valueOf(separator)).matches()) {
             throw new IllegalArgumentException("Invalid version separator.");
         }
     }
 
     /**
      * Returns a string representation of this version object.
      * <p>
      * The following condition is always true: new
      * {@link GenericArtifactVersion} (versionString).equals(versionString)
      * <p>
      * The result is the concatenation of all the version components, separated
      * with their respective separator characters:
      * <ul>
      * <li>primary components separated by the dot character ('.').</li>
      * <li>annotation separator</li>
      * <li>annotation</li>
      * <li>annotation revision separator</li>
      * <li>annotation revision</li>
      * <li>build specifier separator</li>
      * <li>build specifier</li>
      * </ul>
      *
      */
     @Override
     public String toString() {
         final StringBuilder result = new StringBuilder(30);
 
         createPrimaryNumbersString(result);
 
         if (this.annotation != null) {
             if (this.annotationSeparator != null) {
                 result.append(this.annotationSeparator);
             }
             result.append(this.annotation);
         }
 
         if (this.annotationRevision != null) {
             if (this.annotationRevisionSeparator != null) {
                 result.append(this.annotationRevisionSeparator);
             }
             result.append(this.annotationRevision);
         }
 
         if (this.buildSpecifier != null) {
             if (this.buildSpecifierSeparator != null) {
                 result.append(this.buildSpecifierSeparator);
             }
             result.append(this.buildSpecifier);
         }
 
         return result.toString();
     }
 
     /**
      * Creates a string concatenating the primary numbers separated by the dot
      * character ('.').
      * <p>
      * The result is appended to the provided string builder and returned.
      *
      * @param result The string builder where to append the string.
      * @return The provided string builder.
      */
     private StringBuilder createPrimaryNumbersString(final StringBuilder result) {
         for (int i = 0, n = this.primaryNumbers.length; i < n; i++) {
             if (i > 0) {
                 result.append('.');
             }
             result.append(this.primaryNumbers[i]);
         }
 
         return result;
     }
 
     /**
      * [[-_]<annotation>][[-_]<annotation_revision>]
      *
      * @param result
      * @return
      */
     private StringBuilder createAnnotationString(final StringBuilder result) {
         if (null != this.annotation) {
             result.append(this.annotationSeparator).append(this.annotation);
         }
         if (null != this.annotationRevision) {
             result.append(this.annotationRevisionSeparator).append(this.annotationRevision);
         }
         return result;
     }
 
     /**
      * [[-_]<build_specifier>]
      *
      * @param result
      * @return
      */
     private StringBuilder createBuildSpecifierString(final StringBuilder result) {
         if (null != this.buildSpecifier) {
             result.append(this.buildSpecifierSeparator).append(this.buildSpecifier);
         }
         return result;
     }
 }
diff --git a/ggitflow-maven-plugin/src/test/java/com/dkirrane/maven/plugins/ggitflow/name/NamerImplTest.java b/ggitflow-maven-plugin/src/test/java/com/dkirrane/maven/plugins/ggitflow/name/NamerImplTest.java
new file mode 100644
index 0000000..03432c9
--- /dev/null
+++ b/ggitflow-maven-plugin/src/test/java/com/dkirrane/maven/plugins/ggitflow/name/NamerImplTest.java
@@ -0,0 +1,139 @@
+/*
+ * Copyright 2016 dkirrane.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.dkirrane.maven.plugins.ggitflow.name;
+
+import static org.junit.Assert.assertEquals;
+import org.junit.Test;
+
+/**
+ *
+ * @author dkirrane
+ */
+public class NamerImplTest {
+
+    private Namer namer;
+
+    public NamerImplTest() {
+        namer = new NamerImpl();
+    }
+
+    @Test
+    public void testTrimRefName() {
+        String name = "/.sup\\p/.o..r//t/.lock";
+//        String expResult = "support/";
+//        String result = namer.trimRefName(name);
+//        assertEquals(expResult, result);
+
+        assertEquals("support", namer.trimRefName("support."));
+        assertEquals("support", namer.trimRefName("support.lock"));
+        assertEquals("support", namer.trimRefName("/.sup/.port/."));
+        assertEquals("support", namer.trimRefName("..supp..ort.."));
+        assertEquals("support", namer.trimRefName("supp ort"));
+        assertEquals("support", namer.trimRefName("supp  ort"));
+        assertEquals("support", namer.trimRefName("supp  ~^:ort"));
+        assertEquals("support", namer.trimRefName("supp?*[]ort"));
+        assertEquals("supp/ort", namer.trimRefName("/supp/ort/"));
+        assertEquals("supp/ort", namer.trimRefName("//supp//ort//"));
+        assertEquals("support", namer.trimRefName("support."));
+        assertEquals("support", namer.trimRefName("support."));
+        assertEquals("support", namer.trimRefName("support.."));
+        assertEquals("support", namer.trimRefName("@{supp@{ort@{"));
+        assertEquals("support", namer.trimRefName("@supp@ort@"));
+        assertEquals("support", namer.trimRefName("\\supp\\ort\\"));
+        assertEquals("support", namer.trimRefName("\\\\supp\\\\ort\\\\"));
+    }
+
+    @Test
+    public void testGetBranchName1() {
+        String prefix = "support/";
+        String name = "SP1";
+        String version = "1.0-1";
+        String expResult = "support/SP1/1.0-1";
+        String result = namer.getBranchName(prefix, name, version);
+        assertEquals(expResult, result);
+    }
+
+    @Test
+    public void testGetBranchName2() {
+        String prefix = "support/";
+        String name = "";
+        String version = "1.0-1";
+        String expResult = "support/1.0-1";
+        String result = namer.getBranchName(prefix, name, version);
+        assertEquals(expResult, result);
+    }
+
+    @Test
+    public void testGetBranchName3() {
+        String prefix = "support/";
+        String name = null;
+        String version = "1.0-1";
+        String expResult = "support/1.0-1";
+        String result = namer.getBranchName(prefix, name, version);
+        assertEquals(expResult, result);
+    }
+
+    @Test(expected = IllegalArgumentException.class)
+    public void testGetBranchName4() {
+        String prefix = "";
+        String name = "SP1";
+        String version = "1.0-1";
+        String expResult = "support/1.0-1";
+        String result = namer.getBranchName(prefix, name, version);
+        assertEquals(expResult, result);
+    }
+
+    @Test(expected = IllegalArgumentException.class)
+    public void testGetBranchName5() {
+        String prefix = null;
+        String name = "SP1";
+        String version = "1.0-1";
+        String expResult = "support/1.0-1";
+        String result = namer.getBranchName(prefix, name, version);
+        assertEquals(expResult, result);
+    }
+
+    @Test(expected = IllegalArgumentException.class)
+    public void testGetBranchName6() {
+        String prefix = "support/";
+        String name = "SP1";
+        String version = "FooBar-Version";
+        String expResult = "support/1.0-1";
+        String result = namer.getBranchName(prefix, name, version);
+        assertEquals(expResult, result);
+    }
+
+    @Test(expected = IllegalArgumentException.class)
+    public void testGetBranchName7() {
+        String prefix = "support/";
+        String name = "SP1";
+        String version = "";
+        String expResult = "support/1.0-1";
+        String result = namer.getBranchName(prefix, name, version);
+        assertEquals(expResult, result);
+    }
+
+    @Test(expected = IllegalArgumentException.class)
+    public void testGetBranchName8() {
+        String prefix = "support/";
+        String name = "SP1";
+        String version = null;
+        String expResult = "support/1.0-1";
+        String result = namer.getBranchName(prefix, name, version);
+        assertEquals(expResult, result);
+    }
+
+}

commit 0cfb87ca88c0f178030a31b4f3fc91f3a9a4a46b
Author: dkirrane <dkirrane@avaya.com>
Date:   Mon Oct 17 09:17:04 2016 +0100

    list master tags only

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
index 3563653..b33e56c 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
@@ -29,67 +29,76 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  * Creates a new support branch from a specific commit on the master branch.
  */
 @Mojo(name = "support-start", aggregator = true)
 public class SupportStartMojo extends AbstractSupportMojo {
 
     /**
      * The commit to start the support branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     protected String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         String prefix = getGitflowInit().getSupportBranchPrefix();
+        String masterBranch = getGitflowInit().getMasterBranch();
 
-        List<String> localTags = getGitflowInit().gitLocalTags();
+        List<String> localTags = getGitflowInit().gitLocalTagsOnBranch(masterBranch);
         if (localTags.isEmpty()) {
-            exceptionMapper.handle(new MojoFailureException("Could not find any local tags to create support branch from!"));
+            exceptionMapper.handle(new MojoFailureException("Could not find any local Git tags (on master) to create support branch from!"));
         }
 
+//        if (StringUtils.isBlank(supportName)) {
+//            try {
+//                supportName = prompter.promptWithDefault("Enter an optional support branch name (e.g SP1, SP2)? " + prefix, "");
+//            } catch (IOException ex) {
+//                exceptionMapper.handle(new MojoExecutionException("Error reading support name from command line " + ex.getMessage(), ex));
+//            }
+//        }
+
         if (StringUtils.isBlank(startCommit)) {
             try {
                 startCommit = prompter.promptChoice("Tags", "Please select a tag to create Support branch from", localTags);
             } catch (IOException ex) {
                 exceptionMapper.handle(new MojoFailureException("Error reading tag name from command line " + ex.getMessage()));
             }
         }
 
         getGitflowInit().executeLocal("git checkout " + startCommit);
         reloadReactorProjects();
         String supportVersion = getSupportVersion(project.getVersion());
         String supportSnapshotVersion = getSupportSnapshotVersion(project.getVersion());
 
         getLog().info("Starting support branch '" + supportVersion + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowSupport gitflowSupport = new GitflowSupport();
         gitflowSupport.setInit(getGitflowInit());
         gitflowSupport.setMsgPrefix(getMsgPrefix());
         gitflowSupport.setMsgSuffix(getMsgSuffix());
         gitflowSupport.setPush(true);
         gitflowSupport.setStartCommit(startCommit);
 
         try {
             gitflowSupport.start(supportVersion);
         } catch (GitCommandException gce) {
             String header = "Failed to run support start";
             exceptionMapper.handle(header, gce);
         } catch (GitflowException ge) {
             String header = "Failed to run support start";
             exceptionMapper.handle(header, ge);
         }
 
         setVersion(supportSnapshotVersion, prefix + supportVersion, false);
 
         if (getGitflowInit().gitRemoteBranchExists(prefix + supportVersion)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + supportVersion);
         }
     }
 
 }

commit 0f9df75650cb3ac73035866833f57a61e161f3a6
Author: dkirrane <dkirrane@avaya.com>
Date:   Mon Oct 17 09:16:34 2016 +0100

    fix for Maven 3.3.9

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index 4cebbf4..89124e5 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -48,2 +48,3 @@ import org.apache.maven.execution.MavenExecutionRequest;
 import org.apache.maven.execution.MavenSession;
+import org.apache.maven.execution.ReactorManager;
 import org.apache.maven.model.Dependency;
@@ -63,3 +64,2 @@ import org.apache.maven.project.ProjectBuildingRequest;
 import org.apache.maven.project.ProjectBuildingResult;
-import org.apache.maven.project.ProjectSorter;
 import org.apache.maven.shared.release.ReleaseResult;
@@ -86,537 +86,537 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 public class AbstractGitflowMojo extends AbstractMojo {
 
     Scanner scanner = new Scanner(System.in);
 
     public final Pattern matchSnapshotRegex = Pattern.compile("-SNAPSHOT");
 
     public static final ImmutableList<String> DEFAULT_INSTALL_ARGS = ImmutableList.of(
             "-DinstallAtEnd=false");
 
     public static final ImmutableList<String> DEFAULT_DEPLOY_ARGS = ImmutableList.of(
             "-DdeployAtEnd=false",
             "-DretryFailedDeploymentCount=2");
 
     public static final Splitter PROFILES_SPLITTER = Splitter.on(',').trimResults().omitEmptyStrings();
     public static final Joiner PROFILES_JOINER = Joiner.on(',').skipNulls();
 
     private static final Plugin VERSIONS_MVN_PLUGIN = plugin(
             groupId("org.codehaus.mojo"),
             artifactId("versions-maven-plugin"),
             version("2.3")
     );
 
     @Parameter(defaultValue = "${session}", readonly = true)
     protected MavenSession session;
 
     @Parameter(defaultValue = "${project}", readonly = true)
     protected MavenProject project;
 
     @Parameter(defaultValue = "${reactorProjects}", readonly = true, required = true)
     protected List<MavenProject> reactorProjects;
 
     @Component
     private ProjectBuilder projectBuilder;
 
     @Component
     protected BuildPluginManager pluginManager;
 
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
     @Component(role = Prompter.class)
     protected Prompter prompter;
 
     @Component(role = ExceptionMapper.class)
     protected ExceptionMapper exceptionMapper;
 
     /**
      * Gitflow branches and prefixes to use.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
     /**
      * Message prefix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgPrefix", defaultValue = "", required = false)
     protected String msgPrefix;
 
     /**
      * Message suffix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgSuffix", defaultValue = "", required = false)
     protected String msgSuffix;
 
     private GitflowInit init;
     private Path tempDir;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             getLog().debug("Gitflow pom  '" + project.getBasedir() + "'");
         }
         GitflowInit gitflowInit = getGitflowInit();
 
         exceptionMapper.setRepoDir(gitflowInit.getRepoDir());
 
         try {
             gitflowInit.requireGitRepo();
         } catch (GitflowException ge) {
             exceptionMapper.handle("Invalid Git repo", ge);
         }
         try {
             gitflowInit.checkRemoteConnection();
         } catch (GitCommandException ge) {
             exceptionMapper.handle("Git connection issue", ge);
         }
         try {
             gitflowInit.requireCleanWorkingTree();
         } catch (GitflowException ge) {
             exceptionMapper.handle("Check git status", ge);
         }
 
         if (!gitflowInit.gitflowIsInitialized()) {
             try {
                 gitflowInit.cmdDefault();
             } catch (GitCommandException gce) {
                 String header = "Unable to initialise Gitflow";
                 exceptionMapper.handle(header, gce);
             } catch (GitflowException ge) {
                 String header = "Unable to initialise Gitflow";
                 exceptionMapper.handle(header, ge);
             }
         }
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     protected final GitflowInit getGitflowInit() {
         if (null == init) {
             getLog().debug("Initialising Gitflow");
             init = new GitflowInit();
             File basedir = getProject().getBasedir();
             getLog().debug("Setting base directory " + basedir);
             init.setRepoDir(basedir);
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
 
             /* root Git directory may not be the pom directory */
             String gitRootPath = init.executeLocal("git rev-parse --show-toplevel");
             getLog().debug("Git repo top level " + gitRootPath);
             File baseGitDir = new File(gitRootPath);
             if (baseGitDir.isDirectory()) {
                 getLog().debug("Setting git base directory " + baseGitDir);
                 init.setRepoDir(baseGitDir);
             }
 
             /* Create temp directory - delete any previous first */
             try {
                 Path osTempDir = Paths.get(System.getProperty("java.io.tmpdir"));
                 for (File f : osTempDir.toFile().listFiles()) {
                     if (f.isDirectory() && f.getName().startsWith("mvn-gitflow")) {
                         Files.walkFileTree(f.toPath(), new SimpleFileVisitor<Path>() {
                             @Override
                             public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {
                                 Files.delete(file);
                                 return FileVisitResult.CONTINUE;
                             }
 
                             @Override
                             public FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOException {
                                 Files.delete(dir);
                                 return FileVisitResult.CONTINUE;
                             }
                         });
                     }
                 }
                 tempDir = Files.createTempDirectory("mvn-gitflow");
             } catch (IOException ioe) {
                 getLog().error("Failed to create temp directory", ioe);
             }
         }
         return init;
     }
 
     public String getVersionTagPrefix() {
         String prefix = getGitflowInit().getVersionTagPrefix();
         if (null == prefix) {
             prefix = DEFAULT_VERSION_TAG_PREFIX;
         }
         return prefix;
     }
 
     protected final boolean setVersion(String version, String branch, boolean push) throws MojoExecutionException, MojoFailureException {
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         MavenProject topLevelProject = session.getTopLevelProject();
         session.setCurrentProject(topLevelProject);
 
         String goal = goal("set");
         Xpp3Dom configuration = configuration(
                 element(name("generateBackupPoms"), "false"),
                 element(name("newVersion"), version)
         );
 
         String mavenCommand = getMavenCommand(VERSIONS_MVN_PLUGIN, goal);
 
         getLog().info("");
         getLog().info("--- " + mavenCommand + " " + topLevelProject.getArtifactId() + " to " + version + " (" + branch + ") ---");
         executeMyMojo(VERSIONS_MVN_PLUGIN, goal, configuration);
         getLog().info("------------------------------------------------------------------------");
 
         boolean commitMade = false;
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (push && getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change " + version + " to origin. ExitCode:" + exitCode);
                 }
             }
 
             commitMade = true;
         }
         /* We don't want to fail maybe the version was manually set correctly */
 //        else {
 //            throw new MojoFailureException("Failed to update poms to version " + version);
 //        }
         return commitMade;
     }
 
     protected final boolean setNextVersions(Boolean allowSnapshots, Boolean updateParent, String includes) throws MojoExecutionException, MojoFailureException {
         getLog().debug("setNextVersions");
 
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         MavenProject topLevelProject = session.getTopLevelProject();
         session.setCurrentProject(topLevelProject);
 
         if (updateParent) {
             String updateParentGoal = goal("update-parent");
             Xpp3Dom configuration = configuration(
                     element(name("generateBackupPoms"), "false"),
                     element(name("allowSnapshots"), allowSnapshots.toString())
             );
 
             String mavenCommand = getMavenCommand(VERSIONS_MVN_PLUGIN, updateParentGoal);
             getLog().info("");
             getLog().info("--- " + mavenCommand + " " + topLevelProject.getArtifactId() + " ---");
             executeMyMojo(VERSIONS_MVN_PLUGIN, updateParentGoal, configuration);
             getLog().info("------------------------------------------------------------------------");
         }
 
         if (!StringUtils.isBlank(includes)) {
             String useNextVersionsGoal = goal("use-next-versions");
             Xpp3Dom configuration = configuration(
                     element(name("generateBackupPoms"), "false"),
                     element(name("allowSnapshots"), allowSnapshots.toString()),
                     element(name("includesList"), includes)
             );
 
             String mavenCommand = getMavenCommand(VERSIONS_MVN_PLUGIN, useNextVersionsGoal);
             getLog().info("");
             getLog().info("--- " + mavenCommand + " " + topLevelProject.getArtifactId() + " ---");
             executeMyMojo(VERSIONS_MVN_PLUGIN, useNextVersionsGoal, configuration);
             getLog().info("------------------------------------------------------------------------");
         } else {
             getLog().warn("Parameter <includes> is not set. Skipping dependency updates");
         }
 
         boolean commitMade = false;
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg;
             if (allowSnapshots) {
                 msg = getMsgPrefix() + "Replaces any release versions with the next snapshot version (if it has been deployed)." + getMsgSuffix();
             } else {
                 msg = getMsgPrefix() + "Replaces snapshot versions with the corresponding release version" + getMsgSuffix();
             }
 
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change to origin. ExitCode:" + exitCode);
                 }
             }
             commitMade = true;
         }
         return commitMade;
     }
 
     protected final void executeMyMojo(Plugin plugin, String goal, Xpp3Dom configuration) throws MojoExecutionException, MojoFailureException {
         String mavenCommand = getMavenCommand(plugin, goal);
         MavenProject topLevelProject = session.getTopLevelProject();
         String projArtifactId = topLevelProject.getArtifactId();
         getLog().debug("START " + mavenCommand + " on " + projArtifactId);
         getLog().debug("configuration " + configuration.toUnescapedString());
 
         /* Maven 3.3.x log settings */
         session.getRequest().setLoggingLevel(MavenExecutionRequest.LOGGING_LEVEL_ERROR);
         System.setProperty("org.slf4j.simpleLogger.defaultLogLevel", "error");
         System.setProperty("maven.logging.root.level", "error");
         PrintStream stdout = System.out;
         PrintStream stderr = System.err;
         PrintStream stoutStream = null;
         Path tempStoutFile = null;
         try {
 
             /* Capture System.out */
             if (!getLog().isDebugEnabled()) {
                 try {
                     String logFileName = plugin.getArtifactId() + '-' + goal + '-';
                     tempStoutFile = Files.createTempFile(tempDir, logFileName, ".log");
                     stoutStream = new PrintStream(new FileOutputStream(tempStoutFile.toFile(), true));
                     System.setOut(stoutStream);
                     System.setErr(stoutStream);
                 } catch (Exception ioe) {
                     getLog().warn("Failed to capture System.out", ioe);
                 }
             }
 
             /* Execute Maven plugin goal */
             executeMojo(
                     plugin,
                     goal,
                     configuration,
                     executionEnvironment(
                             session.getTopLevelProject(),
                             session,
                             pluginManager
                     )
             );
 
         } catch (MojoExecutionException mee) {
             /* Reset System.out */
             System.setOut(stdout);
             System.setErr(stderr);
             String rootCauseMessage = ExceptionUtils.getRootCauseMessage(mee);
             if (rootCauseMessage.contains("Project version is inherited from parent")) {
                 getLog().debug("Skipping " + mavenCommand + " for project " + projArtifactId + ". Project version is inherited from parent.");
             } else {
                 getLog().error("Failed to execute " + mavenCommand + " on " + projArtifactId, mee);
                 throw mee;
             }
         } finally {
             if (!getLog().isDebugEnabled()) {
                 /* Reset System.out */
                 System.setOut(stdout);
                 System.setErr(stderr);
 
                 if (null != tempStoutFile) {
                     getLog().info(mavenCommand + " log " + tempStoutFile.toString());
                 }
 
                 if (null != stoutStream) {
                     try {
                         stoutStream.close();
                     } catch (Exception e) {
                     }
                 }
             }
             getLog().debug("DONE " + mavenCommand);
         }
     }
 
     private String getMavenCommand(Plugin plugin, String goal) {
         return plugin.getArtifactId() + ':' + plugin.getVersion() + ':' + goal;
     }
 
     protected final void runGoals(String goals, List<String> additionalArgs) throws MojoExecutionException, MojoFailureException {
         getLog().debug("START executing " + goals + " with args " + additionalArgs);
 
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         File basedir = rootProject.getBasedir();
 
         ReleaseResult result = new ReleaseResult();
         ReleaseEnvironment env = new DefaultReleaseEnvironment();
         env.setSettings(session.getSettings());
         MavenExecutor mavenExecutor = mavenExecutors.get(env.getMavenExecutorId());
 
         Joiner joiner = Joiner.on(" ").skipNulls();
         String additionalArguments = joiner.join(additionalArgs);
         getLog().debug("additionalArguments " + additionalArguments);
 
         try {
             mavenExecutor.executeGoals(basedir, goals, env, false, additionalArguments, result);
         } catch (MavenExecutorException ex) {
             throw new MojoExecutionException(result.getOutput(), ex);
         }
         getLog().debug("DONE executing " + goals);
     }
 
     protected final String getReleaseVersion(String version) throws MojoFailureException {
         getLog().debug("Current Develop version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
             getLog().debug("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
     protected final void checkForSnapshotDependencies() throws MojoExecutionException {
         getLog().info("Checking for SNAPSHOT dependencies");
         Boolean hasDepSnapshots = false;
         Boolean hasParentSnapshot = false;
         for (MavenProject mavenProject : reactorProjects) {
             String artifactId = mavenProject.getArtifactId();
 
             /* Check <parent> */
             Artifact parentArtifact = mavenProject.getParentArtifact();
             if (parentArtifact != null && parentArtifact.isSnapshot()) {
                 getLog().error("Parent of project " + artifactId + " is a SNAPSHOT " + parentArtifact.getId());
                 hasParentSnapshot = true;
             }
 
             /* Check <dependencyManagement> */
             DependencyManagement dependencyManagement = mavenProject.getDependencyManagement();
             if (null != dependencyManagement) {
                 if (checkForSnapshot(artifactId, dependencyManagement.getDependencies())) {
                     hasDepSnapshots = true;
                 }
             }
 
             /* Check <dependencies> */
             if (checkForSnapshot(artifactId, mavenProject.getDependencies())) {
                 hasDepSnapshots = true;
             }
         }
         if (hasParentSnapshot || hasDepSnapshots) {
             throw new MojoExecutionException("Cannot release because SNAPSHOT dependencies exist");
         }
         getLog().info("No SNAPSHOT dependencies found");
     }
 
     private boolean checkForSnapshot(String artifactId, List<Dependency> dependencies) throws MojoExecutionException {
         Boolean hasSnapshotDependency = false;
         for (Dependency dependency : dependencies) {
             String version = dependency.getVersion();
             Matcher versionMatcher = matchSnapshotRegex.matcher(version);
             if (versionMatcher.find() && versionMatcher.end() == version.length()) {
                 getLog().error("Project " + artifactId + " contains SNAPSHOT dependency: " + dependency.getGroupId() + ":" + dependency.getArtifactId() + ":" + version);
                 hasSnapshotDependency = true;
             }
         }
         return hasSnapshotDependency;
     }
 
     protected final void reloadReactorProjects() {
         getLog().debug("Reloading poms...");
 
         List<MavenProject> updatedReactorProjects = new ArrayList<>();
 
         MavenProject rootProject = ReleaseUtil.getRootProject(reactorProjects);
         getLog().debug("rootProject = " + rootProject);
         try {
             if (rootProject.getFile().exists() && rootProject.getFile().canRead()) {
                 MavenExecutionRequest mavenExecutionRequest = session.getRequest();
                 ProjectBuildingRequest projectBuildingRequest = mavenExecutionRequest.getProjectBuildingRequest();
                 try {
                     List<ProjectBuildingResult> buildResults = projectBuilder.build(newArrayList(rootProject.getFile()), true, projectBuildingRequest);
                     for (ProjectBuildingResult buildResult : buildResults) {
                         MavenProject reloadProject = buildResult.getProject();
                         reloadProject.setActiveProfiles(rootProject.getActiveProfiles());
                         updatedReactorProjects.add(reloadProject);
                     }
                 } catch (ProjectBuildingException ex) {
                     getLog().error("Build error reloading Maven projects", ex);
                 }
             }
         } catch (Exception ex) {
             getLog().error("Failed to reload reactor projects", ex);
             throw ex;
         }
 
         try {
-            ProjectSorter projectSorter = new ProjectSorter(updatedReactorProjects);
-            updatedReactorProjects = projectSorter.getSortedProjects();
+            ReactorManager reactorManager = new ReactorManager(updatedReactorProjects);
+            updatedReactorProjects = reactorManager.getSortedProjects();
         } catch (CycleDetectedException | DuplicateProjectException ex) {
             getLog().error("Failed to sort reactor projects", ex);
         }
 
         session.setProjects(updatedReactorProjects);
         project = ReleaseUtil.getRootProject(updatedReactorProjects);
         reactorProjects = updatedReactorProjects;
 
         if (getLog().isDebugEnabled()) {
             getLog().debug("Reloaded MavenProject: " + project);
             getLog().debug("Reloaded reactorProjects: ");
             for (int i = 0; i < reactorProjects.size(); i++) {
                 MavenProject updatedReactorProject = updatedReactorProjects.get(i);
                 System.out.printf(" %-4s %-70s [Parent:%s]\n",
                         i + ")",
                         updatedReactorProject.getArtifact(),
                         updatedReactorProject.getParentArtifact());
 //                DependencyManagement dependencyManagement = updatedReactorProject.getDependencyManagement();
 //                if (null != dependencyManagement && null != dependencyManagement.getDependencies()) {
 //                    System.out.printf("\t\t\t DependencyManagement:\n");
 //                    for (Dependency dependency : dependencyManagement.getDependencies()) {
 //                        System.out.printf("\t\t\t\t\t %s:%s:%s \n", dependency.getGroupId(), dependency.getArtifactId(), dependency.getVersion());
 //                    }
 //                }
 //                if (null != updatedReactorProject.getDependencies()) {
 //                    System.out.printf("\t\t\t Dependencies:\n");
 //                    for (Dependency dependency : updatedReactorProject.getDependencies()) {
 //                        System.out.printf("\t\t\t\t\t %s:%s:%s \n", dependency.getGroupId(), dependency.getArtifactId(), dependency.getVersion());
 //                    }
 //                }
             }
         }
 
         getLog().debug("Reloading poms complete");
     }
 
     protected List<String> rearrange(String input, List<String> strings) {
         strings.remove(input);
         strings.add(0, input);
         return strings;
     }
 
 }

commit ebbe8353fcf50e69b8b72567f70920b989b49a80
Author: dkirrane <dkirrane@avaya.com>
Date:   Fri Oct 14 15:23:56 2016 +0100

    fixes

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
index 9bc9478..3563653 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
@@ -29,67 +29,67 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  * Creates a new support branch from a specific commit on the master branch.
  */
 @Mojo(name = "support-start", aggregator = true)
 public class SupportStartMojo extends AbstractSupportMojo {
 
     /**
      * The commit to start the support branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     protected String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         String prefix = getGitflowInit().getSupportBranchPrefix();
 
         List<String> localTags = getGitflowInit().gitLocalTags();
         if (localTags.isEmpty()) {
             exceptionMapper.handle(new MojoFailureException("Could not find any local tags to create support branch from!"));
         }
 
         if (StringUtils.isBlank(startCommit)) {
             try {
-                startCommit = prompter.promptChoice("Support branches", "Please select a tag to create Support branch from", localTags);
+                startCommit = prompter.promptChoice("Tags", "Please select a tag to create Support branch from", localTags);
             } catch (IOException ex) {
                 exceptionMapper.handle(new MojoFailureException("Error reading tag name from command line " + ex.getMessage()));
             }
         }
 
         getGitflowInit().executeLocal("git checkout " + startCommit);
         reloadReactorProjects();
         String supportVersion = getSupportVersion(project.getVersion());
         String supportSnapshotVersion = getSupportSnapshotVersion(project.getVersion());
 
         getLog().info("Starting support branch '" + supportVersion + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowSupport gitflowSupport = new GitflowSupport();
         gitflowSupport.setInit(getGitflowInit());
         gitflowSupport.setMsgPrefix(getMsgPrefix());
         gitflowSupport.setMsgSuffix(getMsgSuffix());
         gitflowSupport.setPush(true);
         gitflowSupport.setStartCommit(startCommit);
 
         try {
             gitflowSupport.start(supportVersion);
         } catch (GitCommandException gce) {
             String header = "Failed to run support start";
             exceptionMapper.handle(header, gce);
         } catch (GitflowException ge) {
             String header = "Failed to run support start";
             exceptionMapper.handle(header, ge);
         }
 
         setVersion(supportSnapshotVersion, prefix + supportVersion, false);
 
         if (getGitflowInit().gitRemoteBranchExists(prefix + supportVersion)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + supportVersion);
         }
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportTagMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportTagMojo.java
index 4dc7faf..f909f7b 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportTagMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportTagMojo.java
@@ -29,172 +29,172 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  * Creates a tag on a support branch when releasing of a support branch. Note:
  * this does not merge support branch changes back to develop
  */
 @Mojo(name = "support-tag", aggregator = true)
 public class SupportTagMojo extends AbstractSupportMojo {
 
     /**
      * If <code>true</code>, the tag can still get created even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 2.3
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private Boolean allowSnapshots;
 
     /**
      * The message to append add to the release tag
      *
      * @since 1.2
      */
     @Parameter(property = "tagMsg", defaultValue = "", required = false)
     private String tagMsg;
 
     /**
      * If <code>true</code>, the support tag will be signed.
      *
      * @since 2.3
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 2.3
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().debug("Tagging support branch");
 
         /* Get support branch name */
         String prefix = getSupportBranchPrefix();
         List<String> supportBranches = getGitflowInit().gitLocalSupportBranches();
         if (supportBranches.isEmpty()) {
             exceptionMapper.handle(new MojoFailureException("Could not find any local support branch!"));
         }
 
         if (StringUtils.isBlank(supportName)) {
             if (supportBranches.size() == 1) {
                 String supportBranch = supportBranches.get(0);
                 supportName = trimSupportName(supportBranch);
             } else {
                 String supportBranch = promptForExistingSupportBranch(prefix, supportBranches);
                 supportName = trimSupportName(supportBranch);
             }
 
         } else {
             supportName = trimSupportName(supportName);
             if (!getGitflowInit().gitLocalBranchExists(prefix + supportName)) {
                 String msg = "No local support branch named '" + prefix + supportName + "' exists!";
                 exceptionMapper.handle(new MojoFailureException(msg));
             }
         }
 
         getLog().info("Tagging support branch '" + supportName + "'");
 
         String supportBranch = prefix + supportName;
 
         /* Switch to support branch and get its current version */
         getGitflowInit().executeLocal("git checkout " + supportBranch);
         reloadReactorProjects();
         String snapshotVersion = project.getVersion();
 
         /* Get release version for support tag */
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(snapshotVersion);
         String supportVersion;
         if ("SNAPSHOT".equals(artifactVersion.getBuildSpecifier())) {
             supportVersion = getReleaseVersion(project.getVersion());
         } else {
             supportVersion = project.getVersion();
         }
         getLog().debug("support version = " + supportVersion);
 
         getGitflowInit().requireTagAbsent(supportVersion);
 
         /* Set support branch to release version */
         boolean setVersion = setVersion(supportVersion, supportBranch, false);
 
         if (!allowSnapshots) {
             reloadReactorProjects();
             try {
                 checkForSnapshotDependencies();
             } catch (MojoExecutionException mee) {
                 // reset setVersion commit to allow user fix & push SNAPSHOT dependencies
                 if (setVersion) {
                     getGitflowInit().executeLocal("git reset --hard HEAD~1");
                 }
                 exceptionMapper.handle(mee);
             }
         }
 
         /* tag support branch */
         tagMsg = StringUtils.isBlank(tagMsg) ? "" : " " + tagMsg;
         String tagMessage = "Support release version " + supportVersion + tagMsg ;
         String tagName = supportVersion;
         String tagString = getGitflowInit().executeLocal("git tag -a -m \"" + tagMessage + "\" " + tagName + " " + supportBranch);
         getLog().debug("Git tag output = " + tagString);
 
         /* Increment support branch to next version */
         String nextSupportVersion = getNextSupportVersion(snapshotVersion);
         setVersion(nextSupportVersion, supportBranch, false);
         promptToPushSupportBranchAndTag(supportBranch, tagName);
 
     }
 
     private String promptForExistingSupportBranch(String prefix, List<String> supportBranches) throws MojoFailureException {
         List<String> choices = supportBranches;
 
         /* if current branch is a support branch at it to start of list so it is the default in prompt */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (currentBranch.startsWith(prefix)) {
             choices = rearrange(currentBranch, supportBranches);
         }
 
         String name = "";
         try {
-            prompter.promptChoice("Support branches", "Please select a support branch to tag", choices);
+            name = prompter.promptChoice("Support branches", "Please select a support branch to tag", choices);
         } catch (IOException ex) {
             throw new MojoFailureException("Error reading release name from command line " + ex.getMessage());
         }
         return name.trim();
     }
 
     private void promptToPushSupportBranchAndTag(String supportBranch, String supportTag) throws MojoFailureException {
         String origin = getGitflowInit().getOrigin();
 
         boolean yes = false;
         if (session.getRequest().isInteractiveMode()) {
             prompter.pushPrompt("Are you ready to push?", Arrays.asList(supportTag), Arrays.asList(supportBranch), Collections.EMPTY_LIST);
             try {
                 yes = prompter.promptYesNo("Do you want to continue");
             } catch (IOException e) {
                 throw new MojoFailureException("Error reading user input from command line " + e.getMessage());
             }
         } else {
             yes = true; // push in maven --batch mode
         }
 
         if (yes) {
             if (getGitflowInit().gitRemoteBranchExists(supportBranch)) {
                 getLog().info("Pushing tag " + supportTag);
                 getGitflowInit().executeRemote("git push " + origin + " " + supportTag);
                 getLog().info("Pushing " + supportBranch);
                 getGitflowInit().executeRemote("git push " + origin + " " + supportBranch);
             } else {
                 getLog().info("");
                 getLog().warn("===> Branch '" + supportBranch + "' does not exist on '" + origin + "'");
                 getLog().warn("===> Once ready you MUST manually push '" + supportBranch + "' branch and support tag '" + supportTag + "' to '" + origin + "'");
                 getLog().info("");
             }
         } else {
             getLog().info("");
             getLog().warn("===> Once ready you MUST manually push '" + supportBranch + "' branch and support tag '" + supportTag + "' to '" + origin + "'");
             getLog().info("");
         }
     }
 }

commit 0bfa6be08cf2ab97b9af344b2fc8a009b42427f6
Author: dkirrane <dkirrane@avaya.com>
Date:   Fri Oct 14 12:46:17 2016 +0100

    minor improvements

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
index 03c664e..5b96aa2 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
@@ -23,2 +23,3 @@ import java.io.IOException;
 import java.util.Arrays;
+import java.util.Collections;
 import java.util.List;
@@ -31,154 +32,154 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  * Merges a feature branch back into the develop.
  */
 @Mojo(name = "feature-finish", aggregator = true)
 public class FeatureFinishMojo extends AbstractFeatureMojo {
 
     /**
      * If <code>true</code>, the feature branch will be rebased onto develop,
      * then finish will fast-forward merge the feature branch back onto develop.
      *
      * @since 1.2
      */
     @Parameter(property = "isRebase", defaultValue = "false", required = false)
     private boolean isRebase;
 
 //    No good way to handle Interactive rebase from a Maven plugin
 //    /**
 //     * If <code>true</code>, and <code>isRebase</code> is true, then an interactive rebase is
 //     * performed for the feature branch.
 //     *
 //     * @since 1.2
 //     */
 //    @Parameter(property = "isInteractive", defaultValue = "false", required = false)
     private final boolean isInteractive = false;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().debug("Finishing feature");
 
         String prefix = getFeatureBranchPrefix();
         List<String> featureBranches = getGitflowInit().gitLocalFeatureBranches();
         if (null == featureBranches || featureBranches.isEmpty()) {
             throw new MojoFailureException("No local feature branches exist!");
         }
 
         if (StringUtils.isBlank(featureName)) {
             String featureBranch = promptForExistingFeatureBranch(prefix, featureBranches);
             featureName = trimFeatureName(featureBranch);
         } else {
             featureName = trimFeatureName(featureName);
             if (!getGitflowInit().gitLocalBranchExists(prefix + featureName)) {
                 throw new MojoFailureException("No local feature branch named '" + prefix + featureName + "' exists!");
             }
         }
 
         getLog().info("Finishing feature '" + featureName + "'");
 
         String featureBranch = prefix + featureName;
         String developBranch = getGitflowInit().getDevelopBranch();
         String masterBranch = getGitflowInit().getMasterBranch();
         String origin = getGitflowInit().getOrigin();
 
         if (enableFeatureVersions) {
             /* Switch to develop branch and get its current version */
             getGitflowInit().executeLocal("git checkout " + developBranch);
             reloadReactorProjects();
             String developVersion = project.getVersion();
             getLog().debug("develop version = " + developVersion);
 
             /* Switch to feature branch and get its current version */
             getGitflowInit().executeLocal("git checkout " + featureBranch);
             reloadReactorProjects();
             String featureVersion = project.getVersion();
             getLog().debug("feature version = " + featureVersion);
 
             setVersion(developVersion, featureBranch, false);
         }
 
         GitflowFeature gitflowFeature = new GitflowFeature();
         gitflowFeature.setInit(getGitflowInit());
         gitflowFeature.setMsgPrefix(getMsgPrefix());
         gitflowFeature.setMsgSuffix(getMsgSuffix());
         gitflowFeature.setPush(false);
         gitflowFeature.setSquash(squash);
         gitflowFeature.setIsRebase(isRebase);
         gitflowFeature.setIsInteractive(isInteractive);
 
         try {
             gitflowFeature.finish(featureName);
         } catch (GitCommandException gce) {
             String header = "Error merging branch '" + featureBranch + "' into '" + masterBranch + "'";
             exceptionMapper.handle(header, gce);
         } catch (GitflowException ge) {
             String header = "Error merging branch '" + featureBranch + "' into '" + masterBranch + "'";
             exceptionMapper.handle(header, ge);
         } catch (GitflowMergeConflictException gmce) {
             String header = "Merge conflict merging branch '" + featureBranch + "' into '" + masterBranch + "'";
             exceptionMapper.handle(header, gmce);
         }
 
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
         /* Push merges and tag */
         try {
             if (session.getRequest().isInteractiveMode()) {
-                prompter.pushPrompt("Are you ready to push?", Arrays.asList(developBranch), Arrays.asList(featureBranch, origin + '/' + featureBranch));
+                prompter.pushPrompt("Are you ready to push?", Collections.EMPTY_LIST, Arrays.asList(developBranch), Arrays.asList(featureBranch, origin + '/' + featureBranch));
                 boolean yes;
                 try {
                     yes = prompter.promptYesNo("Do you want to continue");
                 } catch (IOException e) {
                     throw new MojoFailureException("Error reading user input from command line " + e.getMessage());
                 }
 
                 if (yes) {
                     gitflowFeature.publish(featureBranch, true);
                 } else {
                     gitflowFeature.publish(featureBranch, false);
                 }
             } else {
                 gitflowFeature.publish(featureBranch, true);
             }
         } catch (GitCommandException gce) {
             String header = "Failed to push release finish";
             exceptionMapper.handle(header, gce);
         } catch (GitflowException ge) {
             String header = "Failed to push release finish";
             exceptionMapper.handle(header, ge);
         }
     }
 
     private String promptForExistingFeatureBranch(String prefix, List<String> featureBranches) throws MojoFailureException {
         List<String> choices = featureBranches;
 
         /* if current branch is a feature branch at it to start of list so it is the default in prompt */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (currentBranch.startsWith(prefix)) {
             choices = rearrange(currentBranch, featureBranches);
         }
 
         String name = "";
         try {
             prompter.promptChoice("Feature branches", "Please select a feature branch to finish", choices);
         } catch (IOException ex) {
             throw new MojoFailureException("Error reading feature name from command line " + ex.getMessage());
         }
         return name.trim();
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
index 68e2fbb..ec1b8f2 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
@@ -32,231 +32,231 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  * Merges a hotfix branch back into the develop and master branch and then
  * creates a tag for the hotfix on master.
  */
 @Mojo(name = "hotfix-finish", aggregator = true)
 public class HotfixFinishMojo extends AbstractHotfixMojo {
 
     protected String hotfixName;
 
     /**
      * If <code>true</code>, the hotfix can still finish even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private boolean allowSnapshots;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * The message to append add to the release tag
      *
      * @since 1.2
      */
     @Parameter(property = "tagMsg", defaultValue = "", required = false)
     private String tagMsg;
 
     /**
      * If <code>true</code>, the hotfix tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().debug("Finishing hotfix");
 
         /* Get hotfix branch name */
         String prefix = getHotfixBranchPrefix();
         List<String> hotfixBranches = getGitflowInit().gitLocalHotfixBranches();
         if (hotfixBranches.isEmpty()) {
             throw new MojoFailureException("Could not find any local hotfix branch!");
         }
 
         if (StringUtils.isBlank(hotfixName)) {
             if (hotfixBranches.size() == 1) {
                 String hotfixBranch = hotfixBranches.get(0);
                 hotfixName = trimHotfixName(hotfixBranch);
             } else {
                 String hotfixBranch = promptForExistingHotfixBranch(prefix, hotfixBranches);
                 hotfixName = trimHotfixName(hotfixBranch);
             }
 
         } else {
             hotfixName = trimHotfixName(hotfixName);
             if (!getGitflowInit().gitLocalBranchExists(prefix + hotfixName)) {
                 throw new MojoFailureException("No local hotfix branch named '" + prefix + hotfixName + "' exists!");
             }
         }
 
         getLog().info("Finishing hotfix '" + hotfixName + "'");
 
         String hotfixBranch = prefix + hotfixName;
         String tagName = getVersionTagPrefix() + hotfixName;
         String developBranch = getGitflowInit().getDevelopBranch();
         String masterBranch = getGitflowInit().getMasterBranch();
         String origin = getGitflowInit().getOrigin();
 
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
         gitflowHotfix.setPush(false);
         gitflowHotfix.setSquash(squash);
         gitflowHotfix.setTagMsg(tagMsg);
         gitflowHotfix.setSign(sign);
         gitflowHotfix.setSigningkey(signingkey);
 
         /* Switch to hotfix branch and set poms to hotfix version */
         getGitflowInit().executeLocal("git checkout " + hotfixBranch);
         reloadReactorProjects();
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(project.getVersion());
         String hotfixVersion;
         if ("SNAPSHOT".equals(artifactVersion.getBuildSpecifier())) {
             hotfixVersion = getReleaseVersion(project.getVersion());
         } else {
             hotfixVersion = project.getVersion();
         }
         getLog().debug("hotfix version = " + hotfixVersion);
 
         /* If tag exists we skip merge to master as merge already took place. Possible re-run after merge conflict */
         if (!getGitflowInit().gitTagExists(tagName)) { // @TODO and should also check that last hotfix branch commit is on master
 
             /* Before setting hotfix version check if hotfix branch was already merged to master */
             boolean setVersion = setVersion(hotfixVersion, hotfixBranch, false); // don't push so can can reset if needed
 
             if (!allowSnapshots) {
                 reloadReactorProjects();
                 try {
                     checkForSnapshotDependencies();
                 } catch (MojoExecutionException mee) {
                     // reset setVersion commits to allow user fix & push SNAPSHOT dependencies
                     // but can only reset if it the commits have not been pushed */
                     if (setVersion) {
                         getGitflowInit().executeLocal("git reset --hard HEAD~1");
                     }
                     exceptionMapper.handle(mee);
                 }
             }
 
             /* 1. merge to master */
             try {
                 gitflowHotfix.finishToMaster(hotfixBranch, tagName);
             } catch (GitCommandException gce) {
                 String header = "Error merging branch '" + hotfixBranch + "' into '" + masterBranch + "'";
                 exceptionMapper.handle(header, gce);
             } catch (GitflowException ge) {
                 String header = "Error merging branch '" + hotfixBranch + "' into '" + masterBranch + "'";
                 exceptionMapper.handle(header, ge);
             } catch (GitflowMergeConflictException gmce) {
                 String header = "Merge conflict merging branch '" + hotfixBranch + "' into '" + masterBranch + "'";
                 exceptionMapper.handle(header, gmce);
             }
         } else {
             getLog().warn("Tag " + tagName + " already exists. Skipping merge of hotfix branch '" + hotfixBranch + "' into '" + masterBranch + "'");
         }
 
         /* 2. make versions in hotfix and develop branches match to avoid conflicts */
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         getLog().debug("develop version = " + developVersion);
         getGitflowInit().executeLocal("git checkout " + hotfixBranch);
         reloadReactorProjects();
         boolean setDevVersion = setVersion(developVersion, hotfixBranch, false); // don't push so can can reset if needed
 
         /* 3. merge to develop */
         try {
             gitflowHotfix.finishToDevelop(hotfixBranch, tagName);
         } catch (GitCommandException gce) {
             // reset setVersion commit and allow user fix whatever exception occurred
             // but can only reset if the commit has not been pushed
             if (setDevVersion) {
                 getGitflowInit().executeLocal("git reset --hard HEAD~1");
             }
             String header = "Error merging branch '" + hotfixBranch + "' into '" + developBranch + "'";
             exceptionMapper.handle(header, gce);
         } catch (GitflowException ge) {
             // reset setVersion commit and allow user fix whatever exception occurred
             // but can only reset if the commit has not been pushed
             if (setDevVersion) {
                 getGitflowInit().executeLocal("git reset --hard HEAD~1");
             }
             String header = "Error merging branch '" + hotfixBranch + "' into '" + developBranch + "'";
             exceptionMapper.handle(header, ge);
         } catch (GitflowMergeConflictException gmce) {
             String header = "Merge conflict merging branch '" + hotfixBranch + "' into '" + developBranch + "'";
             exceptionMapper.handle(header, gmce);
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
         /* Push merges and tag */
         try {
             if (session.getRequest().isInteractiveMode()) {
-                prompter.pushPrompt("Are you ready to push?", Arrays.asList(tagName, masterBranch, developBranch), Arrays.asList(hotfixBranch, origin + '/' + hotfixBranch));
+                prompter.pushPrompt("Are you ready to push?", Arrays.asList(tagName), Arrays.asList(masterBranch, developBranch), Arrays.asList(hotfixBranch, origin + '/' + hotfixBranch));
                 boolean yes;
                 try {
                     yes = prompter.promptYesNo("Do you want to continue");
                 } catch (IOException e) {
                     throw new MojoFailureException("Error reading user input from command line " + e.getMessage());
                 }
 
                 if (yes) {
                     gitflowHotfix.publish(hotfixBranch, tagName, true);
                 } else {
                     gitflowHotfix.publish(hotfixBranch, tagName, false);
                 }
             } else {
                 gitflowHotfix.publish(hotfixBranch, tagName, true);
             }
         } catch (GitCommandException gce) {
             String header = "Failed to push hotfix finish";
             exceptionMapper.handle(header, gce);
         } catch (GitflowException ge) {
             String header = "Failed to push hotfix finish";
             exceptionMapper.handle(header, ge);
         }
     }
 
     private String promptForExistingHotfixBranch(String prefix, List<String> hotfixBranches) throws MojoFailureException {
         List<String> choices = hotfixBranches;
 
         /* if current branch is a feature branch at it to start of list so it is the default in prompt */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (currentBranch.startsWith(prefix)) {
             choices = rearrange(currentBranch, hotfixBranches);
         }
 
         String name = "";
         try {
             prompter.promptChoice("Hotfix branches", "Please select a hotfix branch to finish", choices);
         } catch (IOException ex) {
             throw new MojoFailureException("Error reading hotfix name from command line " + ex.getMessage());
         }
         return name.trim();
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index fe66c25..13ee806 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -32,279 +32,279 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  * Merges a release branch back into the develop and master branch and then
  * creates a tag for the release on master.
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
 
     /**
      * If the project has a parent with a release version it will be replaced
      * with the next <code>-SNAPSHOT</code> version (if it has been deployed).
      * This action is performed on the develop branch after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "updateParent", defaultValue = "false", required = false)
     private Boolean updateParent;
 
     /**
      * On the release branch before finish is called any dependencies with a
      * <code>-SNAPSHOT</code> version are replaced with the corresponding
      * release version (if it has been released).
      *
      * On the develop branch after the merge any dependencies with a release
      * version are replaced with the next <code>-SNAPSHOT</code> version (if it
      * has been deployed).
      *
      * @since 1.2
      */
     @Parameter(property = "updateDependencies", defaultValue = "false", required = false)
     private Boolean updateDependencies;
 
     /**
      * If <code>updateDependencies</code> is set, then this should contain a
      * comma separated list of artifact patterns to include. Follows the pattern <code>groupId:artifactId:type:classifier:version<code>
      *
      * @since 1.5
      */
     @Parameter(property = "includes", defaultValue = "", required = false)
     private String includes;
 
     /**
      * If <code>true</code>, the release can still finish even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private Boolean allowSnapshots;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * The message to append add to the release tag
      *
      * @since 1.2
      */
     @Parameter(property = "tagMsg", defaultValue = "", required = false)
     private String tagMsg;
 
     /**
      * If <code>true</code>, the release tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().debug("Finishing release");
 
         /* Get release branch name */
         String prefix = getReleaseBranchPrefix();
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
         if (releaseBranches.isEmpty()) {
             exceptionMapper.handle(new MojoFailureException("Could not find any local release branch!"));
         }
 
         if (StringUtils.isBlank(releaseName)) {
             if (releaseBranches.size() == 1) {
                 String releaseBranch = releaseBranches.get(0);
                 releaseName = trimReleaseName(releaseBranch);
             } else {
                 String releaseBranch = promptForExistingReleaseBranch(prefix, releaseBranches);
                 releaseName = trimReleaseName(releaseBranch);
             }
 
         } else {
             releaseName = trimReleaseName(releaseName);
             if (!getGitflowInit().gitLocalBranchExists(prefix + releaseName)) {
                 exceptionMapper.handle(new MojoFailureException("No local release branch named '" + prefix + releaseName + "' exists!"));
             }
         }
 
         getLog().info("Finishing release '" + releaseName + "'");
 
         String releaseBranch = prefix + releaseName;
         String tagName = getVersionTagPrefix() + releaseName;
         String developBranch = getGitflowInit().getDevelopBranch();
         String masterBranch = getGitflowInit().getMasterBranch();
         String origin = getGitflowInit().getOrigin();
 
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setPush(false);
         gitflowRelease.setSquash(squash);
         gitflowRelease.setTagMsg(tagMsg);
         gitflowRelease.setSign(sign);
         gitflowRelease.setSigningkey(signingkey);
 
         /* Switch to release branch and set poms to release version */
         getGitflowInit().executeLocal("git checkout " + releaseBranch);
         reloadReactorProjects();
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(project.getVersion());
         String releaseVersion;
         if ("SNAPSHOT".equals(artifactVersion.getBuildSpecifier())) {
             releaseVersion = getReleaseVersion(project.getVersion());
         } else {
             releaseVersion = project.getVersion();
         }
         getLog().debug("release version = " + releaseVersion);
 
         /* If tag exists we skip merge to master as merge already took place. Possible re-run after merge conflict */
         if (!getGitflowInit().gitTagExists(tagName)) { // @TODO and should also check that last release branch commit is on master
 
             /* Before setting release version check if release branch was already merged to master */
             boolean setVersion = setVersion(releaseVersion, releaseBranch, false); // don't push so can can reset if needed
 
             /* Update release branch dependencies to release version */
             boolean setNextVersions = false;
             if (updateDependencies) {
                 reloadReactorProjects();
                 setNextVersions = setNextVersions(false, updateParent, includes);
             }
 
             if (!allowSnapshots) {
                 reloadReactorProjects();
                 try {
                     checkForSnapshotDependencies();
                 } catch (MojoExecutionException mee) {
                     // reset setNextVersions and/or setVersion commits to allow user fix & push SNAPSHOT dependencies
                     // but can only reset if it the commits have not been pushed */
                     if (setNextVersions) {
                         getGitflowInit().executeLocal("git reset --hard HEAD~1");
                     }
                     if (setVersion) {
                         getGitflowInit().executeLocal("git reset --hard HEAD~1");
                     }
                     exceptionMapper.handle(mee);
                 }
             }
 
             /* 1. merge to master */
             try {
                 gitflowRelease.finishToMaster(releaseBranch, tagName);
             } catch (GitCommandException gce) {
                 String header = "Error merging branch '" + releaseBranch + "' into '" + masterBranch + "'";
                 exceptionMapper.handle(header, gce);
             } catch (GitflowException ge) {
                 String header = "Error merging branch '" + releaseBranch + "' into '" + masterBranch + "'";
                 exceptionMapper.handle(header, ge);
             } catch (GitflowMergeConflictException gmce) {
                 String header = "Merge conflict merging branch '" + releaseBranch + "' into '" + masterBranch + "'";
                 exceptionMapper.handle(header, gmce);
             }
         } else {
             getLog().warn("Tag " + tagName + " already exists. Skipping merge of release branch '" + releaseBranch + "' into '" + masterBranch + "'");
         }
 
         /* 2. make versions in release and develop branches match to avoid conflicts */
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         getLog().debug("develop version = " + developVersion);
         getGitflowInit().executeLocal("git checkout " + releaseBranch);
         reloadReactorProjects();
         boolean setDevVersion = setVersion(developVersion, releaseBranch, false); // don't push so can can reset if needed
 
         /* 3. merge to develop */
         try {
             gitflowRelease.finishToDevelop(releaseBranch, tagName);
         } catch (GitCommandException gce) {
             // reset setVersion commit and allow user fix whatever exception occurred
             // but can only reset if the commit has not been pushed
             if (setDevVersion) {
                 getGitflowInit().executeLocal("git reset --hard HEAD~1");
             }
             String header = "Error merging branch '" + releaseBranch + "' into '" + developBranch + "'";
             exceptionMapper.handle(header, gce);
         } catch (GitflowException ge) {
             // reset setVersion commit and allow user fix whatever exception occurred
             // but can only reset if the commit has not been pushed
             if (setDevVersion) {
                 getGitflowInit().executeLocal("git reset --hard HEAD~1");
             }
             String header = "Error merging branch '" + releaseBranch + "' into '" + developBranch + "'";
             exceptionMapper.handle(header, ge);
         } catch (GitflowMergeConflictException gmce) {
             String header = "Merge conflict merging branch '" + releaseBranch + "' into '" + developBranch + "'";
             exceptionMapper.handle(header, gmce);
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
         /* Push merges and tag */
         try {
             if (session.getRequest().isInteractiveMode()) {
-                prompter.pushPrompt("Are you ready to push?", Arrays.asList(tagName, masterBranch, developBranch), Arrays.asList(releaseBranch, origin + '/' + releaseBranch));
+                prompter.pushPrompt("Are you ready to push?", Arrays.asList(tagName), Arrays.asList(masterBranch, developBranch), Arrays.asList(releaseBranch, origin + '/' + releaseBranch));
                 boolean yes;
                 try {
                     yes = prompter.promptYesNo("Do you want to continue");
                 } catch (IOException e) {
                     throw new MojoFailureException("Error reading user input from command line " + e.getMessage());
                 }
 
                 if (yes) {
                     gitflowRelease.publish(releaseBranch, tagName, true);
                 } else {
                     gitflowRelease.publish(releaseBranch, tagName, false);
                 }
             } else {
                 gitflowRelease.publish(releaseBranch, tagName, true);
             }
         } catch (GitCommandException gce) {
             String header = "Failed to push release finish";
             exceptionMapper.handle(header, gce);
         } catch (GitflowException ge) {
             String header = "Failed to push release finish";
             exceptionMapper.handle(header, ge);
         }
 
         /* Update develop branch dependencies to next snapshot version (if deployed) */
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions(true, updateParent, includes);
         }
 
     }
 
     private String promptForExistingReleaseBranch(String prefix, List<String> releaseBranches) throws MojoFailureException {
         List<String> choices = releaseBranches;
 
         /* if current branch is a feature branch at it to start of list so it is the default in prompt */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (currentBranch.startsWith(prefix)) {
             choices = rearrange(currentBranch, releaseBranches);
         }
 
         String name = "";
         try {
             prompter.promptChoice("Release branches", "Please select a release branch to finish", choices);
         } catch (IOException ex) {
             throw new MojoFailureException("Error reading release name from command line " + ex.getMessage());
         }
         return name.trim();
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportTagMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportTagMojo.java
index 069154b..4dc7faf 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportTagMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportTagMojo.java
@@ -18,2 +18,4 @@ package com.dkirrane.maven.plugins.ggitflow;
 import java.io.IOException;
+import java.util.Arrays;
+import java.util.Collections;
 import java.util.List;
@@ -27,169 +29,172 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  * Creates a tag on a support branch when releasing of a support branch. Note:
  * this does not merge support branch changes back to develop
  */
 @Mojo(name = "support-tag", aggregator = true)
 public class SupportTagMojo extends AbstractSupportMojo {
 
     /**
      * If <code>true</code>, the tag can still get created even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 2.3
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private Boolean allowSnapshots;
 
     /**
      * The message to append add to the release tag
      *
      * @since 1.2
      */
     @Parameter(property = "tagMsg", defaultValue = "", required = false)
     private String tagMsg;
 
     /**
      * If <code>true</code>, the support tag will be signed.
      *
      * @since 2.3
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 2.3
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().debug("Tagging support branch");
 
         /* Get support branch name */
         String prefix = getSupportBranchPrefix();
         List<String> supportBranches = getGitflowInit().gitLocalSupportBranches();
         if (supportBranches.isEmpty()) {
             exceptionMapper.handle(new MojoFailureException("Could not find any local support branch!"));
         }
 
         if (StringUtils.isBlank(supportName)) {
             if (supportBranches.size() == 1) {
                 String supportBranch = supportBranches.get(0);
                 supportName = trimSupportName(supportBranch);
             } else {
                 String supportBranch = promptForExistingSupportBranch(prefix, supportBranches);
                 supportName = trimSupportName(supportBranch);
             }
 
         } else {
             supportName = trimSupportName(supportName);
             if (!getGitflowInit().gitLocalBranchExists(prefix + supportName)) {
                 String msg = "No local support branch named '" + prefix + supportName + "' exists!";
                 exceptionMapper.handle(new MojoFailureException(msg));
             }
         }
 
         getLog().info("Tagging support branch '" + supportName + "'");
 
         String supportBranch = prefix + supportName;
 
         /* Switch to support branch and get its current version */
         getGitflowInit().executeLocal("git checkout " + supportBranch);
         reloadReactorProjects();
         String snapshotVersion = project.getVersion();
 
         /* Get release version for support tag */
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(snapshotVersion);
         String supportVersion;
         if ("SNAPSHOT".equals(artifactVersion.getBuildSpecifier())) {
             supportVersion = getReleaseVersion(project.getVersion());
         } else {
             supportVersion = project.getVersion();
         }
         getLog().debug("support version = " + supportVersion);
 
         getGitflowInit().requireTagAbsent(supportVersion);
 
         /* Set support branch to release version */
         boolean setVersion = setVersion(supportVersion, supportBranch, false);
 
         if (!allowSnapshots) {
             reloadReactorProjects();
             try {
                 checkForSnapshotDependencies();
             } catch (MojoExecutionException mee) {
                 // reset setVersion commit to allow user fix & push SNAPSHOT dependencies
                 if (setVersion) {
                     getGitflowInit().executeLocal("git reset --hard HEAD~1");
                 }
                 exceptionMapper.handle(mee);
             }
         }
 
         /* tag support branch */
         tagMsg = StringUtils.isBlank(tagMsg) ? "" : " " + tagMsg;
         String tagMessage = "Support release version " + supportVersion + tagMsg ;
         String tagName = supportVersion;
         String tagString = getGitflowInit().executeLocal("git tag -a -m \"" + tagMessage + "\" " + tagName + " " + supportBranch);
         getLog().debug("Git tag output = " + tagString);
 
         /* Increment support branch to next version */
         String nextSupportVersion = getNextSupportVersion(snapshotVersion);
         setVersion(nextSupportVersion, supportBranch, false);
         promptToPushSupportBranchAndTag(supportBranch, tagName);
 
     }
 
     private String promptForExistingSupportBranch(String prefix, List<String> supportBranches) throws MojoFailureException {
         List<String> choices = supportBranches;
 
         /* if current branch is a support branch at it to start of list so it is the default in prompt */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (currentBranch.startsWith(prefix)) {
             choices = rearrange(currentBranch, supportBranches);
         }
 
         String name = "";
         try {
             prompter.promptChoice("Support branches", "Please select a support branch to tag", choices);
         } catch (IOException ex) {
             throw new MojoFailureException("Error reading release name from command line " + ex.getMessage());
         }
         return name.trim();
     }
 
     private void promptToPushSupportBranchAndTag(String supportBranch, String supportTag) throws MojoFailureException {
         String origin = getGitflowInit().getOrigin();
 
-        boolean yes;
+        boolean yes = false;
         if (session.getRequest().isInteractiveMode()) {
+            prompter.pushPrompt("Are you ready to push?", Arrays.asList(supportTag), Arrays.asList(supportBranch), Collections.EMPTY_LIST);
             try {
-                yes = prompter.promptYesNo("Do you want to push " + supportBranch + " branch and support tag " + supportTag + " to " + origin);
+                yes = prompter.promptYesNo("Do you want to continue");
             } catch (IOException e) {
-                throw new MojoFailureException("Error reading support branch name from command line " + e.getMessage());
+                throw new MojoFailureException("Error reading user input from command line " + e.getMessage());
             }
         } else {
             yes = true; // push in maven --batch mode
         }
 
         if (yes) {
             if (getGitflowInit().gitRemoteBranchExists(supportBranch)) {
-                getGitflowInit().executeRemote("git push " + origin + " " + supportBranch);
+                getLog().info("Pushing tag " + supportTag);
                 getGitflowInit().executeRemote("git push " + origin + " " + supportTag);
+                getLog().info("Pushing " + supportBranch);
+                getGitflowInit().executeRemote("git push " + origin + " " + supportBranch);
             } else {
                 getLog().info("");
                 getLog().warn("===> Branch '" + supportBranch + "' does not exist on '" + origin + "'");
                 getLog().warn("===> Once ready you MUST manually push '" + supportBranch + "' branch and support tag '" + supportTag + "' to '" + origin + "'");
                 getLog().info("");
             }
         } else {
             getLog().info("");
             getLog().warn("===> Once ready you MUST manually push '" + supportBranch + "' branch and support tag '" + supportTag + "' to '" + origin + "'");
             getLog().info("");
         }
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/Prompter.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/Prompter.java
index 84fb76f..0825e81 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/Prompter.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/Prompter.java
@@ -21,79 +21,80 @@ import java.util.List;
 /**
  * Prompt for user input
  *
  * @since 3.0
  */
 public interface Prompter {
 
     /**
      * Prompt user for a string, optionally masking the input.
      *
      * @param message
      * @param mask
      * @return
      * @throws java.io.IOException
      */
     String prompt(String message, Character mask) throws IOException;
 
     /**
      * Prompt user for a string.
      *
      * @param message
      * @return
      * @throws java.io.IOException
      */
     String prompt(String message) throws IOException;
 
     /**
      * Prompt user with Yes/No message
      *
      * @param message
      * @return
      * @throws java.io.IOException
      */
     boolean promptYesNo(final String message) throws IOException;
 
     /**
      * Prompt user for a string; if user response is blank use a default value.
      *
      * @param message
      * @param defaultValue
      * @return
      * @throws java.io.IOException
      */
     String promptWithDefault(String message, String defaultValue) throws IOException;
 
     /**
      * Prompt user for a string out of a set of available choices.
      *
      * Choices must not have entries with leading/trailing whitespace. At least
      * 2 choices are required.
      *
      * @param header
      * @param choices
      * @param message
      * @return
      * @throws java.io.IOException
      */
     String promptChoice(String header, String message, List<String> choices) throws IOException;
 
     /**
      * Prompt user for an integer.
      *
      * @param message
      * @param max
      * @param min
      * @return
      * @throws java.io.IOException
      */
     Integer promptInteger(String message, Integer min, Integer max) throws IOException;
 
     /**
      * Display a message to the user regards pushing/deleting branches
      *
-     * @param header message heaeder to display
+     * @param header message header to display
+     * @param pushTags Git tags to push
      * @param pushBranches Git branches to push
      * @param deleteBranches Git branches to delete
      */
-    void pushPrompt(final String header, final List<String> pushBranches, final List<String> deleteBranches);
+    void pushPrompt(final String header, final List<String> pushTags, final List<String> pushBranches, final List<String> deleteBranches);
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/PrompterImpl.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/PrompterImpl.java
index 82fa2d2..2e1bd01 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/PrompterImpl.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/PrompterImpl.java
@@ -42,204 +42,206 @@ import org.slf4j.LoggerFactory;
 /**
  * Default {@link Prompter} implementation.
  *
  * @since 3.0
  */
 @Component(role = Prompter.class, instantiationStrategy = "per-lookup")
 public class PrompterImpl implements Prompter {
 
     private static final Logger LOG = LoggerFactory.getLogger(PrompterImpl.class);
 
     private final ConsoleReader console;
 
     public PrompterImpl() throws IOException {
         TerminalFactory.configure(TerminalFactory.NONE);
         TerminalFactory.reset();
         Configuration.reset();
         this.console = new ConsoleReader();
         this.console.setHistoryEnabled(false);
         this.console.setExpandEvents(false);
     }
 
     public ConsoleReader getConsole() {
         return console;
     }
 
     @Override
     public String prompt(final String message, Character mask) throws IOException {
         checkNotNull(message);
 
         final String prompt = String.format("%s: ", message);
         String value;
         do {
             // mask DOES NOT WORK on WINDOWS 10 https://github.com/jline/jline2/issues/225
 //            value = console.readLine(ansi().fg(GREEN).a(prompt).reset().toString(), mask);
             value = console.readLine(ansi().fg(GREEN).bold().a(prompt).boldOff().reset().toString(), null);
 
             // Do not LOG values read when masked
             if (mask == null) {
                 LOG.debug("Read value: '{}'", value);
             } else {
                 LOG.debug("Read masked chars: {}", value.length());
             }
         } while (StringUtils.isBlank(value));
         return value;
     }
 
     @Override
     public String prompt(final String message) throws IOException {
         checkNotNull(message);
 
         return prompt(message, null);
     }
 
     @Override
     public boolean promptYesNo(final String message) throws IOException {
         checkNotNull(message);
 
         final String prompt = String.format("%s? (y/N): ", message);
         String value = console.readLine(ansi().fg(GREEN).bold().a(prompt).boldOff().reset().toString());
         return value.matches("^([yY][eE][sS]|[yY])$");
     }
 
     @Override
     public String promptWithDefault(final String message, final String defaultValue) throws IOException {
         checkNotNull(message);
         checkNotNull(defaultValue);
 
         final String prompt = String.format("%s (%s): ", message, defaultValue);
         String value = console.readLine(ansi().fg(GREEN).bold().a(prompt).boldOff().reset().toString());
         if (StringUtils.isBlank(value)) {
             return defaultValue;
         }
         return value;
     }
 
     /**
      * Helper to parse an integer w/o exceptions being thrown.
      */
     private Integer parseInt(final String value) {
         try {
             return Integer.parseInt(value);
         } catch (Exception e) {
             // ignore
         }
         return null;
     }
 
     @Override
     public Integer promptInteger(final String message, final Integer min, final Integer max) throws IOException {
         while (true) {
             String raw = prompt(message);
             Integer value = parseInt(raw);
             if (value != null) {
                 if (min != null && value < min) {
                     console.println("Value must be greater than " + (min - 1) + ": " + raw);
                     continue;
                 }
                 if (max != null && value > max) {
                     console.println("Value must be less than " + max + ": " + raw);
                     continue;
                 }
 
                 // valid
                 return value;
             }
             // else invalid, try again
             console.println("Invalid value: " + raw);
         }
     }
 
     @Override
     public String promptChoice(final String header, final String message, final List<String> choices) throws IOException {
         checkNotNull(header);
         checkNotNull(message);
         checkArgument(!choices.isEmpty(), "choices cannot be empty");
 
         if (choices.size() > 1) {
             /* Output choices using freemarker */
             try {
 
                 freemarker.template.Configuration cfg = new freemarker.template.Configuration(freemarker.template.Configuration.getVersion());
                 cfg.setClassForTemplateLoading(PrompterImpl.class, "/freemarker");
                 cfg.setDefaultEncoding("UTF-8");
                 cfg.setTemplateExceptionHandler(TemplateExceptionHandler.RETHROW_HANDLER);
                 cfg.setLogTemplateExceptions(false);
 
                 Template template = cfg.getTemplate("choices.ftl");
 
                 // Build the data-model
                 Map<String, Object> data = new HashMap<>();
                 data.put("header", header);
                 data.put("choices", choices);
 
                 // Console output
                 Writer out = new OutputStreamWriter(System.out);
                 template.process(data, out);
                 out.flush();
 
             } catch (TemplateException | IOException ex) {
                 java.util.logging.Logger.getLogger(PrompterImpl.class.getName()).log(Level.SEVERE, null, ex);
             }
         }
 
         console.println("");
 
         // setup completer
         Completer completer = new StringsCompleter(choices);
         console.addCompleter(completer);
 
         try {
             String value;
             while (true) {
                 value = promptWithDefault(message, choices.get(0)).trim();
 
                 // check if value is an index (choice display starts with index 1)
                 Integer i = parseInt(value);
                 if (i != null && i > 0 && i <= choices.size()) {
                     value = choices.get(i - 1);
                     break;
                 }
 
                 // check if choice is valid
                 if (choices.contains(value)) {
                     break;
                 }
 
                 console.println("Invalid selection: " + value);
             }
             return value;
         } finally {
             console.removeCompleter(completer);
         }
     }
 
     @Override
-    public void pushPrompt(String header, List<String> pushBranches, List<String> deleteBranches) {
+    public void pushPrompt(String header, List<String> pushTags, List<String> pushBranches, List<String> deleteBranches) {
         checkNotNull(header);
+        checkNotNull(pushTags);
         checkNotNull(pushBranches);
         checkNotNull(deleteBranches);
 
         try {
 
             freemarker.template.Configuration cfg = new freemarker.template.Configuration(freemarker.template.Configuration.getVersion());
             cfg.setClassForTemplateLoading(PrompterImpl.class, "/freemarker");
             cfg.setDefaultEncoding("UTF-8");
             cfg.setTemplateExceptionHandler(TemplateExceptionHandler.RETHROW_HANDLER);
             cfg.setLogTemplateExceptions(false);
 
             Template template = cfg.getTemplate("pushing.ftl");
             Map<String, Object> data = new HashMap<>();
             data.put("header", header);
+            data.put("pushTags", pushTags);
             data.put("pushBranches", pushBranches);
             data.put("deleteBranches", deleteBranches);
 
             // Console output
             Writer out = new OutputStreamWriter(System.out);
             template.process(data, out);
             out.flush();
 
         } catch (TemplateException | IOException ex) {
             LOG.error("Failed to prompt to push", ex);
         }
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/resources/freemarker/pushing.ftl b/ggitflow-maven-plugin/src/main/resources/freemarker/pushing.ftl
index 8038290..e562e7e 100644
--- a/ggitflow-maven-plugin/src/main/resources/freemarker/pushing.ftl
+++ b/ggitflow-maven-plugin/src/main/resources/freemarker/pushing.ftl
@@ -1,19 +1,28 @@
 <#macro fg color>${'\x1B'}[${color}m</#macro>
 <#macro bold>${'\x1B'}[1m</#macro>
 <#macro reset>${'\x1B'}[0m</#macro>
 
 <#assign header = header + ":">
 <@fg 34/><@bold/>=====${""?right_pad(header?length, "=")}=====<@reset/>
 <@fg 34/><@bold/>===  ${header?right_pad(header?length)}  ===<@reset/>
 <@fg 34/><@bold/>=====${""?right_pad(header?length, "=")}=====<@reset/>
 
 <@fg 34/><@bold/>Pushing:<@reset/>
+<#if pushTags?has_content>
+<#list pushTags as tag>
+    <@fg 34/><@bold/>- Tag ${tag}<@reset/>
+</#list>
+</#if>
+<#if pushBranches?has_content>
 <#list pushBranches as branch>
     <@fg 34/><@bold/>- ${branch}<@reset/>
 </#list>
+</#if>
 
+<#if deleteBranches?has_content>
 <@fg 34/><@bold/>Deleting:<@reset/>
 <#list deleteBranches as branch>
     <@fg 34/><@bold/>- ${branch}<@reset/>
 </#list>
+</#if>
 

commit 65acae4db05530a0e0922a436979b57245602dca
Author: dkirrane <dkirrane@avaya.com>
Date:   Thu Oct 13 14:30:49 2016 +0100

    revert

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
index c64e3d9..b56559e 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
@@ -30,143 +30,153 @@ import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
 /**
  * Creates a new release branch off of the develop branch.
  */
 @Mojo(name = "release-start", aggregator = true)
 public class ReleaseStartMojo extends AbstractReleaseMojo {
 
     /**
      * If the project has a parent with a <code>-SNAPSHOT</code> version it will
      * be replaced with the corresponding release version (if it has been
      * released). This action is performed on the release branch after it is
      * created.
      *
      * @since 1.2
      */
     @Parameter(property = "updateParent", defaultValue = "false", required = false)
     private boolean updateParent;
 
     /**
      * Any dependencies with a <code>-SNAPSHOT</code> version are replaced with
      * the corresponding release version (if it has been released). This action
      * is performed on the release branch after it is created.
      *
      * @since 1.2
      */
     @Parameter(property = "updateDependencies", defaultValue = "false", required = false)
     private boolean updateDependencies;
 
     /**
      * If <code>updateDependencies</code> is set, then this should contain a
      * comma separated list of artifact patterns to include. Follows the pattern <code>groupId:artifactId:type:classifier:version<code>
      *
      * @since 1.5
      */
     @Parameter(property = "includes", defaultValue = "", required = false)
     private String includes;
 
     /**
      * The commit to start the release branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     private String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         /* Switch to develop branch and get its current version */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
         reloadReactorProjects();
 
         String developVersion = project.getVersion();
         getLog().info("Current develop version = " + developVersion);
 
         /* Get next development version */
         String nextDevelopVersion = getNextDevelopVersion(developVersion);
         if (session.getRequest().isInteractiveMode()) {
             try {
                 nextDevelopVersion = prompter.promptWithDefault("Please enter the next development version? ", nextDevelopVersion);
             } catch (IOException ex) {
                 exceptionMapper.handle(new MojoExecutionException("Error reading next development version from command line " + ex.getMessage(), ex));
             }
         }
-        GenericArtifactVersion nextDevelopArtifactVersion = new GenericArtifactVersion(nextDevelopVersion);
+        GenericArtifactVersion nextDevelopArtifactVersion = new GenericArtifactVersion(developVersion);
         getLog().debug("Next development version = " + nextDevelopArtifactVersion);
 
-        /* Get release version */
+        /* Get suggested release version */
         String releaseVersion = getReleaseVersion(developVersion);
         getLog().debug("release version = " + releaseVersion);
 
-        /* Get release branch name */
-        if (StringUtils.isBlank(releaseName)) {
-            releaseName = releaseVersion;
-        }
+        /* create release branch */
         String prefix = getReleaseBranchPrefix();
-        if (session.getRequest().isInteractiveMode()) {
+        if (!StringUtils.isBlank(releaseName)) {
+            getLog().debug("Using releaseName passed  '" + releaseName + "'");
+        } else if (session.getRequest().isInteractiveMode()) {
             try {
-                releaseName = prompter.promptWithDefault("Please enter the release branch name? " + prefix, releaseName);
-                releaseName = trimRefName(releaseName);
+                releaseName = prompter.promptWithDefault("Please enter the release branch name? " + prefix, releaseVersion);
             } catch (IOException ex) {
                 exceptionMapper.handle(new MojoExecutionException("Error reading release name from command line " + ex.getMessage(), ex));
             }
+        } else {
+            releaseName = releaseVersion;
         }
-        String releaseBranchName = namer.getBranchName(prefix, releaseName, releaseVersion);
 
-        GenericArtifactVersion releaseArtifactVersion = new GenericArtifactVersion(releaseVersion);
-        if (SNAPSHOT_QUALIFIER.equals(releaseArtifactVersion.getBuildSpecifier())) {
-            throw new IllegalArgumentException("The release version contains a SNAPSHOT build specifier");
+        releaseName = trimReleaseName(releaseName);
+
+        if (StringUtils.isBlank(releaseName)) {
+            exceptionMapper.handle(new MojoFailureException("Parameter <releaseName> cannot be null or empty."));
+        }
+
+        GenericArtifactVersion releaseArtifactVersion;
+        try {
+            releaseArtifactVersion = new GenericArtifactVersion(releaseName);
+            if (SNAPSHOT_QUALIFIER.equals(releaseArtifactVersion.getBuildSpecifier())) {
+                throw new IllegalArgumentException("Parameter <releaseName> is not a release version as it contains SNAPSHOT build specifier");
+            }
+        } catch (IllegalArgumentException e) {
+            throw new MojoExecutionException("Parameter <releaseName> value '" + releaseName + "' is not a valid Maven release version.");
         }
 
-        getLog().info("Starting release '" + releaseBranchName + "'");
+        getLog().info("Starting release '" + releaseName + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setPush(true);
         gitflowRelease.setStartCommit(startCommit);
 
         try {
-            gitflowRelease.start(releaseBranchName);
+            gitflowRelease.start(releaseName);
         } catch (GitCommandException gce) {
             String header = "Failed to run release start";
             exceptionMapper.handle(header, gce);
         } catch (GitflowException ge) {
             String header = "Failed to run release start";
             exceptionMapper.handle(header, ge);
         }
 
         // current branch should be the release branch
         String releaseBranch = getGitflowInit().gitCurrentBranch();
         if (!releaseBranch.startsWith(prefix)) {
             exceptionMapper.handle(new MojoFailureException("Failed to create release version."));
         }
 
         /* Update release branch dependencies to release version */
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions(false, updateParent, includes);
         }
 
         // checkout develop branch and update it's version
         String developBranch = (String) getGitflowInit().getDevelopBrnName();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         setVersion(nextDevelopVersion, developBranch, true);
 
         // checkout release branch again and update it's version to required release version
         getGitflowInit().executeLocal("git checkout " + releaseBranch);
         reloadReactorProjects();
         setVersion(releaseArtifactVersion.setBuildSpecifier(SNAPSHOT_QUALIFIER).toString(), releaseBranch, true);
     }
 
     private String getNextDevelopVersion(String developVersion) {
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(developVersion);
         artifactVersion.upgradeLeastSignificantPrimaryNumber();
 
         return artifactVersion.toString();
     }
 }

commit 298b3164a60eec1e2ec1ce6c6b45e5dd87481c1e
Author: dkirrane <dkirrane@avaya.com>
Date:   Thu Oct 13 14:08:40 2016 +0100

    small error fix

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
index 2544635..c64e3d9 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
@@ -30,156 +30,143 @@ import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
 /**
  * Creates a new release branch off of the develop branch.
  */
 @Mojo(name = "release-start", aggregator = true)
 public class ReleaseStartMojo extends AbstractReleaseMojo {
 
     /**
      * If the project has a parent with a <code>-SNAPSHOT</code> version it will
      * be replaced with the corresponding release version (if it has been
      * released). This action is performed on the release branch after it is
      * created.
      *
      * @since 1.2
      */
     @Parameter(property = "updateParent", defaultValue = "false", required = false)
     private boolean updateParent;
 
     /**
      * Any dependencies with a <code>-SNAPSHOT</code> version are replaced with
      * the corresponding release version (if it has been released). This action
      * is performed on the release branch after it is created.
      *
      * @since 1.2
      */
     @Parameter(property = "updateDependencies", defaultValue = "false", required = false)
     private boolean updateDependencies;
 
     /**
      * If <code>updateDependencies</code> is set, then this should contain a
      * comma separated list of artifact patterns to include. Follows the pattern <code>groupId:artifactId:type:classifier:version<code>
      *
      * @since 1.5
      */
     @Parameter(property = "includes", defaultValue = "", required = false)
     private String includes;
 
     /**
      * The commit to start the release branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     private String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         /* Switch to develop branch and get its current version */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
         reloadReactorProjects();
 
         String developVersion = project.getVersion();
         getLog().info("Current develop version = " + developVersion);
 
         /* Get next development version */
         String nextDevelopVersion = getNextDevelopVersion(developVersion);
         if (session.getRequest().isInteractiveMode()) {
             try {
                 nextDevelopVersion = prompter.promptWithDefault("Please enter the next development version? ", nextDevelopVersion);
             } catch (IOException ex) {
                 exceptionMapper.handle(new MojoExecutionException("Error reading next development version from command line " + ex.getMessage(), ex));
             }
         }
-        getLog().debug("Next development version = " + developVersion);
+        GenericArtifactVersion nextDevelopArtifactVersion = new GenericArtifactVersion(nextDevelopVersion);
+        getLog().debug("Next development version = " + nextDevelopArtifactVersion);
 
-        /* Get suggested release version */
+        /* Get release version */
         String releaseVersion = getReleaseVersion(developVersion);
         getLog().debug("release version = " + releaseVersion);
 
-        /* create release branch */
+        /* Get release branch name */
+        if (StringUtils.isBlank(releaseName)) {
+            releaseName = releaseVersion;
+        }
         String prefix = getReleaseBranchPrefix();
-        if (!StringUtils.isBlank(releaseName)) {
-            getLog().debug("Using releaseName passed  '" + releaseName + "'");
-        } else if (session.getRequest().isInteractiveMode()) {
+        if (session.getRequest().isInteractiveMode()) {
             try {
-                releaseName = prompter.promptWithDefault("Please enter the release branch name? " + prefix, releaseVersion);
+                releaseName = prompter.promptWithDefault("Please enter the release branch name? " + prefix, releaseName);
+                releaseName = trimRefName(releaseName);
             } catch (IOException ex) {
                 exceptionMapper.handle(new MojoExecutionException("Error reading release name from command line " + ex.getMessage(), ex));
             }
-        } else {
-            releaseName = releaseVersion;
         }
+        String releaseBranchName = namer.getBranchName(prefix, releaseName, releaseVersion);
 
-        releaseName = trimReleaseName(releaseName);
-
-        if (StringUtils.isBlank(releaseName)) {
-            exceptionMapper.handle(new MojoFailureException("Parameter <releaseName> cannot be null or empty."));
+        GenericArtifactVersion releaseArtifactVersion = new GenericArtifactVersion(releaseVersion);
+        if (SNAPSHOT_QUALIFIER.equals(releaseArtifactVersion.getBuildSpecifier())) {
+            throw new IllegalArgumentException("The release version contains a SNAPSHOT build specifier");
         }
 
-        GenericArtifactVersion releaseArtifactVersion;
-        try {
-            releaseArtifactVersion = new GenericArtifactVersion(releaseName);
-            if (SNAPSHOT_QUALIFIER.equals(releaseArtifactVersion.getBuildSpecifier())) {
-                throw new IllegalArgumentException("Parameter <releaseName> is not a release version as it contains SNAPSHOT build specifier");
-            }
-        } catch (IllegalArgumentException e) {
-            throw new MojoExecutionException("Parameter <releaseName> value '" + releaseName + "' is not a valid Maven release version.");
-        }
-
-        getLog().info("Starting release '" + releaseName + "'");
+        getLog().info("Starting release '" + releaseBranchName + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setPush(true);
         gitflowRelease.setStartCommit(startCommit);
 
         try {
-            gitflowRelease.start(releaseName);
+            gitflowRelease.start(releaseBranchName);
         } catch (GitCommandException gce) {
             String header = "Failed to run release start";
             exceptionMapper.handle(header, gce);
         } catch (GitflowException ge) {
             String header = "Failed to run release start";
             exceptionMapper.handle(header, ge);
         }
 
         // current branch should be the release branch
         String releaseBranch = getGitflowInit().gitCurrentBranch();
         if (!releaseBranch.startsWith(prefix)) {
             exceptionMapper.handle(new MojoFailureException("Failed to create release version."));
         }
 
         /* Update release branch dependencies to release version */
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions(false, updateParent, includes);
         }
 
         // checkout develop branch and update it's version
         String developBranch = (String) getGitflowInit().getDevelopBrnName();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         setVersion(nextDevelopVersion, developBranch, true);
 
         // checkout release branch again and update it's version to required release version
         getGitflowInit().executeLocal("git checkout " + releaseBranch);
         reloadReactorProjects();
         setVersion(releaseArtifactVersion.setBuildSpecifier(SNAPSHOT_QUALIFIER).toString(), releaseBranch, true);
     }
 
-    public String getReleaseName() {
-        return releaseName;
-    }
-
     private String getNextDevelopVersion(String developVersion) {
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(developVersion);
         artifactVersion.upgradeLeastSignificantPrimaryNumber();
 
         return artifactVersion.toString();
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/resources/freemarker/git-error.ftl b/ggitflow-maven-plugin/src/main/resources/freemarker/git-error.ftl
index 891dfde..f988388 100644
--- a/ggitflow-maven-plugin/src/main/resources/freemarker/git-error.ftl
+++ b/ggitflow-maven-plugin/src/main/resources/freemarker/git-error.ftl
@@ -1,27 +1,25 @@
 <#macro fg color>${'\x1B'}[${color}m</#macro>
 <#macro bold>${'\x1B'}[1m</#macro>
 <#macro reset>${'\x1B'}[0m</#macro>
 
 <#assign header = header + ":">
 <@fg 31/><@bold/>=====${""?right_pad(header?length, "=")}=====<@reset/>
 <@fg 31/><@bold/>===  ${header?right_pad(header?length)}  ===<@reset/>
 <@fg 31/><@bold/>=====${""?right_pad(header?length, "=")}=====<@reset/>
 
 <#if exitCode??>
-    <@fg 31/><@bold/>Git exited code: ${exitCode}<@reset/>
+<@fg 31/><@bold/>Git exited code: ${exitCode}<@reset/>
 </#if>
 
 <#if message??>
-    <@fg 31/><@bold/>Message: ${message}<@reset/>
+<@fg 31/><@bold/>Message: ${message}<@reset/>
 </#if>
 
-<#-- 
 <#if stout??>
-    <@fg 31/><@bold/>Stout: ${stout}<@reset/>
+<@fg 31/><@bold/>${stout}<@reset/>
 </#if>
 
 <#if sterr??>
-    <@fg 31/><@bold/>Sterr: ${sterr}<@reset/>
+<@fg 31/><@bold/>${sterr}<@reset/>
 </#if>
--->
 

commit e00e49d09e91052268dccfc7d30d4393a929d863
Author: dkirrane <dkirrane@avaya.com>
Date:   Wed Sep 28 18:16:22 2016 +0100

    tagMsg

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
index dfd9681..68e2fbb 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
@@ -32,222 +32,231 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  * Merges a hotfix branch back into the develop and master branch and then
  * creates a tag for the hotfix on master.
  */
 @Mojo(name = "hotfix-finish", aggregator = true)
 public class HotfixFinishMojo extends AbstractHotfixMojo {
 
     protected String hotfixName;
 
     /**
      * If <code>true</code>, the hotfix can still finish even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private boolean allowSnapshots;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
+    /**
+     * The message to append add to the release tag
+     *
+     * @since 1.2
+     */
+    @Parameter(property = "tagMsg", defaultValue = "", required = false)
+    private String tagMsg;
+
     /**
      * If <code>true</code>, the hotfix tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().debug("Finishing hotfix");
 
         /* Get hotfix branch name */
         String prefix = getHotfixBranchPrefix();
         List<String> hotfixBranches = getGitflowInit().gitLocalHotfixBranches();
         if (hotfixBranches.isEmpty()) {
             throw new MojoFailureException("Could not find any local hotfix branch!");
         }
 
         if (StringUtils.isBlank(hotfixName)) {
             if (hotfixBranches.size() == 1) {
                 String hotfixBranch = hotfixBranches.get(0);
                 hotfixName = trimHotfixName(hotfixBranch);
             } else {
                 String hotfixBranch = promptForExistingHotfixBranch(prefix, hotfixBranches);
                 hotfixName = trimHotfixName(hotfixBranch);
             }
 
         } else {
             hotfixName = trimHotfixName(hotfixName);
             if (!getGitflowInit().gitLocalBranchExists(prefix + hotfixName)) {
                 throw new MojoFailureException("No local hotfix branch named '" + prefix + hotfixName + "' exists!");
             }
         }
 
         getLog().info("Finishing hotfix '" + hotfixName + "'");
 
         String hotfixBranch = prefix + hotfixName;
         String tagName = getVersionTagPrefix() + hotfixName;
         String developBranch = getGitflowInit().getDevelopBranch();
         String masterBranch = getGitflowInit().getMasterBranch();
         String origin = getGitflowInit().getOrigin();
 
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
         gitflowHotfix.setPush(false);
         gitflowHotfix.setSquash(squash);
+        gitflowHotfix.setTagMsg(tagMsg);
         gitflowHotfix.setSign(sign);
         gitflowHotfix.setSigningkey(signingkey);
 
         /* Switch to hotfix branch and set poms to hotfix version */
         getGitflowInit().executeLocal("git checkout " + hotfixBranch);
         reloadReactorProjects();
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(project.getVersion());
         String hotfixVersion;
         if ("SNAPSHOT".equals(artifactVersion.getBuildSpecifier())) {
             hotfixVersion = getReleaseVersion(project.getVersion());
         } else {
             hotfixVersion = project.getVersion();
         }
         getLog().debug("hotfix version = " + hotfixVersion);
 
         /* If tag exists we skip merge to master as merge already took place. Possible re-run after merge conflict */
         if (!getGitflowInit().gitTagExists(tagName)) { // @TODO and should also check that last hotfix branch commit is on master
 
             /* Before setting hotfix version check if hotfix branch was already merged to master */
             boolean setVersion = setVersion(hotfixVersion, hotfixBranch, false); // don't push so can can reset if needed
 
             if (!allowSnapshots) {
                 reloadReactorProjects();
                 try {
                     checkForSnapshotDependencies();
                 } catch (MojoExecutionException mee) {
                     // reset setVersion commits to allow user fix & push SNAPSHOT dependencies
                     // but can only reset if it the commits have not been pushed */
                     if (setVersion) {
                         getGitflowInit().executeLocal("git reset --hard HEAD~1");
                     }
                     exceptionMapper.handle(mee);
                 }
             }
 
             /* 1. merge to master */
             try {
                 gitflowHotfix.finishToMaster(hotfixBranch, tagName);
             } catch (GitCommandException gce) {
                 String header = "Error merging branch '" + hotfixBranch + "' into '" + masterBranch + "'";
                 exceptionMapper.handle(header, gce);
             } catch (GitflowException ge) {
                 String header = "Error merging branch '" + hotfixBranch + "' into '" + masterBranch + "'";
                 exceptionMapper.handle(header, ge);
             } catch (GitflowMergeConflictException gmce) {
                 String header = "Merge conflict merging branch '" + hotfixBranch + "' into '" + masterBranch + "'";
                 exceptionMapper.handle(header, gmce);
             }
         } else {
             getLog().warn("Tag " + tagName + " already exists. Skipping merge of hotfix branch '" + hotfixBranch + "' into '" + masterBranch + "'");
         }
 
         /* 2. make versions in hotfix and develop branches match to avoid conflicts */
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         getLog().debug("develop version = " + developVersion);
         getGitflowInit().executeLocal("git checkout " + hotfixBranch);
         reloadReactorProjects();
         boolean setDevVersion = setVersion(developVersion, hotfixBranch, false); // don't push so can can reset if needed
 
         /* 3. merge to develop */
         try {
             gitflowHotfix.finishToDevelop(hotfixBranch, tagName);
         } catch (GitCommandException gce) {
             // reset setVersion commit and allow user fix whatever exception occurred
             // but can only reset if the commit has not been pushed
             if (setDevVersion) {
                 getGitflowInit().executeLocal("git reset --hard HEAD~1");
             }
             String header = "Error merging branch '" + hotfixBranch + "' into '" + developBranch + "'";
             exceptionMapper.handle(header, gce);
         } catch (GitflowException ge) {
             // reset setVersion commit and allow user fix whatever exception occurred
             // but can only reset if the commit has not been pushed
             if (setDevVersion) {
                 getGitflowInit().executeLocal("git reset --hard HEAD~1");
             }
             String header = "Error merging branch '" + hotfixBranch + "' into '" + developBranch + "'";
             exceptionMapper.handle(header, ge);
         } catch (GitflowMergeConflictException gmce) {
             String header = "Merge conflict merging branch '" + hotfixBranch + "' into '" + developBranch + "'";
             exceptionMapper.handle(header, gmce);
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
         /* Push merges and tag */
         try {
             if (session.getRequest().isInteractiveMode()) {
                 prompter.pushPrompt("Are you ready to push?", Arrays.asList(tagName, masterBranch, developBranch), Arrays.asList(hotfixBranch, origin + '/' + hotfixBranch));
                 boolean yes;
                 try {
                     yes = prompter.promptYesNo("Do you want to continue");
                 } catch (IOException e) {
                     throw new MojoFailureException("Error reading user input from command line " + e.getMessage());
                 }
 
                 if (yes) {
                     gitflowHotfix.publish(hotfixBranch, tagName, true);
                 } else {
                     gitflowHotfix.publish(hotfixBranch, tagName, false);
                 }
             } else {
                 gitflowHotfix.publish(hotfixBranch, tagName, true);
             }
         } catch (GitCommandException gce) {
             String header = "Failed to push hotfix finish";
             exceptionMapper.handle(header, gce);
         } catch (GitflowException ge) {
             String header = "Failed to push hotfix finish";
             exceptionMapper.handle(header, ge);
         }
     }
 
     private String promptForExistingHotfixBranch(String prefix, List<String> hotfixBranches) throws MojoFailureException {
         List<String> choices = hotfixBranches;
 
         /* if current branch is a feature branch at it to start of list so it is the default in prompt */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (currentBranch.startsWith(prefix)) {
             choices = rearrange(currentBranch, hotfixBranches);
         }
 
         String name = "";
         try {
             prompter.promptChoice("Hotfix branches", "Please select a hotfix branch to finish", choices);
         } catch (IOException ex) {
             throw new MojoFailureException("Error reading hotfix name from command line " + ex.getMessage());
         }
         return name.trim();
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index 6eddaab..fe66c25 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -32,270 +32,279 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  * Merges a release branch back into the develop and master branch and then
  * creates a tag for the release on master.
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
 
     /**
      * If the project has a parent with a release version it will be replaced
      * with the next <code>-SNAPSHOT</code> version (if it has been deployed).
      * This action is performed on the develop branch after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "updateParent", defaultValue = "false", required = false)
     private Boolean updateParent;
 
     /**
      * On the release branch before finish is called any dependencies with a
      * <code>-SNAPSHOT</code> version are replaced with the corresponding
      * release version (if it has been released).
      *
      * On the develop branch after the merge any dependencies with a release
      * version are replaced with the next <code>-SNAPSHOT</code> version (if it
      * has been deployed).
      *
      * @since 1.2
      */
     @Parameter(property = "updateDependencies", defaultValue = "false", required = false)
     private Boolean updateDependencies;
 
     /**
      * If <code>updateDependencies</code> is set, then this should contain a
      * comma separated list of artifact patterns to include. Follows the pattern <code>groupId:artifactId:type:classifier:version<code>
      *
      * @since 1.5
      */
     @Parameter(property = "includes", defaultValue = "", required = false)
     private String includes;
 
     /**
      * If <code>true</code>, the release can still finish even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private Boolean allowSnapshots;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
+    /**
+     * The message to append add to the release tag
+     *
+     * @since 1.2
+     */
+    @Parameter(property = "tagMsg", defaultValue = "", required = false)
+    private String tagMsg;
+
     /**
      * If <code>true</code>, the release tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().debug("Finishing release");
 
         /* Get release branch name */
         String prefix = getReleaseBranchPrefix();
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
         if (releaseBranches.isEmpty()) {
             exceptionMapper.handle(new MojoFailureException("Could not find any local release branch!"));
         }
 
         if (StringUtils.isBlank(releaseName)) {
             if (releaseBranches.size() == 1) {
                 String releaseBranch = releaseBranches.get(0);
                 releaseName = trimReleaseName(releaseBranch);
             } else {
                 String releaseBranch = promptForExistingReleaseBranch(prefix, releaseBranches);
                 releaseName = trimReleaseName(releaseBranch);
             }
 
         } else {
             releaseName = trimReleaseName(releaseName);
             if (!getGitflowInit().gitLocalBranchExists(prefix + releaseName)) {
                 exceptionMapper.handle(new MojoFailureException("No local release branch named '" + prefix + releaseName + "' exists!"));
             }
         }
 
         getLog().info("Finishing release '" + releaseName + "'");
 
         String releaseBranch = prefix + releaseName;
         String tagName = getVersionTagPrefix() + releaseName;
         String developBranch = getGitflowInit().getDevelopBranch();
         String masterBranch = getGitflowInit().getMasterBranch();
         String origin = getGitflowInit().getOrigin();
 
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setPush(false);
         gitflowRelease.setSquash(squash);
+        gitflowRelease.setTagMsg(tagMsg);
         gitflowRelease.setSign(sign);
         gitflowRelease.setSigningkey(signingkey);
 
         /* Switch to release branch and set poms to release version */
         getGitflowInit().executeLocal("git checkout " + releaseBranch);
         reloadReactorProjects();
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(project.getVersion());
         String releaseVersion;
         if ("SNAPSHOT".equals(artifactVersion.getBuildSpecifier())) {
             releaseVersion = getReleaseVersion(project.getVersion());
         } else {
             releaseVersion = project.getVersion();
         }
         getLog().debug("release version = " + releaseVersion);
 
         /* If tag exists we skip merge to master as merge already took place. Possible re-run after merge conflict */
         if (!getGitflowInit().gitTagExists(tagName)) { // @TODO and should also check that last release branch commit is on master
 
             /* Before setting release version check if release branch was already merged to master */
             boolean setVersion = setVersion(releaseVersion, releaseBranch, false); // don't push so can can reset if needed
 
             /* Update release branch dependencies to release version */
             boolean setNextVersions = false;
             if (updateDependencies) {
                 reloadReactorProjects();
                 setNextVersions = setNextVersions(false, updateParent, includes);
             }
 
             if (!allowSnapshots) {
                 reloadReactorProjects();
                 try {
                     checkForSnapshotDependencies();
                 } catch (MojoExecutionException mee) {
                     // reset setNextVersions and/or setVersion commits to allow user fix & push SNAPSHOT dependencies
                     // but can only reset if it the commits have not been pushed */
                     if (setNextVersions) {
                         getGitflowInit().executeLocal("git reset --hard HEAD~1");
                     }
                     if (setVersion) {
                         getGitflowInit().executeLocal("git reset --hard HEAD~1");
                     }
                     exceptionMapper.handle(mee);
                 }
             }
 
             /* 1. merge to master */
             try {
                 gitflowRelease.finishToMaster(releaseBranch, tagName);
             } catch (GitCommandException gce) {
                 String header = "Error merging branch '" + releaseBranch + "' into '" + masterBranch + "'";
                 exceptionMapper.handle(header, gce);
             } catch (GitflowException ge) {
                 String header = "Error merging branch '" + releaseBranch + "' into '" + masterBranch + "'";
                 exceptionMapper.handle(header, ge);
             } catch (GitflowMergeConflictException gmce) {
                 String header = "Merge conflict merging branch '" + releaseBranch + "' into '" + masterBranch + "'";
                 exceptionMapper.handle(header, gmce);
             }
         } else {
             getLog().warn("Tag " + tagName + " already exists. Skipping merge of release branch '" + releaseBranch + "' into '" + masterBranch + "'");
         }
 
         /* 2. make versions in release and develop branches match to avoid conflicts */
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         getLog().debug("develop version = " + developVersion);
         getGitflowInit().executeLocal("git checkout " + releaseBranch);
         reloadReactorProjects();
         boolean setDevVersion = setVersion(developVersion, releaseBranch, false); // don't push so can can reset if needed
 
         /* 3. merge to develop */
         try {
             gitflowRelease.finishToDevelop(releaseBranch, tagName);
         } catch (GitCommandException gce) {
             // reset setVersion commit and allow user fix whatever exception occurred
             // but can only reset if the commit has not been pushed
             if (setDevVersion) {
                 getGitflowInit().executeLocal("git reset --hard HEAD~1");
             }
             String header = "Error merging branch '" + releaseBranch + "' into '" + developBranch + "'";
             exceptionMapper.handle(header, gce);
         } catch (GitflowException ge) {
             // reset setVersion commit and allow user fix whatever exception occurred
             // but can only reset if the commit has not been pushed
             if (setDevVersion) {
                 getGitflowInit().executeLocal("git reset --hard HEAD~1");
             }
             String header = "Error merging branch '" + releaseBranch + "' into '" + developBranch + "'";
             exceptionMapper.handle(header, ge);
         } catch (GitflowMergeConflictException gmce) {
             String header = "Merge conflict merging branch '" + releaseBranch + "' into '" + developBranch + "'";
             exceptionMapper.handle(header, gmce);
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
         /* Push merges and tag */
         try {
             if (session.getRequest().isInteractiveMode()) {
                 prompter.pushPrompt("Are you ready to push?", Arrays.asList(tagName, masterBranch, developBranch), Arrays.asList(releaseBranch, origin + '/' + releaseBranch));
                 boolean yes;
                 try {
                     yes = prompter.promptYesNo("Do you want to continue");
                 } catch (IOException e) {
                     throw new MojoFailureException("Error reading user input from command line " + e.getMessage());
                 }
 
                 if (yes) {
                     gitflowRelease.publish(releaseBranch, tagName, true);
                 } else {
                     gitflowRelease.publish(releaseBranch, tagName, false);
                 }
             } else {
                 gitflowRelease.publish(releaseBranch, tagName, true);
             }
         } catch (GitCommandException gce) {
             String header = "Failed to push release finish";
             exceptionMapper.handle(header, gce);
         } catch (GitflowException ge) {
             String header = "Failed to push release finish";
             exceptionMapper.handle(header, ge);
         }
 
         /* Update develop branch dependencies to next snapshot version (if deployed) */
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions(true, updateParent, includes);
         }
 
     }
 
     private String promptForExistingReleaseBranch(String prefix, List<String> releaseBranches) throws MojoFailureException {
         List<String> choices = releaseBranches;
 
         /* if current branch is a feature branch at it to start of list so it is the default in prompt */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (currentBranch.startsWith(prefix)) {
             choices = rearrange(currentBranch, releaseBranches);
         }
 
         String name = "";
         try {
             prompter.promptChoice("Release branches", "Please select a release branch to finish", choices);
         } catch (IOException ex) {
             throw new MojoFailureException("Error reading release name from command line " + ex.getMessage());
         }
         return name.trim();
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportTagMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportTagMojo.java
index 677b1ce..069154b 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportTagMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportTagMojo.java
@@ -27,160 +27,169 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  * Creates a tag on a support branch when releasing of a support branch. Note:
  * this does not merge support branch changes back to develop
  */
 @Mojo(name = "support-tag", aggregator = true)
 public class SupportTagMojo extends AbstractSupportMojo {
 
     /**
      * If <code>true</code>, the tag can still get created even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 2.3
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private Boolean allowSnapshots;
 
+    /**
+     * The message to append add to the release tag
+     *
+     * @since 1.2
+     */
+    @Parameter(property = "tagMsg", defaultValue = "", required = false)
+    private String tagMsg;
+
     /**
      * If <code>true</code>, the support tag will be signed.
      *
      * @since 2.3
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 2.3
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().debug("Tagging support branch");
 
         /* Get support branch name */
         String prefix = getSupportBranchPrefix();
         List<String> supportBranches = getGitflowInit().gitLocalSupportBranches();
         if (supportBranches.isEmpty()) {
             exceptionMapper.handle(new MojoFailureException("Could not find any local support branch!"));
         }
 
         if (StringUtils.isBlank(supportName)) {
             if (supportBranches.size() == 1) {
                 String supportBranch = supportBranches.get(0);
                 supportName = trimSupportName(supportBranch);
             } else {
                 String supportBranch = promptForExistingSupportBranch(prefix, supportBranches);
                 supportName = trimSupportName(supportBranch);
             }
 
         } else {
             supportName = trimSupportName(supportName);
             if (!getGitflowInit().gitLocalBranchExists(prefix + supportName)) {
                 String msg = "No local support branch named '" + prefix + supportName + "' exists!";
                 exceptionMapper.handle(new MojoFailureException(msg));
             }
         }
 
         getLog().info("Tagging support branch '" + supportName + "'");
 
         String supportBranch = prefix + supportName;
 
         /* Switch to support branch and get its current version */
         getGitflowInit().executeLocal("git checkout " + supportBranch);
         reloadReactorProjects();
         String snapshotVersion = project.getVersion();
 
         /* Get release version for support tag */
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(snapshotVersion);
         String supportVersion;
         if ("SNAPSHOT".equals(artifactVersion.getBuildSpecifier())) {
             supportVersion = getReleaseVersion(project.getVersion());
         } else {
             supportVersion = project.getVersion();
         }
         getLog().debug("support version = " + supportVersion);
 
         getGitflowInit().requireTagAbsent(supportVersion);
 
         /* Set support branch to release version */
         boolean setVersion = setVersion(supportVersion, supportBranch, false);
 
         if (!allowSnapshots) {
             reloadReactorProjects();
             try {
                 checkForSnapshotDependencies();
             } catch (MojoExecutionException mee) {
                 // reset setVersion commit to allow user fix & push SNAPSHOT dependencies
                 if (setVersion) {
                     getGitflowInit().executeLocal("git reset --hard HEAD~1");
                 }
                 exceptionMapper.handle(mee);
             }
         }
 
         /* tag support branch */
-        String tagMsg = "Support release version " + supportVersion;
+        tagMsg = StringUtils.isBlank(tagMsg) ? "" : " " + tagMsg;
+        String tagMessage = "Support release version " + supportVersion + tagMsg ;
         String tagName = supportVersion;
-        String tagString = getGitflowInit().executeLocal("git tag -a -m \"" + tagMsg + "\" " + tagName + " " + supportBranch);
+        String tagString = getGitflowInit().executeLocal("git tag -a -m \"" + tagMessage + "\" " + tagName + " " + supportBranch);
         getLog().debug("Git tag output = " + tagString);
 
         /* Increment support branch to next version */
         String nextSupportVersion = getNextSupportVersion(snapshotVersion);
         setVersion(nextSupportVersion, supportBranch, false);
         promptToPushSupportBranchAndTag(supportBranch, tagName);
 
     }
 
     private String promptForExistingSupportBranch(String prefix, List<String> supportBranches) throws MojoFailureException {
         List<String> choices = supportBranches;
 
         /* if current branch is a support branch at it to start of list so it is the default in prompt */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (currentBranch.startsWith(prefix)) {
             choices = rearrange(currentBranch, supportBranches);
         }
 
         String name = "";
         try {
             prompter.promptChoice("Support branches", "Please select a support branch to tag", choices);
         } catch (IOException ex) {
             throw new MojoFailureException("Error reading release name from command line " + ex.getMessage());
         }
         return name.trim();
     }
 
     private void promptToPushSupportBranchAndTag(String supportBranch, String supportTag) throws MojoFailureException {
         String origin = getGitflowInit().getOrigin();
 
         boolean yes;
         if (session.getRequest().isInteractiveMode()) {
             try {
                 yes = prompter.promptYesNo("Do you want to push " + supportBranch + " branch and support tag " + supportTag + " to " + origin);
             } catch (IOException e) {
                 throw new MojoFailureException("Error reading support branch name from command line " + e.getMessage());
             }
         } else {
             yes = true; // push in maven --batch mode
         }
 
         if (yes) {
             if (getGitflowInit().gitRemoteBranchExists(supportBranch)) {
                 getGitflowInit().executeRemote("git push " + origin + " " + supportBranch);
                 getGitflowInit().executeRemote("git push " + origin + " " + supportTag);
             } else {
                 getLog().info("");
                 getLog().warn("===> Branch '" + supportBranch + "' does not exist on '" + origin + "'");
                 getLog().warn("===> Once ready you MUST manually push '" + supportBranch + "' branch and support tag '" + supportTag + "' to '" + origin + "'");
                 getLog().info("");
             }
         } else {
             getLog().info("");
             getLog().warn("===> Once ready you MUST manually push '" + supportBranch + "' branch and support tag '" + supportTag + "' to '" + origin + "'");
             getLog().info("");
         }
     }
 }

commit bcaa948bd97a23b76bc112f086db40cf49abfdd2
Author: dkirrane <dkirrane@avaya.com>
Date:   Wed Sep 28 17:57:03 2016 +0100

    fix

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index 371b5a0..6eddaab 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -32,270 +32,270 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  * Merges a release branch back into the develop and master branch and then
  * creates a tag for the release on master.
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
 
     /**
      * If the project has a parent with a release version it will be replaced
      * with the next <code>-SNAPSHOT</code> version (if it has been deployed).
      * This action is performed on the develop branch after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "updateParent", defaultValue = "false", required = false)
     private Boolean updateParent;
 
     /**
      * On the release branch before finish is called any dependencies with a
      * <code>-SNAPSHOT</code> version are replaced with the corresponding
      * release version (if it has been released).
      *
      * On the develop branch after the merge any dependencies with a release
      * version are replaced with the next <code>-SNAPSHOT</code> version (if it
      * has been deployed).
      *
      * @since 1.2
      */
     @Parameter(property = "updateDependencies", defaultValue = "false", required = false)
     private Boolean updateDependencies;
 
     /**
      * If <code>updateDependencies</code> is set, then this should contain a
      * comma separated list of artifact patterns to include. Follows the pattern <code>groupId:artifactId:type:classifier:version<code>
      *
      * @since 1.5
      */
     @Parameter(property = "includes", defaultValue = "", required = false)
     private String includes;
 
     /**
      * If <code>true</code>, the release can still finish even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private Boolean allowSnapshots;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the release tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().debug("Finishing release");
 
         /* Get release branch name */
         String prefix = getReleaseBranchPrefix();
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
         if (releaseBranches.isEmpty()) {
             exceptionMapper.handle(new MojoFailureException("Could not find any local release branch!"));
         }
 
         if (StringUtils.isBlank(releaseName)) {
             if (releaseBranches.size() == 1) {
                 String releaseBranch = releaseBranches.get(0);
                 releaseName = trimReleaseName(releaseBranch);
             } else {
                 String releaseBranch = promptForExistingReleaseBranch(prefix, releaseBranches);
                 releaseName = trimReleaseName(releaseBranch);
             }
 
         } else {
             releaseName = trimReleaseName(releaseName);
             if (!getGitflowInit().gitLocalBranchExists(prefix + releaseName)) {
                 exceptionMapper.handle(new MojoFailureException("No local release branch named '" + prefix + releaseName + "' exists!"));
             }
         }
 
         getLog().info("Finishing release '" + releaseName + "'");
 
         String releaseBranch = prefix + releaseName;
         String tagName = getVersionTagPrefix() + releaseName;
         String developBranch = getGitflowInit().getDevelopBranch();
         String masterBranch = getGitflowInit().getMasterBranch();
         String origin = getGitflowInit().getOrigin();
 
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setPush(false);
         gitflowRelease.setSquash(squash);
         gitflowRelease.setSign(sign);
         gitflowRelease.setSigningkey(signingkey);
 
         /* Switch to release branch and set poms to release version */
         getGitflowInit().executeLocal("git checkout " + releaseBranch);
         reloadReactorProjects();
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(project.getVersion());
         String releaseVersion;
         if ("SNAPSHOT".equals(artifactVersion.getBuildSpecifier())) {
             releaseVersion = getReleaseVersion(project.getVersion());
         } else {
             releaseVersion = project.getVersion();
         }
         getLog().debug("release version = " + releaseVersion);
 
         /* If tag exists we skip merge to master as merge already took place. Possible re-run after merge conflict */
         if (!getGitflowInit().gitTagExists(tagName)) { // @TODO and should also check that last release branch commit is on master
 
             /* Before setting release version check if release branch was already merged to master */
             boolean setVersion = setVersion(releaseVersion, releaseBranch, false); // don't push so can can reset if needed
 
             /* Update release branch dependencies to release version */
             boolean setNextVersions = false;
             if (updateDependencies) {
                 reloadReactorProjects();
                 setNextVersions = setNextVersions(false, updateParent, includes);
             }
 
             if (!allowSnapshots) {
                 reloadReactorProjects();
                 try {
                     checkForSnapshotDependencies();
                 } catch (MojoExecutionException mee) {
                     // reset setNextVersions and/or setVersion commits to allow user fix & push SNAPSHOT dependencies
                     // but can only reset if it the commits have not been pushed */
                     if (setNextVersions) {
                         getGitflowInit().executeLocal("git reset --hard HEAD~1");
                     }
                     if (setVersion) {
                         getGitflowInit().executeLocal("git reset --hard HEAD~1");
                     }
                     exceptionMapper.handle(mee);
                 }
             }
 
             /* 1. merge to master */
             try {
                 gitflowRelease.finishToMaster(releaseBranch, tagName);
             } catch (GitCommandException gce) {
                 String header = "Error merging branch '" + releaseBranch + "' into '" + masterBranch + "'";
                 exceptionMapper.handle(header, gce);
             } catch (GitflowException ge) {
                 String header = "Error merging branch '" + releaseBranch + "' into '" + masterBranch + "'";
                 exceptionMapper.handle(header, ge);
             } catch (GitflowMergeConflictException gmce) {
                 String header = "Merge conflict merging branch '" + releaseBranch + "' into '" + masterBranch + "'";
                 exceptionMapper.handle(header, gmce);
             }
         } else {
             getLog().warn("Tag " + tagName + " already exists. Skipping merge of release branch '" + releaseBranch + "' into '" + masterBranch + "'");
         }
 
         /* 2. make versions in release and develop branches match to avoid conflicts */
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         getLog().debug("develop version = " + developVersion);
         getGitflowInit().executeLocal("git checkout " + releaseBranch);
         reloadReactorProjects();
         boolean setDevVersion = setVersion(developVersion, releaseBranch, false); // don't push so can can reset if needed
 
         /* 3. merge to develop */
         try {
             gitflowRelease.finishToDevelop(releaseBranch, tagName);
         } catch (GitCommandException gce) {
             // reset setVersion commit and allow user fix whatever exception occurred
             // but can only reset if the commit has not been pushed
             if (setDevVersion) {
                 getGitflowInit().executeLocal("git reset --hard HEAD~1");
             }
             String header = "Error merging branch '" + releaseBranch + "' into '" + developBranch + "'";
             exceptionMapper.handle(header, gce);
         } catch (GitflowException ge) {
             // reset setVersion commit and allow user fix whatever exception occurred
             // but can only reset if the commit has not been pushed
             if (setDevVersion) {
                 getGitflowInit().executeLocal("git reset --hard HEAD~1");
             }
             String header = "Error merging branch '" + releaseBranch + "' into '" + developBranch + "'";
             exceptionMapper.handle(header, ge);
         } catch (GitflowMergeConflictException gmce) {
             String header = "Merge conflict merging branch '" + releaseBranch + "' into '" + developBranch + "'";
             exceptionMapper.handle(header, gmce);
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
-            new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
+            throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
         /* Push merges and tag */
         try {
             if (session.getRequest().isInteractiveMode()) {
                 prompter.pushPrompt("Are you ready to push?", Arrays.asList(tagName, masterBranch, developBranch), Arrays.asList(releaseBranch, origin + '/' + releaseBranch));
                 boolean yes;
                 try {
                     yes = prompter.promptYesNo("Do you want to continue");
                 } catch (IOException e) {
                     throw new MojoFailureException("Error reading user input from command line " + e.getMessage());
                 }
 
                 if (yes) {
                     gitflowRelease.publish(releaseBranch, tagName, true);
                 } else {
                     gitflowRelease.publish(releaseBranch, tagName, false);
                 }
             } else {
                 gitflowRelease.publish(releaseBranch, tagName, true);
             }
         } catch (GitCommandException gce) {
             String header = "Failed to push release finish";
             exceptionMapper.handle(header, gce);
         } catch (GitflowException ge) {
             String header = "Failed to push release finish";
             exceptionMapper.handle(header, ge);
         }
 
         /* Update develop branch dependencies to next snapshot version (if deployed) */
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions(true, updateParent, includes);
         }
 
     }
 
     private String promptForExistingReleaseBranch(String prefix, List<String> releaseBranches) throws MojoFailureException {
         List<String> choices = releaseBranches;
 
         /* if current branch is a feature branch at it to start of list so it is the default in prompt */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (currentBranch.startsWith(prefix)) {
             choices = rearrange(currentBranch, releaseBranches);
         }
 
         String name = "";
         try {
             prompter.promptChoice("Release branches", "Please select a release branch to finish", choices);
         } catch (IOException ex) {
             throw new MojoFailureException("Error reading release name from command line " + ex.getMessage());
         }
         return name.trim();
     }
 }

commit d5dd5518e8cf5fd4f78f83840b3f6e567ed1672e
Author: dkirrane <dkirrane@avaya.com>
Date:   Wed Sep 28 17:55:32 2016 +0100

    batch mode

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
index 9b05f46..03c664e 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
@@ -31,151 +31,154 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  * Merges a feature branch back into the develop.
  */
 @Mojo(name = "feature-finish", aggregator = true)
 public class FeatureFinishMojo extends AbstractFeatureMojo {
 
     /**
      * If <code>true</code>, the feature branch will be rebased onto develop,
      * then finish will fast-forward merge the feature branch back onto develop.
      *
      * @since 1.2
      */
     @Parameter(property = "isRebase", defaultValue = "false", required = false)
     private boolean isRebase;
 
 //    No good way to handle Interactive rebase from a Maven plugin
 //    /**
 //     * If <code>true</code>, and <code>isRebase</code> is true, then an interactive rebase is
 //     * performed for the feature branch.
 //     *
 //     * @since 1.2
 //     */
 //    @Parameter(property = "isInteractive", defaultValue = "false", required = false)
     private final boolean isInteractive = false;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().debug("Finishing feature");
 
         String prefix = getFeatureBranchPrefix();
         List<String> featureBranches = getGitflowInit().gitLocalFeatureBranches();
         if (null == featureBranches || featureBranches.isEmpty()) {
             throw new MojoFailureException("No local feature branches exist!");
         }
 
         if (StringUtils.isBlank(featureName)) {
             String featureBranch = promptForExistingFeatureBranch(prefix, featureBranches);
             featureName = trimFeatureName(featureBranch);
         } else {
             featureName = trimFeatureName(featureName);
             if (!getGitflowInit().gitLocalBranchExists(prefix + featureName)) {
                 throw new MojoFailureException("No local feature branch named '" + prefix + featureName + "' exists!");
             }
         }
 
         getLog().info("Finishing feature '" + featureName + "'");
 
         String featureBranch = prefix + featureName;
         String developBranch = getGitflowInit().getDevelopBranch();
         String masterBranch = getGitflowInit().getMasterBranch();
         String origin = getGitflowInit().getOrigin();
 
         if (enableFeatureVersions) {
             /* Switch to develop branch and get its current version */
             getGitflowInit().executeLocal("git checkout " + developBranch);
             reloadReactorProjects();
             String developVersion = project.getVersion();
             getLog().debug("develop version = " + developVersion);
 
             /* Switch to feature branch and get its current version */
             getGitflowInit().executeLocal("git checkout " + featureBranch);
             reloadReactorProjects();
             String featureVersion = project.getVersion();
             getLog().debug("feature version = " + featureVersion);
 
             setVersion(developVersion, featureBranch, false);
         }
 
         GitflowFeature gitflowFeature = new GitflowFeature();
         gitflowFeature.setInit(getGitflowInit());
         gitflowFeature.setMsgPrefix(getMsgPrefix());
         gitflowFeature.setMsgSuffix(getMsgSuffix());
         gitflowFeature.setPush(false);
         gitflowFeature.setSquash(squash);
         gitflowFeature.setIsRebase(isRebase);
         gitflowFeature.setIsInteractive(isInteractive);
 
         try {
             gitflowFeature.finish(featureName);
         } catch (GitCommandException gce) {
             String header = "Error merging branch '" + featureBranch + "' into '" + masterBranch + "'";
             exceptionMapper.handle(header, gce);
         } catch (GitflowException ge) {
             String header = "Error merging branch '" + featureBranch + "' into '" + masterBranch + "'";
             exceptionMapper.handle(header, ge);
         } catch (GitflowMergeConflictException gmce) {
             String header = "Merge conflict merging branch '" + featureBranch + "' into '" + masterBranch + "'";
             exceptionMapper.handle(header, gmce);
         }
 
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
         /* Push merges and tag */
         try {
-            prompter.pushPrompt("Are you ready to push?", Arrays.asList(developBranch), Arrays.asList(featureBranch, origin + '/' + featureBranch));
-
-            boolean yes;
-            try {
-                yes = prompter.promptYesNo("Do you want to continue");
-            } catch (IOException e) {
-                throw new MojoFailureException("Error reading user input from command line " + e.getMessage());
-            }
-
-            if (yes) {
-                gitflowFeature.publish(featureBranch, true);
+            if (session.getRequest().isInteractiveMode()) {
+                prompter.pushPrompt("Are you ready to push?", Arrays.asList(developBranch), Arrays.asList(featureBranch, origin + '/' + featureBranch));
+                boolean yes;
+                try {
+                    yes = prompter.promptYesNo("Do you want to continue");
+                } catch (IOException e) {
+                    throw new MojoFailureException("Error reading user input from command line " + e.getMessage());
+                }
+
+                if (yes) {
+                    gitflowFeature.publish(featureBranch, true);
+                } else {
+                    gitflowFeature.publish(featureBranch, false);
+                }
             } else {
-                gitflowFeature.publish(featureBranch, false);
+                gitflowFeature.publish(featureBranch, true);
             }
         } catch (GitCommandException gce) {
             String header = "Failed to push release finish";
             exceptionMapper.handle(header, gce);
         } catch (GitflowException ge) {
             String header = "Failed to push release finish";
             exceptionMapper.handle(header, ge);
         }
     }
 
     private String promptForExistingFeatureBranch(String prefix, List<String> featureBranches) throws MojoFailureException {
         List<String> choices = featureBranches;
 
         /* if current branch is a feature branch at it to start of list so it is the default in prompt */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (currentBranch.startsWith(prefix)) {
             choices = rearrange(currentBranch, featureBranches);
         }
 
         String name = "";
         try {
             prompter.promptChoice("Feature branches", "Please select a feature branch to finish", choices);
         } catch (IOException ex) {
             throw new MojoFailureException("Error reading feature name from command line " + ex.getMessage());
         }
         return name.trim();
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
index d6532d8..dfd9681 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
@@ -32,219 +32,222 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  * Merges a hotfix branch back into the develop and master branch and then
  * creates a tag for the hotfix on master.
  */
 @Mojo(name = "hotfix-finish", aggregator = true)
 public class HotfixFinishMojo extends AbstractHotfixMojo {
 
     protected String hotfixName;
 
     /**
      * If <code>true</code>, the hotfix can still finish even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private boolean allowSnapshots;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the hotfix tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().debug("Finishing hotfix");
 
         /* Get hotfix branch name */
         String prefix = getHotfixBranchPrefix();
         List<String> hotfixBranches = getGitflowInit().gitLocalHotfixBranches();
         if (hotfixBranches.isEmpty()) {
             throw new MojoFailureException("Could not find any local hotfix branch!");
         }
 
         if (StringUtils.isBlank(hotfixName)) {
             if (hotfixBranches.size() == 1) {
                 String hotfixBranch = hotfixBranches.get(0);
                 hotfixName = trimHotfixName(hotfixBranch);
             } else {
                 String hotfixBranch = promptForExistingHotfixBranch(prefix, hotfixBranches);
                 hotfixName = trimHotfixName(hotfixBranch);
             }
 
         } else {
             hotfixName = trimHotfixName(hotfixName);
             if (!getGitflowInit().gitLocalBranchExists(prefix + hotfixName)) {
                 throw new MojoFailureException("No local hotfix branch named '" + prefix + hotfixName + "' exists!");
             }
         }
 
         getLog().info("Finishing hotfix '" + hotfixName + "'");
 
         String hotfixBranch = prefix + hotfixName;
         String tagName = getVersionTagPrefix() + hotfixName;
         String developBranch = getGitflowInit().getDevelopBranch();
         String masterBranch = getGitflowInit().getMasterBranch();
         String origin = getGitflowInit().getOrigin();
 
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
         gitflowHotfix.setPush(false);
         gitflowHotfix.setSquash(squash);
         gitflowHotfix.setSign(sign);
         gitflowHotfix.setSigningkey(signingkey);
 
         /* Switch to hotfix branch and set poms to hotfix version */
         getGitflowInit().executeLocal("git checkout " + hotfixBranch);
         reloadReactorProjects();
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(project.getVersion());
         String hotfixVersion;
         if ("SNAPSHOT".equals(artifactVersion.getBuildSpecifier())) {
             hotfixVersion = getReleaseVersion(project.getVersion());
         } else {
             hotfixVersion = project.getVersion();
         }
         getLog().debug("hotfix version = " + hotfixVersion);
 
         /* If tag exists we skip merge to master as merge already took place. Possible re-run after merge conflict */
         if (!getGitflowInit().gitTagExists(tagName)) { // @TODO and should also check that last hotfix branch commit is on master
 
             /* Before setting hotfix version check if hotfix branch was already merged to master */
             boolean setVersion = setVersion(hotfixVersion, hotfixBranch, false); // don't push so can can reset if needed
 
             if (!allowSnapshots) {
                 reloadReactorProjects();
                 try {
                     checkForSnapshotDependencies();
                 } catch (MojoExecutionException mee) {
                     // reset setVersion commits to allow user fix & push SNAPSHOT dependencies
                     // but can only reset if it the commits have not been pushed */
                     if (setVersion) {
                         getGitflowInit().executeLocal("git reset --hard HEAD~1");
                     }
                     exceptionMapper.handle(mee);
                 }
             }
 
             /* 1. merge to master */
             try {
                 gitflowHotfix.finishToMaster(hotfixBranch, tagName);
             } catch (GitCommandException gce) {
                 String header = "Error merging branch '" + hotfixBranch + "' into '" + masterBranch + "'";
                 exceptionMapper.handle(header, gce);
             } catch (GitflowException ge) {
                 String header = "Error merging branch '" + hotfixBranch + "' into '" + masterBranch + "'";
                 exceptionMapper.handle(header, ge);
             } catch (GitflowMergeConflictException gmce) {
                 String header = "Merge conflict merging branch '" + hotfixBranch + "' into '" + masterBranch + "'";
                 exceptionMapper.handle(header, gmce);
             }
         } else {
             getLog().warn("Tag " + tagName + " already exists. Skipping merge of hotfix branch '" + hotfixBranch + "' into '" + masterBranch + "'");
         }
 
         /* 2. make versions in hotfix and develop branches match to avoid conflicts */
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         getLog().debug("develop version = " + developVersion);
         getGitflowInit().executeLocal("git checkout " + hotfixBranch);
         reloadReactorProjects();
         boolean setDevVersion = setVersion(developVersion, hotfixBranch, false); // don't push so can can reset if needed
 
         /* 3. merge to develop */
         try {
             gitflowHotfix.finishToDevelop(hotfixBranch, tagName);
         } catch (GitCommandException gce) {
             // reset setVersion commit and allow user fix whatever exception occurred
             // but can only reset if the commit has not been pushed
             if (setDevVersion) {
                 getGitflowInit().executeLocal("git reset --hard HEAD~1");
             }
             String header = "Error merging branch '" + hotfixBranch + "' into '" + developBranch + "'";
             exceptionMapper.handle(header, gce);
         } catch (GitflowException ge) {
             // reset setVersion commit and allow user fix whatever exception occurred
             // but can only reset if the commit has not been pushed
             if (setDevVersion) {
                 getGitflowInit().executeLocal("git reset --hard HEAD~1");
             }
             String header = "Error merging branch '" + hotfixBranch + "' into '" + developBranch + "'";
             exceptionMapper.handle(header, ge);
         } catch (GitflowMergeConflictException gmce) {
             String header = "Merge conflict merging branch '" + hotfixBranch + "' into '" + developBranch + "'";
             exceptionMapper.handle(header, gmce);
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
         /* Push merges and tag */
         try {
-            prompter.pushPrompt("Are you ready to push?", Arrays.asList(tagName, masterBranch, developBranch), Arrays.asList(hotfixBranch, origin + '/' + hotfixBranch));
-
-            boolean yes;
-            try {
-                yes = prompter.promptYesNo("Do you want to continue");
-            } catch (IOException e) {
-                throw new MojoFailureException("Error reading user input from command line " + e.getMessage());
-            }
+            if (session.getRequest().isInteractiveMode()) {
+                prompter.pushPrompt("Are you ready to push?", Arrays.asList(tagName, masterBranch, developBranch), Arrays.asList(hotfixBranch, origin + '/' + hotfixBranch));
+                boolean yes;
+                try {
+                    yes = prompter.promptYesNo("Do you want to continue");
+                } catch (IOException e) {
+                    throw new MojoFailureException("Error reading user input from command line " + e.getMessage());
+                }
 
-            if (yes) {
-                gitflowHotfix.publish(hotfixBranch, tagName, true);
+                if (yes) {
+                    gitflowHotfix.publish(hotfixBranch, tagName, true);
+                } else {
+                    gitflowHotfix.publish(hotfixBranch, tagName, false);
+                }
             } else {
-                gitflowHotfix.publish(hotfixBranch, tagName, false);
+                gitflowHotfix.publish(hotfixBranch, tagName, true);
             }
         } catch (GitCommandException gce) {
             String header = "Failed to push hotfix finish";
             exceptionMapper.handle(header, gce);
         } catch (GitflowException ge) {
             String header = "Failed to push hotfix finish";
             exceptionMapper.handle(header, ge);
         }
     }
 
     private String promptForExistingHotfixBranch(String prefix, List<String> hotfixBranches) throws MojoFailureException {
         List<String> choices = hotfixBranches;
 
         /* if current branch is a feature branch at it to start of list so it is the default in prompt */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (currentBranch.startsWith(prefix)) {
             choices = rearrange(currentBranch, hotfixBranches);
         }
 
         String name = "";
         try {
             prompter.promptChoice("Hotfix branches", "Please select a hotfix branch to finish", choices);
         } catch (IOException ex) {
             throw new MojoFailureException("Error reading hotfix name from command line " + ex.getMessage());
         }
         return name.trim();
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index dbbffd0..371b5a0 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -32,267 +32,270 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  * Merges a release branch back into the develop and master branch and then
  * creates a tag for the release on master.
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
 
     /**
      * If the project has a parent with a release version it will be replaced
      * with the next <code>-SNAPSHOT</code> version (if it has been deployed).
      * This action is performed on the develop branch after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "updateParent", defaultValue = "false", required = false)
     private Boolean updateParent;
 
     /**
      * On the release branch before finish is called any dependencies with a
      * <code>-SNAPSHOT</code> version are replaced with the corresponding
      * release version (if it has been released).
      *
      * On the develop branch after the merge any dependencies with a release
      * version are replaced with the next <code>-SNAPSHOT</code> version (if it
      * has been deployed).
      *
      * @since 1.2
      */
     @Parameter(property = "updateDependencies", defaultValue = "false", required = false)
     private Boolean updateDependencies;
 
     /**
      * If <code>updateDependencies</code> is set, then this should contain a
      * comma separated list of artifact patterns to include. Follows the pattern <code>groupId:artifactId:type:classifier:version<code>
      *
      * @since 1.5
      */
     @Parameter(property = "includes", defaultValue = "", required = false)
     private String includes;
 
     /**
      * If <code>true</code>, the release can still finish even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private Boolean allowSnapshots;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the release tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().debug("Finishing release");
 
         /* Get release branch name */
         String prefix = getReleaseBranchPrefix();
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
         if (releaseBranches.isEmpty()) {
             exceptionMapper.handle(new MojoFailureException("Could not find any local release branch!"));
         }
 
         if (StringUtils.isBlank(releaseName)) {
             if (releaseBranches.size() == 1) {
                 String releaseBranch = releaseBranches.get(0);
                 releaseName = trimReleaseName(releaseBranch);
             } else {
                 String releaseBranch = promptForExistingReleaseBranch(prefix, releaseBranches);
                 releaseName = trimReleaseName(releaseBranch);
             }
 
         } else {
             releaseName = trimReleaseName(releaseName);
             if (!getGitflowInit().gitLocalBranchExists(prefix + releaseName)) {
                 exceptionMapper.handle(new MojoFailureException("No local release branch named '" + prefix + releaseName + "' exists!"));
             }
         }
 
         getLog().info("Finishing release '" + releaseName + "'");
 
         String releaseBranch = prefix + releaseName;
         String tagName = getVersionTagPrefix() + releaseName;
         String developBranch = getGitflowInit().getDevelopBranch();
         String masterBranch = getGitflowInit().getMasterBranch();
         String origin = getGitflowInit().getOrigin();
 
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setPush(false);
         gitflowRelease.setSquash(squash);
         gitflowRelease.setSign(sign);
         gitflowRelease.setSigningkey(signingkey);
 
         /* Switch to release branch and set poms to release version */
         getGitflowInit().executeLocal("git checkout " + releaseBranch);
         reloadReactorProjects();
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(project.getVersion());
         String releaseVersion;
         if ("SNAPSHOT".equals(artifactVersion.getBuildSpecifier())) {
             releaseVersion = getReleaseVersion(project.getVersion());
         } else {
             releaseVersion = project.getVersion();
         }
         getLog().debug("release version = " + releaseVersion);
 
         /* If tag exists we skip merge to master as merge already took place. Possible re-run after merge conflict */
         if (!getGitflowInit().gitTagExists(tagName)) { // @TODO and should also check that last release branch commit is on master
 
             /* Before setting release version check if release branch was already merged to master */
             boolean setVersion = setVersion(releaseVersion, releaseBranch, false); // don't push so can can reset if needed
 
             /* Update release branch dependencies to release version */
             boolean setNextVersions = false;
             if (updateDependencies) {
                 reloadReactorProjects();
                 setNextVersions = setNextVersions(false, updateParent, includes);
             }
 
             if (!allowSnapshots) {
                 reloadReactorProjects();
                 try {
                     checkForSnapshotDependencies();
                 } catch (MojoExecutionException mee) {
                     // reset setNextVersions and/or setVersion commits to allow user fix & push SNAPSHOT dependencies
                     // but can only reset if it the commits have not been pushed */
                     if (setNextVersions) {
                         getGitflowInit().executeLocal("git reset --hard HEAD~1");
                     }
                     if (setVersion) {
                         getGitflowInit().executeLocal("git reset --hard HEAD~1");
                     }
                     exceptionMapper.handle(mee);
                 }
             }
 
             /* 1. merge to master */
             try {
                 gitflowRelease.finishToMaster(releaseBranch, tagName);
             } catch (GitCommandException gce) {
                 String header = "Error merging branch '" + releaseBranch + "' into '" + masterBranch + "'";
                 exceptionMapper.handle(header, gce);
             } catch (GitflowException ge) {
                 String header = "Error merging branch '" + releaseBranch + "' into '" + masterBranch + "'";
                 exceptionMapper.handle(header, ge);
             } catch (GitflowMergeConflictException gmce) {
                 String header = "Merge conflict merging branch '" + releaseBranch + "' into '" + masterBranch + "'";
                 exceptionMapper.handle(header, gmce);
             }
         } else {
             getLog().warn("Tag " + tagName + " already exists. Skipping merge of release branch '" + releaseBranch + "' into '" + masterBranch + "'");
         }
 
         /* 2. make versions in release and develop branches match to avoid conflicts */
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         getLog().debug("develop version = " + developVersion);
         getGitflowInit().executeLocal("git checkout " + releaseBranch);
         reloadReactorProjects();
         boolean setDevVersion = setVersion(developVersion, releaseBranch, false); // don't push so can can reset if needed
 
         /* 3. merge to develop */
         try {
             gitflowRelease.finishToDevelop(releaseBranch, tagName);
         } catch (GitCommandException gce) {
             // reset setVersion commit and allow user fix whatever exception occurred
             // but can only reset if the commit has not been pushed
             if (setDevVersion) {
                 getGitflowInit().executeLocal("git reset --hard HEAD~1");
             }
             String header = "Error merging branch '" + releaseBranch + "' into '" + developBranch + "'";
             exceptionMapper.handle(header, gce);
         } catch (GitflowException ge) {
             // reset setVersion commit and allow user fix whatever exception occurred
             // but can only reset if the commit has not been pushed
             if (setDevVersion) {
                 getGitflowInit().executeLocal("git reset --hard HEAD~1");
             }
             String header = "Error merging branch '" + releaseBranch + "' into '" + developBranch + "'";
             exceptionMapper.handle(header, ge);
         } catch (GitflowMergeConflictException gmce) {
             String header = "Merge conflict merging branch '" + releaseBranch + "' into '" + developBranch + "'";
             exceptionMapper.handle(header, gmce);
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
         /* Push merges and tag */
         try {
-            prompter.pushPrompt("Are you ready to push?", Arrays.asList(tagName, masterBranch, developBranch), Arrays.asList(releaseBranch, origin + '/' + releaseBranch));
-
-            boolean yes;
-            try {
-                yes = prompter.promptYesNo("Do you want to continue");
-            } catch (IOException e) {
-                throw new MojoFailureException("Error reading user input from command line " + e.getMessage());
-            }
+            if (session.getRequest().isInteractiveMode()) {
+                prompter.pushPrompt("Are you ready to push?", Arrays.asList(tagName, masterBranch, developBranch), Arrays.asList(releaseBranch, origin + '/' + releaseBranch));
+                boolean yes;
+                try {
+                    yes = prompter.promptYesNo("Do you want to continue");
+                } catch (IOException e) {
+                    throw new MojoFailureException("Error reading user input from command line " + e.getMessage());
+                }
 
-            if (yes) {
-                gitflowRelease.publish(releaseBranch, tagName, true);
+                if (yes) {
+                    gitflowRelease.publish(releaseBranch, tagName, true);
+                } else {
+                    gitflowRelease.publish(releaseBranch, tagName, false);
+                }
             } else {
-                gitflowRelease.publish(releaseBranch, tagName, false);
+                gitflowRelease.publish(releaseBranch, tagName, true);
             }
         } catch (GitCommandException gce) {
             String header = "Failed to push release finish";
             exceptionMapper.handle(header, gce);
         } catch (GitflowException ge) {
             String header = "Failed to push release finish";
             exceptionMapper.handle(header, ge);
         }
 
         /* Update develop branch dependencies to next snapshot version (if deployed) */
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions(true, updateParent, includes);
         }
 
     }
 
     private String promptForExistingReleaseBranch(String prefix, List<String> releaseBranches) throws MojoFailureException {
         List<String> choices = releaseBranches;
 
         /* if current branch is a feature branch at it to start of list so it is the default in prompt */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (currentBranch.startsWith(prefix)) {
             choices = rearrange(currentBranch, releaseBranches);
         }
 
         String name = "";
         try {
             prompter.promptChoice("Release branches", "Please select a release branch to finish", choices);
         } catch (IOException ex) {
             throw new MojoFailureException("Error reading release name from command line " + ex.getMessage());
         }
         return name.trim();
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportTagMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportTagMojo.java
index 52e6873..677b1ce 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportTagMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportTagMojo.java
@@ -27,157 +27,160 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  * Creates a tag on a support branch when releasing of a support branch. Note:
  * this does not merge support branch changes back to develop
  */
 @Mojo(name = "support-tag", aggregator = true)
 public class SupportTagMojo extends AbstractSupportMojo {
 
     /**
      * If <code>true</code>, the tag can still get created even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 2.3
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private Boolean allowSnapshots;
 
     /**
      * If <code>true</code>, the support tag will be signed.
      *
      * @since 2.3
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 2.3
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().debug("Tagging support branch");
 
         /* Get support branch name */
         String prefix = getSupportBranchPrefix();
         List<String> supportBranches = getGitflowInit().gitLocalSupportBranches();
         if (supportBranches.isEmpty()) {
             exceptionMapper.handle(new MojoFailureException("Could not find any local support branch!"));
         }
 
         if (StringUtils.isBlank(supportName)) {
             if (supportBranches.size() == 1) {
                 String supportBranch = supportBranches.get(0);
                 supportName = trimSupportName(supportBranch);
             } else {
                 String supportBranch = promptForExistingSupportBranch(prefix, supportBranches);
                 supportName = trimSupportName(supportBranch);
             }
 
         } else {
             supportName = trimSupportName(supportName);
             if (!getGitflowInit().gitLocalBranchExists(prefix + supportName)) {
                 String msg = "No local support branch named '" + prefix + supportName + "' exists!";
                 exceptionMapper.handle(new MojoFailureException(msg));
             }
         }
 
         getLog().info("Tagging support branch '" + supportName + "'");
 
         String supportBranch = prefix + supportName;
 
         /* Switch to support branch and get its current version */
         getGitflowInit().executeLocal("git checkout " + supportBranch);
         reloadReactorProjects();
         String snapshotVersion = project.getVersion();
 
         /* Get release version for support tag */
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(snapshotVersion);
         String supportVersion;
         if ("SNAPSHOT".equals(artifactVersion.getBuildSpecifier())) {
             supportVersion = getReleaseVersion(project.getVersion());
         } else {
             supportVersion = project.getVersion();
         }
         getLog().debug("support version = " + supportVersion);
 
         getGitflowInit().requireTagAbsent(supportVersion);
 
         /* Set support branch to release version */
         boolean setVersion = setVersion(supportVersion, supportBranch, false);
 
         if (!allowSnapshots) {
             reloadReactorProjects();
             try {
                 checkForSnapshotDependencies();
             } catch (MojoExecutionException mee) {
                 // reset setVersion commit to allow user fix & push SNAPSHOT dependencies
                 if (setVersion) {
                     getGitflowInit().executeLocal("git reset --hard HEAD~1");
                 }
                 exceptionMapper.handle(mee);
             }
         }
 
         /* tag support branch */
         String tagMsg = "Support release version " + supportVersion;
         String tagName = supportVersion;
         String tagString = getGitflowInit().executeLocal("git tag -a -m \"" + tagMsg + "\" " + tagName + " " + supportBranch);
         getLog().debug("Git tag output = " + tagString);
 
         /* Increment support branch to next version */
         String nextSupportVersion = getNextSupportVersion(snapshotVersion);
         setVersion(nextSupportVersion, supportBranch, false);
         promptToPushSupportBranchAndTag(supportBranch, tagName);
 
     }
 
     private String promptForExistingSupportBranch(String prefix, List<String> supportBranches) throws MojoFailureException {
         List<String> choices = supportBranches;
 
         /* if current branch is a support branch at it to start of list so it is the default in prompt */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (currentBranch.startsWith(prefix)) {
             choices = rearrange(currentBranch, supportBranches);
         }
 
         String name = "";
         try {
             prompter.promptChoice("Support branches", "Please select a support branch to tag", choices);
         } catch (IOException ex) {
             throw new MojoFailureException("Error reading release name from command line " + ex.getMessage());
         }
         return name.trim();
     }
 
     private void promptToPushSupportBranchAndTag(String supportBranch, String supportTag) throws MojoFailureException {
         String origin = getGitflowInit().getOrigin();
-        String message = "Do you want to push " + supportBranch + " branch and support tag " + supportTag + " to " + origin + "? (y/N)";
 
-        String answer = "";
-        try {
-            answer = prompter.prompt(message);
-        } catch (IOException e) {
-            throw new MojoFailureException("Error reading support branch name from command line " + e.getMessage());
+        boolean yes;
+        if (session.getRequest().isInteractiveMode()) {
+            try {
+                yes = prompter.promptYesNo("Do you want to push " + supportBranch + " branch and support tag " + supportTag + " to " + origin);
+            } catch (IOException e) {
+                throw new MojoFailureException("Error reading support branch name from command line " + e.getMessage());
+            }
+        } else {
+            yes = true; // push in maven --batch mode
         }
 
-        if (answer.matches("/^([yY][eE][sS]|[yY])$/")) {
+        if (yes) {
             if (getGitflowInit().gitRemoteBranchExists(supportBranch)) {
                 getGitflowInit().executeRemote("git push " + origin + " " + supportBranch);
                 getGitflowInit().executeRemote("git push " + origin + " " + supportTag);
             } else {
                 getLog().info("");
                 getLog().warn("===> Branch '" + supportBranch + "' does not exist on '" + origin + "'");
                 getLog().warn("===> Once ready you MUST manually push '" + supportBranch + "' branch and support tag '" + supportTag + "' to '" + origin + "'");
                 getLog().info("");
             }
         } else {
             getLog().info("");
             getLog().warn("===> Once ready you MUST manually push '" + supportBranch + "' branch and support tag '" + supportTag + "' to '" + origin + "'");
             getLog().info("");
         }
     }
 }

commit 03d12365973abd45424b008e2e959ccebd1ab779
Author: dkirrane <dkirrane@avaya.com>
Date:   Wed Sep 28 15:29:06 2016 +0100

    faster delete temp direct

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index 4b969cc..4cebbf4 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -23,4 +23,2 @@ import com.dkirrane.maven.plugins.ggitflow.ex.ExceptionMapper;
 import com.dkirrane.maven.plugins.ggitflow.prompt.Prompter;
-import com.dkirrane.maven.plugins.ggitflow.util.Finder;
-import com.dkirrane.maven.plugins.ggitflow.util.Finder.Syntax;
 import com.dkirrane.maven.plugins.ggitflow.util.MavenUtil;
@@ -34,2 +32,3 @@ import java.io.IOException;
 import java.io.PrintStream;
+import java.nio.file.FileVisitResult;
 import java.nio.file.Files;
@@ -37,2 +36,4 @@ import java.nio.file.Path;
 import java.nio.file.Paths;
+import java.nio.file.SimpleFileVisitor;
+import java.nio.file.attribute.BasicFileAttributes;
 import java.util.ArrayList;
@@ -69,3 +70,2 @@ import org.apache.maven.shared.release.exec.MavenExecutorException;
 import org.apache.maven.shared.release.util.ReleaseUtil;
-import org.codehaus.plexus.util.FileUtils;
 import org.codehaus.plexus.util.StringUtils;
@@ -86,526 +86,537 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 public class AbstractGitflowMojo extends AbstractMojo {
 
     Scanner scanner = new Scanner(System.in);
 
     public final Pattern matchSnapshotRegex = Pattern.compile("-SNAPSHOT");
 
     public static final ImmutableList<String> DEFAULT_INSTALL_ARGS = ImmutableList.of(
             "-DinstallAtEnd=false");
 
     public static final ImmutableList<String> DEFAULT_DEPLOY_ARGS = ImmutableList.of(
             "-DdeployAtEnd=false",
             "-DretryFailedDeploymentCount=2");
 
     public static final Splitter PROFILES_SPLITTER = Splitter.on(',').trimResults().omitEmptyStrings();
     public static final Joiner PROFILES_JOINER = Joiner.on(',').skipNulls();
 
     private static final Plugin VERSIONS_MVN_PLUGIN = plugin(
             groupId("org.codehaus.mojo"),
             artifactId("versions-maven-plugin"),
             version("2.3")
     );
 
     @Parameter(defaultValue = "${session}", readonly = true)
     protected MavenSession session;
 
     @Parameter(defaultValue = "${project}", readonly = true)
     protected MavenProject project;
 
     @Parameter(defaultValue = "${reactorProjects}", readonly = true, required = true)
     protected List<MavenProject> reactorProjects;
 
     @Component
     private ProjectBuilder projectBuilder;
 
     @Component
     protected BuildPluginManager pluginManager;
 
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
     @Component(role = Prompter.class)
     protected Prompter prompter;
 
     @Component(role = ExceptionMapper.class)
     protected ExceptionMapper exceptionMapper;
 
     /**
      * Gitflow branches and prefixes to use.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
     /**
      * Message prefix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgPrefix", defaultValue = "", required = false)
     protected String msgPrefix;
 
     /**
      * Message suffix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgSuffix", defaultValue = "", required = false)
     protected String msgSuffix;
 
     private GitflowInit init;
     private Path tempDir;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             getLog().debug("Gitflow pom  '" + project.getBasedir() + "'");
         }
         GitflowInit gitflowInit = getGitflowInit();
 
         exceptionMapper.setRepoDir(gitflowInit.getRepoDir());
 
         try {
             gitflowInit.requireGitRepo();
         } catch (GitflowException ge) {
             exceptionMapper.handle("Invalid Git repo", ge);
         }
         try {
             gitflowInit.checkRemoteConnection();
         } catch (GitCommandException ge) {
             exceptionMapper.handle("Git connection issue", ge);
         }
         try {
             gitflowInit.requireCleanWorkingTree();
         } catch (GitflowException ge) {
             exceptionMapper.handle("Check git status", ge);
         }
 
         if (!gitflowInit.gitflowIsInitialized()) {
             try {
                 gitflowInit.cmdDefault();
             } catch (GitCommandException gce) {
                 String header = "Unable to initialise Gitflow";
                 exceptionMapper.handle(header, gce);
             } catch (GitflowException ge) {
                 String header = "Unable to initialise Gitflow";
                 exceptionMapper.handle(header, ge);
             }
         }
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     protected final GitflowInit getGitflowInit() {
         if (null == init) {
             getLog().debug("Initialising Gitflow");
             init = new GitflowInit();
             File basedir = getProject().getBasedir();
             getLog().debug("Setting base directory " + basedir);
             init.setRepoDir(basedir);
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
 
             /* root Git directory may not be the pom directory */
             String gitRootPath = init.executeLocal("git rev-parse --show-toplevel");
             getLog().debug("Git repo top level " + gitRootPath);
             File baseGitDir = new File(gitRootPath);
             if (baseGitDir.isDirectory()) {
                 getLog().debug("Setting git base directory " + baseGitDir);
                 init.setRepoDir(baseGitDir);
             }
 
             /* Create temp directory - delete any previous first */
             try {
-                Finder finder = new Finder(Syntax.glob, "mvn-gitflow*");
-                Files.walkFileTree(Paths.get(System.getProperty("java.io.tmpdir")), finder);
-                List<Path> paths = finder.getPaths();
-                getLog().debug("Deleting old temp directories " + paths);
-                for (Path path : paths) {
-                    FileUtils.deleteDirectory(path.toFile());
+                Path osTempDir = Paths.get(System.getProperty("java.io.tmpdir"));
+                for (File f : osTempDir.toFile().listFiles()) {
+                    if (f.isDirectory() && f.getName().startsWith("mvn-gitflow")) {
+                        Files.walkFileTree(f.toPath(), new SimpleFileVisitor<Path>() {
+                            @Override
+                            public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {
+                                Files.delete(file);
+                                return FileVisitResult.CONTINUE;
+                            }
+
+                            @Override
+                            public FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOException {
+                                Files.delete(dir);
+                                return FileVisitResult.CONTINUE;
+                            }
+                        });
+                    }
                 }
                 tempDir = Files.createTempDirectory("mvn-gitflow");
             } catch (IOException ioe) {
                 getLog().error("Failed to create temp directory", ioe);
             }
         }
         return init;
     }
 
     public String getVersionTagPrefix() {
         String prefix = getGitflowInit().getVersionTagPrefix();
         if (null == prefix) {
             prefix = DEFAULT_VERSION_TAG_PREFIX;
         }
         return prefix;
     }
 
     protected final boolean setVersion(String version, String branch, boolean push) throws MojoExecutionException, MojoFailureException {
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         MavenProject topLevelProject = session.getTopLevelProject();
         session.setCurrentProject(topLevelProject);
 
         String goal = goal("set");
         Xpp3Dom configuration = configuration(
                 element(name("generateBackupPoms"), "false"),
                 element(name("newVersion"), version)
         );
 
         String mavenCommand = getMavenCommand(VERSIONS_MVN_PLUGIN, goal);
 
         getLog().info("");
         getLog().info("--- " + mavenCommand + " " + topLevelProject.getArtifactId() + " to " + version + " (" + branch + ") ---");
         executeMyMojo(VERSIONS_MVN_PLUGIN, goal, configuration);
         getLog().info("------------------------------------------------------------------------");
 
         boolean commitMade = false;
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (push && getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change " + version + " to origin. ExitCode:" + exitCode);
                 }
             }
 
             commitMade = true;
         }
         /* We don't want to fail maybe the version was manually set correctly */
 //        else {
 //            throw new MojoFailureException("Failed to update poms to version " + version);
 //        }
         return commitMade;
     }
 
     protected final boolean setNextVersions(Boolean allowSnapshots, Boolean updateParent, String includes) throws MojoExecutionException, MojoFailureException {
         getLog().debug("setNextVersions");
 
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         MavenProject topLevelProject = session.getTopLevelProject();
         session.setCurrentProject(topLevelProject);
 
         if (updateParent) {
             String updateParentGoal = goal("update-parent");
             Xpp3Dom configuration = configuration(
                     element(name("generateBackupPoms"), "false"),
                     element(name("allowSnapshots"), allowSnapshots.toString())
             );
 
             String mavenCommand = getMavenCommand(VERSIONS_MVN_PLUGIN, updateParentGoal);
             getLog().info("");
             getLog().info("--- " + mavenCommand + " " + topLevelProject.getArtifactId() + " ---");
             executeMyMojo(VERSIONS_MVN_PLUGIN, updateParentGoal, configuration);
             getLog().info("------------------------------------------------------------------------");
         }
 
         if (!StringUtils.isBlank(includes)) {
             String useNextVersionsGoal = goal("use-next-versions");
             Xpp3Dom configuration = configuration(
                     element(name("generateBackupPoms"), "false"),
                     element(name("allowSnapshots"), allowSnapshots.toString()),
                     element(name("includesList"), includes)
             );
 
             String mavenCommand = getMavenCommand(VERSIONS_MVN_PLUGIN, useNextVersionsGoal);
             getLog().info("");
             getLog().info("--- " + mavenCommand + " " + topLevelProject.getArtifactId() + " ---");
             executeMyMojo(VERSIONS_MVN_PLUGIN, useNextVersionsGoal, configuration);
             getLog().info("------------------------------------------------------------------------");
         } else {
             getLog().warn("Parameter <includes> is not set. Skipping dependency updates");
         }
 
         boolean commitMade = false;
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg;
             if (allowSnapshots) {
                 msg = getMsgPrefix() + "Replaces any release versions with the next snapshot version (if it has been deployed)." + getMsgSuffix();
             } else {
                 msg = getMsgPrefix() + "Replaces snapshot versions with the corresponding release version" + getMsgSuffix();
             }
 
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change to origin. ExitCode:" + exitCode);
                 }
             }
             commitMade = true;
         }
         return commitMade;
     }
 
     protected final void executeMyMojo(Plugin plugin, String goal, Xpp3Dom configuration) throws MojoExecutionException, MojoFailureException {
         String mavenCommand = getMavenCommand(plugin, goal);
         MavenProject topLevelProject = session.getTopLevelProject();
         String projArtifactId = topLevelProject.getArtifactId();
         getLog().debug("START " + mavenCommand + " on " + projArtifactId);
         getLog().debug("configuration " + configuration.toUnescapedString());
 
         /* Maven 3.3.x log settings */
         session.getRequest().setLoggingLevel(MavenExecutionRequest.LOGGING_LEVEL_ERROR);
         System.setProperty("org.slf4j.simpleLogger.defaultLogLevel", "error");
         System.setProperty("maven.logging.root.level", "error");
         PrintStream stdout = System.out;
         PrintStream stderr = System.err;
         PrintStream stoutStream = null;
         Path tempStoutFile = null;
         try {
 
             /* Capture System.out */
             if (!getLog().isDebugEnabled()) {
                 try {
                     String logFileName = plugin.getArtifactId() + '-' + goal + '-';
                     tempStoutFile = Files.createTempFile(tempDir, logFileName, ".log");
                     stoutStream = new PrintStream(new FileOutputStream(tempStoutFile.toFile(), true));
                     System.setOut(stoutStream);
                     System.setErr(stoutStream);
                 } catch (Exception ioe) {
                     getLog().warn("Failed to capture System.out", ioe);
                 }
             }
 
             /* Execute Maven plugin goal */
             executeMojo(
                     plugin,
                     goal,
                     configuration,
                     executionEnvironment(
                             session.getTopLevelProject(),
                             session,
                             pluginManager
                     )
             );
 
         } catch (MojoExecutionException mee) {
             /* Reset System.out */
             System.setOut(stdout);
             System.setErr(stderr);
             String rootCauseMessage = ExceptionUtils.getRootCauseMessage(mee);
             if (rootCauseMessage.contains("Project version is inherited from parent")) {
                 getLog().debug("Skipping " + mavenCommand + " for project " + projArtifactId + ". Project version is inherited from parent.");
             } else {
                 getLog().error("Failed to execute " + mavenCommand + " on " + projArtifactId, mee);
                 throw mee;
             }
         } finally {
             if (!getLog().isDebugEnabled()) {
                 /* Reset System.out */
                 System.setOut(stdout);
                 System.setErr(stderr);
 
                 if (null != tempStoutFile) {
                     getLog().info(mavenCommand + " log " + tempStoutFile.toString());
                 }
 
                 if (null != stoutStream) {
                     try {
                         stoutStream.close();
                     } catch (Exception e) {
                     }
                 }
             }
             getLog().debug("DONE " + mavenCommand);
         }
     }
 
     private String getMavenCommand(Plugin plugin, String goal) {
         return plugin.getArtifactId() + ':' + plugin.getVersion() + ':' + goal;
     }
 
     protected final void runGoals(String goals, List<String> additionalArgs) throws MojoExecutionException, MojoFailureException {
         getLog().debug("START executing " + goals + " with args " + additionalArgs);
 
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         File basedir = rootProject.getBasedir();
 
         ReleaseResult result = new ReleaseResult();
         ReleaseEnvironment env = new DefaultReleaseEnvironment();
         env.setSettings(session.getSettings());
         MavenExecutor mavenExecutor = mavenExecutors.get(env.getMavenExecutorId());
 
         Joiner joiner = Joiner.on(" ").skipNulls();
         String additionalArguments = joiner.join(additionalArgs);
         getLog().debug("additionalArguments " + additionalArguments);
 
         try {
             mavenExecutor.executeGoals(basedir, goals, env, false, additionalArguments, result);
         } catch (MavenExecutorException ex) {
             throw new MojoExecutionException(result.getOutput(), ex);
         }
         getLog().debug("DONE executing " + goals);
     }
 
     protected final String getReleaseVersion(String version) throws MojoFailureException {
         getLog().debug("Current Develop version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
             getLog().debug("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
     protected final void checkForSnapshotDependencies() throws MojoExecutionException {
         getLog().info("Checking for SNAPSHOT dependencies");
         Boolean hasDepSnapshots = false;
         Boolean hasParentSnapshot = false;
         for (MavenProject mavenProject : reactorProjects) {
             String artifactId = mavenProject.getArtifactId();
 
             /* Check <parent> */
             Artifact parentArtifact = mavenProject.getParentArtifact();
             if (parentArtifact != null && parentArtifact.isSnapshot()) {
                 getLog().error("Parent of project " + artifactId + " is a SNAPSHOT " + parentArtifact.getId());
                 hasParentSnapshot = true;
             }
 
             /* Check <dependencyManagement> */
             DependencyManagement dependencyManagement = mavenProject.getDependencyManagement();
             if (null != dependencyManagement) {
                 if (checkForSnapshot(artifactId, dependencyManagement.getDependencies())) {
                     hasDepSnapshots = true;
                 }
             }
 
             /* Check <dependencies> */
             if (checkForSnapshot(artifactId, mavenProject.getDependencies())) {
                 hasDepSnapshots = true;
             }
         }
         if (hasParentSnapshot || hasDepSnapshots) {
             throw new MojoExecutionException("Cannot release because SNAPSHOT dependencies exist");
         }
         getLog().info("No SNAPSHOT dependencies found");
     }
 
     private boolean checkForSnapshot(String artifactId, List<Dependency> dependencies) throws MojoExecutionException {
         Boolean hasSnapshotDependency = false;
         for (Dependency dependency : dependencies) {
             String version = dependency.getVersion();
             Matcher versionMatcher = matchSnapshotRegex.matcher(version);
             if (versionMatcher.find() && versionMatcher.end() == version.length()) {
                 getLog().error("Project " + artifactId + " contains SNAPSHOT dependency: " + dependency.getGroupId() + ":" + dependency.getArtifactId() + ":" + version);
                 hasSnapshotDependency = true;
             }
         }
         return hasSnapshotDependency;
     }
 
     protected final void reloadReactorProjects() {
         getLog().debug("Reloading poms...");
 
         List<MavenProject> updatedReactorProjects = new ArrayList<>();
 
         MavenProject rootProject = ReleaseUtil.getRootProject(reactorProjects);
         getLog().debug("rootProject = " + rootProject);
         try {
             if (rootProject.getFile().exists() && rootProject.getFile().canRead()) {
                 MavenExecutionRequest mavenExecutionRequest = session.getRequest();
                 ProjectBuildingRequest projectBuildingRequest = mavenExecutionRequest.getProjectBuildingRequest();
                 try {
                     List<ProjectBuildingResult> buildResults = projectBuilder.build(newArrayList(rootProject.getFile()), true, projectBuildingRequest);
                     for (ProjectBuildingResult buildResult : buildResults) {
                         MavenProject reloadProject = buildResult.getProject();
                         reloadProject.setActiveProfiles(rootProject.getActiveProfiles());
                         updatedReactorProjects.add(reloadProject);
                     }
                 } catch (ProjectBuildingException ex) {
                     getLog().error("Build error reloading Maven projects", ex);
                 }
             }
         } catch (Exception ex) {
             getLog().error("Failed to reload reactor projects", ex);
             throw ex;
         }
 
         try {
             ProjectSorter projectSorter = new ProjectSorter(updatedReactorProjects);
             updatedReactorProjects = projectSorter.getSortedProjects();
         } catch (CycleDetectedException | DuplicateProjectException ex) {
             getLog().error("Failed to sort reactor projects", ex);
         }
 
         session.setProjects(updatedReactorProjects);
         project = ReleaseUtil.getRootProject(updatedReactorProjects);
         reactorProjects = updatedReactorProjects;
 
         if (getLog().isDebugEnabled()) {
             getLog().debug("Reloaded MavenProject: " + project);
             getLog().debug("Reloaded reactorProjects: ");
             for (int i = 0; i < reactorProjects.size(); i++) {
                 MavenProject updatedReactorProject = updatedReactorProjects.get(i);
                 System.out.printf(" %-4s %-70s [Parent:%s]\n",
                         i + ")",
                         updatedReactorProject.getArtifact(),
                         updatedReactorProject.getParentArtifact());
 //                DependencyManagement dependencyManagement = updatedReactorProject.getDependencyManagement();
 //                if (null != dependencyManagement && null != dependencyManagement.getDependencies()) {
 //                    System.out.printf("\t\t\t DependencyManagement:\n");
 //                    for (Dependency dependency : dependencyManagement.getDependencies()) {
 //                        System.out.printf("\t\t\t\t\t %s:%s:%s \n", dependency.getGroupId(), dependency.getArtifactId(), dependency.getVersion());
 //                    }
 //                }
 //                if (null != updatedReactorProject.getDependencies()) {
 //                    System.out.printf("\t\t\t Dependencies:\n");
 //                    for (Dependency dependency : updatedReactorProject.getDependencies()) {
 //                        System.out.printf("\t\t\t\t\t %s:%s:%s \n", dependency.getGroupId(), dependency.getArtifactId(), dependency.getVersion());
 //                    }
 //                }
             }
         }
 
         getLog().debug("Reloading poms complete");
     }
 
     protected List<String> rearrange(String input, List<String> strings) {
         strings.remove(input);
         strings.add(0, input);
         return strings;
     }
 
 }

commit 25270d569b0941b69a756c746b22ed63c5de44de
Author: dkirrane <dkirrane@avaya.com>
Date:   Wed Sep 28 12:48:28 2016 +0100

    fix to run on Maven 3.0.5

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index ede545c..4b969cc 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -47,3 +47,2 @@ import org.apache.maven.execution.MavenExecutionRequest;
 import org.apache.maven.execution.MavenSession;
-import org.apache.maven.execution.ReactorManager;
 import org.apache.maven.model.Dependency;
@@ -63,2 +62,3 @@ import org.apache.maven.project.ProjectBuildingRequest;
 import org.apache.maven.project.ProjectBuildingResult;
+import org.apache.maven.project.ProjectSorter;
 import org.apache.maven.shared.release.ReleaseResult;
@@ -86,513 +86,526 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 public class AbstractGitflowMojo extends AbstractMojo {
 
     Scanner scanner = new Scanner(System.in);
 
     public final Pattern matchSnapshotRegex = Pattern.compile("-SNAPSHOT");
 
     public static final ImmutableList<String> DEFAULT_INSTALL_ARGS = ImmutableList.of(
             "-DinstallAtEnd=false");
 
     public static final ImmutableList<String> DEFAULT_DEPLOY_ARGS = ImmutableList.of(
             "-DdeployAtEnd=false",
             "-DretryFailedDeploymentCount=2");
 
     public static final Splitter PROFILES_SPLITTER = Splitter.on(',').trimResults().omitEmptyStrings();
     public static final Joiner PROFILES_JOINER = Joiner.on(',').skipNulls();
 
     private static final Plugin VERSIONS_MVN_PLUGIN = plugin(
             groupId("org.codehaus.mojo"),
             artifactId("versions-maven-plugin"),
             version("2.3")
     );
 
     @Parameter(defaultValue = "${session}", readonly = true)
     protected MavenSession session;
 
     @Parameter(defaultValue = "${project}", readonly = true)
     protected MavenProject project;
 
     @Parameter(defaultValue = "${reactorProjects}", readonly = true, required = true)
     protected List<MavenProject> reactorProjects;
 
     @Component
     private ProjectBuilder projectBuilder;
 
     @Component
     protected BuildPluginManager pluginManager;
 
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
     @Component(role = Prompter.class)
     protected Prompter prompter;
 
     @Component(role = ExceptionMapper.class)
     protected ExceptionMapper exceptionMapper;
 
     /**
      * Gitflow branches and prefixes to use.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
     /**
      * Message prefix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgPrefix", defaultValue = "", required = false)
     protected String msgPrefix;
 
     /**
      * Message suffix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgSuffix", defaultValue = "", required = false)
     protected String msgSuffix;
 
     private GitflowInit init;
     private Path tempDir;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             getLog().debug("Gitflow pom  '" + project.getBasedir() + "'");
         }
         GitflowInit gitflowInit = getGitflowInit();
 
         exceptionMapper.setRepoDir(gitflowInit.getRepoDir());
 
         try {
             gitflowInit.requireGitRepo();
         } catch (GitflowException ge) {
             exceptionMapper.handle("Invalid Git repo", ge);
         }
         try {
             gitflowInit.checkRemoteConnection();
         } catch (GitCommandException ge) {
             exceptionMapper.handle("Git connection issue", ge);
         }
         try {
             gitflowInit.requireCleanWorkingTree();
         } catch (GitflowException ge) {
             exceptionMapper.handle("Check git status", ge);
         }
 
         if (!gitflowInit.gitflowIsInitialized()) {
             try {
                 gitflowInit.cmdDefault();
             } catch (GitCommandException gce) {
                 String header = "Unable to initialise Gitflow";
                 exceptionMapper.handle(header, gce);
             } catch (GitflowException ge) {
                 String header = "Unable to initialise Gitflow";
                 exceptionMapper.handle(header, ge);
             }
         }
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     protected final GitflowInit getGitflowInit() {
         if (null == init) {
             getLog().debug("Initialising Gitflow");
             init = new GitflowInit();
             File basedir = getProject().getBasedir();
             getLog().debug("Setting base directory " + basedir);
             init.setRepoDir(basedir);
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
 
             /* root Git directory may not be the pom directory */
             String gitRootPath = init.executeLocal("git rev-parse --show-toplevel");
             getLog().debug("Git repo top level " + gitRootPath);
             File baseGitDir = new File(gitRootPath);
             if (baseGitDir.isDirectory()) {
                 getLog().debug("Setting git base directory " + baseGitDir);
                 init.setRepoDir(baseGitDir);
             }
 
             /* Create temp directory - delete any previous first */
             try {
                 Finder finder = new Finder(Syntax.glob, "mvn-gitflow*");
                 Files.walkFileTree(Paths.get(System.getProperty("java.io.tmpdir")), finder);
                 List<Path> paths = finder.getPaths();
                 getLog().debug("Deleting old temp directories " + paths);
                 for (Path path : paths) {
                     FileUtils.deleteDirectory(path.toFile());
                 }
                 tempDir = Files.createTempDirectory("mvn-gitflow");
             } catch (IOException ioe) {
                 getLog().error("Failed to create temp directory", ioe);
             }
         }
         return init;
     }
 
     public String getVersionTagPrefix() {
         String prefix = getGitflowInit().getVersionTagPrefix();
         if (null == prefix) {
             prefix = DEFAULT_VERSION_TAG_PREFIX;
         }
         return prefix;
     }
 
     protected final boolean setVersion(String version, String branch, boolean push) throws MojoExecutionException, MojoFailureException {
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         MavenProject topLevelProject = session.getTopLevelProject();
         session.setCurrentProject(topLevelProject);
 
         String goal = goal("set");
         Xpp3Dom configuration = configuration(
                 element(name("generateBackupPoms"), "false"),
                 element(name("newVersion"), version)
         );
 
         String mavenCommand = getMavenCommand(VERSIONS_MVN_PLUGIN, goal);
 
         getLog().info("");
         getLog().info("--- " + mavenCommand + " " + topLevelProject.getArtifactId() + " to " + version + " (" + branch + ") ---");
         executeMyMojo(VERSIONS_MVN_PLUGIN, goal, configuration);
         getLog().info("------------------------------------------------------------------------");
 
         boolean commitMade = false;
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (push && getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change " + version + " to origin. ExitCode:" + exitCode);
                 }
             }
 
             commitMade = true;
         }
         /* We don't want to fail maybe the version was manually set correctly */
 //        else {
 //            throw new MojoFailureException("Failed to update poms to version " + version);
 //        }
         return commitMade;
     }
 
     protected final boolean setNextVersions(Boolean allowSnapshots, Boolean updateParent, String includes) throws MojoExecutionException, MojoFailureException {
         getLog().debug("setNextVersions");
 
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         MavenProject topLevelProject = session.getTopLevelProject();
         session.setCurrentProject(topLevelProject);
 
         if (updateParent) {
             String updateParentGoal = goal("update-parent");
             Xpp3Dom configuration = configuration(
                     element(name("generateBackupPoms"), "false"),
                     element(name("allowSnapshots"), allowSnapshots.toString())
             );
 
             String mavenCommand = getMavenCommand(VERSIONS_MVN_PLUGIN, updateParentGoal);
             getLog().info("");
             getLog().info("--- " + mavenCommand + " " + topLevelProject.getArtifactId() + " ---");
             executeMyMojo(VERSIONS_MVN_PLUGIN, updateParentGoal, configuration);
             getLog().info("------------------------------------------------------------------------");
         }
 
         if (!StringUtils.isBlank(includes)) {
             String useNextVersionsGoal = goal("use-next-versions");
             Xpp3Dom configuration = configuration(
                     element(name("generateBackupPoms"), "false"),
                     element(name("allowSnapshots"), allowSnapshots.toString()),
                     element(name("includesList"), includes)
             );
 
             String mavenCommand = getMavenCommand(VERSIONS_MVN_PLUGIN, useNextVersionsGoal);
             getLog().info("");
             getLog().info("--- " + mavenCommand + " " + topLevelProject.getArtifactId() + " ---");
             executeMyMojo(VERSIONS_MVN_PLUGIN, useNextVersionsGoal, configuration);
             getLog().info("------------------------------------------------------------------------");
         } else {
             getLog().warn("Parameter <includes> is not set. Skipping dependency updates");
         }
 
         boolean commitMade = false;
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg;
             if (allowSnapshots) {
                 msg = getMsgPrefix() + "Replaces any release versions with the next snapshot version (if it has been deployed)." + getMsgSuffix();
             } else {
                 msg = getMsgPrefix() + "Replaces snapshot versions with the corresponding release version" + getMsgSuffix();
             }
 
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change to origin. ExitCode:" + exitCode);
                 }
             }
             commitMade = true;
         }
         return commitMade;
     }
 
     protected final void executeMyMojo(Plugin plugin, String goal, Xpp3Dom configuration) throws MojoExecutionException, MojoFailureException {
         String mavenCommand = getMavenCommand(plugin, goal);
         MavenProject topLevelProject = session.getTopLevelProject();
         String projArtifactId = topLevelProject.getArtifactId();
         getLog().debug("START " + mavenCommand + " on " + projArtifactId);
         getLog().debug("configuration " + configuration.toUnescapedString());
 
         /* Maven 3.3.x log settings */
         session.getRequest().setLoggingLevel(MavenExecutionRequest.LOGGING_LEVEL_ERROR);
         System.setProperty("org.slf4j.simpleLogger.defaultLogLevel", "error");
         System.setProperty("maven.logging.root.level", "error");
         PrintStream stdout = System.out;
         PrintStream stderr = System.err;
         PrintStream stoutStream = null;
         Path tempStoutFile = null;
         try {
 
             /* Capture System.out */
             if (!getLog().isDebugEnabled()) {
                 try {
                     String logFileName = plugin.getArtifactId() + '-' + goal + '-';
                     tempStoutFile = Files.createTempFile(tempDir, logFileName, ".log");
                     stoutStream = new PrintStream(new FileOutputStream(tempStoutFile.toFile(), true));
                     System.setOut(stoutStream);
                     System.setErr(stoutStream);
                 } catch (Exception ioe) {
                     getLog().warn("Failed to capture System.out", ioe);
                 }
             }
 
             /* Execute Maven plugin goal */
             executeMojo(
                     plugin,
                     goal,
                     configuration,
                     executionEnvironment(
                             session.getTopLevelProject(),
                             session,
                             pluginManager
                     )
             );
 
         } catch (MojoExecutionException mee) {
             /* Reset System.out */
             System.setOut(stdout);
             System.setErr(stderr);
             String rootCauseMessage = ExceptionUtils.getRootCauseMessage(mee);
             if (rootCauseMessage.contains("Project version is inherited from parent")) {
                 getLog().debug("Skipping " + mavenCommand + " for project " + projArtifactId + ". Project version is inherited from parent.");
             } else {
                 getLog().error("Failed to execute " + mavenCommand + " on " + projArtifactId, mee);
                 throw mee;
             }
         } finally {
             if (!getLog().isDebugEnabled()) {
                 /* Reset System.out */
                 System.setOut(stdout);
                 System.setErr(stderr);
 
                 if (null != tempStoutFile) {
                     getLog().info(mavenCommand + " log " + tempStoutFile.toString());
                 }
 
                 if (null != stoutStream) {
                     try {
                         stoutStream.close();
                     } catch (Exception e) {
                     }
                 }
             }
             getLog().debug("DONE " + mavenCommand);
         }
     }
 
     private String getMavenCommand(Plugin plugin, String goal) {
         return plugin.getArtifactId() + ':' + plugin.getVersion() + ':' + goal;
     }
 
     protected final void runGoals(String goals, List<String> additionalArgs) throws MojoExecutionException, MojoFailureException {
         getLog().debug("START executing " + goals + " with args " + additionalArgs);
 
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         File basedir = rootProject.getBasedir();
 
         ReleaseResult result = new ReleaseResult();
         ReleaseEnvironment env = new DefaultReleaseEnvironment();
         env.setSettings(session.getSettings());
         MavenExecutor mavenExecutor = mavenExecutors.get(env.getMavenExecutorId());
 
         Joiner joiner = Joiner.on(" ").skipNulls();
         String additionalArguments = joiner.join(additionalArgs);
         getLog().debug("additionalArguments " + additionalArguments);
 
         try {
             mavenExecutor.executeGoals(basedir, goals, env, false, additionalArguments, result);
         } catch (MavenExecutorException ex) {
             throw new MojoExecutionException(result.getOutput(), ex);
         }
         getLog().debug("DONE executing " + goals);
     }
 
     protected final String getReleaseVersion(String version) throws MojoFailureException {
         getLog().debug("Current Develop version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
             getLog().debug("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
     protected final void checkForSnapshotDependencies() throws MojoExecutionException {
         getLog().info("Checking for SNAPSHOT dependencies");
         Boolean hasDepSnapshots = false;
         Boolean hasParentSnapshot = false;
         for (MavenProject mavenProject : reactorProjects) {
             String artifactId = mavenProject.getArtifactId();
 
             /* Check <parent> */
             Artifact parentArtifact = mavenProject.getParentArtifact();
             if (parentArtifact != null && parentArtifact.isSnapshot()) {
                 getLog().error("Parent of project " + artifactId + " is a SNAPSHOT " + parentArtifact.getId());
                 hasParentSnapshot = true;
             }
 
             /* Check <dependencyManagement> */
             DependencyManagement dependencyManagement = mavenProject.getDependencyManagement();
             if (null != dependencyManagement) {
                 if (checkForSnapshot(artifactId, dependencyManagement.getDependencies())) {
                     hasDepSnapshots = true;
                 }
             }
 
             /* Check <dependencies> */
             if (checkForSnapshot(artifactId, mavenProject.getDependencies())) {
                 hasDepSnapshots = true;
             }
         }
         if (hasParentSnapshot || hasDepSnapshots) {
             throw new MojoExecutionException("Cannot release because SNAPSHOT dependencies exist");
         }
         getLog().info("No SNAPSHOT dependencies found");
     }
 
     private boolean checkForSnapshot(String artifactId, List<Dependency> dependencies) throws MojoExecutionException {
         Boolean hasSnapshotDependency = false;
         for (Dependency dependency : dependencies) {
             String version = dependency.getVersion();
             Matcher versionMatcher = matchSnapshotRegex.matcher(version);
             if (versionMatcher.find() && versionMatcher.end() == version.length()) {
                 getLog().error("Project " + artifactId + " contains SNAPSHOT dependency: " + dependency.getGroupId() + ":" + dependency.getArtifactId() + ":" + version);
                 hasSnapshotDependency = true;
             }
         }
         return hasSnapshotDependency;
     }
 
-    protected void reloadReactorProjects() {
+    protected final void reloadReactorProjects() {
         getLog().debug("Reloading poms...");
 
         List<MavenProject> updatedReactorProjects = new ArrayList<>();
 
         MavenProject rootProject = ReleaseUtil.getRootProject(reactorProjects);
         getLog().debug("rootProject = " + rootProject);
-        if (rootProject.getFile().exists() && rootProject.getFile().canRead()) {
-            MavenExecutionRequest mavenExecutionRequest = session.getRequest();
-            ProjectBuildingRequest projectBuildingRequest = mavenExecutionRequest.getProjectBuildingRequest();
-            try {
-                List<ProjectBuildingResult> buildResults = projectBuilder.build(newArrayList(rootProject.getFile()), true, projectBuildingRequest);
-                for (ProjectBuildingResult buildResult : buildResults) {
-                    MavenProject reloadProject = buildResult.getProject();
-                    reloadProject.setActiveProfiles(rootProject.getActiveProfiles());
-                    updatedReactorProjects.add(reloadProject);
+        try {
+            if (rootProject.getFile().exists() && rootProject.getFile().canRead()) {
+                MavenExecutionRequest mavenExecutionRequest = session.getRequest();
+                ProjectBuildingRequest projectBuildingRequest = mavenExecutionRequest.getProjectBuildingRequest();
+                try {
+                    List<ProjectBuildingResult> buildResults = projectBuilder.build(newArrayList(rootProject.getFile()), true, projectBuildingRequest);
+                    for (ProjectBuildingResult buildResult : buildResults) {
+                        MavenProject reloadProject = buildResult.getProject();
+                        reloadProject.setActiveProfiles(rootProject.getActiveProfiles());
+                        updatedReactorProjects.add(reloadProject);
+                    }
+                } catch (ProjectBuildingException ex) {
+                    getLog().error("Build error reloading Maven projects", ex);
                 }
-            } catch (ProjectBuildingException ex) {
-                getLog().error("Build error reloading Maven projects", ex);
             }
+        } catch (Exception ex) {
+            getLog().error("Failed to reload reactor projects", ex);
+            throw ex;
         }
 
         try {
-            ReactorManager reactorManager = new ReactorManager(updatedReactorProjects);
-            updatedReactorProjects = reactorManager.getSortedProjects();
+            ProjectSorter projectSorter = new ProjectSorter(updatedReactorProjects);
+            updatedReactorProjects = projectSorter.getSortedProjects();
         } catch (CycleDetectedException | DuplicateProjectException ex) {
             getLog().error("Failed to sort reactor projects", ex);
         }
 
         session.setProjects(updatedReactorProjects);
         project = ReleaseUtil.getRootProject(updatedReactorProjects);
         reactorProjects = updatedReactorProjects;
 
         if (getLog().isDebugEnabled()) {
-            getLog().debug("Updated MavenSession: " + session);
-            getLog().debug("Updated MavenProject: " + project);
-            getLog().debug("Updated reactorProjects: ");
+            getLog().debug("Reloaded MavenProject: " + project);
+            getLog().debug("Reloaded reactorProjects: ");
             for (int i = 0; i < reactorProjects.size(); i++) {
                 MavenProject updatedReactorProject = updatedReactorProjects.get(i);
-                System.out.println("");
-                System.out.printf(" %d) %s:%s \n \t\t\t Parent: %s \n \t\t\t DependencyManagement:%s \n \t\t\t Dependencies:%s \n",
-                        i,
-                        updatedReactorProject.getArtifactId(), updatedReactorProject.getVersion(),
-                        updatedReactorProject.getParentArtifact(),
-                        null != updatedReactorProject.getDependencyManagement() ? updatedReactorProject.getDependencyManagement().getDependencies() : null,
-                        updatedReactorProject.getDependencies());
-                System.out.println("");
+                System.out.printf(" %-4s %-70s [Parent:%s]\n",
+                        i + ")",
+                        updatedReactorProject.getArtifact(),
+                        updatedReactorProject.getParentArtifact());
+//                DependencyManagement dependencyManagement = updatedReactorProject.getDependencyManagement();
+//                if (null != dependencyManagement && null != dependencyManagement.getDependencies()) {
+//                    System.out.printf("\t\t\t DependencyManagement:\n");
+//                    for (Dependency dependency : dependencyManagement.getDependencies()) {
+//                        System.out.printf("\t\t\t\t\t %s:%s:%s \n", dependency.getGroupId(), dependency.getArtifactId(), dependency.getVersion());
+//                    }
+//                }
+//                if (null != updatedReactorProject.getDependencies()) {
+//                    System.out.printf("\t\t\t Dependencies:\n");
+//                    for (Dependency dependency : updatedReactorProject.getDependencies()) {
+//                        System.out.printf("\t\t\t\t\t %s:%s:%s \n", dependency.getGroupId(), dependency.getArtifactId(), dependency.getVersion());
+//                    }
+//                }
             }
         }
 
         getLog().debug("Reloading poms complete");
     }
 
     protected List<String> rearrange(String input, List<String> strings) {
         strings.remove(input);
         strings.add(0, input);
         return strings;
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReloadMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReloadMojo.java
new file mode 100644
index 0000000..61106db
--- /dev/null
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReloadMojo.java
@@ -0,0 +1,292 @@
+package com.dkirrane.maven.plugins.ggitflow;
+
+import com.dkirrane.gitflow.groovy.GitflowInit;
+import com.dkirrane.maven.plugins.ggitflow.prompt.Prompter;
+import static com.google.common.collect.Lists.newArrayList;
+import java.io.BufferedReader;
+import java.io.File;
+import java.io.IOException;
+import java.io.InputStreamReader;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
+import org.apache.maven.artifact.Artifact;
+import org.apache.maven.execution.MavenExecutionRequest;
+import org.apache.maven.execution.MavenSession;
+import org.apache.maven.model.Dependency;
+import org.apache.maven.model.DependencyManagement;
+import org.apache.maven.model.Model;
+import org.apache.maven.model.building.DefaultModelProcessor;
+import org.apache.maven.model.io.DefaultModelReader;
+import org.apache.maven.model.locator.DefaultModelLocator;
+import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.plugins.annotations.Component;
+import org.apache.maven.plugins.annotations.Mojo;
+import org.apache.maven.plugins.annotations.Parameter;
+import org.apache.maven.project.DuplicateProjectException;
+import org.apache.maven.project.MavenProject;
+import org.apache.maven.project.ProjectBuilder;
+import org.apache.maven.project.ProjectBuildingException;
+import org.apache.maven.project.ProjectBuildingRequest;
+import org.apache.maven.project.ProjectBuildingResult;
+import org.apache.maven.project.ProjectSorter;
+import org.apache.maven.shared.release.util.ReleaseUtil;
+import org.codehaus.plexus.util.dag.CycleDetectedException;
+
+/**
+ * Standalone Mojo for testing reload of POM files.
+ *
+ * <br/><br/>
+ * Test with Maven 3.0.5
+ * <pre>
+ *      export M2_HOME=C:/apache-maven-3.0.5
+ *      ${M2_HOME}/bin/mvn com.dkirrane.maven.plugins:ggitflow-maven-plugin:3.0-SNAPSHOT:reload
+ * </pre>
+ *
+ * Test with Maven 3.3.9
+ * <pre>
+ *      export M2_HOME=C:/apache-maven-3.3.9
+ *      ${M2_HOME}/bin/mvn gitflow:reload
+ * </pre>
+ */
+@Mojo(name = "reload", aggregator = true)
+public class ReloadMojo extends AbstractMojo {
+
+    @Parameter(defaultValue = "${session}", readonly = true)
+    protected MavenSession session;
+
+    @Parameter(defaultValue = "${project}", readonly = true)
+    protected MavenProject project;
+
+    @Parameter(defaultValue = "${reactorProjects}", readonly = true, required = true)
+    protected List<MavenProject> reactorProjects;
+
+    @Component
+    private ProjectBuilder projectBuilder;
+
+    @Component(role = Prompter.class)
+    protected Prompter prompter;
+
+    private GitflowInit init;
+
+    public final Pattern matchSnapshotRegex = Pattern.compile("-SNAPSHOT");
+
+    @Override
+    public void execute() throws MojoExecutionException {
+
+//        List<String> tags = getGitflowInit().gitAllTags();
+//        if (tags.isEmpty()) {
+//            throw new MojoExecutionException("Could not find any tags!");
+//        }
+//
+//        String promptChoice;
+//        try {
+//            promptChoice = prompter.promptChoice("Git tags", "Please select a Git tag", tags);
+//        } catch (IOException ex) {
+//            throw new MojoExecutionException("Failed to prompt user", ex);
+//        }
+//        getLog().info("promptChoice = " + promptChoice);
+        System.out.println("\n\n");
+        checkoutBranch("develop");
+        reloadReactorProjects();
+//        checkForSnapshotDependencies();
+
+        System.out.println("\n\n");
+        checkoutBranch("master");
+        reloadReactorProjects();
+//        checkForSnapshotDependencies();
+    }
+
+    protected final void reloadReactorProjects() {
+        getLog().debug("Reloading poms...");
+
+        List<MavenProject> updatedReactorProjects = new ArrayList<>();
+
+        MavenProject rootProject = ReleaseUtil.getRootProject(reactorProjects);
+        getLog().debug("rootProject = " + rootProject);
+        try {
+            if (rootProject.getFile().exists() && rootProject.getFile().canRead()) {
+                MavenExecutionRequest mavenExecutionRequest = session.getRequest();
+                ProjectBuildingRequest projectBuildingRequest = mavenExecutionRequest.getProjectBuildingRequest();
+                try {
+                    List<ProjectBuildingResult> buildResults = projectBuilder.build(newArrayList(rootProject.getFile()), true, projectBuildingRequest);
+                    for (ProjectBuildingResult buildResult : buildResults) {
+                        MavenProject reloadProject = buildResult.getProject();
+                        reloadProject.setActiveProfiles(rootProject.getActiveProfiles());
+                        updatedReactorProjects.add(reloadProject);
+                    }
+                } catch (ProjectBuildingException ex) {
+                    getLog().error("Build error reloading Maven projects", ex);
+                }
+            }
+        } catch (Exception ex) {
+            getLog().error("Failed to reload reactor projects", ex);
+            throw ex;
+        }
+
+        try {
+            ProjectSorter projectSorter = new ProjectSorter(updatedReactorProjects);
+            updatedReactorProjects = projectSorter.getSortedProjects();
+        } catch (CycleDetectedException | DuplicateProjectException ex) {
+            getLog().error("Failed to sort reactor projects", ex);
+        }
+
+        session.setProjects(updatedReactorProjects);
+        project = ReleaseUtil.getRootProject(updatedReactorProjects);
+        reactorProjects = updatedReactorProjects;
+
+        if (getLog().isDebugEnabled()) {
+            getLog().debug("Reloaded MavenProject: " + project);
+            getLog().debug("Reloaded reactorProjects: ");
+            for (int i = 0; i < reactorProjects.size(); i++) {
+                MavenProject updatedReactorProject = updatedReactorProjects.get(i);
+                System.out.printf(" %-4s %-70s [Parent:%s]\n",
+                        i + ")",
+                        updatedReactorProject.getArtifact(),
+                        updatedReactorProject.getParentArtifact());
+//                DependencyManagement dependencyManagement = updatedReactorProject.getDependencyManagement();
+//                if (null != dependencyManagement && null != dependencyManagement.getDependencies()) {
+//                    System.out.printf("\t\t\t DependencyManagement:\n");
+//                    for (Dependency dependency : dependencyManagement.getDependencies()) {
+//                        System.out.printf("\t\t\t\t\t %s:%s:%s \n", dependency.getGroupId(), dependency.getArtifactId(), dependency.getVersion());
+//                    }
+//                }
+//                if (null != updatedReactorProject.getDependencies()) {
+//                    System.out.printf("\t\t\t Dependencies:\n");
+//                    for (Dependency dependency : updatedReactorProject.getDependencies()) {
+//                        System.out.printf("\t\t\t\t\t %s:%s:%s \n", dependency.getGroupId(), dependency.getArtifactId(), dependency.getVersion());
+//                    }
+//                }
+            }
+        }
+
+        getLog().debug("Reloading poms complete");
+    }
+
+    private static Model readModel(File pomFile) {
+        DefaultModelProcessor modelProcessor = new DefaultModelProcessor();
+        modelProcessor.setModelLocator(new DefaultModelLocator());
+        modelProcessor.setModelReader(new DefaultModelReader());
+
+        try {
+            HashMap<String, Object> options = new HashMap<>();
+            return modelProcessor.read(pomFile, options);
+        } catch (IOException ex) {
+            throw new IllegalStateException("Failed to build model from pom " + pomFile, ex);
+        }
+    }
+
+    protected final void checkForSnapshotDependencies() throws MojoExecutionException {
+        getLog().info("Checking for SNAPSHOT dependencies");
+        Boolean hasDepSnapshots = false;
+        Boolean hasParentSnapshot = false;
+        for (MavenProject mavenProject : reactorProjects) {
+            String artifactId = mavenProject.getArtifactId();
+
+            /* Check <parent> */
+            Artifact parentArtifact = mavenProject.getParentArtifact();
+            if (parentArtifact != null && parentArtifact.isSnapshot()) {
+                getLog().error("Parent of project " + artifactId + " is a SNAPSHOT " + parentArtifact.getId());
+                hasParentSnapshot = true;
+            }
+
+            /* Check <dependencyManagement> */
+            DependencyManagement dependencyManagement = mavenProject.getDependencyManagement();
+            if (null != dependencyManagement) {
+                if (checkForSnapshot(artifactId, dependencyManagement.getDependencies())) {
+                    hasDepSnapshots = true;
+                }
+            }
+
+            /* Check <dependencies> */
+            if (checkForSnapshot(artifactId, mavenProject.getDependencies())) {
+                hasDepSnapshots = true;
+            }
+        }
+        if (hasParentSnapshot || hasDepSnapshots) {
+            throw new MojoExecutionException("Cannot release because SNAPSHOT dependencies exist");
+        }
+    }
+
+    private boolean checkForSnapshot(String artifactId, List<Dependency> dependencies) throws MojoExecutionException {
+        Boolean hasSnapshotDependency = false;
+        for (Dependency dependency : dependencies) {
+            String version = dependency.getVersion();
+            Matcher versionMatcher = matchSnapshotRegex.matcher(version);
+            if (versionMatcher.find() && versionMatcher.end() == version.length()) {
+                getLog().error("Project " + artifactId + " contains SNAPSHOT dependency: " + dependency.getGroupId() + ":" + dependency.getArtifactId() + ":" + version);
+                hasSnapshotDependency = true;
+            }
+        }
+        return hasSnapshotDependency;
+    }
+
+    private static void watch(final Process process) {
+        BufferedReader input = new BufferedReader(new InputStreamReader(process.getInputStream()));
+        String line;
+        try {
+            while ((line = input.readLine()) != null) {
+                System.out.println(line);
+            }
+        } catch (IOException e) {
+            e.printStackTrace();
+        }
+    }
+
+    private void checkoutBranch(String branch) throws MojoExecutionException {
+        ProcessBuilder builder = new ProcessBuilder("git", "checkout", branch);
+        builder.redirectErrorStream(true);
+        final Process process;
+        try {
+            process = builder.start();
+        } catch (IOException ex) {
+            throw new MojoExecutionException("", ex);
+        }
+        watch(process);
+    }
+
+    protected final GitflowInit getGitflowInit() {
+        if (null == init) {
+            getLog().debug("Initialising Gitflow");
+            init = new GitflowInit();
+            File basedir = project.getBasedir();
+            getLog().debug("Setting base directory " + basedir);
+            init.setRepoDir(basedir);
+            init.setMasterBrnName("master");
+            init.setDevelopBrnName("develop");
+            init.setFeatureBrnPref("feature/");
+            init.setReleaseBrnPref("release/");
+            init.setHotfixBrnPref("hotfix/");
+            init.setSupportBrnPref("support/");
+            init.setVersionTagPref("");
+
+            /* root Git directory may not be the pom directory */
+            String gitRootPath = init.executeLocal("git rev-parse --show-toplevel");
+            getLog().debug("Git repo top level " + gitRootPath);
+            File baseGitDir = new File(gitRootPath);
+            if (baseGitDir.isDirectory()) {
+                getLog().debug("Setting git base directory " + baseGitDir);
+                init.setRepoDir(baseGitDir);
+            }
+
+            /* Create temp directory - delete any previous first */
+//            try {
+//                Finder finder = new Finder(Syntax.glob, "mvn-gitflow*");
+//                Files.walkFileTree(Paths.get(System.getProperty("java.io.tmpdir")), finder);
+//                List<Path> paths = finder.getPaths();
+//                getLog().debug("Deleting old temp directories " + paths);
+//                for (Path path : paths) {
+//                    FileUtils.deleteDirectory(path.toFile());
+//                }
+//                tempDir = Files.createTempDirectory("mvn-gitflow");
+//            } catch (IOException ioe) {
+//                getLog().error("Failed to create temp directory", ioe);
+//            }
+        }
+        return init;
+    }
+
+}
diff --git a/pom.xml b/pom.xml
index d001f6a..f22b942 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,189 +1,192 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven</artifactId>
     <version>3.0-SNAPSHOT</version>
     <name>ggitflow-maven</name>
     <packaging>pom</packaging>
 
     <modules>
         <module>ggitflow-maven-plugin</module>
         <module>ggitflow-maven-archetype</module>
     </modules>
 
     <properties>
         <maven.compiler.source>1.7</maven.compiler.source>
         <maven.compiler.target>1.7</maven.compiler.target>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
 
-        <maven.version>3.3.9</maven.version>
+        <maven.version>3.0.5</maven.version>
         <maven.plugin.version>3.5</maven.plugin.version>
         <maven.release.plugin.version>2.5.3</maven.release.plugin.version>
         <plexus.component.version>1.6</plexus.component.version>
     </properties>
 
 
     <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
 
     <scm>
         <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
         <connection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</connection>
         <developerConnection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</developerConnection>
     </scm>
 
     <description>Maven Archetype for the Gitflow Maven Plugin</description>
     <developers>
         <developer>
             <id>dkirrane</id>
             <name>Desmond Kirrane</name>
             <email>desmond.kirrane@gmail.com</email>
         </developer>
     </developers>
     <licenses>
         <license>
             <name>Apache License Version 2.0, January 2004</name>
             <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
             <distribution>repo</distribution>
         </license>
     </licenses>
 
     <build>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <version>3.5</version>
                 <configuration>
                     <encoding>${project.build.sourceEncoding}</encoding>
                 </configuration>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-resources-plugin</artifactId>
                 <version>2.7</version>
                 <configuration>
                     <encoding>${project.build.sourceEncoding}</encoding>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 
     <profiles>
         <!-- For Release versions the Sonatype Nexus Stage rules require artifacts to be signed -->
         <!-- http://blog.sonatype.com/2010/01/how-to-generate-pgp-signatures-with-maven -->
         <!-- 1. Setup gpg, @see https://github.com/dkirrane/ggitflow/blob/develop/gradle.properties.sample -->
-        <!-- 2. Run Maven deploy sign from Git terminal: mvn clean deploy -Prelease-sign-artifacts -->
+        <!-- 2. Run Maven deploy sign from Git terminal:
+                    export M2_HOME=C:/apache-maven-3.0.5
+                    mvn clean deploy -Prelease-sign-artifacts
+        -->
         <!-- 3. Login to Nexus to release from the Stage: https://oss.sonatype.org | Login | Staging Repositories | Search for: com.dkirrane | Release -->
         <profile>
             <id>release-sign-artifacts</id>
             <activation>
                 <activeByDefault>false</activeByDefault>
             </activation>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-gpg-plugin</artifactId>
                         <version>1.6</version>
                         <executions>
                             <execution>
                                 <id>sign-artifacts</id>
                                 <phase>verify</phase>
                                 <goals>
                                     <goal>sign</goal>
                                 </goals>
                                 <configuration>
                                     <useAgent>false</useAgent>
                                 </configuration>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
             </build>
         </profile>
         <profile>
             <id>run-its</id>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-invoker-plugin</artifactId>
                         <version>1.8</version>
                         <configuration>
                             <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
                             <settingsFile>src/it/settings.xml</settingsFile>
                             <debug>true</debug>
                             <showErrors>true</showErrors>
                             <detail>true</detail>
                             <streamLogs>true</streamLogs>
                             <projectsDirectory>src/it/projects</projectsDirectory>
                             <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
                             <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
                             <addTestClassPath>true</addTestClassPath>
                             <preBuildHookScript>setup</preBuildHookScript>
                             <postBuildHookScript>verify</postBuildHookScript>
                             <pomIncludes>
                                 <pomInclude>*/pom.xml</pomInclude>
                             </pomIncludes>
                             <goals>
                                 <goal>clean</goal>
                                 <goal>test-compile</goal>
                             </goals>
                         </configuration>
                         <executions>
                             <execution>
                                 <id>integration-test</id>
                                 <goals>
                                     <goal>install</goal>
                                     <goal>integration-test</goal>
                                     <goal>verify</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
 
             </build>
         </profile>
     </profiles>
 
     <!--
         Sonatype upload details:
         http://central.sonatype.org/pages/ossrh-guide.html
         http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
         https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
         https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
         https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
 
             - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
             - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
             - Promote staged artifacts into repository 'Releases'
             - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
             - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
     -->
     <distributionManagement>
         <snapshotRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
         </snapshotRepository>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
         </repository>
     </distributionManagement>
     <repositories>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
             <snapshots>
                 <enabled>true</enabled>
             </snapshots>
         </repository>
     </repositories>
 </project>

commit d5e1f9949da3cc49601ba8ce1acbd418167c3707
Author: dkirrane <dkirrane@avaya.com>
Date:   Tue Sep 27 16:43:54 2016 +0100

    do not out stout and sterr

diff --git a/ggitflow-maven-plugin/src/main/resources/freemarker/git-error.ftl b/ggitflow-maven-plugin/src/main/resources/freemarker/git-error.ftl
index d142bd2..891dfde 100644
--- a/ggitflow-maven-plugin/src/main/resources/freemarker/git-error.ftl
+++ b/ggitflow-maven-plugin/src/main/resources/freemarker/git-error.ftl
@@ -1,25 +1,27 @@
 <#macro fg color>${'\x1B'}[${color}m</#macro>
 <#macro bold>${'\x1B'}[1m</#macro>
 <#macro reset>${'\x1B'}[0m</#macro>
 
 <#assign header = header + ":">
 <@fg 31/><@bold/>=====${""?right_pad(header?length, "=")}=====<@reset/>
 <@fg 31/><@bold/>===  ${header?right_pad(header?length)}  ===<@reset/>
 <@fg 31/><@bold/>=====${""?right_pad(header?length, "=")}=====<@reset/>
 
 <#if exitCode??>
     <@fg 31/><@bold/>Git exited code: ${exitCode}<@reset/>
 </#if>
 
 <#if message??>
     <@fg 31/><@bold/>Message: ${message}<@reset/>
 </#if>
 
+<#-- 
 <#if stout??>
     <@fg 31/><@bold/>Stout: ${stout}<@reset/>
 </#if>
 
 <#if sterr??>
     <@fg 31/><@bold/>Sterr: ${sterr}<@reset/>
 </#if>
+-->
 

commit 0f74bb5f68e86ae457e23b357d7bce6edfa03555
Author: dkirrane <dkirrane@avaya.com>
Date:   Tue Sep 27 16:38:17 2016 +0100

    error

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index f74ee27..ede545c 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -19,2 +19,3 @@ import static com.dkirrane.gitflow.groovy.Constants.DEFAULT_VERSION_TAG_PREFIX;
 import com.dkirrane.gitflow.groovy.GitflowInit;
+import com.dkirrane.gitflow.groovy.ex.GitCommandException;
 import com.dkirrane.gitflow.groovy.ex.GitflowException;
@@ -85,498 +86,513 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 public class AbstractGitflowMojo extends AbstractMojo {
 
     Scanner scanner = new Scanner(System.in);
 
     public final Pattern matchSnapshotRegex = Pattern.compile("-SNAPSHOT");
 
     public static final ImmutableList<String> DEFAULT_INSTALL_ARGS = ImmutableList.of(
             "-DinstallAtEnd=false");
 
     public static final ImmutableList<String> DEFAULT_DEPLOY_ARGS = ImmutableList.of(
             "-DdeployAtEnd=false",
             "-DretryFailedDeploymentCount=2");
 
     public static final Splitter PROFILES_SPLITTER = Splitter.on(',').trimResults().omitEmptyStrings();
     public static final Joiner PROFILES_JOINER = Joiner.on(',').skipNulls();
 
     private static final Plugin VERSIONS_MVN_PLUGIN = plugin(
             groupId("org.codehaus.mojo"),
             artifactId("versions-maven-plugin"),
             version("2.3")
     );
 
     @Parameter(defaultValue = "${session}", readonly = true)
     protected MavenSession session;
 
     @Parameter(defaultValue = "${project}", readonly = true)
     protected MavenProject project;
 
     @Parameter(defaultValue = "${reactorProjects}", readonly = true, required = true)
     protected List<MavenProject> reactorProjects;
 
     @Component
     private ProjectBuilder projectBuilder;
 
     @Component
     protected BuildPluginManager pluginManager;
 
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
     @Component(role = Prompter.class)
     protected Prompter prompter;
 
     @Component(role = ExceptionMapper.class)
     protected ExceptionMapper exceptionMapper;
 
     /**
      * Gitflow branches and prefixes to use.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
     /**
      * Message prefix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgPrefix", defaultValue = "", required = false)
     protected String msgPrefix;
 
     /**
      * Message suffix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgSuffix", defaultValue = "", required = false)
     protected String msgSuffix;
 
     private GitflowInit init;
     private Path tempDir;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             getLog().debug("Gitflow pom  '" + project.getBasedir() + "'");
         }
         GitflowInit gitflowInit = getGitflowInit();
 
         exceptionMapper.setRepoDir(gitflowInit.getRepoDir());
 
-        gitflowInit.requireGitRepo();
-        gitflowInit.checkRemoteConnection();
+        try {
+            gitflowInit.requireGitRepo();
+        } catch (GitflowException ge) {
+            exceptionMapper.handle("Invalid Git repo", ge);
+        }
+        try {
+            gitflowInit.checkRemoteConnection();
+        } catch (GitCommandException ge) {
+            exceptionMapper.handle("Git connection issue", ge);
+        }
+        try {
+            gitflowInit.requireCleanWorkingTree();
+        } catch (GitflowException ge) {
+            exceptionMapper.handle("Check git status", ge);
+        }
 
         if (!gitflowInit.gitflowIsInitialized()) {
             try {
                 gitflowInit.cmdDefault();
-            } catch (GitflowException ex) {
-                throw new MojoExecutionException("Failed to initialise Gitflow " + ex.getMessage(), ex);
+            } catch (GitCommandException gce) {
+                String header = "Unable to initialise Gitflow";
+                exceptionMapper.handle(header, gce);
+            } catch (GitflowException ge) {
+                String header = "Unable to initialise Gitflow";
+                exceptionMapper.handle(header, ge);
             }
         }
-
-        gitflowInit.requireCleanWorkingTree();
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     protected final GitflowInit getGitflowInit() {
         if (null == init) {
             getLog().debug("Initialising Gitflow");
             init = new GitflowInit();
             File basedir = getProject().getBasedir();
             getLog().debug("Setting base directory " + basedir);
             init.setRepoDir(basedir);
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
 
             /* root Git directory may not be the pom directory */
             String gitRootPath = init.executeLocal("git rev-parse --show-toplevel");
             getLog().debug("Git repo top level " + gitRootPath);
             File baseGitDir = new File(gitRootPath);
             if (baseGitDir.isDirectory()) {
                 getLog().debug("Setting git base directory " + baseGitDir);
                 init.setRepoDir(baseGitDir);
             }
 
             /* Create temp directory - delete any previous first */
             try {
                 Finder finder = new Finder(Syntax.glob, "mvn-gitflow*");
                 Files.walkFileTree(Paths.get(System.getProperty("java.io.tmpdir")), finder);
                 List<Path> paths = finder.getPaths();
                 getLog().debug("Deleting old temp directories " + paths);
                 for (Path path : paths) {
                     FileUtils.deleteDirectory(path.toFile());
                 }
                 tempDir = Files.createTempDirectory("mvn-gitflow");
             } catch (IOException ioe) {
                 getLog().error("Failed to create temp directory", ioe);
             }
         }
         return init;
     }
 
     public String getVersionTagPrefix() {
         String prefix = getGitflowInit().getVersionTagPrefix();
         if (null == prefix) {
             prefix = DEFAULT_VERSION_TAG_PREFIX;
         }
         return prefix;
     }
 
     protected final boolean setVersion(String version, String branch, boolean push) throws MojoExecutionException, MojoFailureException {
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         MavenProject topLevelProject = session.getTopLevelProject();
         session.setCurrentProject(topLevelProject);
 
         String goal = goal("set");
         Xpp3Dom configuration = configuration(
                 element(name("generateBackupPoms"), "false"),
                 element(name("newVersion"), version)
         );
 
         String mavenCommand = getMavenCommand(VERSIONS_MVN_PLUGIN, goal);
 
         getLog().info("");
         getLog().info("--- " + mavenCommand + " " + topLevelProject.getArtifactId() + " to " + version + " (" + branch + ") ---");
         executeMyMojo(VERSIONS_MVN_PLUGIN, goal, configuration);
         getLog().info("------------------------------------------------------------------------");
 
         boolean commitMade = false;
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (push && getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change " + version + " to origin. ExitCode:" + exitCode);
                 }
             }
 
             commitMade = true;
         }
         /* We don't want to fail maybe the version was manually set correctly */
 //        else {
 //            throw new MojoFailureException("Failed to update poms to version " + version);
 //        }
         return commitMade;
     }
 
     protected final boolean setNextVersions(Boolean allowSnapshots, Boolean updateParent, String includes) throws MojoExecutionException, MojoFailureException {
         getLog().debug("setNextVersions");
 
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         MavenProject topLevelProject = session.getTopLevelProject();
         session.setCurrentProject(topLevelProject);
 
         if (updateParent) {
             String updateParentGoal = goal("update-parent");
             Xpp3Dom configuration = configuration(
                     element(name("generateBackupPoms"), "false"),
                     element(name("allowSnapshots"), allowSnapshots.toString())
             );
 
             String mavenCommand = getMavenCommand(VERSIONS_MVN_PLUGIN, updateParentGoal);
             getLog().info("");
             getLog().info("--- " + mavenCommand + " " + topLevelProject.getArtifactId() + " ---");
             executeMyMojo(VERSIONS_MVN_PLUGIN, updateParentGoal, configuration);
             getLog().info("------------------------------------------------------------------------");
         }
 
         if (!StringUtils.isBlank(includes)) {
             String useNextVersionsGoal = goal("use-next-versions");
             Xpp3Dom configuration = configuration(
                     element(name("generateBackupPoms"), "false"),
                     element(name("allowSnapshots"), allowSnapshots.toString()),
                     element(name("includesList"), includes)
             );
 
             String mavenCommand = getMavenCommand(VERSIONS_MVN_PLUGIN, useNextVersionsGoal);
             getLog().info("");
             getLog().info("--- " + mavenCommand + " " + topLevelProject.getArtifactId() + " ---");
             executeMyMojo(VERSIONS_MVN_PLUGIN, useNextVersionsGoal, configuration);
             getLog().info("------------------------------------------------------------------------");
         } else {
             getLog().warn("Parameter <includes> is not set. Skipping dependency updates");
         }
 
         boolean commitMade = false;
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg;
             if (allowSnapshots) {
                 msg = getMsgPrefix() + "Replaces any release versions with the next snapshot version (if it has been deployed)." + getMsgSuffix();
             } else {
                 msg = getMsgPrefix() + "Replaces snapshot versions with the corresponding release version" + getMsgSuffix();
             }
 
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change to origin. ExitCode:" + exitCode);
                 }
             }
             commitMade = true;
         }
         return commitMade;
     }
 
     protected final void executeMyMojo(Plugin plugin, String goal, Xpp3Dom configuration) throws MojoExecutionException, MojoFailureException {
         String mavenCommand = getMavenCommand(plugin, goal);
         MavenProject topLevelProject = session.getTopLevelProject();
         String projArtifactId = topLevelProject.getArtifactId();
         getLog().debug("START " + mavenCommand + " on " + projArtifactId);
         getLog().debug("configuration " + configuration.toUnescapedString());
 
         /* Maven 3.3.x log settings */
         session.getRequest().setLoggingLevel(MavenExecutionRequest.LOGGING_LEVEL_ERROR);
         System.setProperty("org.slf4j.simpleLogger.defaultLogLevel", "error");
         System.setProperty("maven.logging.root.level", "error");
         PrintStream stdout = System.out;
         PrintStream stderr = System.err;
         PrintStream stoutStream = null;
         Path tempStoutFile = null;
         try {
 
             /* Capture System.out */
             if (!getLog().isDebugEnabled()) {
                 try {
                     String logFileName = plugin.getArtifactId() + '-' + goal + '-';
                     tempStoutFile = Files.createTempFile(tempDir, logFileName, ".log");
                     stoutStream = new PrintStream(new FileOutputStream(tempStoutFile.toFile(), true));
                     System.setOut(stoutStream);
                     System.setErr(stoutStream);
                 } catch (Exception ioe) {
                     getLog().warn("Failed to capture System.out", ioe);
                 }
             }
 
             /* Execute Maven plugin goal */
             executeMojo(
                     plugin,
                     goal,
                     configuration,
                     executionEnvironment(
                             session.getTopLevelProject(),
                             session,
                             pluginManager
                     )
             );
 
         } catch (MojoExecutionException mee) {
             /* Reset System.out */
             System.setOut(stdout);
             System.setErr(stderr);
             String rootCauseMessage = ExceptionUtils.getRootCauseMessage(mee);
             if (rootCauseMessage.contains("Project version is inherited from parent")) {
                 getLog().debug("Skipping " + mavenCommand + " for project " + projArtifactId + ". Project version is inherited from parent.");
             } else {
                 getLog().error("Failed to execute " + mavenCommand + " on " + projArtifactId, mee);
                 throw mee;
             }
         } finally {
             if (!getLog().isDebugEnabled()) {
                 /* Reset System.out */
                 System.setOut(stdout);
                 System.setErr(stderr);
 
                 if (null != tempStoutFile) {
                     getLog().info(mavenCommand + " log " + tempStoutFile.toString());
                 }
 
                 if (null != stoutStream) {
                     try {
                         stoutStream.close();
                     } catch (Exception e) {
                     }
                 }
             }
             getLog().debug("DONE " + mavenCommand);
         }
     }
 
     private String getMavenCommand(Plugin plugin, String goal) {
         return plugin.getArtifactId() + ':' + plugin.getVersion() + ':' + goal;
     }
 
     protected final void runGoals(String goals, List<String> additionalArgs) throws MojoExecutionException, MojoFailureException {
         getLog().debug("START executing " + goals + " with args " + additionalArgs);
 
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         File basedir = rootProject.getBasedir();
 
         ReleaseResult result = new ReleaseResult();
         ReleaseEnvironment env = new DefaultReleaseEnvironment();
         env.setSettings(session.getSettings());
         MavenExecutor mavenExecutor = mavenExecutors.get(env.getMavenExecutorId());
 
         Joiner joiner = Joiner.on(" ").skipNulls();
         String additionalArguments = joiner.join(additionalArgs);
         getLog().debug("additionalArguments " + additionalArguments);
 
         try {
             mavenExecutor.executeGoals(basedir, goals, env, false, additionalArguments, result);
         } catch (MavenExecutorException ex) {
             throw new MojoExecutionException(result.getOutput(), ex);
         }
         getLog().debug("DONE executing " + goals);
     }
 
     protected final String getReleaseVersion(String version) throws MojoFailureException {
         getLog().debug("Current Develop version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
             getLog().debug("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
     protected final void checkForSnapshotDependencies() throws MojoExecutionException {
         getLog().info("Checking for SNAPSHOT dependencies");
         Boolean hasDepSnapshots = false;
         Boolean hasParentSnapshot = false;
         for (MavenProject mavenProject : reactorProjects) {
             String artifactId = mavenProject.getArtifactId();
 
             /* Check <parent> */
             Artifact parentArtifact = mavenProject.getParentArtifact();
             if (parentArtifact != null && parentArtifact.isSnapshot()) {
                 getLog().error("Parent of project " + artifactId + " is a SNAPSHOT " + parentArtifact.getId());
                 hasParentSnapshot = true;
             }
 
             /* Check <dependencyManagement> */
             DependencyManagement dependencyManagement = mavenProject.getDependencyManagement();
             if (null != dependencyManagement) {
                 if (checkForSnapshot(artifactId, dependencyManagement.getDependencies())) {
                     hasDepSnapshots = true;
                 }
             }
 
             /* Check <dependencies> */
             if (checkForSnapshot(artifactId, mavenProject.getDependencies())) {
                 hasDepSnapshots = true;
             }
         }
         if (hasParentSnapshot || hasDepSnapshots) {
             throw new MojoExecutionException("Cannot release because SNAPSHOT dependencies exist");
         }
         getLog().info("No SNAPSHOT dependencies found");
     }
 
     private boolean checkForSnapshot(String artifactId, List<Dependency> dependencies) throws MojoExecutionException {
         Boolean hasSnapshotDependency = false;
         for (Dependency dependency : dependencies) {
             String version = dependency.getVersion();
             Matcher versionMatcher = matchSnapshotRegex.matcher(version);
             if (versionMatcher.find() && versionMatcher.end() == version.length()) {
                 getLog().error("Project " + artifactId + " contains SNAPSHOT dependency: " + dependency.getGroupId() + ":" + dependency.getArtifactId() + ":" + version);
                 hasSnapshotDependency = true;
             }
         }
         return hasSnapshotDependency;
     }
 
     protected void reloadReactorProjects() {
         getLog().debug("Reloading poms...");
 
         List<MavenProject> updatedReactorProjects = new ArrayList<>();
 
         MavenProject rootProject = ReleaseUtil.getRootProject(reactorProjects);
         getLog().debug("rootProject = " + rootProject);
         if (rootProject.getFile().exists() && rootProject.getFile().canRead()) {
             MavenExecutionRequest mavenExecutionRequest = session.getRequest();
             ProjectBuildingRequest projectBuildingRequest = mavenExecutionRequest.getProjectBuildingRequest();
             try {
                 List<ProjectBuildingResult> buildResults = projectBuilder.build(newArrayList(rootProject.getFile()), true, projectBuildingRequest);
                 for (ProjectBuildingResult buildResult : buildResults) {
                     MavenProject reloadProject = buildResult.getProject();
                     reloadProject.setActiveProfiles(rootProject.getActiveProfiles());
                     updatedReactorProjects.add(reloadProject);
                 }
             } catch (ProjectBuildingException ex) {
                 getLog().error("Build error reloading Maven projects", ex);
             }
         }
 
         try {
             ReactorManager reactorManager = new ReactorManager(updatedReactorProjects);
             updatedReactorProjects = reactorManager.getSortedProjects();
         } catch (CycleDetectedException | DuplicateProjectException ex) {
             getLog().error("Failed to sort reactor projects", ex);
         }
 
         session.setProjects(updatedReactorProjects);
         project = ReleaseUtil.getRootProject(updatedReactorProjects);
         reactorProjects = updatedReactorProjects;
 
         if (getLog().isDebugEnabled()) {
             getLog().debug("Updated MavenSession: " + session);
             getLog().debug("Updated MavenProject: " + project);
             getLog().debug("Updated reactorProjects: ");
             for (int i = 0; i < reactorProjects.size(); i++) {
                 MavenProject updatedReactorProject = updatedReactorProjects.get(i);
                 System.out.println("");
                 System.out.printf(" %d) %s:%s \n \t\t\t Parent: %s \n \t\t\t DependencyManagement:%s \n \t\t\t Dependencies:%s \n",
                         i,
                         updatedReactorProject.getArtifactId(), updatedReactorProject.getVersion(),
                         updatedReactorProject.getParentArtifact(),
                         null != updatedReactorProject.getDependencyManagement() ? updatedReactorProject.getDependencyManagement().getDependencies() : null,
                         updatedReactorProject.getDependencies());
                 System.out.println("");
             }
         }
 
         getLog().debug("Reloading poms complete");
     }
 
     protected List<String> rearrange(String input, List<String> strings) {
         strings.remove(input);
         strings.add(0, input);
         return strings;
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/resources/freemarker/git-error.ftl b/ggitflow-maven-plugin/src/main/resources/freemarker/git-error.ftl
index 8659f0a..d142bd2 100644
--- a/ggitflow-maven-plugin/src/main/resources/freemarker/git-error.ftl
+++ b/ggitflow-maven-plugin/src/main/resources/freemarker/git-error.ftl
@@ -1,25 +1,25 @@
 <#macro fg color>${'\x1B'}[${color}m</#macro>
 <#macro bold>${'\x1B'}[1m</#macro>
 <#macro reset>${'\x1B'}[0m</#macro>
 
 <#assign header = header + ":">
 <@fg 31/><@bold/>=====${""?right_pad(header?length, "=")}=====<@reset/>
 <@fg 31/><@bold/>===  ${header?right_pad(header?length)}  ===<@reset/>
 <@fg 31/><@bold/>=====${""?right_pad(header?length, "=")}=====<@reset/>
 
 <#if exitCode??>
-    <@fg 31/><@bold/>Git exiting with error code: ${exitCode}<@reset/>
+    <@fg 31/><@bold/>Git exited code: ${exitCode}<@reset/>
 </#if>
 
 <#if message??>
     <@fg 31/><@bold/>Message: ${message}<@reset/>
 </#if>
 
 <#if stout??>
     <@fg 31/><@bold/>Stout: ${stout}<@reset/>
 </#if>
 
 <#if sterr??>
     <@fg 31/><@bold/>Sterr: ${sterr}<@reset/>
 </#if>
 

commit fd378329aef5689069991eb53c7800d93da0c9e9
Author: dkirrane <dkirrane@avaya.com>
Date:   Tue Sep 27 15:49:25 2016 +0100

    improve error messages

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index 538b32e..dbbffd0 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -32,267 +32,267 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  * Merges a release branch back into the develop and master branch and then
  * creates a tag for the release on master.
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
 
     /**
      * If the project has a parent with a release version it will be replaced
      * with the next <code>-SNAPSHOT</code> version (if it has been deployed).
      * This action is performed on the develop branch after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "updateParent", defaultValue = "false", required = false)
     private Boolean updateParent;
 
     /**
      * On the release branch before finish is called any dependencies with a
      * <code>-SNAPSHOT</code> version are replaced with the corresponding
      * release version (if it has been released).
      *
      * On the develop branch after the merge any dependencies with a release
      * version are replaced with the next <code>-SNAPSHOT</code> version (if it
      * has been deployed).
      *
      * @since 1.2
      */
     @Parameter(property = "updateDependencies", defaultValue = "false", required = false)
     private Boolean updateDependencies;
 
     /**
      * If <code>updateDependencies</code> is set, then this should contain a
      * comma separated list of artifact patterns to include. Follows the pattern <code>groupId:artifactId:type:classifier:version<code>
      *
      * @since 1.5
      */
     @Parameter(property = "includes", defaultValue = "", required = false)
     private String includes;
 
     /**
      * If <code>true</code>, the release can still finish even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private Boolean allowSnapshots;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the release tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().debug("Finishing release");
 
         /* Get release branch name */
         String prefix = getReleaseBranchPrefix();
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
         if (releaseBranches.isEmpty()) {
-            throw new MojoFailureException("Could not find any local release branch!");
+            exceptionMapper.handle(new MojoFailureException("Could not find any local release branch!"));
         }
 
         if (StringUtils.isBlank(releaseName)) {
             if (releaseBranches.size() == 1) {
                 String releaseBranch = releaseBranches.get(0);
                 releaseName = trimReleaseName(releaseBranch);
             } else {
                 String releaseBranch = promptForExistingReleaseBranch(prefix, releaseBranches);
                 releaseName = trimReleaseName(releaseBranch);
             }
 
         } else {
             releaseName = trimReleaseName(releaseName);
             if (!getGitflowInit().gitLocalBranchExists(prefix + releaseName)) {
-                throw new MojoFailureException("No local release branch named '" + prefix + releaseName + "' exists!");
+                exceptionMapper.handle(new MojoFailureException("No local release branch named '" + prefix + releaseName + "' exists!"));
             }
         }
 
         getLog().info("Finishing release '" + releaseName + "'");
 
         String releaseBranch = prefix + releaseName;
         String tagName = getVersionTagPrefix() + releaseName;
         String developBranch = getGitflowInit().getDevelopBranch();
         String masterBranch = getGitflowInit().getMasterBranch();
         String origin = getGitflowInit().getOrigin();
 
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setPush(false);
         gitflowRelease.setSquash(squash);
         gitflowRelease.setSign(sign);
         gitflowRelease.setSigningkey(signingkey);
 
         /* Switch to release branch and set poms to release version */
         getGitflowInit().executeLocal("git checkout " + releaseBranch);
         reloadReactorProjects();
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(project.getVersion());
         String releaseVersion;
         if ("SNAPSHOT".equals(artifactVersion.getBuildSpecifier())) {
             releaseVersion = getReleaseVersion(project.getVersion());
         } else {
             releaseVersion = project.getVersion();
         }
         getLog().debug("release version = " + releaseVersion);
 
         /* If tag exists we skip merge to master as merge already took place. Possible re-run after merge conflict */
         if (!getGitflowInit().gitTagExists(tagName)) { // @TODO and should also check that last release branch commit is on master
 
             /* Before setting release version check if release branch was already merged to master */
             boolean setVersion = setVersion(releaseVersion, releaseBranch, false); // don't push so can can reset if needed
 
             /* Update release branch dependencies to release version */
             boolean setNextVersions = false;
             if (updateDependencies) {
                 reloadReactorProjects();
                 setNextVersions = setNextVersions(false, updateParent, includes);
             }
 
             if (!allowSnapshots) {
                 reloadReactorProjects();
                 try {
                     checkForSnapshotDependencies();
                 } catch (MojoExecutionException mee) {
                     // reset setNextVersions and/or setVersion commits to allow user fix & push SNAPSHOT dependencies
                     // but can only reset if it the commits have not been pushed */
                     if (setNextVersions) {
                         getGitflowInit().executeLocal("git reset --hard HEAD~1");
                     }
                     if (setVersion) {
                         getGitflowInit().executeLocal("git reset --hard HEAD~1");
                     }
                     exceptionMapper.handle(mee);
                 }
             }
 
             /* 1. merge to master */
             try {
                 gitflowRelease.finishToMaster(releaseBranch, tagName);
             } catch (GitCommandException gce) {
                 String header = "Error merging branch '" + releaseBranch + "' into '" + masterBranch + "'";
                 exceptionMapper.handle(header, gce);
             } catch (GitflowException ge) {
                 String header = "Error merging branch '" + releaseBranch + "' into '" + masterBranch + "'";
                 exceptionMapper.handle(header, ge);
             } catch (GitflowMergeConflictException gmce) {
                 String header = "Merge conflict merging branch '" + releaseBranch + "' into '" + masterBranch + "'";
                 exceptionMapper.handle(header, gmce);
             }
         } else {
             getLog().warn("Tag " + tagName + " already exists. Skipping merge of release branch '" + releaseBranch + "' into '" + masterBranch + "'");
         }
 
         /* 2. make versions in release and develop branches match to avoid conflicts */
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         getLog().debug("develop version = " + developVersion);
         getGitflowInit().executeLocal("git checkout " + releaseBranch);
         reloadReactorProjects();
         boolean setDevVersion = setVersion(developVersion, releaseBranch, false); // don't push so can can reset if needed
 
         /* 3. merge to develop */
         try {
             gitflowRelease.finishToDevelop(releaseBranch, tagName);
         } catch (GitCommandException gce) {
             // reset setVersion commit and allow user fix whatever exception occurred
             // but can only reset if the commit has not been pushed
             if (setDevVersion) {
                 getGitflowInit().executeLocal("git reset --hard HEAD~1");
             }
             String header = "Error merging branch '" + releaseBranch + "' into '" + developBranch + "'";
             exceptionMapper.handle(header, gce);
         } catch (GitflowException ge) {
             // reset setVersion commit and allow user fix whatever exception occurred
             // but can only reset if the commit has not been pushed
             if (setDevVersion) {
                 getGitflowInit().executeLocal("git reset --hard HEAD~1");
             }
             String header = "Error merging branch '" + releaseBranch + "' into '" + developBranch + "'";
             exceptionMapper.handle(header, ge);
         } catch (GitflowMergeConflictException gmce) {
             String header = "Merge conflict merging branch '" + releaseBranch + "' into '" + developBranch + "'";
             exceptionMapper.handle(header, gmce);
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
-            throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
+            new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
         /* Push merges and tag */
         try {
             prompter.pushPrompt("Are you ready to push?", Arrays.asList(tagName, masterBranch, developBranch), Arrays.asList(releaseBranch, origin + '/' + releaseBranch));
 
             boolean yes;
             try {
                 yes = prompter.promptYesNo("Do you want to continue");
             } catch (IOException e) {
                 throw new MojoFailureException("Error reading user input from command line " + e.getMessage());
             }
 
             if (yes) {
                 gitflowRelease.publish(releaseBranch, tagName, true);
             } else {
                 gitflowRelease.publish(releaseBranch, tagName, false);
             }
         } catch (GitCommandException gce) {
             String header = "Failed to push release finish";
             exceptionMapper.handle(header, gce);
         } catch (GitflowException ge) {
             String header = "Failed to push release finish";
             exceptionMapper.handle(header, ge);
         }
 
         /* Update develop branch dependencies to next snapshot version (if deployed) */
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions(true, updateParent, includes);
         }
 
     }
 
     private String promptForExistingReleaseBranch(String prefix, List<String> releaseBranches) throws MojoFailureException {
         List<String> choices = releaseBranches;
 
         /* if current branch is a feature branch at it to start of list so it is the default in prompt */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (currentBranch.startsWith(prefix)) {
             choices = rearrange(currentBranch, releaseBranches);
         }
 
         String name = "";
         try {
             prompter.promptChoice("Release branches", "Please select a release branch to finish", choices);
         } catch (IOException ex) {
             throw new MojoFailureException("Error reading release name from command line " + ex.getMessage());
         }
         return name.trim();
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
index 2f42509..2544635 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
@@ -30,156 +30,156 @@ import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
 /**
  * Creates a new release branch off of the develop branch.
  */
 @Mojo(name = "release-start", aggregator = true)
 public class ReleaseStartMojo extends AbstractReleaseMojo {
 
     /**
      * If the project has a parent with a <code>-SNAPSHOT</code> version it will
      * be replaced with the corresponding release version (if it has been
      * released). This action is performed on the release branch after it is
      * created.
      *
      * @since 1.2
      */
     @Parameter(property = "updateParent", defaultValue = "false", required = false)
     private boolean updateParent;
 
     /**
      * Any dependencies with a <code>-SNAPSHOT</code> version are replaced with
      * the corresponding release version (if it has been released). This action
      * is performed on the release branch after it is created.
      *
      * @since 1.2
      */
     @Parameter(property = "updateDependencies", defaultValue = "false", required = false)
     private boolean updateDependencies;
 
     /**
      * If <code>updateDependencies</code> is set, then this should contain a
      * comma separated list of artifact patterns to include. Follows the pattern <code>groupId:artifactId:type:classifier:version<code>
      *
      * @since 1.5
      */
     @Parameter(property = "includes", defaultValue = "", required = false)
     private String includes;
 
     /**
      * The commit to start the release branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     private String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         /* Switch to develop branch and get its current version */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
         reloadReactorProjects();
 
         String developVersion = project.getVersion();
         getLog().info("Current develop version = " + developVersion);
 
         /* Get next development version */
         String nextDevelopVersion = getNextDevelopVersion(developVersion);
         if (session.getRequest().isInteractiveMode()) {
             try {
                 nextDevelopVersion = prompter.promptWithDefault("Please enter the next development version? ", nextDevelopVersion);
             } catch (IOException ex) {
-                throw new MojoExecutionException("Error reading next development version from command line " + ex.getMessage(), ex);
+                exceptionMapper.handle(new MojoExecutionException("Error reading next development version from command line " + ex.getMessage(), ex));
             }
         }
         getLog().debug("Next development version = " + developVersion);
 
         /* Get suggested release version */
         String releaseVersion = getReleaseVersion(developVersion);
         getLog().debug("release version = " + releaseVersion);
 
         /* create release branch */
         String prefix = getReleaseBranchPrefix();
         if (!StringUtils.isBlank(releaseName)) {
             getLog().debug("Using releaseName passed  '" + releaseName + "'");
         } else if (session.getRequest().isInteractiveMode()) {
             try {
                 releaseName = prompter.promptWithDefault("Please enter the release branch name? " + prefix, releaseVersion);
             } catch (IOException ex) {
-                throw new MojoExecutionException("Error reading release name from command line " + ex.getMessage(), ex);
+                exceptionMapper.handle(new MojoExecutionException("Error reading release name from command line " + ex.getMessage(), ex));
             }
         } else {
             releaseName = releaseVersion;
         }
 
         releaseName = trimReleaseName(releaseName);
 
         if (StringUtils.isBlank(releaseName)) {
-            throw new MojoFailureException("Parameter <releaseName> cannot be null or empty.");
+            exceptionMapper.handle(new MojoFailureException("Parameter <releaseName> cannot be null or empty."));
         }
 
         GenericArtifactVersion releaseArtifactVersion;
         try {
             releaseArtifactVersion = new GenericArtifactVersion(releaseName);
             if (SNAPSHOT_QUALIFIER.equals(releaseArtifactVersion.getBuildSpecifier())) {
                 throw new IllegalArgumentException("Parameter <releaseName> is not a release version as it contains SNAPSHOT build specifier");
             }
         } catch (IllegalArgumentException e) {
             throw new MojoExecutionException("Parameter <releaseName> value '" + releaseName + "' is not a valid Maven release version.");
         }
 
         getLog().info("Starting release '" + releaseName + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setPush(true);
         gitflowRelease.setStartCommit(startCommit);
 
         try {
             gitflowRelease.start(releaseName);
         } catch (GitCommandException gce) {
             String header = "Failed to run release start";
             exceptionMapper.handle(header, gce);
         } catch (GitflowException ge) {
             String header = "Failed to run release start";
             exceptionMapper.handle(header, ge);
         }
 
         // current branch should be the release branch
         String releaseBranch = getGitflowInit().gitCurrentBranch();
         if (!releaseBranch.startsWith(prefix)) {
-            throw new MojoFailureException("Failed to create release version.");
+            exceptionMapper.handle(new MojoFailureException("Failed to create release version."));
         }
 
         /* Update release branch dependencies to release version */
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions(false, updateParent, includes);
         }
 
         // checkout develop branch and update it's version
         String developBranch = (String) getGitflowInit().getDevelopBrnName();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         setVersion(nextDevelopVersion, developBranch, true);
 
         // checkout release branch again and update it's version to required release version
         getGitflowInit().executeLocal("git checkout " + releaseBranch);
         reloadReactorProjects();
         setVersion(releaseArtifactVersion.setBuildSpecifier(SNAPSHOT_QUALIFIER).toString(), releaseBranch, true);
     }
 
     public String getReleaseName() {
         return releaseName;
     }
 
     private String getNextDevelopVersion(String developVersion) {
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(developVersion);
         artifactVersion.upgradeLeastSignificantPrimaryNumber();
 
         return artifactVersion.toString();
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
index 979fa67..9bc9478 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
@@ -29,67 +29,67 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  * Creates a new support branch from a specific commit on the master branch.
  */
 @Mojo(name = "support-start", aggregator = true)
 public class SupportStartMojo extends AbstractSupportMojo {
 
     /**
      * The commit to start the support branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     protected String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         String prefix = getGitflowInit().getSupportBranchPrefix();
 
         List<String> localTags = getGitflowInit().gitLocalTags();
         if (localTags.isEmpty()) {
-            throw new MojoFailureException("Could not find any local tags to create support branch from!");
+            exceptionMapper.handle(new MojoFailureException("Could not find any local tags to create support branch from!"));
         }
 
         if (StringUtils.isBlank(startCommit)) {
             try {
                 startCommit = prompter.promptChoice("Support branches", "Please select a tag to create Support branch from", localTags);
             } catch (IOException ex) {
-                throw new MojoFailureException("Error reading tag name from command line " + ex.getMessage());
+                exceptionMapper.handle(new MojoFailureException("Error reading tag name from command line " + ex.getMessage()));
             }
         }
 
         getGitflowInit().executeLocal("git checkout " + startCommit);
         reloadReactorProjects();
         String supportVersion = getSupportVersion(project.getVersion());
         String supportSnapshotVersion = getSupportSnapshotVersion(project.getVersion());
 
         getLog().info("Starting support branch '" + supportVersion + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowSupport gitflowSupport = new GitflowSupport();
         gitflowSupport.setInit(getGitflowInit());
         gitflowSupport.setMsgPrefix(getMsgPrefix());
         gitflowSupport.setMsgSuffix(getMsgSuffix());
         gitflowSupport.setPush(true);
         gitflowSupport.setStartCommit(startCommit);
 
         try {
             gitflowSupport.start(supportVersion);
         } catch (GitCommandException gce) {
             String header = "Failed to run support start";
             exceptionMapper.handle(header, gce);
         } catch (GitflowException ge) {
             String header = "Failed to run support start";
             exceptionMapper.handle(header, ge);
         }
 
         setVersion(supportSnapshotVersion, prefix + supportVersion, false);
 
         if (getGitflowInit().gitRemoteBranchExists(prefix + supportVersion)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + supportVersion);
         }
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportTagMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportTagMojo.java
index dbe81dd..52e6873 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportTagMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportTagMojo.java
@@ -27,157 +27,157 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  * Creates a tag on a support branch when releasing of a support branch. Note:
  * this does not merge support branch changes back to develop
  */
 @Mojo(name = "support-tag", aggregator = true)
 public class SupportTagMojo extends AbstractSupportMojo {
 
     /**
      * If <code>true</code>, the tag can still get created even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 2.3
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private Boolean allowSnapshots;
 
     /**
      * If <code>true</code>, the support tag will be signed.
      *
      * @since 2.3
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 2.3
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().debug("Tagging support branch");
 
         /* Get support branch name */
         String prefix = getSupportBranchPrefix();
         List<String> supportBranches = getGitflowInit().gitLocalSupportBranches();
         if (supportBranches.isEmpty()) {
-            throw new MojoFailureException("Could not find any local support branch!");
+            exceptionMapper.handle(new MojoFailureException("Could not find any local support branch!"));
         }
 
         if (StringUtils.isBlank(supportName)) {
             if (supportBranches.size() == 1) {
                 String supportBranch = supportBranches.get(0);
                 supportName = trimSupportName(supportBranch);
             } else {
                 String supportBranch = promptForExistingSupportBranch(prefix, supportBranches);
                 supportName = trimSupportName(supportBranch);
             }
 
         } else {
             supportName = trimSupportName(supportName);
             if (!getGitflowInit().gitLocalBranchExists(prefix + supportName)) {
                 String msg = "No local support branch named '" + prefix + supportName + "' exists!";
                 exceptionMapper.handle(new MojoFailureException(msg));
             }
         }
 
         getLog().info("Tagging support branch '" + supportName + "'");
 
         String supportBranch = prefix + supportName;
 
         /* Switch to support branch and get its current version */
         getGitflowInit().executeLocal("git checkout " + supportBranch);
         reloadReactorProjects();
         String snapshotVersion = project.getVersion();
 
         /* Get release version for support tag */
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(snapshotVersion);
         String supportVersion;
         if ("SNAPSHOT".equals(artifactVersion.getBuildSpecifier())) {
             supportVersion = getReleaseVersion(project.getVersion());
         } else {
             supportVersion = project.getVersion();
         }
         getLog().debug("support version = " + supportVersion);
 
         getGitflowInit().requireTagAbsent(supportVersion);
 
         /* Set support branch to release version */
         boolean setVersion = setVersion(supportVersion, supportBranch, false);
 
         if (!allowSnapshots) {
             reloadReactorProjects();
             try {
                 checkForSnapshotDependencies();
             } catch (MojoExecutionException mee) {
                 // reset setVersion commit to allow user fix & push SNAPSHOT dependencies
                 if (setVersion) {
                     getGitflowInit().executeLocal("git reset --hard HEAD~1");
                 }
                 exceptionMapper.handle(mee);
             }
         }
 
         /* tag support branch */
         String tagMsg = "Support release version " + supportVersion;
         String tagName = supportVersion;
         String tagString = getGitflowInit().executeLocal("git tag -a -m \"" + tagMsg + "\" " + tagName + " " + supportBranch);
         getLog().debug("Git tag output = " + tagString);
 
         /* Increment support branch to next version */
         String nextSupportVersion = getNextSupportVersion(snapshotVersion);
         setVersion(nextSupportVersion, supportBranch, false);
         promptToPushSupportBranchAndTag(supportBranch, tagName);
 
     }
 
     private String promptForExistingSupportBranch(String prefix, List<String> supportBranches) throws MojoFailureException {
         List<String> choices = supportBranches;
 
         /* if current branch is a support branch at it to start of list so it is the default in prompt */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (currentBranch.startsWith(prefix)) {
             choices = rearrange(currentBranch, supportBranches);
         }
 
         String name = "";
         try {
             prompter.promptChoice("Support branches", "Please select a support branch to tag", choices);
         } catch (IOException ex) {
             throw new MojoFailureException("Error reading release name from command line " + ex.getMessage());
         }
         return name.trim();
     }
 
     private void promptToPushSupportBranchAndTag(String supportBranch, String supportTag) throws MojoFailureException {
         String origin = getGitflowInit().getOrigin();
         String message = "Do you want to push " + supportBranch + " branch and support tag " + supportTag + " to " + origin + "? (y/N)";
 
         String answer = "";
         try {
             answer = prompter.prompt(message);
         } catch (IOException e) {
             throw new MojoFailureException("Error reading support branch name from command line " + e.getMessage());
         }
 
         if (answer.matches("/^([yY][eE][sS]|[yY])$/")) {
             if (getGitflowInit().gitRemoteBranchExists(supportBranch)) {
                 getGitflowInit().executeRemote("git push " + origin + " " + supportBranch);
                 getGitflowInit().executeRemote("git push " + origin + " " + supportTag);
             } else {
                 getLog().info("");
                 getLog().warn("===> Branch '" + supportBranch + "' does not exist on '" + origin + "'");
                 getLog().warn("===> Once ready you MUST manually push '" + supportBranch + "' branch and support tag '" + supportTag + "' to '" + origin + "'");
                 getLog().info("");
             }
         } else {
             getLog().info("");
             getLog().warn("===> Once ready you MUST manually push '" + supportBranch + "' branch and support tag '" + supportTag + "' to '" + origin + "'");
             getLog().info("");
         }
     }
 }

commit de904e58e9f8312beb63e68ae041b1376fc7d572
Author: dkirrane <dkirrane@avaya.com>
Date:   Tue Sep 27 14:49:36 2016 +0100

    fixes

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
index 88d462e..d0a7420 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
@@ -24,93 +24,84 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  *
  */
 public class AbstractFeatureMojo extends AbstractGitflowMojo {
 
     /**
      * The name for the feature branch
      *
      * @since 1.2
      */
     @Parameter(property = "featureName", required = false)
     protected String featureName;
 
     /**
      * If <code>true</code>, the feature branch name is added to the pom
      * versions
      *
      * @since 1.2
      */
     @Parameter(property = "enableFeatureVersions", defaultValue = "true", required = false)
     protected boolean enableFeatureVersions;
 
-    /**
-     * If <code>true</code>, the feature branch is pushed to the remote
-     * repository
-     *
-     * @since 1.2
-     */
-    @Parameter(property = "pushFeatureBranch", defaultValue = "false", required = false)
-    protected boolean pushFeatureBranch;
-
     public String getFeatureBranchPrefix() {
         String prefix = getGitflowInit().getFeatureBranchPrefix();
         if (StringUtils.isBlank(prefix)) {
             prefix = DEFAULT_FEATURE_BRN_PREFIX;
         }
         return prefix;
     }
 
     public String trimFeatureName(String name) throws MojoFailureException {
         if (StringUtils.isBlank(name)) {
             throw new MojoFailureException("Missing argument <name>");
         }
 
         // remove whitespace
         name = name.replaceAll("\\s+", "");
 
         // trim off starting any leading 'feature/' prefix
         String prefix = getFeatureBranchPrefix();
         if (name.startsWith(prefix)) {
             name = name.substring(prefix.length());
         }
 
         return name;
     }
 
     public String getFeatureVersion(String currentVersion, String featureLabel) throws MojoFailureException {
         getLog().debug("getFeatureVersion from '" + currentVersion + "'");
         featureLabel = getValidFeatureVersionAnnotation(featureLabel);
         getLog().debug("Feature version annotation '" + featureLabel + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         Character annotationSeparator = artifactVersion.getAnnotationRevisionSeparator();
         String buildSpecifier = artifactVersion.getBuildSpecifier();
         Character buildSpecifierSeparator = artifactVersion.getBuildSpecifierSeparator();
 
         getLog().debug("Parsed version = " + artifactVersion.toString());
         if (!StringUtils.isBlank(annotationAsString)) {
             throw new MojoFailureException("Cannot add feature name to version. An annotation " + annotationAsString + " already exists");
         }
 
         final StringBuilder result = new StringBuilder(30);
 
         result.append(primaryNumbersAsString).append(annotationSeparator).append(featureLabel);
 
         if (buildSpecifier != null) {
             if (buildSpecifierSeparator != null) {
                 result.append(buildSpecifierSeparator);
             }
             result.append(buildSpecifier);
         }
 
         return result.toString();
     }
 
     private String getValidFeatureVersionAnnotation(String featureLabel) {
         featureLabel = featureLabel.trim().replaceAll("\\s+", "_");
         featureLabel = featureLabel.trim().replaceAll("-+", "_");
         return featureLabel;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index 7fd21a9..f74ee27 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -17,5 +17,6 @@ package com.dkirrane.maven.plugins.ggitflow;
 
+import static com.dkirrane.gitflow.groovy.Constants.DEFAULT_VERSION_TAG_PREFIX;
 import com.dkirrane.gitflow.groovy.GitflowInit;
 import com.dkirrane.gitflow.groovy.ex.GitflowException;
-import com.dkirrane.maven.plugins.ggitflow.prompt.FreeMarker;
+import com.dkirrane.maven.plugins.ggitflow.ex.ExceptionMapper;
 import com.dkirrane.maven.plugins.ggitflow.prompt.Prompter;
@@ -84,487 +85,498 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 public class AbstractGitflowMojo extends AbstractMojo {
-    
+
     Scanner scanner = new Scanner(System.in);
 
     public final Pattern matchSnapshotRegex = Pattern.compile("-SNAPSHOT");
 
     public static final ImmutableList<String> DEFAULT_INSTALL_ARGS = ImmutableList.of(
             "-DinstallAtEnd=false");
 
     public static final ImmutableList<String> DEFAULT_DEPLOY_ARGS = ImmutableList.of(
             "-DdeployAtEnd=false",
             "-DretryFailedDeploymentCount=2");
 
     public static final Splitter PROFILES_SPLITTER = Splitter.on(',').trimResults().omitEmptyStrings();
     public static final Joiner PROFILES_JOINER = Joiner.on(',').skipNulls();
 
     private static final Plugin VERSIONS_MVN_PLUGIN = plugin(
             groupId("org.codehaus.mojo"),
             artifactId("versions-maven-plugin"),
             version("2.3")
     );
 
     @Parameter(defaultValue = "${session}", readonly = true)
     protected MavenSession session;
 
     @Parameter(defaultValue = "${project}", readonly = true)
     protected MavenProject project;
 
     @Parameter(defaultValue = "${reactorProjects}", readonly = true, required = true)
     protected List<MavenProject> reactorProjects;
 
     @Component
     private ProjectBuilder projectBuilder;
 
     @Component
     protected BuildPluginManager pluginManager;
 
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
     @Component(role = Prompter.class)
     protected Prompter prompter;
 
-    @Component(role = FreeMarker.class)
-    protected FreeMarker freeMarker;
+    @Component(role = ExceptionMapper.class)
+    protected ExceptionMapper exceptionMapper;
 
     /**
      * Gitflow branches and prefixes to use.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
     /**
      * Message prefix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgPrefix", defaultValue = "", required = false)
     protected String msgPrefix;
 
     /**
      * Message suffix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgSuffix", defaultValue = "", required = false)
     protected String msgSuffix;
 
     private GitflowInit init;
     private Path tempDir;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             getLog().debug("Gitflow pom  '" + project.getBasedir() + "'");
         }
-
         GitflowInit gitflowInit = getGitflowInit();
 
+        exceptionMapper.setRepoDir(gitflowInit.getRepoDir());
+
         gitflowInit.requireGitRepo();
         gitflowInit.checkRemoteConnection();
 
         if (!gitflowInit.gitflowIsInitialized()) {
             try {
                 gitflowInit.cmdDefault();
             } catch (GitflowException ex) {
                 throw new MojoExecutionException("Failed to initialise Gitflow " + ex.getMessage(), ex);
             }
         }
 
         gitflowInit.requireCleanWorkingTree();
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     protected final GitflowInit getGitflowInit() {
         if (null == init) {
             getLog().debug("Initialising Gitflow");
             init = new GitflowInit();
             File basedir = getProject().getBasedir();
             getLog().debug("Setting base directory " + basedir);
             init.setRepoDir(basedir);
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
 
             /* root Git directory may not be the pom directory */
             String gitRootPath = init.executeLocal("git rev-parse --show-toplevel");
             getLog().debug("Git repo top level " + gitRootPath);
             File baseGitDir = new File(gitRootPath);
             if (baseGitDir.isDirectory()) {
                 getLog().debug("Setting git base directory " + baseGitDir);
                 init.setRepoDir(baseGitDir);
             }
 
             /* Create temp directory - delete any previous first */
             try {
                 Finder finder = new Finder(Syntax.glob, "mvn-gitflow*");
                 Files.walkFileTree(Paths.get(System.getProperty("java.io.tmpdir")), finder);
                 List<Path> paths = finder.getPaths();
                 getLog().debug("Deleting old temp directories " + paths);
                 for (Path path : paths) {
                     FileUtils.deleteDirectory(path.toFile());
                 }
                 tempDir = Files.createTempDirectory("mvn-gitflow");
             } catch (IOException ioe) {
                 getLog().error("Failed to create temp directory", ioe);
             }
         }
         return init;
     }
 
-    protected final boolean setVersion(String version, Boolean push, String branch) throws MojoExecutionException, MojoFailureException {
+    public String getVersionTagPrefix() {
+        String prefix = getGitflowInit().getVersionTagPrefix();
+        if (null == prefix) {
+            prefix = DEFAULT_VERSION_TAG_PREFIX;
+        }
+        return prefix;
+    }
+
+    protected final boolean setVersion(String version, String branch, boolean push) throws MojoExecutionException, MojoFailureException {
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         MavenProject topLevelProject = session.getTopLevelProject();
         session.setCurrentProject(topLevelProject);
 
         String goal = goal("set");
         Xpp3Dom configuration = configuration(
                 element(name("generateBackupPoms"), "false"),
                 element(name("newVersion"), version)
         );
 
         String mavenCommand = getMavenCommand(VERSIONS_MVN_PLUGIN, goal);
 
         getLog().info("");
         getLog().info("--- " + mavenCommand + " " + topLevelProject.getArtifactId() + " to " + version + " (" + branch + ") ---");
         executeMyMojo(VERSIONS_MVN_PLUGIN, goal, configuration);
         getLog().info("------------------------------------------------------------------------");
 
         boolean commitMade = false;
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (push && getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change " + version + " to origin. ExitCode:" + exitCode);
                 }
             }
+
             commitMade = true;
         }
         /* We don't want to fail maybe the version was manually set correctly */
 //        else {
 //            throw new MojoFailureException("Failed to update poms to version " + version);
 //        }
         return commitMade;
     }
 
     protected final boolean setNextVersions(Boolean allowSnapshots, Boolean updateParent, String includes) throws MojoExecutionException, MojoFailureException {
         getLog().debug("setNextVersions");
 
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         MavenProject topLevelProject = session.getTopLevelProject();
         session.setCurrentProject(topLevelProject);
 
         if (updateParent) {
             String updateParentGoal = goal("update-parent");
             Xpp3Dom configuration = configuration(
                     element(name("generateBackupPoms"), "false"),
                     element(name("allowSnapshots"), allowSnapshots.toString())
             );
 
             String mavenCommand = getMavenCommand(VERSIONS_MVN_PLUGIN, updateParentGoal);
             getLog().info("");
             getLog().info("--- " + mavenCommand + " " + topLevelProject.getArtifactId() + " ---");
             executeMyMojo(VERSIONS_MVN_PLUGIN, updateParentGoal, configuration);
             getLog().info("------------------------------------------------------------------------");
         }
 
         if (!StringUtils.isBlank(includes)) {
             String useNextVersionsGoal = goal("use-next-versions");
             Xpp3Dom configuration = configuration(
                     element(name("generateBackupPoms"), "false"),
                     element(name("allowSnapshots"), allowSnapshots.toString()),
                     element(name("includesList"), includes)
             );
 
             String mavenCommand = getMavenCommand(VERSIONS_MVN_PLUGIN, useNextVersionsGoal);
             getLog().info("");
             getLog().info("--- " + mavenCommand + " " + topLevelProject.getArtifactId() + " ---");
             executeMyMojo(VERSIONS_MVN_PLUGIN, useNextVersionsGoal, configuration);
             getLog().info("------------------------------------------------------------------------");
         } else {
             getLog().warn("Parameter <includes> is not set. Skipping dependency updates");
         }
 
         boolean commitMade = false;
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg;
             if (allowSnapshots) {
                 msg = getMsgPrefix() + "Replaces any release versions with the next snapshot version (if it has been deployed)." + getMsgSuffix();
             } else {
                 msg = getMsgPrefix() + "Replaces snapshot versions with the corresponding release version" + getMsgSuffix();
             }
 
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change to origin. ExitCode:" + exitCode);
                 }
             }
             commitMade = true;
         }
         return commitMade;
     }
 
     protected final void executeMyMojo(Plugin plugin, String goal, Xpp3Dom configuration) throws MojoExecutionException, MojoFailureException {
         String mavenCommand = getMavenCommand(plugin, goal);
         MavenProject topLevelProject = session.getTopLevelProject();
         String projArtifactId = topLevelProject.getArtifactId();
         getLog().debug("START " + mavenCommand + " on " + projArtifactId);
         getLog().debug("configuration " + configuration.toUnescapedString());
 
         /* Maven 3.3.x log settings */
         session.getRequest().setLoggingLevel(MavenExecutionRequest.LOGGING_LEVEL_ERROR);
         System.setProperty("org.slf4j.simpleLogger.defaultLogLevel", "error");
         System.setProperty("maven.logging.root.level", "error");
         PrintStream stdout = System.out;
         PrintStream stderr = System.err;
         PrintStream stoutStream = null;
         Path tempStoutFile = null;
         try {
 
             /* Capture System.out */
             if (!getLog().isDebugEnabled()) {
                 try {
                     String logFileName = plugin.getArtifactId() + '-' + goal + '-';
                     tempStoutFile = Files.createTempFile(tempDir, logFileName, ".log");
                     stoutStream = new PrintStream(new FileOutputStream(tempStoutFile.toFile(), true));
                     System.setOut(stoutStream);
                     System.setErr(stoutStream);
                 } catch (Exception ioe) {
                     getLog().warn("Failed to capture System.out", ioe);
                 }
             }
 
             /* Execute Maven plugin goal */
             executeMojo(
                     plugin,
                     goal,
                     configuration,
                     executionEnvironment(
                             session.getTopLevelProject(),
                             session,
                             pluginManager
                     )
             );
 
         } catch (MojoExecutionException mee) {
             /* Reset System.out */
             System.setOut(stdout);
             System.setErr(stderr);
             String rootCauseMessage = ExceptionUtils.getRootCauseMessage(mee);
             if (rootCauseMessage.contains("Project version is inherited from parent")) {
                 getLog().debug("Skipping " + mavenCommand + " for project " + projArtifactId + ". Project version is inherited from parent.");
             } else {
                 getLog().error("Failed to execute " + mavenCommand + " on " + projArtifactId, mee);
                 throw mee;
             }
         } finally {
             if (!getLog().isDebugEnabled()) {
                 /* Reset System.out */
                 System.setOut(stdout);
                 System.setErr(stderr);
 
                 if (null != tempStoutFile) {
                     getLog().info(mavenCommand + " log " + tempStoutFile.toString());
                 }
 
                 if (null != stoutStream) {
                     try {
                         stoutStream.close();
                     } catch (Exception e) {
                     }
                 }
             }
             getLog().debug("DONE " + mavenCommand);
         }
     }
 
     private String getMavenCommand(Plugin plugin, String goal) {
         return plugin.getArtifactId() + ':' + plugin.getVersion() + ':' + goal;
     }
 
     protected final void runGoals(String goals, List<String> additionalArgs) throws MojoExecutionException, MojoFailureException {
         getLog().debug("START executing " + goals + " with args " + additionalArgs);
 
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         File basedir = rootProject.getBasedir();
 
         ReleaseResult result = new ReleaseResult();
         ReleaseEnvironment env = new DefaultReleaseEnvironment();
         env.setSettings(session.getSettings());
         MavenExecutor mavenExecutor = mavenExecutors.get(env.getMavenExecutorId());
 
         Joiner joiner = Joiner.on(" ").skipNulls();
         String additionalArguments = joiner.join(additionalArgs);
         getLog().debug("additionalArguments " + additionalArguments);
 
         try {
             mavenExecutor.executeGoals(basedir, goals, env, false, additionalArguments, result);
         } catch (MavenExecutorException ex) {
             throw new MojoExecutionException(result.getOutput(), ex);
         }
         getLog().debug("DONE executing " + goals);
     }
 
     protected final String getReleaseVersion(String version) throws MojoFailureException {
         getLog().debug("Current Develop version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
             getLog().debug("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
     protected final void checkForSnapshotDependencies() throws MojoExecutionException {
         getLog().info("Checking for SNAPSHOT dependencies");
         Boolean hasDepSnapshots = false;
         Boolean hasParentSnapshot = false;
         for (MavenProject mavenProject : reactorProjects) {
             String artifactId = mavenProject.getArtifactId();
 
             /* Check <parent> */
             Artifact parentArtifact = mavenProject.getParentArtifact();
             if (parentArtifact != null && parentArtifact.isSnapshot()) {
                 getLog().error("Parent of project " + artifactId + " is a SNAPSHOT " + parentArtifact.getId());
                 hasParentSnapshot = true;
             }
 
             /* Check <dependencyManagement> */
             DependencyManagement dependencyManagement = mavenProject.getDependencyManagement();
             if (null != dependencyManagement) {
                 if (checkForSnapshot(artifactId, dependencyManagement.getDependencies())) {
                     hasDepSnapshots = true;
                 }
             }
 
             /* Check <dependencies> */
             if (checkForSnapshot(artifactId, mavenProject.getDependencies())) {
                 hasDepSnapshots = true;
             }
         }
         if (hasParentSnapshot || hasDepSnapshots) {
             throw new MojoExecutionException("Cannot release because SNAPSHOT dependencies exist");
         }
+        getLog().info("No SNAPSHOT dependencies found");
     }
 
     private boolean checkForSnapshot(String artifactId, List<Dependency> dependencies) throws MojoExecutionException {
         Boolean hasSnapshotDependency = false;
         for (Dependency dependency : dependencies) {
             String version = dependency.getVersion();
             Matcher versionMatcher = matchSnapshotRegex.matcher(version);
             if (versionMatcher.find() && versionMatcher.end() == version.length()) {
                 getLog().error("Project " + artifactId + " contains SNAPSHOT dependency: " + dependency.getGroupId() + ":" + dependency.getArtifactId() + ":" + version);
                 hasSnapshotDependency = true;
             }
         }
         return hasSnapshotDependency;
     }
 
     protected void reloadReactorProjects() {
         getLog().debug("Reloading poms...");
 
         List<MavenProject> updatedReactorProjects = new ArrayList<>();
 
         MavenProject rootProject = ReleaseUtil.getRootProject(reactorProjects);
         getLog().debug("rootProject = " + rootProject);
         if (rootProject.getFile().exists() && rootProject.getFile().canRead()) {
             MavenExecutionRequest mavenExecutionRequest = session.getRequest();
             ProjectBuildingRequest projectBuildingRequest = mavenExecutionRequest.getProjectBuildingRequest();
             try {
                 List<ProjectBuildingResult> buildResults = projectBuilder.build(newArrayList(rootProject.getFile()), true, projectBuildingRequest);
                 for (ProjectBuildingResult buildResult : buildResults) {
                     MavenProject reloadProject = buildResult.getProject();
                     reloadProject.setActiveProfiles(rootProject.getActiveProfiles());
                     updatedReactorProjects.add(reloadProject);
                 }
             } catch (ProjectBuildingException ex) {
                 getLog().error("Build error reloading Maven projects", ex);
             }
         }
 
         try {
             ReactorManager reactorManager = new ReactorManager(updatedReactorProjects);
             updatedReactorProjects = reactorManager.getSortedProjects();
         } catch (CycleDetectedException | DuplicateProjectException ex) {
             getLog().error("Failed to sort reactor projects", ex);
         }
 
         session.setProjects(updatedReactorProjects);
         project = ReleaseUtil.getRootProject(updatedReactorProjects);
         reactorProjects = updatedReactorProjects;
 
         if (getLog().isDebugEnabled()) {
             getLog().debug("Updated MavenSession: " + session);
             getLog().debug("Updated MavenProject: " + project);
             getLog().debug("Updated reactorProjects: ");
             for (int i = 0; i < reactorProjects.size(); i++) {
                 MavenProject updatedReactorProject = updatedReactorProjects.get(i);
                 System.out.println("");
                 System.out.printf(" %d) %s:%s \n \t\t\t Parent: %s \n \t\t\t DependencyManagement:%s \n \t\t\t Dependencies:%s \n",
                         i,
                         updatedReactorProject.getArtifactId(), updatedReactorProject.getVersion(),
                         updatedReactorProject.getParentArtifact(),
                         null != updatedReactorProject.getDependencyManagement() ? updatedReactorProject.getDependencyManagement().getDependencies() : null,
                         updatedReactorProject.getDependencies());
                 System.out.println("");
             }
         }
 
         getLog().debug("Reloading poms complete");
     }
 
     protected List<String> rearrange(String input, List<String> strings) {
         strings.remove(input);
         strings.add(0, input);
         return strings;
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractHotfixMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractHotfixMojo.java
index 8d8a254..4a78592 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractHotfixMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractHotfixMojo.java
@@ -19,3 +19,2 @@ import static com.dkirrane.gitflow.groovy.Constants.DEFAULT_HOTFIX_BRN_PREFIX;
 import org.apache.maven.plugin.MojoFailureException;
-import org.apache.maven.plugins.annotations.Parameter;
 import org.codehaus.plexus.util.StringUtils;
@@ -23,36 +22,27 @@ import org.codehaus.plexus.util.StringUtils;
 public class AbstractHotfixMojo extends AbstractGitflowMojo {
 
-    /**
-     * If <code>true</code>, the hotfix branch is pushed to the remote
-     * repository
-     *
-     * @since 1.6
-     */
-    @Parameter(property = "pushHotfixBranch", defaultValue = "true", required = false)
-    protected boolean pushHotfixBranch;
-
     public String getHotfixBranchPrefix() {
         String prefix = getGitflowInit().getHotfixBranchPrefix();
         if (StringUtils.isBlank(prefix)) {
             prefix = DEFAULT_HOTFIX_BRN_PREFIX;
         }
         return prefix;
     }
 
     public String trimHotfixName(String name) throws MojoFailureException {
         if (StringUtils.isBlank(name)) {
             throw new MojoFailureException("Missing argument <featureName>");
         }
 
         // remove whitespace
         name = name.replaceAll("\\s+", "");
 
         // trim off starting any leading 'hotfix/' prefix
         String prefix = getHotfixBranchPrefix();
         if (name.startsWith(prefix)) {
             name = name.substring(prefix.length());
         }
 
         return name;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java
index 70e7f16..319b817 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java
@@ -24,54 +24,45 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 public class AbstractReleaseMojo extends AbstractGitflowMojo {
 
     /**
      * The name for the release branch.
      *
      * @since 1.2
      */
     @Parameter(property = "releaseName", required = false)
     protected String releaseName;
 
-    /**
-     * If <code>true</code>, the release branch is pushed to the remote
-     * repository.
-     *
-     * @since 1.6
-     */
-    @Parameter(property = "pushReleaseBranch", defaultValue = "true", required = false)
-    protected boolean pushReleaseBranch;
-
     public String getReleaseBranchPrefix() {
         String prefix = getGitflowInit().getReleaseBranchPrefix();
         if (StringUtils.isBlank(prefix)) {
             prefix = DEFAULT_RELEASE_BRN_PREFIX;
         }
         return prefix;
     }
 
     public String trimReleaseName(String name) throws MojoFailureException {
         if (StringUtils.isBlank(name)) {
             throw new MojoFailureException("Missing argument <name>");
         }
 
         // remove whitespace
         name = name.replaceAll("\\s+", "");
 
         // trim off starting any leading 'release/' prefix
         String prefix = getReleaseBranchPrefix();
         if (name.startsWith(prefix)) {
             name = name.substring(prefix.length());
         }
 
         return name;
     }
 
     public String getNextDevelopmentVersion(String version) throws MojoFailureException {
         getLog().debug("Project version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
         GenericArtifactVersion nextDevelopVersion = artifactVersion.upgradeLeastSignificantNumber();
 
         getLog().debug("Project version '" + nextDevelopVersion + "'");
         return nextDevelopVersion.toString();
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/DebuggingMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/DebuggingMojo.java
index fbee5bc..4607a8b 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/DebuggingMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/DebuggingMojo.java
@@ -21,17 +21,17 @@ import org.apache.maven.plugin.MojoFailureException;
 /**
  * Mojo used for Testing
  */
 //@Mojo(name = "debug-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class DebuggingMojo extends AbstractGitflowMojo {
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         reloadReactorProjects();
 
-        setVersion("1.4", false, "someBranchName");
+        setVersion("1.4", "someBranchName", false);
 
         runGoals("clean deploy", DEFAULT_DEPLOY_ARGS);
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
index 9a42722..9b05f46 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
@@ -18,6 +18,7 @@ package com.dkirrane.maven.plugins.ggitflow;
 import com.dkirrane.gitflow.groovy.GitflowFeature;
+import com.dkirrane.gitflow.groovy.ex.GitCommandException;
 import com.dkirrane.gitflow.groovy.ex.GitflowException;
 import com.dkirrane.gitflow.groovy.ex.GitflowMergeConflictException;
-import com.google.common.collect.ImmutableList;
 import java.io.IOException;
+import java.util.Arrays;
 import java.util.List;
@@ -30,166 +31,151 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  * Merges a feature branch back into the develop.
  */
 @Mojo(name = "feature-finish", aggregator = true)
 public class FeatureFinishMojo extends AbstractFeatureMojo {
 
-    /**
-     * If <code>true</code>, the feature finish merge to develop will get pushed
-     * to the remote repository
-     *
-     * @since 1.6
-     */
-    @Parameter(property = "pushFeatureFinish", defaultValue = "false", required = false)
-    protected boolean pushFeatureFinish;
-
     /**
      * If <code>true</code>, the feature branch will be rebased onto develop,
      * then finish will fast-forward merge the feature branch back onto develop.
      *
      * @since 1.2
      */
     @Parameter(property = "isRebase", defaultValue = "false", required = false)
     private boolean isRebase;
 
 //    No good way to handle Interactive rebase from a Maven plugin
 //    /**
 //     * If <code>true</code>, and <code>isRebase</code> is true, then an interactive rebase is
 //     * performed for the feature branch.
 //     *
 //     * @since 1.2
 //     */
 //    @Parameter(property = "isInteractive", defaultValue = "false", required = false)
     private final boolean isInteractive = false;
 
-    /**
-     * Skips any calls to <code>mvn install</code>
-     *
-     * @since 1.2
-     */
-    @Parameter(property = "skipBuild", defaultValue = "true", required = false)
-    private Boolean skipBuild;
-
-    /**
-     * Skips any tests during <code>mvn install</code>
-     *
-     * @since 1.2
-     */
-    @Parameter(property = "skipTests", defaultValue = "true", required = false)
-    private Boolean skipTests;
-
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
-    /**
-     * If <code>true</code>, the local feature branch will not be deleted after
-     * the merge.
-     *
-     * @since 1.6
-     */
-    @Parameter(property = "keep", defaultValue = "false", required = false)
-    private Boolean keepLocal;
-
-    /**
-     * If <code>true</code>, the remote feature branch will not be deleted after
-     * the merge.
-     *
-     * @since 1.6
-     */
-    @Parameter(property = "keep", defaultValue = "true", required = false)
-    private Boolean keepRemote;
-
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().debug("Finishing feature");
 
         String prefix = getFeatureBranchPrefix();
         List<String> featureBranches = getGitflowInit().gitLocalFeatureBranches();
         if (null == featureBranches || featureBranches.isEmpty()) {
             throw new MojoFailureException("No local feature branches exist!");
         }
 
         if (StringUtils.isBlank(featureName)) {
             String featureBranch = promptForExistingFeatureBranch(prefix, featureBranches);
             featureName = trimFeatureName(featureBranch);
         } else {
             featureName = trimFeatureName(featureName);
             if (!getGitflowInit().gitLocalBranchExists(prefix + featureName)) {
                 throw new MojoFailureException("No local feature branch named '" + prefix + featureName + "' exists!");
             }
         }
 
         getLog().info("Finishing feature '" + featureName + "'");
 
+        String featureBranch = prefix + featureName;
+        String developBranch = getGitflowInit().getDevelopBranch();
+        String masterBranch = getGitflowInit().getMasterBranch();
+        String origin = getGitflowInit().getOrigin();
+
         if (enableFeatureVersions) {
             /* Switch to develop branch and get its current version */
-            getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
+            getGitflowInit().executeLocal("git checkout " + developBranch);
             reloadReactorProjects();
             String developVersion = project.getVersion();
             getLog().debug("develop version = " + developVersion);
 
             /* Switch to feature branch and get its current version */
-            getGitflowInit().executeLocal("git checkout " + prefix + featureName);
+            getGitflowInit().executeLocal("git checkout " + featureBranch);
             reloadReactorProjects();
             String featureVersion = project.getVersion();
             getLog().debug("feature version = " + featureVersion);
 
-            setVersion(developVersion, pushFeatureFinish, prefix + featureName);
-        }
-
-        if (skipBuild == false) {
-            ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<>();
-            additionalArgs.addAll(DEFAULT_INSTALL_ARGS);
-            if (skipTests) {
-                additionalArgs.add("-DskipTests=true");
-            }
-            runGoals("clean install", additionalArgs.build());
-        } else {
-            getLog().debug("Skipping mvn install for feature " + featureName);
+            setVersion(developVersion, featureBranch, false);
         }
 
         GitflowFeature gitflowFeature = new GitflowFeature();
         gitflowFeature.setInit(getGitflowInit());
         gitflowFeature.setMsgPrefix(getMsgPrefix());
         gitflowFeature.setMsgSuffix(getMsgSuffix());
-        gitflowFeature.setPush(pushFeatureBranch);
+        gitflowFeature.setPush(false);
         gitflowFeature.setSquash(squash);
-        gitflowFeature.setKeepLocal(keepLocal);
-        gitflowFeature.setKeepRemote(keepRemote);
         gitflowFeature.setIsRebase(isRebase);
         gitflowFeature.setIsInteractive(isInteractive);
 
         try {
             gitflowFeature.finish(featureName);
+        } catch (GitCommandException gce) {
+            String header = "Error merging branch '" + featureBranch + "' into '" + masterBranch + "'";
+            exceptionMapper.handle(header, gce);
         } catch (GitflowException ge) {
-            throw new MojoFailureException(ge.getMessage());
+            String header = "Error merging branch '" + featureBranch + "' into '" + masterBranch + "'";
+            exceptionMapper.handle(header, ge);
         } catch (GitflowMergeConflictException gmce) {
-            throw new MojoFailureException(gmce.getMessage());
+            String header = "Merge conflict merging branch '" + featureBranch + "' into '" + masterBranch + "'";
+            exceptionMapper.handle(header, gmce);
+        }
+
+
+        /* make sure we're on the develop branch */
+        String currentBranch = getGitflowInit().gitCurrentBranch();
+        if (!currentBranch.equals(developBranch)) {
+            throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
+        }
+
+        /* Push merges and tag */
+        try {
+            prompter.pushPrompt("Are you ready to push?", Arrays.asList(developBranch), Arrays.asList(featureBranch, origin + '/' + featureBranch));
+
+            boolean yes;
+            try {
+                yes = prompter.promptYesNo("Do you want to continue");
+            } catch (IOException e) {
+                throw new MojoFailureException("Error reading user input from command line " + e.getMessage());
+            }
+
+            if (yes) {
+                gitflowFeature.publish(featureBranch, true);
+            } else {
+                gitflowFeature.publish(featureBranch, false);
+            }
+        } catch (GitCommandException gce) {
+            String header = "Failed to push release finish";
+            exceptionMapper.handle(header, gce);
+        } catch (GitflowException ge) {
+            String header = "Failed to push release finish";
+            exceptionMapper.handle(header, ge);
         }
     }
 
     private String promptForExistingFeatureBranch(String prefix, List<String> featureBranches) throws MojoFailureException {
         List<String> choices = featureBranches;
 
         /* if current branch is a feature branch at it to start of list so it is the default in prompt */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (currentBranch.startsWith(prefix)) {
             choices = rearrange(currentBranch, featureBranches);
         }
 
         String name = "";
         try {
             prompter.promptChoice("Feature branches", "Please select a feature branch to finish", choices);
         } catch (IOException ex) {
             throw new MojoFailureException("Error reading feature name from command line " + ex.getMessage());
         }
         return name.trim();
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
index 3569e14..23bfa86 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
@@ -18,2 +18,3 @@ package com.dkirrane.maven.plugins.ggitflow;
 import com.dkirrane.gitflow.groovy.GitflowFeature;
+import com.dkirrane.gitflow.groovy.ex.GitCommandException;
 import com.dkirrane.gitflow.groovy.ex.GitflowException;
@@ -29,68 +30,72 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  * Creates a new feature branch off of the develop branch.
  */
 @Mojo(name = "feature-start", aggregator = true)
 public class FeatureStartMojo extends AbstractFeatureMojo {
 
     /**
      * The commit to start the feature branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     protected String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         String prefix = getFeatureBranchPrefix();
         if (StringUtils.isBlank(featureName)) {
             String message = "Please enter a feature branch name? " + prefix;
             try {
                 featureName = prompter.prompt(message);
                 if (StringUtils.isBlank(featureName)) {
                     throw new MojoFailureException("Parameter <featureName> cannot be null or empty.");
                 }
             } catch (IOException ex) {
                 throw new MojoExecutionException("Error reading feature name from command line " + ex.getMessage(), ex);
             }
         }
         featureName = trimFeatureName(featureName);
 
         getLog().info("Starting feature '" + featureName + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowFeature gitflowFeature = new GitflowFeature();
         gitflowFeature.setInit(getGitflowInit());
         gitflowFeature.setMsgPrefix(getMsgPrefix());
         gitflowFeature.setMsgSuffix(getMsgSuffix());
-        gitflowFeature.setPush(pushFeatureBranch);
+        gitflowFeature.setPush(true);
         gitflowFeature.setStartCommit(startCommit);
 
         try {
             gitflowFeature.start(featureName);
+        } catch (GitCommandException gce) {
+            String header = "Failed to run feature start";
+            exceptionMapper.handle(header, gce);
         } catch (GitflowException ge) {
-            throw new MojoFailureException(ge.getMessage());
+            String header = "Failed to run feature start";
+            exceptionMapper.handle(header, ge);
         }
 
         if (enableFeatureVersions) {
             /* Already on feature branch so just get its current version */
             Model model = MavenUtil.readPom(reactorProjects);
             String currentVersion = model.getVersion();
 
             String featureVersion = getFeatureVersion(currentVersion, featureName);
-            setVersion(featureVersion, pushFeatureBranch, prefix + featureName);
+            setVersion(featureVersion, prefix + featureName, true);
 
             if (getGitflowInit().gitRemoteBranchExists(prefix + featureName)) {
                 getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + featureName);
             }
 
             /* print feature version */
             reloadReactorProjects();
             getLog().debug("project = " + project.getVersion());
         }
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
index d167a79..d6532d8 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
@@ -18,7 +18,7 @@ package com.dkirrane.maven.plugins.ggitflow;
 import com.dkirrane.gitflow.groovy.GitflowHotfix;
+import com.dkirrane.gitflow.groovy.ex.GitCommandException;
 import com.dkirrane.gitflow.groovy.ex.GitflowException;
 import com.dkirrane.gitflow.groovy.ex.GitflowMergeConflictException;
-import static com.dkirrane.maven.plugins.ggitflow.AbstractGitflowMojo.DEFAULT_DEPLOY_ARGS;
-import com.google.common.collect.ImmutableList;
 import java.io.IOException;
+import java.util.Arrays;
 import java.util.List;
@@ -29,287 +29,222 @@ import org.apache.maven.plugins.annotations.Parameter;
 import org.codehaus.plexus.util.StringUtils;
+import org.jfrog.hudson.util.GenericArtifactVersion;
 
 /**
  * Merges a hotfix branch back into the develop and master branch and then
  * creates a tag for the hotfix on master.
  */
 @Mojo(name = "hotfix-finish", aggregator = true)
 public class HotfixFinishMojo extends AbstractHotfixMojo {
 
     protected String hotfixName;
 
-    /**
-     * If <code>true</code>, the hotfix finish merge to develop & master and
-     * created tag will get pushed to the remote repository
-     *
-     * @since 1.6
-     */
-    @Parameter(property = "pushHotfixFinish", defaultValue = "false", required = false)
-    protected boolean pushHotfixFinish;
-
     /**
      * If <code>true</code>, the hotfix can still finish even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private boolean allowSnapshots;
 
-    /**
-     * Skips any calls to <code>mvn install</code>
-     *
-     * @since 1.2
-     */
-    @Parameter(property = "skipBuild", defaultValue = "true", required = false)
-    private Boolean skipBuild;
-
-    /**
-     * Skips any calls to <code>mvn deploy</code>
-     *
-     * @since 1.2
-     */
-    @Parameter(property = "skipDeploy", defaultValue = "true", required = false)
-    private Boolean skipDeploy;
-
-    /**
-     * Skips any tests during <code>mvn install</code> and
-     * <code>mvn deploy</code>
-     *
-     * @since 1.2
-     */
-    @Parameter(property = "skipTests", defaultValue = "true", required = false)
-    private Boolean skipTests;
-
-    /**
-     * Whether to use the release profile that adds sources and javadoc to the
-     * released artifact, if appropriate. If set to true, the hotfix-finish will
-     * set the property "performRelease" to true, which activates the profile
-     * "release-profile", which is inherited from the super pom.
-     *
-     * @since 1.2
-     */
-    @Parameter(property = "useReleaseProfile", defaultValue = "true", required = false)
-    private Boolean useReleaseProfile;
-
-    /**
-     * Comma separated profiles to enable on deployment, in addition to active
-     * profiles for project execution.
-     *
-     * @since 1.2
-     */
-    @Parameter(property = "releaseProfiles", defaultValue = "", required = false)
-    private String releaseProfiles;
-
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
-    /**
-     * If <code>true</code>, the hotfix feature branch will not be deleted after
-     * the merge.
-     *
-     * @since 1.6
-     */
-    @Parameter(property = "keep", defaultValue = "false", required = false)
-    private Boolean keepLocal;
-
-    /**
-     * If <code>true</code>, the hotfix feature branch will not be deleted after
-     * the merge.
-     *
-     * @since 1.6
-     */
-    @Parameter(property = "keep", defaultValue = "true", required = false)
-    private Boolean keepRemote;
-
     /**
      * If <code>true</code>, the hotfix tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().debug("Finishing hotfix");
 
-        /* Fetch any new tags and prune any branches that may already be deleted */
-        getGitflowInit().executeRemote("git fetch --tags --prune");
-
         /* Get hotfix branch name */
         String prefix = getHotfixBranchPrefix();
         List<String> hotfixBranches = getGitflowInit().gitLocalHotfixBranches();
         if (hotfixBranches.isEmpty()) {
             throw new MojoFailureException("Could not find any local hotfix branch!");
         }
 
         if (StringUtils.isBlank(hotfixName)) {
             if (hotfixBranches.size() == 1) {
                 String hotfixBranch = hotfixBranches.get(0);
                 hotfixName = trimHotfixName(hotfixBranch);
             } else {
                 String hotfixBranch = promptForExistingHotfixBranch(prefix, hotfixBranches);
                 hotfixName = trimHotfixName(hotfixBranch);
             }
 
         } else {
             hotfixName = trimHotfixName(hotfixName);
             if (!getGitflowInit().gitLocalBranchExists(prefix + hotfixName)) {
                 throw new MojoFailureException("No local hotfix branch named '" + prefix + hotfixName + "' exists!");
             }
         }
 
         getLog().info("Finishing hotfix '" + hotfixName + "'");
 
         String hotfixBranch = prefix + hotfixName;
-
-        /* Switch to develop branch and get its current version */
+        String tagName = getVersionTagPrefix() + hotfixName;
         String developBranch = getGitflowInit().getDevelopBranch();
-        getGitflowInit().executeLocal("git checkout " + developBranch);
-        reloadReactorProjects();
-        String developVersion = project.getVersion();
-        getLog().debug("develop version = " + developVersion);
-
-        /* Switch to hotfix branch and set poms to hotfix version */
-        getGitflowInit().executeLocal("git checkout " + hotfixBranch);
-        reloadReactorProjects();
-        String hotfixVersion = project.getVersion();
-        getLog().debug("hotfix snapshot version = " + hotfixVersion);
-        String hotfixReleaseVersion = getReleaseVersion(hotfixVersion);
-        getLog().debug("hotfix release version = " + hotfixReleaseVersion);
-
-        boolean setVersion = setVersion(hotfixReleaseVersion, pushHotfixFinish, hotfixBranch);
-
-        if (!allowSnapshots) {
-            reloadReactorProjects();
-            try {
-                checkForSnapshotDependencies();
-            } catch (MojoExecutionException mee) {
-                // reset setVersion commit and allow user fix & push SNAPSHOT dependencies
-                // but can only reset if the commit has not been pushed */
-                if (!pushHotfixFinish && setVersion) {
-                    getGitflowInit().executeLocal("git reset --hard HEAD~1");
-                }
-                throw mee;
-            }
-        }
+        String masterBranch = getGitflowInit().getMasterBranch();
+        String origin = getGitflowInit().getOrigin();
 
-        /* finish hotfix */
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
-        gitflowHotfix.setPush(pushHotfixBranch);
+        gitflowHotfix.setPush(false);
         gitflowHotfix.setSquash(squash);
-        gitflowHotfix.setKeepLocal(keepLocal);
-        gitflowHotfix.setKeepRemote(keepRemote);
         gitflowHotfix.setSign(sign);
         gitflowHotfix.setSigningkey(signingkey);
 
-        /* 1. merge to master */
-        try {
-            gitflowHotfix.finishToMaster(hotfixBranch, pushHotfixFinish);
-        } catch (GitflowException | GitflowMergeConflictException ge) {
-            throw new MojoFailureException(ge.getMessage());
+        /* Switch to hotfix branch and set poms to hotfix version */
+        getGitflowInit().executeLocal("git checkout " + hotfixBranch);
+        reloadReactorProjects();
+        GenericArtifactVersion artifactVersion = new GenericArtifactVersion(project.getVersion());
+        String hotfixVersion;
+        if ("SNAPSHOT".equals(artifactVersion.getBuildSpecifier())) {
+            hotfixVersion = getReleaseVersion(project.getVersion());
+        } else {
+            hotfixVersion = project.getVersion();
+        }
+        getLog().debug("hotfix version = " + hotfixVersion);
+
+        /* If tag exists we skip merge to master as merge already took place. Possible re-run after merge conflict */
+        if (!getGitflowInit().gitTagExists(tagName)) { // @TODO and should also check that last hotfix branch commit is on master
+
+            /* Before setting hotfix version check if hotfix branch was already merged to master */
+            boolean setVersion = setVersion(hotfixVersion, hotfixBranch, false); // don't push so can can reset if needed
+
+            if (!allowSnapshots) {
+                reloadReactorProjects();
+                try {
+                    checkForSnapshotDependencies();
+                } catch (MojoExecutionException mee) {
+                    // reset setVersion commits to allow user fix & push SNAPSHOT dependencies
+                    // but can only reset if it the commits have not been pushed */
+                    if (setVersion) {
+                        getGitflowInit().executeLocal("git reset --hard HEAD~1");
+                    }
+                    exceptionMapper.handle(mee);
+                }
+            }
+
+            /* 1. merge to master */
+            try {
+                gitflowHotfix.finishToMaster(hotfixBranch, tagName);
+            } catch (GitCommandException gce) {
+                String header = "Error merging branch '" + hotfixBranch + "' into '" + masterBranch + "'";
+                exceptionMapper.handle(header, gce);
+            } catch (GitflowException ge) {
+                String header = "Error merging branch '" + hotfixBranch + "' into '" + masterBranch + "'";
+                exceptionMapper.handle(header, ge);
+            } catch (GitflowMergeConflictException gmce) {
+                String header = "Merge conflict merging branch '" + hotfixBranch + "' into '" + masterBranch + "'";
+                exceptionMapper.handle(header, gmce);
+            }
+        } else {
+            getLog().warn("Tag " + tagName + " already exists. Skipping merge of hotfix branch '" + hotfixBranch + "' into '" + masterBranch + "'");
         }
 
         /* 2. make versions in hotfix and develop branches match to avoid conflicts */
+        getGitflowInit().executeLocal("git checkout " + developBranch);
+        reloadReactorProjects();
+        String developVersion = project.getVersion();
+        getLog().debug("develop version = " + developVersion);
         getGitflowInit().executeLocal("git checkout " + hotfixBranch);
         reloadReactorProjects();
-        boolean setDevVersion = setVersion(developVersion, pushHotfixFinish, hotfixBranch);
+        boolean setDevVersion = setVersion(developVersion, hotfixBranch, false); // don't push so can can reset if needed
 
         /* 3. merge to develop */
         try {
-            gitflowHotfix.finishToDevelop(hotfixBranch, pushHotfixFinish);
+            gitflowHotfix.finishToDevelop(hotfixBranch, tagName);
+        } catch (GitCommandException gce) {
+            // reset setVersion commit and allow user fix whatever exception occurred
+            // but can only reset if the commit has not been pushed
+            if (setDevVersion) {
+                getGitflowInit().executeLocal("git reset --hard HEAD~1");
+            }
+            String header = "Error merging branch '" + hotfixBranch + "' into '" + developBranch + "'";
+            exceptionMapper.handle(header, gce);
         } catch (GitflowException ge) {
             // reset setVersion commit and allow user fix whatever exception occurred
-            // but can only reset if the commit has not been pushed */
-            if (!pushHotfixFinish && setDevVersion) {
+            // but can only reset if the commit has not been pushed
+            if (setDevVersion) {
                 getGitflowInit().executeLocal("git reset --hard HEAD~1");
             }
-            throw new MojoFailureException(ge.getMessage());
+            String header = "Error merging branch '" + hotfixBranch + "' into '" + developBranch + "'";
+            exceptionMapper.handle(header, ge);
         } catch (GitflowMergeConflictException gmce) {
-            // If a merge conflict arises we don't want to reset setDevVersion commit
-            throw new MojoFailureException(gmce.getMessage());
+            String header = "Merge conflict merging branch '" + hotfixBranch + "' into '" + developBranch + "'";
+            exceptionMapper.handle(header, gmce);
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
-        /* Switch to hotfix tag and deploy it */
-        getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + hotfixReleaseVersion);
-        reloadReactorProjects();
-        String tagVersion = project.getVersion();
-        getLog().debug("tag version = " + tagVersion);
+        /* Push merges and tag */
+        try {
+            prompter.pushPrompt("Are you ready to push?", Arrays.asList(tagName, masterBranch, developBranch), Arrays.asList(hotfixBranch, origin + '/' + hotfixBranch));
 
-        /* install or deploy */
-        if (skipDeploy == false) {
-            String goals = "clean deploy";
-            if (project.getDistributionManagement() != null
-                    && project.getDistributionManagement().getSite() != null) {
-                goals += " site-deploy";
+            boolean yes;
+            try {
+                yes = prompter.promptYesNo("Do you want to continue");
+            } catch (IOException e) {
+                throw new MojoFailureException("Error reading user input from command line " + e.getMessage());
             }
 
-            ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<>();
-            additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
-            if (skipTests) {
-                additionalArgs.add("-DskipTests=true");
-            }
-            if (useReleaseProfile) {
-                additionalArgs.add("-DperformRelease=true");
-            }
-            if (StringUtils.isNotBlank(releaseProfiles)) {
-                Iterable<String> profiles = PROFILES_SPLITTER.split(releaseProfiles);
-                additionalArgs.add("-P " + PROFILES_JOINER.join(profiles));
-            }
-            runGoals(goals, additionalArgs.build());
-        } else if (skipBuild == false) {
-            ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<>();
-            additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
-            if (skipTests) {
-                additionalArgs.add("-DskipTests=true");
+            if (yes) {
+                gitflowHotfix.publish(hotfixBranch, tagName, true);
+            } else {
+                gitflowHotfix.publish(hotfixBranch, tagName, false);
             }
-            runGoals("clean install", additionalArgs.build());
-        } else {
-            getLog().debug("Skipping both install and deploy for hotfix tag " + hotfixName);
+        } catch (GitCommandException gce) {
+            String header = "Failed to push hotfix finish";
+            exceptionMapper.handle(header, gce);
+        } catch (GitflowException ge) {
+            String header = "Failed to push hotfix finish";
+            exceptionMapper.handle(header, ge);
         }
-
-        getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingHotfixBranch(String prefix, List<String> hotfixBranches) throws MojoFailureException {
         List<String> choices = hotfixBranches;
 
         /* if current branch is a feature branch at it to start of list so it is the default in prompt */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (currentBranch.startsWith(prefix)) {
             choices = rearrange(currentBranch, hotfixBranches);
         }
 
         String name = "";
         try {
             prompter.promptChoice("Hotfix branches", "Please select a hotfix branch to finish", choices);
         } catch (IOException ex) {
             throw new MojoFailureException("Error reading hotfix name from command line " + ex.getMessage());
         }
         return name.trim();
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
index 6551a73..2b2e386 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
@@ -18,2 +18,3 @@ package com.dkirrane.maven.plugins.ggitflow;
 import com.dkirrane.gitflow.groovy.GitflowHotfix;
+import com.dkirrane.gitflow.groovy.ex.GitCommandException;
 import com.dkirrane.gitflow.groovy.ex.GitflowException;
@@ -27,78 +28,79 @@ import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
 /**
  * Creates a new hotfix branch off of the master branch.
  */
 @Mojo(name = "hotfix-start", aggregator = true)
 public class HotfixStartMojo extends AbstractHotfixMojo {
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
-        /* Fetch any new tags and prune any branches that may already be deleted */
-        getGitflowInit().executeRemote("git fetch --tags --prune");
-
         /* Switch to master branch and get current version i.e. lastest tag */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getMasterBrnName());
         reloadReactorProjects();
         String masterVersion = project.getVersion();
         getLog().debug("master version = " + masterVersion);
 
         String hotfixVersion = getHotfixVersion(masterVersion);
         String hotfixSnapshotVersion = getHotfixSnapshotVersion(masterVersion);
 
         getLog().info("Starting hotfix '" + hotfixVersion + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
-        gitflowHotfix.setPush(pushHotfixBranch);
+        gitflowHotfix.setPush(true);
 
         try {
             gitflowHotfix.start(hotfixVersion);
+        } catch (GitCommandException gce) {
+            String header = "Failed to run hotfix start";
+            exceptionMapper.handle(header, gce);
         } catch (GitflowException ge) {
-            throw new MojoFailureException(ge.getMessage());
+            String header = "Failed to run hotfix start";
+            exceptionMapper.handle(header, ge);
         }
 
         String prefix = getGitflowInit().getHotfixBranchPrefix();
 
-        setVersion(hotfixSnapshotVersion, pushHotfixBranch, prefix + hotfixVersion);
+        setVersion(hotfixSnapshotVersion, prefix + hotfixVersion, true);
 
         if (getGitflowInit().gitRemoteBranchExists(prefix + hotfixVersion)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + hotfixVersion);
         }
     }
 
     private String getHotfixVersion(String currentVersion) throws MojoFailureException {
         getLog().debug("getHotfixVersion from '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         final StringBuilder result = new StringBuilder(30);
         if (artifactVersion.getPrimaryNumberCount() < 3) {
             String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
             String annotationAsString = artifactVersion.getAnnotationAsString();
             result.append(primaryNumbersAsString).append('.').append('1');
             result.append(annotationAsString);
         } else {
             artifactVersion.upgradeLeastSignificantNumber();
             result.append(artifactVersion.toString());
         }
         return result.toString();
     }
 
     private String getHotfixSnapshotVersion(String currentVersion) throws MojoFailureException {
         getLog().debug("getHotfixSnapshotVersion from '" + currentVersion + "'");
 
         final StringBuilder result = new StringBuilder(30);
 
         String hotfixVersion = getHotfixVersion(currentVersion);
         result.append(hotfixVersion);
 
         result.append(DEFAULT_VERSION_COMPONENT_SEPARATOR).append(SNAPSHOT_QUALIFIER);
 
         return result.toString();
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index d144db9..538b32e 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -18,8 +18,7 @@ package com.dkirrane.maven.plugins.ggitflow;
 import com.dkirrane.gitflow.groovy.GitflowRelease;
+import com.dkirrane.gitflow.groovy.ex.GitCommandException;
 import com.dkirrane.gitflow.groovy.ex.GitflowException;
 import com.dkirrane.gitflow.groovy.ex.GitflowMergeConflictException;
-import static com.dkirrane.maven.plugins.ggitflow.AbstractGitflowMojo.DEFAULT_DEPLOY_ARGS;
-import static com.dkirrane.maven.plugins.ggitflow.AbstractGitflowMojo.PROFILES_SPLITTER;
-import com.google.common.collect.ImmutableList;
 import java.io.IOException;
+import java.util.Arrays;
 import java.util.List;
@@ -33,348 +32,267 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  * Merges a release branch back into the develop and master branch and then
  * creates a tag for the release on master.
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
 
-    /**
-     * If <code>true</code>, the release finish merge to develop & master and
-     * the created tag will get pushed to the remote repository
-     *
-     * @since 1.6
-     */
-    @Parameter(property = "pushReleaseFinish", defaultValue = "false", required = false)
-    protected boolean pushReleaseFinish;
-
-    /**
-     * If <code>true</code>, the release can still finish even if
-     * <code>-SNAPSHOT</code> dependencies exists in the pom.
-     *
-     * @since 1.2
-     */
-    @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
-    private Boolean allowSnapshots;
-
     /**
      * If the project has a parent with a release version it will be replaced
      * with the next <code>-SNAPSHOT</code> version (if it has been deployed).
      * This action is performed on the develop branch after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "updateParent", defaultValue = "false", required = false)
     private Boolean updateParent;
 
     /**
      * On the release branch before finish is called any dependencies with a
      * <code>-SNAPSHOT</code> version are replaced with the corresponding
      * release version (if it has been released).
      *
      * On the develop branch after the merge any dependencies with a release
      * version are replaced with the next <code>-SNAPSHOT</code> version (if it
      * has been deployed).
      *
      * @since 1.2
      */
     @Parameter(property = "updateDependencies", defaultValue = "false", required = false)
     private Boolean updateDependencies;
 
     /**
      * If <code>updateDependencies</code> is set, then this should contain a
      * comma separated list of artifact patterns to include. Follows the pattern <code>groupId:artifactId:type:classifier:version<code>
      *
      * @since 1.5
      */
     @Parameter(property = "includes", defaultValue = "", required = false)
     private String includes;
 
     /**
-     * Skips any calls to <code>mvn install</code>
-     *
-     * @since 1.2
-     */
-    @Parameter(property = "skipBuild", defaultValue = "true", required = false)
-    private Boolean skipBuild;
-
-    /**
-     * Skips any calls to <code>mvn deploy</code>
-     *
-     * @since 1.2
-     */
-    @Parameter(property = "skipDeploy", defaultValue = "true", required = false)
-    private Boolean skipDeploy;
-
-    /**
-     * Skips any tests during <code>mvn install</code> and
-     * <code>mvn deploy</code>
-     *
-     * @since 1.2
-     */
-    @Parameter(property = "skipTests", defaultValue = "true", required = false)
-    private Boolean skipTests;
-
-    /**
-     * Whether to use the release profile that adds sources and javadoc to the
-     * released artifact, if appropriate. If set to true, the release-finish
-     * will set the property "performRelease" to true, which activates the
-     * profile "release-profile", which is inherited from the super pom.
-     *
-     * @since 1.2
-     */
-    @Parameter(property = "useReleaseProfile", defaultValue = "true", required = false)
-    private Boolean useReleaseProfile;
-
-    /**
-     * Comma separated profiles to enable on deployment, in addition to active
-     * profiles for project execution.
+     * If <code>true</code>, the release can still finish even if
+     * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
-    @Parameter(property = "releaseProfiles", defaultValue = "", required = false)
-    private String releaseProfiles;
+    @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
+    private Boolean allowSnapshots;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
-    /**
-     * If <code>true</code>, the local release branch will not be deleted after
-     * the merge.
-     *
-     * @since 1.6
-     */
-    @Parameter(property = "keep", defaultValue = "false", required = false)
-    private Boolean keepLocal;
-
-    /**
-     * If <code>true</code>, the remote release branch will not be deleted after
-     * the merge.
-     *
-     * @since 1.6
-     */
-    @Parameter(property = "keep", defaultValue = "true", required = false)
-    private Boolean keepRemote;
-
     /**
      * If <code>true</code>, the release tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().debug("Finishing release");
 
-        /* Fetch any new tags and prune any branches that may already be deleted */
-        getGitflowInit().executeRemote("git fetch --tags --prune");
-
         /* Get release branch name */
         String prefix = getReleaseBranchPrefix();
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
         if (releaseBranches.isEmpty()) {
             throw new MojoFailureException("Could not find any local release branch!");
         }
 
         if (StringUtils.isBlank(releaseName)) {
             if (releaseBranches.size() == 1) {
                 String releaseBranch = releaseBranches.get(0);
                 releaseName = trimReleaseName(releaseBranch);
             } else {
                 String releaseBranch = promptForExistingReleaseBranch(prefix, releaseBranches);
                 releaseName = trimReleaseName(releaseBranch);
             }
 
         } else {
             releaseName = trimReleaseName(releaseName);
             if (!getGitflowInit().gitLocalBranchExists(prefix + releaseName)) {
                 throw new MojoFailureException("No local release branch named '" + prefix + releaseName + "' exists!");
             }
         }
 
         getLog().info("Finishing release '" + releaseName + "'");
 
         String releaseBranch = prefix + releaseName;
+        String tagName = getVersionTagPrefix() + releaseName;
         String developBranch = getGitflowInit().getDevelopBranch();
         String masterBranch = getGitflowInit().getMasterBranch();
+        String origin = getGitflowInit().getOrigin();
 
-        /* Switch to develop branch and get its current version */
-        getGitflowInit().executeLocal("git checkout " + developBranch);
-        reloadReactorProjects();
-        String developVersion = project.getVersion();
-        getLog().debug("develop version = " + developVersion);
+        GitflowRelease gitflowRelease = new GitflowRelease();
+        gitflowRelease.setInit(getGitflowInit());
+        gitflowRelease.setMsgPrefix(getMsgPrefix());
+        gitflowRelease.setMsgSuffix(getMsgSuffix());
+        gitflowRelease.setPush(false);
+        gitflowRelease.setSquash(squash);
+        gitflowRelease.setSign(sign);
+        gitflowRelease.setSigningkey(signingkey);
 
         /* Switch to release branch and set poms to release version */
         getGitflowInit().executeLocal("git checkout " + releaseBranch);
         reloadReactorProjects();
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(project.getVersion());
         String releaseVersion;
         if ("SNAPSHOT".equals(artifactVersion.getBuildSpecifier())) {
             releaseVersion = getReleaseVersion(project.getVersion());
         } else {
             releaseVersion = project.getVersion();
         }
         getLog().debug("release version = " + releaseVersion);
 
-        boolean setVersion = setVersion(releaseVersion, pushReleaseFinish, releaseBranch);
+        /* If tag exists we skip merge to master as merge already took place. Possible re-run after merge conflict */
+        if (!getGitflowInit().gitTagExists(tagName)) { // @TODO and should also check that last release branch commit is on master
 
-        /* Update release branch dependencies to release version */
-        boolean setNextVersions = false;
-        if (updateDependencies) {
-            reloadReactorProjects();
-            setNextVersions = setNextVersions(false, updateParent, includes);
-        }
+            /* Before setting release version check if release branch was already merged to master */
+            boolean setVersion = setVersion(releaseVersion, releaseBranch, false); // don't push so can can reset if needed
 
-        if (!allowSnapshots) {
-            reloadReactorProjects();
-            try {
-                checkForSnapshotDependencies();
-            } catch (MojoExecutionException mee) {
-                // reset setNextVersions and/or setVersion commits to allow user fix & push SNAPSHOT dependencies
-                // but can only reset if it the commits have not been pushed */
-                if (!pushReleaseFinish) {
+            /* Update release branch dependencies to release version */
+            boolean setNextVersions = false;
+            if (updateDependencies) {
+                reloadReactorProjects();
+                setNextVersions = setNextVersions(false, updateParent, includes);
+            }
+
+            if (!allowSnapshots) {
+                reloadReactorProjects();
+                try {
+                    checkForSnapshotDependencies();
+                } catch (MojoExecutionException mee) {
+                    // reset setNextVersions and/or setVersion commits to allow user fix & push SNAPSHOT dependencies
+                    // but can only reset if it the commits have not been pushed */
                     if (setNextVersions) {
                         getGitflowInit().executeLocal("git reset --hard HEAD~1");
                     }
                     if (setVersion) {
                         getGitflowInit().executeLocal("git reset --hard HEAD~1");
                     }
+                    exceptionMapper.handle(mee);
                 }
-                throw mee;
             }
-        }
 
-        /* finish release */
-        GitflowRelease gitflowRelease = new GitflowRelease();
-        gitflowRelease.setInit(getGitflowInit());
-        gitflowRelease.setMsgPrefix(getMsgPrefix());
-        gitflowRelease.setMsgSuffix(getMsgSuffix());
-        gitflowRelease.setPush(pushReleaseBranch);
-        gitflowRelease.setSquash(squash);
-        gitflowRelease.setKeepLocal(keepLocal);
-        gitflowRelease.setKeepRemote(keepRemote);
-        gitflowRelease.setSign(sign);
-        gitflowRelease.setSigningkey(signingkey);
-
-        /* 1. merge to master */
-        try {
-            gitflowRelease.finishToMaster(releaseBranch, pushReleaseFinish);
-        } catch (GitflowException ge) {
-            String header = "Error merging branch '" + releaseBranch + "' into '" + masterBranch + "'";
-            freeMarker.logError(header, ge.getMessage());
-            throw new MojoFailureException(header);
-        } catch (GitflowMergeConflictException gmce) {
-            String header = "Merge conflict merging branch '" + releaseBranch + "' into '" + masterBranch + "'";
-            freeMarker.logMergeConflict(header, gmce.getMessage(), gmce.getConflictedFiles());
-            throw new MojoFailureException(header);
+            /* 1. merge to master */
+            try {
+                gitflowRelease.finishToMaster(releaseBranch, tagName);
+            } catch (GitCommandException gce) {
+                String header = "Error merging branch '" + releaseBranch + "' into '" + masterBranch + "'";
+                exceptionMapper.handle(header, gce);
+            } catch (GitflowException ge) {
+                String header = "Error merging branch '" + releaseBranch + "' into '" + masterBranch + "'";
+                exceptionMapper.handle(header, ge);
+            } catch (GitflowMergeConflictException gmce) {
+                String header = "Merge conflict merging branch '" + releaseBranch + "' into '" + masterBranch + "'";
+                exceptionMapper.handle(header, gmce);
+            }
+        } else {
+            getLog().warn("Tag " + tagName + " already exists. Skipping merge of release branch '" + releaseBranch + "' into '" + masterBranch + "'");
         }
 
         /* 2. make versions in release and develop branches match to avoid conflicts */
+        getGitflowInit().executeLocal("git checkout " + developBranch);
+        reloadReactorProjects();
+        String developVersion = project.getVersion();
+        getLog().debug("develop version = " + developVersion);
         getGitflowInit().executeLocal("git checkout " + releaseBranch);
         reloadReactorProjects();
-        boolean setDevVersion = setVersion(developVersion, pushReleaseFinish, releaseBranch);
+        boolean setDevVersion = setVersion(developVersion, releaseBranch, false); // don't push so can can reset if needed
 
         /* 3. merge to develop */
         try {
-            gitflowRelease.finishToDevelop(releaseBranch, pushReleaseFinish);
+            gitflowRelease.finishToDevelop(releaseBranch, tagName);
+        } catch (GitCommandException gce) {
+            // reset setVersion commit and allow user fix whatever exception occurred
+            // but can only reset if the commit has not been pushed
+            if (setDevVersion) {
+                getGitflowInit().executeLocal("git reset --hard HEAD~1");
+            }
+            String header = "Error merging branch '" + releaseBranch + "' into '" + developBranch + "'";
+            exceptionMapper.handle(header, gce);
         } catch (GitflowException ge) {
             // reset setVersion commit and allow user fix whatever exception occurred
             // but can only reset if the commit has not been pushed
-            if (!pushReleaseFinish && setDevVersion) {
+            if (setDevVersion) {
                 getGitflowInit().executeLocal("git reset --hard HEAD~1");
             }
             String header = "Error merging branch '" + releaseBranch + "' into '" + developBranch + "'";
-            freeMarker.logError(header, ge.getMessage());
-            throw new MojoFailureException(header);
+            exceptionMapper.handle(header, ge);
         } catch (GitflowMergeConflictException gmce) {
             String header = "Merge conflict merging branch '" + releaseBranch + "' into '" + developBranch + "'";
-            freeMarker.logMergeConflict(header, gmce.getMessage(), gmce.getConflictedFiles());
-            throw new MojoFailureException(header);
+            exceptionMapper.handle(header, gmce);
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
-        /* Update develop branch dependencies to next snapshot version (if deployed) */
-        if (updateDependencies) {
-            reloadReactorProjects();
-            setNextVersions(true, updateParent, includes);
-        }
+        /* Push merges and tag */
+        try {
+            prompter.pushPrompt("Are you ready to push?", Arrays.asList(tagName, masterBranch, developBranch), Arrays.asList(releaseBranch, origin + '/' + releaseBranch));
 
-        /* Switch to release tag and deploy it */
-        getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);
-        reloadReactorProjects();
-        String tagVersion = project.getVersion();
-        getLog().debug("tag version = " + tagVersion);
-
-        /* install or deploy */
-        if (skipDeploy == false) {
-            String goals = "clean deploy";
-            if (project.getDistributionManagement() != null
-                    && project.getDistributionManagement().getSite() != null) {
-                goals += " site-deploy";
+            boolean yes;
+            try {
+                yes = prompter.promptYesNo("Do you want to continue");
+            } catch (IOException e) {
+                throw new MojoFailureException("Error reading user input from command line " + e.getMessage());
             }
 
-            ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<>();
-            additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
-            if (skipTests) {
-                additionalArgs.add("-DskipTests=true");
-            }
-            if (useReleaseProfile) {
-                additionalArgs.add("-DperformRelease=true");
-            }
-            if (StringUtils.isNotBlank(releaseProfiles)) {
-                Iterable<String> profiles = PROFILES_SPLITTER.split(releaseProfiles);
-                additionalArgs.add("-P " + PROFILES_JOINER.join(profiles));
-            }
-            runGoals(goals, additionalArgs.build());
-        } else if (skipBuild == false) {
-            ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<>();
-            additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
-            if (skipTests) {
-                additionalArgs.add("-DskipTests=true");
+            if (yes) {
+                gitflowRelease.publish(releaseBranch, tagName, true);
+            } else {
+                gitflowRelease.publish(releaseBranch, tagName, false);
             }
-            runGoals("clean install", additionalArgs.build());
-        } else {
-            getLog().debug("Skipping both install and deploy for release tag " + releaseBranch);
+        } catch (GitCommandException gce) {
+            String header = "Failed to push release finish";
+            exceptionMapper.handle(header, gce);
+        } catch (GitflowException ge) {
+            String header = "Failed to push release finish";
+            exceptionMapper.handle(header, ge);
+        }
+
+        /* Update develop branch dependencies to next snapshot version (if deployed) */
+        if (updateDependencies) {
+            reloadReactorProjects();
+            setNextVersions(true, updateParent, includes);
         }
 
-        getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingReleaseBranch(String prefix, List<String> releaseBranches) throws MojoFailureException {
         List<String> choices = releaseBranches;
 
         /* if current branch is a feature branch at it to start of list so it is the default in prompt */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (currentBranch.startsWith(prefix)) {
             choices = rearrange(currentBranch, releaseBranches);
         }
 
         String name = "";
         try {
             prompter.promptChoice("Release branches", "Please select a release branch to finish", choices);
         } catch (IOException ex) {
             throw new MojoFailureException("Error reading release name from command line " + ex.getMessage());
         }
         return name.trim();
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
index ceed496..2f42509 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
@@ -18,2 +18,3 @@ package com.dkirrane.maven.plugins.ggitflow;
 import com.dkirrane.gitflow.groovy.GitflowRelease;
+import com.dkirrane.gitflow.groovy.ex.GitCommandException;
 import com.dkirrane.gitflow.groovy.ex.GitflowException;
@@ -29,155 +30,156 @@ import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
 /**
  * Creates a new release branch off of the develop branch.
  */
 @Mojo(name = "release-start", aggregator = true)
 public class ReleaseStartMojo extends AbstractReleaseMojo {
 
     /**
      * If the project has a parent with a <code>-SNAPSHOT</code> version it will
      * be replaced with the corresponding release version (if it has been
      * released). This action is performed on the release branch after it is
      * created.
      *
      * @since 1.2
      */
     @Parameter(property = "updateParent", defaultValue = "false", required = false)
     private boolean updateParent;
 
     /**
      * Any dependencies with a <code>-SNAPSHOT</code> version are replaced with
      * the corresponding release version (if it has been released). This action
      * is performed on the release branch after it is created.
      *
      * @since 1.2
      */
     @Parameter(property = "updateDependencies", defaultValue = "false", required = false)
     private boolean updateDependencies;
 
     /**
      * If <code>updateDependencies</code> is set, then this should contain a
      * comma separated list of artifact patterns to include. Follows the pattern <code>groupId:artifactId:type:classifier:version<code>
      *
      * @since 1.5
      */
     @Parameter(property = "includes", defaultValue = "", required = false)
     private String includes;
 
     /**
      * The commit to start the release branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     private String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
-        /* Fetch any new tags and prune any branches that may already be deleted */
-        getGitflowInit().executeRemote("git fetch --tags --prune");
-
         /* Switch to develop branch and get its current version */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
         reloadReactorProjects();
 
         String developVersion = project.getVersion();
         getLog().info("Current develop version = " + developVersion);
 
         /* Get next development version */
         String nextDevelopVersion = getNextDevelopVersion(developVersion);
         if (session.getRequest().isInteractiveMode()) {
             try {
                 nextDevelopVersion = prompter.promptWithDefault("Please enter the next development version? ", nextDevelopVersion);
             } catch (IOException ex) {
                 throw new MojoExecutionException("Error reading next development version from command line " + ex.getMessage(), ex);
             }
         }
         getLog().debug("Next development version = " + developVersion);
 
         /* Get suggested release version */
         String releaseVersion = getReleaseVersion(developVersion);
         getLog().debug("release version = " + releaseVersion);
 
         /* create release branch */
         String prefix = getReleaseBranchPrefix();
         if (!StringUtils.isBlank(releaseName)) {
             getLog().debug("Using releaseName passed  '" + releaseName + "'");
         } else if (session.getRequest().isInteractiveMode()) {
             try {
                 releaseName = prompter.promptWithDefault("Please enter the release branch name? " + prefix, releaseVersion);
             } catch (IOException ex) {
                 throw new MojoExecutionException("Error reading release name from command line " + ex.getMessage(), ex);
             }
         } else {
             releaseName = releaseVersion;
         }
 
         releaseName = trimReleaseName(releaseName);
 
         if (StringUtils.isBlank(releaseName)) {
             throw new MojoFailureException("Parameter <releaseName> cannot be null or empty.");
         }
 
         GenericArtifactVersion releaseArtifactVersion;
         try {
             releaseArtifactVersion = new GenericArtifactVersion(releaseName);
             if (SNAPSHOT_QUALIFIER.equals(releaseArtifactVersion.getBuildSpecifier())) {
                 throw new IllegalArgumentException("Parameter <releaseName> is not a release version as it contains SNAPSHOT build specifier");
             }
         } catch (IllegalArgumentException e) {
             throw new MojoExecutionException("Parameter <releaseName> value '" + releaseName + "' is not a valid Maven release version.");
         }
 
         getLog().info("Starting release '" + releaseName + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
-        gitflowRelease.setPush(pushReleaseBranch);
+        gitflowRelease.setPush(true);
         gitflowRelease.setStartCommit(startCommit);
 
         try {
             gitflowRelease.start(releaseName);
+        } catch (GitCommandException gce) {
+            String header = "Failed to run release start";
+            exceptionMapper.handle(header, gce);
         } catch (GitflowException ge) {
-            throw new MojoFailureException(ge.getMessage());
+            String header = "Failed to run release start";
+            exceptionMapper.handle(header, ge);
         }
 
         // current branch should be the release branch
         String releaseBranch = getGitflowInit().gitCurrentBranch();
         if (!releaseBranch.startsWith(prefix)) {
             throw new MojoFailureException("Failed to create release version.");
         }
 
         /* Update release branch dependencies to release version */
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions(false, updateParent, includes);
         }
 
         // checkout develop branch and update it's version
         String developBranch = (String) getGitflowInit().getDevelopBrnName();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
-        setVersion(nextDevelopVersion, pushReleaseBranch, developBranch);
+        setVersion(nextDevelopVersion, developBranch, true);
 
         // checkout release branch again and update it's version to required release version
         getGitflowInit().executeLocal("git checkout " + releaseBranch);
         reloadReactorProjects();
-        setVersion(releaseArtifactVersion.setBuildSpecifier(SNAPSHOT_QUALIFIER).toString(), pushReleaseBranch, releaseBranch);
+        setVersion(releaseArtifactVersion.setBuildSpecifier(SNAPSHOT_QUALIFIER).toString(), releaseBranch, true);
     }
 
     public String getReleaseName() {
         return releaseName;
     }
 
     private String getNextDevelopVersion(String developVersion) {
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(developVersion);
         artifactVersion.upgradeLeastSignificantPrimaryNumber();
 
         return artifactVersion.toString();
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
index 5bd4a85..979fa67 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
@@ -18,2 +18,3 @@ package com.dkirrane.maven.plugins.ggitflow;
 import com.dkirrane.gitflow.groovy.GitflowSupport;
+import com.dkirrane.gitflow.groovy.ex.GitCommandException;
 import com.dkirrane.gitflow.groovy.ex.GitflowException;
@@ -28,72 +29,67 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  * Creates a new support branch from a specific commit on the master branch.
  */
 @Mojo(name = "support-start", aggregator = true)
 public class SupportStartMojo extends AbstractSupportMojo {
 
-    /**
-     * If <code>true</code>, the support branch is pushed to the remote
-     * repository.
-     *
-     * @since 1.2
-     */
-    @Parameter(property = "pushSupportBranch", defaultValue = "true", required = false)
-    protected boolean pushSupportBranch;
-
     /**
      * The commit to start the support branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     protected String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         String prefix = getGitflowInit().getSupportBranchPrefix();
 
         List<String> localTags = getGitflowInit().gitLocalTags();
         if (localTags.isEmpty()) {
             throw new MojoFailureException("Could not find any local tags to create support branch from!");
         }
 
         if (StringUtils.isBlank(startCommit)) {
             try {
                 startCommit = prompter.promptChoice("Support branches", "Please select a tag to create Support branch from", localTags);
             } catch (IOException ex) {
                 throw new MojoFailureException("Error reading tag name from command line " + ex.getMessage());
             }
         }
 
         getGitflowInit().executeLocal("git checkout " + startCommit);
         reloadReactorProjects();
         String supportVersion = getSupportVersion(project.getVersion());
         String supportSnapshotVersion = getSupportSnapshotVersion(project.getVersion());
 
         getLog().info("Starting support branch '" + supportVersion + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowSupport gitflowSupport = new GitflowSupport();
         gitflowSupport.setInit(getGitflowInit());
         gitflowSupport.setMsgPrefix(getMsgPrefix());
         gitflowSupport.setMsgSuffix(getMsgSuffix());
-        gitflowSupport.setPush(pushSupportBranch);
+        gitflowSupport.setPush(true);
         gitflowSupport.setStartCommit(startCommit);
 
         try {
             gitflowSupport.start(supportVersion);
+        } catch (GitCommandException gce) {
+            String header = "Failed to run support start";
+            exceptionMapper.handle(header, gce);
         } catch (GitflowException ge) {
-            throw new MojoFailureException(ge.getMessage());
+            String header = "Failed to run support start";
+            exceptionMapper.handle(header, ge);
         }
 
-        setVersion(supportSnapshotVersion, pushSupportBranch, prefix + supportVersion);
+        setVersion(supportSnapshotVersion, prefix + supportVersion, false);
 
         if (getGitflowInit().gitRemoteBranchExists(prefix + supportVersion)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + supportVersion);
         }
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportTagMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportTagMojo.java
index 931a766..dbe81dd 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportTagMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportTagMojo.java
@@ -27,159 +27,157 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  * Creates a tag on a support branch when releasing of a support branch. Note:
  * this does not merge support branch changes back to develop
  */
 @Mojo(name = "support-tag", aggregator = true)
 public class SupportTagMojo extends AbstractSupportMojo {
 
     /**
      * If <code>true</code>, the tag can still get created even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 2.3
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private Boolean allowSnapshots;
 
     /**
      * If <code>true</code>, the support tag will be signed.
      *
      * @since 2.3
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 2.3
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().debug("Tagging support branch");
 
-        /* Fetch any new tags and prune any branches that may already be deleted */
-        getGitflowInit().executeRemote("git fetch --tags --prune");
-
         /* Get support branch name */
         String prefix = getSupportBranchPrefix();
         List<String> supportBranches = getGitflowInit().gitLocalSupportBranches();
         if (supportBranches.isEmpty()) {
             throw new MojoFailureException("Could not find any local support branch!");
         }
 
         if (StringUtils.isBlank(supportName)) {
             if (supportBranches.size() == 1) {
                 String supportBranch = supportBranches.get(0);
                 supportName = trimSupportName(supportBranch);
             } else {
                 String supportBranch = promptForExistingSupportBranch(prefix, supportBranches);
                 supportName = trimSupportName(supportBranch);
             }
 
         } else {
             supportName = trimSupportName(supportName);
             if (!getGitflowInit().gitLocalBranchExists(prefix + supportName)) {
-                throw new MojoFailureException("No local support branch named '" + prefix + supportName + "' exists!");
+                String msg = "No local support branch named '" + prefix + supportName + "' exists!";
+                exceptionMapper.handle(new MojoFailureException(msg));
             }
         }
 
         getLog().info("Tagging support branch '" + supportName + "'");
 
         String supportBranch = prefix + supportName;
 
         /* Switch to support branch and get its current version */
         getGitflowInit().executeLocal("git checkout " + supportBranch);
         reloadReactorProjects();
         String snapshotVersion = project.getVersion();
 
         /* Get release version for support tag */
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(snapshotVersion);
         String supportVersion;
         if ("SNAPSHOT".equals(artifactVersion.getBuildSpecifier())) {
             supportVersion = getReleaseVersion(project.getVersion());
         } else {
             supportVersion = project.getVersion();
         }
         getLog().debug("support version = " + supportVersion);
 
         getGitflowInit().requireTagAbsent(supportVersion);
 
         /* Set support branch to release version */
-        boolean setVersion = setVersion(supportVersion, false, supportBranch);
+        boolean setVersion = setVersion(supportVersion, supportBranch, false);
 
         if (!allowSnapshots) {
             reloadReactorProjects();
             try {
                 checkForSnapshotDependencies();
             } catch (MojoExecutionException mee) {
                 // reset setVersion commit to allow user fix & push SNAPSHOT dependencies
                 if (setVersion) {
                     getGitflowInit().executeLocal("git reset --hard HEAD~1");
                 }
-                throw mee;
+                exceptionMapper.handle(mee);
             }
         }
 
         /* tag support branch */
         String tagMsg = "Support release version " + supportVersion;
         String tagName = supportVersion;
         String tagString = getGitflowInit().executeLocal("git tag -a -m \"" + tagMsg + "\" " + tagName + " " + supportBranch);
         getLog().debug("Git tag output = " + tagString);
 
         /* Increment support branch to next version */
         String nextSupportVersion = getNextSupportVersion(snapshotVersion);
-        setVersion(nextSupportVersion, false, supportBranch);
+        setVersion(nextSupportVersion, supportBranch, false);
         promptToPushSupportBranchAndTag(supportBranch, tagName);
 
     }
 
     private String promptForExistingSupportBranch(String prefix, List<String> supportBranches) throws MojoFailureException {
         List<String> choices = supportBranches;
 
         /* if current branch is a support branch at it to start of list so it is the default in prompt */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (currentBranch.startsWith(prefix)) {
             choices = rearrange(currentBranch, supportBranches);
         }
 
         String name = "";
         try {
             prompter.promptChoice("Support branches", "Please select a support branch to tag", choices);
         } catch (IOException ex) {
             throw new MojoFailureException("Error reading release name from command line " + ex.getMessage());
         }
         return name.trim();
     }
 
     private void promptToPushSupportBranchAndTag(String supportBranch, String supportTag) throws MojoFailureException {
         String origin = getGitflowInit().getOrigin();
         String message = "Do you want to push " + supportBranch + " branch and support tag " + supportTag + " to " + origin + "? (y/N)";
 
         String answer = "";
         try {
             answer = prompter.prompt(message);
         } catch (IOException e) {
             throw new MojoFailureException("Error reading support branch name from command line " + e.getMessage());
         }
 
         if (answer.matches("/^([yY][eE][sS]|[yY])$/")) {
             if (getGitflowInit().gitRemoteBranchExists(supportBranch)) {
                 getGitflowInit().executeRemote("git push " + origin + " " + supportBranch);
                 getGitflowInit().executeRemote("git push " + origin + " " + supportTag);
             } else {
                 getLog().info("");
                 getLog().warn("===> Branch '" + supportBranch + "' does not exist on '" + origin + "'");
                 getLog().warn("===> Once ready you MUST manually push '" + supportBranch + "' branch and support tag '" + supportTag + "' to '" + origin + "'");
                 getLog().info("");
             }
         } else {
             getLog().info("");
             getLog().warn("===> Once ready you MUST manually push '" + supportBranch + "' branch and support tag '" + supportTag + "' to '" + origin + "'");
             getLog().info("");
         }
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ex/ExceptionMapper.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ex/ExceptionMapper.java
new file mode 100644
index 0000000..2fa9013
--- /dev/null
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ex/ExceptionMapper.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2016 dkirrane.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.dkirrane.maven.plugins.ggitflow.ex;
+
+import com.dkirrane.gitflow.groovy.ex.GitCommandException;
+import com.dkirrane.gitflow.groovy.ex.GitflowException;
+import com.dkirrane.gitflow.groovy.ex.GitflowMergeConflictException;
+import java.io.File;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.plugin.MojoFailureException;
+
+/**
+ *
+ * @author dkirrane
+ */
+public interface ExceptionMapper {
+
+    void setRepoDir(File repoDir) throws MojoFailureException;
+
+    void handle(String header, GitCommandException gce) throws MojoFailureException;
+
+    void handle(String header, GitflowException gfe) throws MojoFailureException;
+
+    void handle(String header, GitflowMergeConflictException gmce) throws MojoFailureException;
+
+    void handle(MojoFailureException mfe) throws MojoFailureException;
+
+    void handle(MojoExecutionException mee) throws MojoExecutionException;
+}
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ex/ExceptionMapperImpl.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ex/ExceptionMapperImpl.java
new file mode 100644
index 0000000..a417f80
--- /dev/null
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ex/ExceptionMapperImpl.java
@@ -0,0 +1,78 @@
+/*
+ * Copyright 2016 dkirrane.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.dkirrane.maven.plugins.ggitflow.ex;
+
+import com.dkirrane.gitflow.groovy.ex.GitCommandException;
+import com.dkirrane.gitflow.groovy.ex.GitflowException;
+import com.dkirrane.gitflow.groovy.ex.GitflowMergeConflictException;
+import com.dkirrane.maven.plugins.ggitflow.prompt.FreeMarker;
+import java.io.File;
+import org.apache.commons.io.FilenameUtils;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.plugin.MojoFailureException;
+import org.codehaus.plexus.component.annotations.Component;
+import org.codehaus.plexus.component.annotations.Requirement;
+
+/**
+ *
+ * @author dkirrane
+ */
+@Component(role = ExceptionMapper.class, instantiationStrategy = "per-lookup")
+public class ExceptionMapperImpl implements ExceptionMapper {
+
+    @Requirement(role = FreeMarker.class)
+    protected FreeMarker freeMarker;
+
+    private File repoDir;
+
+    @Override
+    public void setRepoDir(File repoDir) throws MojoFailureException {
+        this.repoDir = repoDir;
+    }
+
+    @Override
+    public void handle(String header, GitCommandException gce) throws MojoFailureException {
+        freeMarker.logGitError(header, gce.getMessage(), gce.getExitCode(), gce.getStout(), gce.getSterr());
+        throw new MojoFailureException(header);
+    }
+
+    @Override
+    public void handle(String header, GitflowException gfe) throws MojoFailureException {
+        freeMarker.logError(header, gfe.getMessage());
+        throw new MojoFailureException(header);
+    }
+
+    @Override
+    public void handle(String header, GitflowMergeConflictException gmce) throws MojoFailureException {
+        String gitDir = (null == repoDir) ? ".git" : FilenameUtils.separatorsToUnix(repoDir.getPath()) + "/.git";
+        String footer = "Resolve the merge conflict & re-run: \n\tgit mergetool\n\tgit commit --all --file " + gitDir + "/MERGE_MSG\n\tRe-run release-finish";
+        freeMarker.logMergeConflict(header, footer, gmce.getMessage(), gmce.getConflictedFiles());
+        throw new MojoFailureException(header);
+    }
+
+    @Override
+    public void handle(MojoFailureException mfe) throws MojoFailureException {
+        freeMarker.logError("Error", mfe.getMessage());
+        throw mfe;
+    }
+
+    @Override
+    public void handle(MojoExecutionException mee) throws MojoExecutionException {
+        freeMarker.logError("Error", mee.getMessage());
+        throw mee;
+    }
+
+}
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/FreeMarker.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/FreeMarker.java
index f776c27..7de7af1 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/FreeMarker.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/FreeMarker.java
@@ -21,12 +21,13 @@ import java.util.List;
 /**
  * Output to console using FreeMarker template
  *
  * @since 3.0
  */
 public interface FreeMarker {
 
     void logError(final String header, final String message);
 
-    void logMergeConflict(final String header, final String message, List<File> conflictedFiles);
+    void logGitError(final String header, final String message, final Integer exitCode, final String stout, final String sterr);
 
+    void logMergeConflict(final String header, final String footer, final String message, List<File> conflictedFiles);
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/FreeMarkerImpl.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/FreeMarkerImpl.java
index 817352a..69824b2 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/FreeMarkerImpl.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/FreeMarkerImpl.java
@@ -33,75 +33,103 @@ import org.slf4j.LoggerFactory;
 /**
  *
  * @author dkirrane
  */
 @Component(role = FreeMarker.class, instantiationStrategy = "per-lookup")
 public class FreeMarkerImpl implements FreeMarker {
 
     private static final Logger LOG = LoggerFactory.getLogger(PrompterImpl.class);
 
     @Override
     public void logError(final String header, final String message) {
         checkNotNull(header);
         checkNotNull(message);
 
         try {
 
             freemarker.template.Configuration cfg = new freemarker.template.Configuration(freemarker.template.Configuration.getVersion());
             cfg.setClassForTemplateLoading(PrompterImpl.class, "/freemarker");
             cfg.setDefaultEncoding("UTF-8");
             cfg.setTemplateExceptionHandler(TemplateExceptionHandler.RETHROW_HANDLER);
             cfg.setLogTemplateExceptions(false);
 
             Template template = cfg.getTemplate("error.ftl");
 
             // Build the data-model
             Map<String, Object> data = new HashMap<>();
             data.put("header", header);
             data.put("message", message);
 
             // Console output
             Writer out = new OutputStreamWriter(System.out);
             template.process(data, out);
             out.flush();
 
         } catch (TemplateException | IOException ex) {
-            LOG.error("{} {}", header, message, ex);
+            LOG.error("Failed to log Git error", ex);
+    }
+    }
+
+    @Override
+    public void logGitError(final String header, final String message, final Integer exitCode, final String stout, final String sterr) {
+        checkNotNull(header);
+
+        try {
+
+            freemarker.template.Configuration cfg = new freemarker.template.Configuration(freemarker.template.Configuration.getVersion());
+            cfg.setClassForTemplateLoading(PrompterImpl.class, "/freemarker");
+            cfg.setDefaultEncoding("UTF-8");
+            cfg.setTemplateExceptionHandler(TemplateExceptionHandler.RETHROW_HANDLER);
+            cfg.setLogTemplateExceptions(false);
+
+            Template template = cfg.getTemplate("git-error.ftl");
+
+            // Build the data-model
+            Map<String, Object> data = new HashMap<>();
+            data.put("header", header);
+            data.put("message", message);
+            data.put("exitCode", exitCode);
+            data.put("stout", stout);
+            data.put("sterr", sterr);
+
+            // Console output
+            Writer out = new OutputStreamWriter(System.out);
+            template.process(data, out);
+            out.flush();
+
+        } catch (TemplateException | IOException ex) {
+            LOG.error("Failed to log Git error", ex);
         }
     }
 
     @Override
-    public void logMergeConflict(String header, String message, List<File> conflictedFiles) {
+    public void logMergeConflict(String header, String footer, String message, List<File> conflictedFiles) {
         checkNotNull(header);
+        checkNotNull(footer);
         checkNotNull(message);
 
         try {
 
             freemarker.template.Configuration cfg = new freemarker.template.Configuration(freemarker.template.Configuration.getVersion());
             cfg.setClassForTemplateLoading(PrompterImpl.class, "/freemarker");
             cfg.setDefaultEncoding("UTF-8");
             cfg.setTemplateExceptionHandler(TemplateExceptionHandler.RETHROW_HANDLER);
             cfg.setLogTemplateExceptions(false);
 
-            Template template;
+            Template template = cfg.getTemplate("merge-conflict.ftl");
             Map<String, Object> data = new HashMap<>();
-            if (null == conflictedFiles || conflictedFiles.isEmpty()) {
-                template = cfg.getTemplate("error.ftl");
-                data.put("header", header);
-                data.put("message", message);
-                data.put("message", message);
-            } else {
-                template = cfg.getTemplate("merge-conflict.ftl");
-                data.put("header", header);
-                data.put("conflicts", conflictedFiles);
-            }
+            data.put("header", header);
+            data.put("message", message);
+            data.put("conflicts", conflictedFiles);
+            data.put("footer", footer);
 
             // Console output
             Writer out = new OutputStreamWriter(System.out);
             template.process(data, out);
             out.flush();
 
         } catch (TemplateException | IOException ex) {
             LOG.error("{} {}", header, message, ex);
         }
     }
+
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/Prompter.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/Prompter.java
index d129d14..84fb76f 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/Prompter.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/Prompter.java
@@ -21,61 +21,79 @@ import java.util.List;
 /**
  * Prompt for user input
  *
  * @since 3.0
  */
 public interface Prompter {
 
     /**
      * Prompt user for a string, optionally masking the input.
      *
      * @param message
      * @param mask
      * @return
      * @throws java.io.IOException
      */
     String prompt(String message, Character mask) throws IOException;
 
     /**
      * Prompt user for a string.
      *
      * @param message
      * @return
      * @throws java.io.IOException
      */
     String prompt(String message) throws IOException;
 
+    /**
+     * Prompt user with Yes/No message
+     *
+     * @param message
+     * @return
+     * @throws java.io.IOException
+     */
+    boolean promptYesNo(final String message) throws IOException;
+
     /**
      * Prompt user for a string; if user response is blank use a default value.
      *
      * @param message
      * @param defaultValue
      * @return
      * @throws java.io.IOException
      */
     String promptWithDefault(String message, String defaultValue) throws IOException;
 
     /**
      * Prompt user for a string out of a set of available choices.
      *
      * Choices must not have entries with leading/trailing whitespace. At least
      * 2 choices are required.
      *
      * @param header
      * @param choices
      * @param message
      * @return
      * @throws java.io.IOException
      */
     String promptChoice(String header, String message, List<String> choices) throws IOException;
 
     /**
      * Prompt user for an integer.
      *
      * @param message
      * @param max
      * @param min
      * @return
      * @throws java.io.IOException
      */
     Integer promptInteger(String message, Integer min, Integer max) throws IOException;
+
+    /**
+     * Display a message to the user regards pushing/deleting branches
+     *
+     * @param header message heaeder to display
+     * @param pushBranches Git branches to push
+     * @param deleteBranches Git branches to delete
+     */
+    void pushPrompt(final String header, final List<String> pushBranches, final List<String> deleteBranches);
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/PrompterImpl.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/PrompterImpl.java
index 31ee4f9..82fa2d2 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/PrompterImpl.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/PrompterImpl.java
@@ -42,165 +42,204 @@ import org.slf4j.LoggerFactory;
 /**
  * Default {@link Prompter} implementation.
  *
  * @since 3.0
  */
 @Component(role = Prompter.class, instantiationStrategy = "per-lookup")
 public class PrompterImpl implements Prompter {
 
     private static final Logger LOG = LoggerFactory.getLogger(PrompterImpl.class);
 
     private final ConsoleReader console;
 
     public PrompterImpl() throws IOException {
         TerminalFactory.configure(TerminalFactory.NONE);
         TerminalFactory.reset();
         Configuration.reset();
         this.console = new ConsoleReader();
         this.console.setHistoryEnabled(false);
         this.console.setExpandEvents(false);
     }
 
     public ConsoleReader getConsole() {
         return console;
     }
 
     @Override
     public String prompt(final String message, Character mask) throws IOException {
         checkNotNull(message);
 
         final String prompt = String.format("%s: ", message);
         String value;
         do {
             // mask DOES NOT WORK on WINDOWS 10 https://github.com/jline/jline2/issues/225
 //            value = console.readLine(ansi().fg(GREEN).a(prompt).reset().toString(), mask);
             value = console.readLine(ansi().fg(GREEN).bold().a(prompt).boldOff().reset().toString(), null);
 
             // Do not LOG values read when masked
             if (mask == null) {
                 LOG.debug("Read value: '{}'", value);
             } else {
                 LOG.debug("Read masked chars: {}", value.length());
             }
         } while (StringUtils.isBlank(value));
         return value;
     }
 
     @Override
     public String prompt(final String message) throws IOException {
         checkNotNull(message);
 
         return prompt(message, null);
     }
 
+    @Override
+    public boolean promptYesNo(final String message) throws IOException {
+        checkNotNull(message);
+
+        final String prompt = String.format("%s? (y/N): ", message);
+        String value = console.readLine(ansi().fg(GREEN).bold().a(prompt).boldOff().reset().toString());
+        return value.matches("^([yY][eE][sS]|[yY])$");
+    }
+
     @Override
     public String promptWithDefault(final String message, final String defaultValue) throws IOException {
         checkNotNull(message);
         checkNotNull(defaultValue);
 
-        final String prompt = String.format("%s [%s]: ", message, defaultValue);
+        final String prompt = String.format("%s (%s): ", message, defaultValue);
         String value = console.readLine(ansi().fg(GREEN).bold().a(prompt).boldOff().reset().toString());
         if (StringUtils.isBlank(value)) {
             return defaultValue;
         }
         return value;
     }
 
     /**
      * Helper to parse an integer w/o exceptions being thrown.
      */
     private Integer parseInt(final String value) {
         try {
             return Integer.parseInt(value);
         } catch (Exception e) {
             // ignore
         }
         return null;
     }
 
     @Override
     public Integer promptInteger(final String message, final Integer min, final Integer max) throws IOException {
         while (true) {
             String raw = prompt(message);
             Integer value = parseInt(raw);
             if (value != null) {
                 if (min != null && value < min) {
                     console.println("Value must be greater than " + (min - 1) + ": " + raw);
                     continue;
                 }
                 if (max != null && value > max) {
                     console.println("Value must be less than " + max + ": " + raw);
                     continue;
                 }
 
                 // valid
                 return value;
             }
             // else invalid, try again
             console.println("Invalid value: " + raw);
         }
     }
 
     @Override
     public String promptChoice(final String header, final String message, final List<String> choices) throws IOException {
         checkNotNull(header);
         checkNotNull(message);
         checkArgument(!choices.isEmpty(), "choices cannot be empty");
 
         if (choices.size() > 1) {
             /* Output choices using freemarker */
             try {
 
                 freemarker.template.Configuration cfg = new freemarker.template.Configuration(freemarker.template.Configuration.getVersion());
                 cfg.setClassForTemplateLoading(PrompterImpl.class, "/freemarker");
                 cfg.setDefaultEncoding("UTF-8");
                 cfg.setTemplateExceptionHandler(TemplateExceptionHandler.RETHROW_HANDLER);
                 cfg.setLogTemplateExceptions(false);
 
                 Template template = cfg.getTemplate("choices.ftl");
 
                 // Build the data-model
                 Map<String, Object> data = new HashMap<>();
                 data.put("header", header);
                 data.put("choices", choices);
 
                 // Console output
                 Writer out = new OutputStreamWriter(System.out);
                 template.process(data, out);
                 out.flush();
 
             } catch (TemplateException | IOException ex) {
                 java.util.logging.Logger.getLogger(PrompterImpl.class.getName()).log(Level.SEVERE, null, ex);
             }
         }
 
         console.println("");
 
         // setup completer
         Completer completer = new StringsCompleter(choices);
         console.addCompleter(completer);
 
         try {
             String value;
             while (true) {
                 value = promptWithDefault(message, choices.get(0)).trim();
 
                 // check if value is an index (choice display starts with index 1)
                 Integer i = parseInt(value);
                 if (i != null && i > 0 && i <= choices.size()) {
                     value = choices.get(i - 1);
                     break;
                 }
 
                 // check if choice is valid
                 if (choices.contains(value)) {
                     break;
                 }
 
                 console.println("Invalid selection: " + value);
             }
             return value;
         } finally {
             console.removeCompleter(completer);
         }
     }
+
+    @Override
+    public void pushPrompt(String header, List<String> pushBranches, List<String> deleteBranches) {
+        checkNotNull(header);
+        checkNotNull(pushBranches);
+        checkNotNull(deleteBranches);
+
+        try {
+
+            freemarker.template.Configuration cfg = new freemarker.template.Configuration(freemarker.template.Configuration.getVersion());
+            cfg.setClassForTemplateLoading(PrompterImpl.class, "/freemarker");
+            cfg.setDefaultEncoding("UTF-8");
+            cfg.setTemplateExceptionHandler(TemplateExceptionHandler.RETHROW_HANDLER);
+            cfg.setLogTemplateExceptions(false);
+
+            Template template = cfg.getTemplate("pushing.ftl");
+            Map<String, Object> data = new HashMap<>();
+            data.put("header", header);
+            data.put("pushBranches", pushBranches);
+            data.put("deleteBranches", deleteBranches);
+
+            // Console output
+            Writer out = new OutputStreamWriter(System.out);
+            template.process(data, out);
+            out.flush();
+
+        } catch (TemplateException | IOException ex) {
+            LOG.error("Failed to prompt to push", ex);
+        }
+    }
 }
diff --git a/ggitflow-maven-plugin/src/main/resources/freemarker/choices.ftl b/ggitflow-maven-plugin/src/main/resources/freemarker/choices.ftl
index ea33ef8..989b489 100644
--- a/ggitflow-maven-plugin/src/main/resources/freemarker/choices.ftl
+++ b/ggitflow-maven-plugin/src/main/resources/freemarker/choices.ftl
@@ -1,12 +1,12 @@
 <#macro fg color>${'\x1B'}[${color}m</#macro>
 <#macro bold>${'\x1B'}[1m</#macro>
 <#macro reset>${'\x1B'}[0m</#macro>
 
 <#assign header = header + ":">
-<@fg 42/><@bold/>=====${""?right_pad(header?length, "=")}=====<@reset/>
-<@fg 42/><@bold/>===  ${header?right_pad(header?length)}  ===<@reset/>
-<@fg 42/><@bold/>=====${""?right_pad(header?length, "=")}=====<@reset/>
+<@fg 34/><@bold/>=====${""?right_pad(header?length, "=")}=====<@reset/>
+<@fg 34/><@bold/>===  ${header?right_pad(header?length)}  ===<@reset/>
+<@fg 34/><@bold/>=====${""?right_pad(header?length, "=")}=====<@reset/>
 <#assign y = 0>
 <#list choices?chunk(5) as row>
-  <#list row as cell><#assign y++><@fg 42/><@bold/>${"(${y})"?right_pad(5)}<@reset/>${cell?right_pad(30)}</#list>
+  <#list row as cell><#assign y++><@fg 34/><@bold/>${"(${y})"?right_pad(5)}<@reset/>${cell?right_pad(30)}</#list>
 </#list>
diff --git a/ggitflow-maven-plugin/src/main/resources/freemarker/git-error.ftl b/ggitflow-maven-plugin/src/main/resources/freemarker/git-error.ftl
new file mode 100644
index 0000000..8659f0a
--- /dev/null
+++ b/ggitflow-maven-plugin/src/main/resources/freemarker/git-error.ftl
@@ -0,0 +1,25 @@
+<#macro fg color>${'\x1B'}[${color}m</#macro>
+<#macro bold>${'\x1B'}[1m</#macro>
+<#macro reset>${'\x1B'}[0m</#macro>
+
+<#assign header = header + ":">
+<@fg 31/><@bold/>=====${""?right_pad(header?length, "=")}=====<@reset/>
+<@fg 31/><@bold/>===  ${header?right_pad(header?length)}  ===<@reset/>
+<@fg 31/><@bold/>=====${""?right_pad(header?length, "=")}=====<@reset/>
+
+<#if exitCode??>
+    <@fg 31/><@bold/>Git exiting with error code: ${exitCode}<@reset/>
+</#if>
+
+<#if message??>
+    <@fg 31/><@bold/>Message: ${message}<@reset/>
+</#if>
+
+<#if stout??>
+    <@fg 31/><@bold/>Stout: ${stout}<@reset/>
+</#if>
+
+<#if sterr??>
+    <@fg 31/><@bold/>Sterr: ${sterr}<@reset/>
+</#if>
+
diff --git a/ggitflow-maven-plugin/src/main/resources/freemarker/merge-conflict.ftl b/ggitflow-maven-plugin/src/main/resources/freemarker/merge-conflict.ftl
index a5c3ce1..b7ccb67 100644
--- a/ggitflow-maven-plugin/src/main/resources/freemarker/merge-conflict.ftl
+++ b/ggitflow-maven-plugin/src/main/resources/freemarker/merge-conflict.ftl
@@ -1,15 +1,20 @@
 <#macro fg color>${'\x1B'}[${color}m</#macro>
 <#macro bold>${'\x1B'}[1m</#macro>
 <#macro reset>${'\x1B'}[0m</#macro>
 
 <#assign header = header + ":">
 <@fg 31/><@bold/>=====${""?right_pad(header?length, "=")}=====<@reset/>
 <@fg 31/><@bold/>===  ${header?right_pad(header?length)}  ===<@reset/>
 <@fg 31/><@bold/>=====${""?right_pad(header?length, "=")}=====<@reset/>
 
 <@fg 31/><@bold/>Files in conflict:<@reset/>
+<#if conflicts?has_content>
+    <#list conflicts as conflict>
+        <@fg 31/><@bold/>${conflict}<@reset/>
+    </#list>
+<#else>
+    <@fg 31/><@bold/>${message}<@reset/>
+</#if>
 
-<#list conflicts as conflict>
-                <@fg 31/><@bold/>${conflict}<@reset/>
-</#list>
+<@fg 31/><@bold/>${footer}<@reset/>
 
diff --git a/ggitflow-maven-plugin/src/main/resources/freemarker/pushing.ftl b/ggitflow-maven-plugin/src/main/resources/freemarker/pushing.ftl
new file mode 100644
index 0000000..8038290
--- /dev/null
+++ b/ggitflow-maven-plugin/src/main/resources/freemarker/pushing.ftl
@@ -0,0 +1,19 @@
+<#macro fg color>${'\x1B'}[${color}m</#macro>
+<#macro bold>${'\x1B'}[1m</#macro>
+<#macro reset>${'\x1B'}[0m</#macro>
+
+<#assign header = header + ":">
+<@fg 34/><@bold/>=====${""?right_pad(header?length, "=")}=====<@reset/>
+<@fg 34/><@bold/>===  ${header?right_pad(header?length)}  ===<@reset/>
+<@fg 34/><@bold/>=====${""?right_pad(header?length, "=")}=====<@reset/>
+
+<@fg 34/><@bold/>Pushing:<@reset/>
+<#list pushBranches as branch>
+    <@fg 34/><@bold/>- ${branch}<@reset/>
+</#list>
+
+<@fg 34/><@bold/>Deleting:<@reset/>
+<#list deleteBranches as branch>
+    <@fg 34/><@bold/>- ${branch}<@reset/>
+</#list>
+

commit 77a5fc6d28537f153398607d3bba0c29717ee5af
Author: dkirrane <dkirrane@avaya.com>
Date:   Fri Sep 23 19:42:18 2016 +0100

    improvements

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index 4eec4b7..7fd21a9 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -19,2 +19,3 @@ import com.dkirrane.gitflow.groovy.GitflowInit;
 import com.dkirrane.gitflow.groovy.ex.GitflowException;
+import com.dkirrane.maven.plugins.ggitflow.prompt.FreeMarker;
 import com.dkirrane.maven.plugins.ggitflow.prompt.Prompter;
@@ -37,2 +38,3 @@ import java.util.List;
 import java.util.Map;
+import java.util.Scanner;
 import java.util.regex.Matcher;
@@ -82,478 +84,487 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 public class AbstractGitflowMojo extends AbstractMojo {
+    
+    Scanner scanner = new Scanner(System.in);
 
     public final Pattern matchSnapshotRegex = Pattern.compile("-SNAPSHOT");
 
     public static final ImmutableList<String> DEFAULT_INSTALL_ARGS = ImmutableList.of(
             "-DinstallAtEnd=false");
 
     public static final ImmutableList<String> DEFAULT_DEPLOY_ARGS = ImmutableList.of(
             "-DdeployAtEnd=false",
             "-DretryFailedDeploymentCount=2");
 
     public static final Splitter PROFILES_SPLITTER = Splitter.on(',').trimResults().omitEmptyStrings();
     public static final Joiner PROFILES_JOINER = Joiner.on(',').skipNulls();
 
     private static final Plugin VERSIONS_MVN_PLUGIN = plugin(
             groupId("org.codehaus.mojo"),
             artifactId("versions-maven-plugin"),
-            version("2.1")
+            version("2.3")
     );
 
     @Parameter(defaultValue = "${session}", readonly = true)
     protected MavenSession session;
 
     @Parameter(defaultValue = "${project}", readonly = true)
     protected MavenProject project;
 
     @Parameter(defaultValue = "${reactorProjects}", readonly = true, required = true)
     protected List<MavenProject> reactorProjects;
 
     @Component
     private ProjectBuilder projectBuilder;
 
     @Component
     protected BuildPluginManager pluginManager;
 
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
     @Component(role = Prompter.class)
     protected Prompter prompter;
 
+    @Component(role = FreeMarker.class)
+    protected FreeMarker freeMarker;
+
     /**
      * Gitflow branches and prefixes to use.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
     /**
      * Message prefix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgPrefix", defaultValue = "", required = false)
     protected String msgPrefix;
 
     /**
      * Message suffix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgSuffix", defaultValue = "", required = false)
     protected String msgSuffix;
 
     private GitflowInit init;
     private Path tempDir;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             getLog().debug("Gitflow pom  '" + project.getBasedir() + "'");
         }
 
         GitflowInit gitflowInit = getGitflowInit();
 
         gitflowInit.requireGitRepo();
         gitflowInit.checkRemoteConnection();
 
         if (!gitflowInit.gitflowIsInitialized()) {
             try {
                 gitflowInit.cmdDefault();
             } catch (GitflowException ex) {
                 throw new MojoExecutionException("Failed to initialise Gitflow " + ex.getMessage(), ex);
             }
         }
 
         gitflowInit.requireCleanWorkingTree();
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     protected final GitflowInit getGitflowInit() {
         if (null == init) {
             getLog().debug("Initialising Gitflow");
             init = new GitflowInit();
             File basedir = getProject().getBasedir();
             getLog().debug("Setting base directory " + basedir);
             init.setRepoDir(basedir);
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
 
             /* root Git directory may not be the pom directory */
             String gitRootPath = init.executeLocal("git rev-parse --show-toplevel");
             getLog().debug("Git repo top level " + gitRootPath);
             File baseGitDir = new File(gitRootPath);
             if (baseGitDir.isDirectory()) {
                 getLog().debug("Setting git base directory " + baseGitDir);
                 init.setRepoDir(baseGitDir);
             }
 
             /* Create temp directory - delete any previous first */
             try {
                 Finder finder = new Finder(Syntax.glob, "mvn-gitflow*");
                 Files.walkFileTree(Paths.get(System.getProperty("java.io.tmpdir")), finder);
                 List<Path> paths = finder.getPaths();
                 getLog().debug("Deleting old temp directories " + paths);
                 for (Path path : paths) {
                     FileUtils.deleteDirectory(path.toFile());
                 }
                 tempDir = Files.createTempDirectory("mvn-gitflow");
             } catch (IOException ioe) {
                 getLog().error("Failed to create temp directory", ioe);
             }
         }
         return init;
     }
 
     protected final boolean setVersion(String version, Boolean push, String branch) throws MojoExecutionException, MojoFailureException {
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         MavenProject topLevelProject = session.getTopLevelProject();
         session.setCurrentProject(topLevelProject);
 
         String goal = goal("set");
         Xpp3Dom configuration = configuration(
                 element(name("generateBackupPoms"), "false"),
                 element(name("newVersion"), version)
         );
 
         String mavenCommand = getMavenCommand(VERSIONS_MVN_PLUGIN, goal);
 
         getLog().info("");
         getLog().info("--- " + mavenCommand + " " + topLevelProject.getArtifactId() + " to " + version + " (" + branch + ") ---");
         executeMyMojo(VERSIONS_MVN_PLUGIN, goal, configuration);
         getLog().info("------------------------------------------------------------------------");
 
         boolean commitMade = false;
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (push && getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change " + version + " to origin. ExitCode:" + exitCode);
                 }
             }
             commitMade = true;
         }
         /* We don't want to fail maybe the version was manually set correctly */
 //        else {
 //            throw new MojoFailureException("Failed to update poms to version " + version);
 //        }
         return commitMade;
     }
 
     protected final boolean setNextVersions(Boolean allowSnapshots, Boolean updateParent, String includes) throws MojoExecutionException, MojoFailureException {
         getLog().debug("setNextVersions");
 
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         MavenProject topLevelProject = session.getTopLevelProject();
         session.setCurrentProject(topLevelProject);
 
         if (updateParent) {
             String updateParentGoal = goal("update-parent");
             Xpp3Dom configuration = configuration(
                     element(name("generateBackupPoms"), "false"),
                     element(name("allowSnapshots"), allowSnapshots.toString())
             );
 
             String mavenCommand = getMavenCommand(VERSIONS_MVN_PLUGIN, updateParentGoal);
             getLog().info("");
             getLog().info("--- " + mavenCommand + " " + topLevelProject.getArtifactId() + " ---");
             executeMyMojo(VERSIONS_MVN_PLUGIN, updateParentGoal, configuration);
             getLog().info("------------------------------------------------------------------------");
         }
 
         if (!StringUtils.isBlank(includes)) {
             String useNextVersionsGoal = goal("use-next-versions");
             Xpp3Dom configuration = configuration(
                     element(name("generateBackupPoms"), "false"),
                     element(name("allowSnapshots"), allowSnapshots.toString()),
                     element(name("includesList"), includes)
             );
 
             String mavenCommand = getMavenCommand(VERSIONS_MVN_PLUGIN, useNextVersionsGoal);
             getLog().info("");
             getLog().info("--- " + mavenCommand + " " + topLevelProject.getArtifactId() + " ---");
             executeMyMojo(VERSIONS_MVN_PLUGIN, useNextVersionsGoal, configuration);
             getLog().info("------------------------------------------------------------------------");
         } else {
             getLog().warn("Parameter <includes> is not set. Skipping dependency updates");
         }
 
         boolean commitMade = false;
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg;
             if (allowSnapshots) {
                 msg = getMsgPrefix() + "Replaces any release versions with the next snapshot version (if it has been deployed)." + getMsgSuffix();
             } else {
                 msg = getMsgPrefix() + "Replaces snapshot versions with the corresponding release version" + getMsgSuffix();
             }
 
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change to origin. ExitCode:" + exitCode);
                 }
             }
             commitMade = true;
         }
         return commitMade;
     }
 
     protected final void executeMyMojo(Plugin plugin, String goal, Xpp3Dom configuration) throws MojoExecutionException, MojoFailureException {
         String mavenCommand = getMavenCommand(plugin, goal);
         MavenProject topLevelProject = session.getTopLevelProject();
         String projArtifactId = topLevelProject.getArtifactId();
         getLog().debug("START " + mavenCommand + " on " + projArtifactId);
         getLog().debug("configuration " + configuration.toUnescapedString());
 
         /* Maven 3.3.x log settings */
-//        session.getRequest().setLoggingLevel(MavenExecutionRequest.LOGGING_LEVEL_WARN);
-//        System.setProperty("org.slf4j.simpleLogger.defaultLogLevel", "error");
-//        System.setProperty("maven.logging.root.level", "error");
+        session.getRequest().setLoggingLevel(MavenExecutionRequest.LOGGING_LEVEL_ERROR);
+        System.setProperty("org.slf4j.simpleLogger.defaultLogLevel", "error");
+        System.setProperty("maven.logging.root.level", "error");
         PrintStream stdout = System.out;
+        PrintStream stderr = System.err;
         PrintStream stoutStream = null;
         Path tempStoutFile = null;
         try {
 
             /* Capture System.out */
             if (!getLog().isDebugEnabled()) {
                 try {
                     String logFileName = plugin.getArtifactId() + '-' + goal + '-';
                     tempStoutFile = Files.createTempFile(tempDir, logFileName, ".log");
                     stoutStream = new PrintStream(new FileOutputStream(tempStoutFile.toFile(), true));
                     System.setOut(stoutStream);
+                    System.setErr(stoutStream);
                 } catch (Exception ioe) {
                     getLog().warn("Failed to capture System.out", ioe);
                 }
             }
 
             /* Execute Maven plugin goal */
             executeMojo(
                     plugin,
                     goal,
                     configuration,
                     executionEnvironment(
                             session.getTopLevelProject(),
                             session,
                             pluginManager
                     )
             );
 
         } catch (MojoExecutionException mee) {
             /* Reset System.out */
             System.setOut(stdout);
+            System.setErr(stderr);
             String rootCauseMessage = ExceptionUtils.getRootCauseMessage(mee);
             if (rootCauseMessage.contains("Project version is inherited from parent")) {
                 getLog().debug("Skipping " + mavenCommand + " for project " + projArtifactId + ". Project version is inherited from parent.");
             } else {
                 getLog().error("Failed to execute " + mavenCommand + " on " + projArtifactId, mee);
                 throw mee;
             }
         } finally {
             if (!getLog().isDebugEnabled()) {
                 /* Reset System.out */
                 System.setOut(stdout);
+                System.setErr(stderr);
 
                 if (null != tempStoutFile) {
                     getLog().info(mavenCommand + " log " + tempStoutFile.toString());
                 }
 
                 if (null != stoutStream) {
                     try {
                         stoutStream.close();
                     } catch (Exception e) {
                     }
                 }
             }
             getLog().debug("DONE " + mavenCommand);
         }
     }
 
     private String getMavenCommand(Plugin plugin, String goal) {
         return plugin.getArtifactId() + ':' + plugin.getVersion() + ':' + goal;
     }
 
     protected final void runGoals(String goals, List<String> additionalArgs) throws MojoExecutionException, MojoFailureException {
         getLog().debug("START executing " + goals + " with args " + additionalArgs);
 
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         File basedir = rootProject.getBasedir();
 
         ReleaseResult result = new ReleaseResult();
         ReleaseEnvironment env = new DefaultReleaseEnvironment();
         env.setSettings(session.getSettings());
         MavenExecutor mavenExecutor = mavenExecutors.get(env.getMavenExecutorId());
 
         Joiner joiner = Joiner.on(" ").skipNulls();
         String additionalArguments = joiner.join(additionalArgs);
         getLog().debug("additionalArguments " + additionalArguments);
 
         try {
             mavenExecutor.executeGoals(basedir, goals, env, false, additionalArguments, result);
         } catch (MavenExecutorException ex) {
             throw new MojoExecutionException(result.getOutput(), ex);
         }
         getLog().debug("DONE executing " + goals);
     }
 
     protected final String getReleaseVersion(String version) throws MojoFailureException {
         getLog().debug("Current Develop version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
             getLog().debug("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
     protected final void checkForSnapshotDependencies() throws MojoExecutionException {
         getLog().info("Checking for SNAPSHOT dependencies");
         Boolean hasDepSnapshots = false;
         Boolean hasParentSnapshot = false;
         for (MavenProject mavenProject : reactorProjects) {
             String artifactId = mavenProject.getArtifactId();
 
             /* Check <parent> */
             Artifact parentArtifact = mavenProject.getParentArtifact();
             if (parentArtifact != null && parentArtifact.isSnapshot()) {
                 getLog().error("Parent of project " + artifactId + " is a SNAPSHOT " + parentArtifact.getId());
                 hasParentSnapshot = true;
             }
 
             /* Check <dependencyManagement> */
             DependencyManagement dependencyManagement = mavenProject.getDependencyManagement();
             if (null != dependencyManagement) {
                 if (checkForSnapshot(artifactId, dependencyManagement.getDependencies())) {
                     hasDepSnapshots = true;
                 }
             }
 
             /* Check <dependencies> */
             if (checkForSnapshot(artifactId, mavenProject.getDependencies())) {
                 hasDepSnapshots = true;
             }
         }
         if (hasParentSnapshot || hasDepSnapshots) {
             throw new MojoExecutionException("Cannot release because SNAPSHOT dependencies exist");
         }
     }
 
     private boolean checkForSnapshot(String artifactId, List<Dependency> dependencies) throws MojoExecutionException {
         Boolean hasSnapshotDependency = false;
         for (Dependency dependency : dependencies) {
             String version = dependency.getVersion();
             Matcher versionMatcher = matchSnapshotRegex.matcher(version);
             if (versionMatcher.find() && versionMatcher.end() == version.length()) {
                 getLog().error("Project " + artifactId + " contains SNAPSHOT dependency: " + dependency.getGroupId() + ":" + dependency.getArtifactId() + ":" + version);
                 hasSnapshotDependency = true;
             }
         }
         return hasSnapshotDependency;
     }
 
     protected void reloadReactorProjects() {
         getLog().debug("Reloading poms...");
 
         List<MavenProject> updatedReactorProjects = new ArrayList<>();
 
         MavenProject rootProject = ReleaseUtil.getRootProject(reactorProjects);
         getLog().debug("rootProject = " + rootProject);
         if (rootProject.getFile().exists() && rootProject.getFile().canRead()) {
             MavenExecutionRequest mavenExecutionRequest = session.getRequest();
             ProjectBuildingRequest projectBuildingRequest = mavenExecutionRequest.getProjectBuildingRequest();
             try {
                 List<ProjectBuildingResult> buildResults = projectBuilder.build(newArrayList(rootProject.getFile()), true, projectBuildingRequest);
                 for (ProjectBuildingResult buildResult : buildResults) {
                     MavenProject reloadProject = buildResult.getProject();
                     reloadProject.setActiveProfiles(rootProject.getActiveProfiles());
                     updatedReactorProjects.add(reloadProject);
                 }
             } catch (ProjectBuildingException ex) {
                 getLog().error("Build error reloading Maven projects", ex);
             }
         }
 
         try {
             ReactorManager reactorManager = new ReactorManager(updatedReactorProjects);
             updatedReactorProjects = reactorManager.getSortedProjects();
         } catch (CycleDetectedException | DuplicateProjectException ex) {
             getLog().error("Failed to sort reactor projects", ex);
         }
 
         session.setProjects(updatedReactorProjects);
         project = ReleaseUtil.getRootProject(updatedReactorProjects);
         reactorProjects = updatedReactorProjects;
 
         if (getLog().isDebugEnabled()) {
             getLog().debug("Updated MavenSession: " + session);
             getLog().debug("Updated MavenProject: " + project);
             getLog().debug("Updated reactorProjects: ");
             for (int i = 0; i < reactorProjects.size(); i++) {
                 MavenProject updatedReactorProject = updatedReactorProjects.get(i);
                 System.out.println("");
                 System.out.printf(" %d) %s:%s \n \t\t\t Parent: %s \n \t\t\t DependencyManagement:%s \n \t\t\t Dependencies:%s \n",
                         i,
                         updatedReactorProject.getArtifactId(), updatedReactorProject.getVersion(),
                         updatedReactorProject.getParentArtifact(),
                         null != updatedReactorProject.getDependencyManagement() ? updatedReactorProject.getDependencyManagement().getDependencies() : null,
                         updatedReactorProject.getDependencies());
                 System.out.println("");
             }
         }
 
         getLog().debug("Reloading poms complete");
     }
 
     protected List<String> rearrange(String input, List<String> strings) {
         strings.remove(input);
         strings.add(0, input);
         return strings;
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index 62deb2e..d144db9 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -33,347 +33,348 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  * Merges a release branch back into the develop and master branch and then
  * creates a tag for the release on master.
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
 
     /**
      * If <code>true</code>, the release finish merge to develop & master and
      * the created tag will get pushed to the remote repository
      *
      * @since 1.6
      */
     @Parameter(property = "pushReleaseFinish", defaultValue = "false", required = false)
     protected boolean pushReleaseFinish;
 
     /**
      * If <code>true</code>, the release can still finish even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private Boolean allowSnapshots;
 
     /**
      * If the project has a parent with a release version it will be replaced
      * with the next <code>-SNAPSHOT</code> version (if it has been deployed).
      * This action is performed on the develop branch after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "updateParent", defaultValue = "false", required = false)
     private Boolean updateParent;
 
     /**
      * On the release branch before finish is called any dependencies with a
      * <code>-SNAPSHOT</code> version are replaced with the corresponding
      * release version (if it has been released).
      *
      * On the develop branch after the merge any dependencies with a release
      * version are replaced with the next <code>-SNAPSHOT</code> version (if it
      * has been deployed).
      *
      * @since 1.2
      */
     @Parameter(property = "updateDependencies", defaultValue = "false", required = false)
     private Boolean updateDependencies;
 
     /**
      * If <code>updateDependencies</code> is set, then this should contain a
      * comma separated list of artifact patterns to include. Follows the pattern <code>groupId:artifactId:type:classifier:version<code>
      *
      * @since 1.5
      */
     @Parameter(property = "includes", defaultValue = "", required = false)
     private String includes;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "true", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any calls to <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipDeploy", defaultValue = "true", required = false)
     private Boolean skipDeploy;
 
     /**
      * Skips any tests during <code>mvn install</code> and
      * <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipTests", defaultValue = "true", required = false)
     private Boolean skipTests;
 
     /**
      * Whether to use the release profile that adds sources and javadoc to the
      * released artifact, if appropriate. If set to true, the release-finish
      * will set the property "performRelease" to true, which activates the
      * profile "release-profile", which is inherited from the super pom.
      *
      * @since 1.2
      */
     @Parameter(property = "useReleaseProfile", defaultValue = "true", required = false)
     private Boolean useReleaseProfile;
 
     /**
      * Comma separated profiles to enable on deployment, in addition to active
      * profiles for project execution.
      *
      * @since 1.2
      */
     @Parameter(property = "releaseProfiles", defaultValue = "", required = false)
     private String releaseProfiles;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the local release branch will not be deleted after
      * the merge.
      *
      * @since 1.6
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keepLocal;
 
     /**
      * If <code>true</code>, the remote release branch will not be deleted after
      * the merge.
      *
      * @since 1.6
      */
     @Parameter(property = "keep", defaultValue = "true", required = false)
     private Boolean keepRemote;
 
     /**
      * If <code>true</code>, the release tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().debug("Finishing release");
 
         /* Fetch any new tags and prune any branches that may already be deleted */
         getGitflowInit().executeRemote("git fetch --tags --prune");
 
         /* Get release branch name */
         String prefix = getReleaseBranchPrefix();
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
         if (releaseBranches.isEmpty()) {
             throw new MojoFailureException("Could not find any local release branch!");
         }
 
         if (StringUtils.isBlank(releaseName)) {
             if (releaseBranches.size() == 1) {
                 String releaseBranch = releaseBranches.get(0);
                 releaseName = trimReleaseName(releaseBranch);
             } else {
                 String releaseBranch = promptForExistingReleaseBranch(prefix, releaseBranches);
                 releaseName = trimReleaseName(releaseBranch);
             }
 
         } else {
             releaseName = trimReleaseName(releaseName);
             if (!getGitflowInit().gitLocalBranchExists(prefix + releaseName)) {
                 throw new MojoFailureException("No local release branch named '" + prefix + releaseName + "' exists!");
             }
         }
 
         getLog().info("Finishing release '" + releaseName + "'");
 
         String releaseBranch = prefix + releaseName;
+        String developBranch = getGitflowInit().getDevelopBranch();
+        String masterBranch = getGitflowInit().getMasterBranch();
 
         /* Switch to develop branch and get its current version */
-        String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         getLog().debug("develop version = " + developVersion);
 
         /* Switch to release branch and set poms to release version */
         getGitflowInit().executeLocal("git checkout " + releaseBranch);
         reloadReactorProjects();
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(project.getVersion());
         String releaseVersion;
         if ("SNAPSHOT".equals(artifactVersion.getBuildSpecifier())) {
             releaseVersion = getReleaseVersion(project.getVersion());
         } else {
             releaseVersion = project.getVersion();
         }
         getLog().debug("release version = " + releaseVersion);
 
         boolean setVersion = setVersion(releaseVersion, pushReleaseFinish, releaseBranch);
 
         /* Update release branch dependencies to release version */
         boolean setNextVersions = false;
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions = setNextVersions(false, updateParent, includes);
         }
 
         if (!allowSnapshots) {
             reloadReactorProjects();
             try {
                 checkForSnapshotDependencies();
             } catch (MojoExecutionException mee) {
                 // reset setNextVersions and/or setVersion commits to allow user fix & push SNAPSHOT dependencies
                 // but can only reset if it the commits have not been pushed */
                 if (!pushReleaseFinish) {
                     if (setNextVersions) {
                         getGitflowInit().executeLocal("git reset --hard HEAD~1");
                     }
                     if (setVersion) {
                         getGitflowInit().executeLocal("git reset --hard HEAD~1");
                     }
                 }
                 throw mee;
             }
         }
 
         /* finish release */
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setPush(pushReleaseBranch);
         gitflowRelease.setSquash(squash);
         gitflowRelease.setKeepLocal(keepLocal);
         gitflowRelease.setKeepRemote(keepRemote);
         gitflowRelease.setSign(sign);
         gitflowRelease.setSigningkey(signingkey);
 
         /* 1. merge to master */
         try {
             gitflowRelease.finishToMaster(releaseBranch, pushReleaseFinish);
         } catch (GitflowException ge) {
-            throw new MojoFailureException(ge.getMessage());
+            String header = "Error merging branch '" + releaseBranch + "' into '" + masterBranch + "'";
+            freeMarker.logError(header, ge.getMessage());
+            throw new MojoFailureException(header);
         } catch (GitflowMergeConflictException gmce) {
-            throw new MojoFailureException(gmce.getMessage());
+            String header = "Merge conflict merging branch '" + releaseBranch + "' into '" + masterBranch + "'";
+            freeMarker.logMergeConflict(header, gmce.getMessage(), gmce.getConflictedFiles());
+            throw new MojoFailureException(header);
         }
 
         /* 2. make versions in release and develop branches match to avoid conflicts */
         getGitflowInit().executeLocal("git checkout " + releaseBranch);
         reloadReactorProjects();
         boolean setDevVersion = setVersion(developVersion, pushReleaseFinish, releaseBranch);
 
         /* 3. merge to develop */
         try {
             gitflowRelease.finishToDevelop(releaseBranch, pushReleaseFinish);
         } catch (GitflowException ge) {
             // reset setVersion commit and allow user fix whatever exception occurred
-            // but can only reset if the commit has not been pushed */
+            // but can only reset if the commit has not been pushed
             if (!pushReleaseFinish && setDevVersion) {
                 getGitflowInit().executeLocal("git reset --hard HEAD~1");
             }
-            throw new MojoFailureException(ge.getMessage());
+            String header = "Error merging branch '" + releaseBranch + "' into '" + developBranch + "'";
+            freeMarker.logError(header, ge.getMessage());
+            throw new MojoFailureException(header);
         } catch (GitflowMergeConflictException gmce) {
-            throw new MojoFailureException(gmce.getMessage());
-//            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
-//            try {
-//                fixPomMergeConflicts.resolveConflicts2();
-//            } catch (GitflowException ge) {
-//                throw new MojoFailureException(ge.getMessage());
-//            } catch (GitflowMergeConflictException gmce2) {
-//                throw new MojoFailureException(gmce2.getMessage());
-//            }
+            String header = "Merge conflict merging branch '" + releaseBranch + "' into '" + developBranch + "'";
+            freeMarker.logMergeConflict(header, gmce.getMessage(), gmce.getConflictedFiles());
+            throw new MojoFailureException(header);
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
         /* Update develop branch dependencies to next snapshot version (if deployed) */
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions(true, updateParent, includes);
         }
 
         /* Switch to release tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);
         reloadReactorProjects();
         String tagVersion = project.getVersion();
         getLog().debug("tag version = " + tagVersion);
 
         /* install or deploy */
         if (skipDeploy == false) {
             String goals = "clean deploy";
             if (project.getDistributionManagement() != null
                     && project.getDistributionManagement().getSite() != null) {
                 goals += " site-deploy";
             }
 
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             if (useReleaseProfile) {
                 additionalArgs.add("-DperformRelease=true");
             }
             if (StringUtils.isNotBlank(releaseProfiles)) {
                 Iterable<String> profiles = PROFILES_SPLITTER.split(releaseProfiles);
                 additionalArgs.add("-P " + PROFILES_JOINER.join(profiles));
             }
             runGoals(goals, additionalArgs.build());
         } else if (skipBuild == false) {
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             runGoals("clean install", additionalArgs.build());
         } else {
             getLog().debug("Skipping both install and deploy for release tag " + releaseBranch);
         }
 
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingReleaseBranch(String prefix, List<String> releaseBranches) throws MojoFailureException {
         List<String> choices = releaseBranches;
 
         /* if current branch is a feature branch at it to start of list so it is the default in prompt */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (currentBranch.startsWith(prefix)) {
             choices = rearrange(currentBranch, releaseBranches);
         }
 
         String name = "";
         try {
             prompter.promptChoice("Release branches", "Please select a release branch to finish", choices);
         } catch (IOException ex) {
             throw new MojoFailureException("Error reading release name from command line " + ex.getMessage());
         }
         return name.trim();
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/FreeMarker.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/FreeMarker.java
new file mode 100644
index 0000000..f776c27
--- /dev/null
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/FreeMarker.java
@@ -0,0 +1,32 @@
+/*
+ * Copyright 2016 dkirrane.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.dkirrane.maven.plugins.ggitflow.prompt;
+
+import java.io.File;
+import java.util.List;
+
+/**
+ * Output to console using FreeMarker template
+ *
+ * @since 3.0
+ */
+public interface FreeMarker {
+
+    void logError(final String header, final String message);
+
+    void logMergeConflict(final String header, final String message, List<File> conflictedFiles);
+
+}
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/FreeMarkerImpl.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/FreeMarkerImpl.java
new file mode 100644
index 0000000..817352a
--- /dev/null
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/FreeMarkerImpl.java
@@ -0,0 +1,107 @@
+/*
+ * Copyright 2016 dkirrane.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.dkirrane.maven.plugins.ggitflow.prompt;
+
+import static com.google.common.base.Preconditions.checkNotNull;
+import freemarker.template.Template;
+import freemarker.template.TemplateException;
+import freemarker.template.TemplateExceptionHandler;
+import java.io.File;
+import java.io.IOException;
+import java.io.OutputStreamWriter;
+import java.io.Writer;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import org.codehaus.plexus.component.annotations.Component;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ *
+ * @author dkirrane
+ */
+@Component(role = FreeMarker.class, instantiationStrategy = "per-lookup")
+public class FreeMarkerImpl implements FreeMarker {
+
+    private static final Logger LOG = LoggerFactory.getLogger(PrompterImpl.class);
+
+    @Override
+    public void logError(final String header, final String message) {
+        checkNotNull(header);
+        checkNotNull(message);
+
+        try {
+
+            freemarker.template.Configuration cfg = new freemarker.template.Configuration(freemarker.template.Configuration.getVersion());
+            cfg.setClassForTemplateLoading(PrompterImpl.class, "/freemarker");
+            cfg.setDefaultEncoding("UTF-8");
+            cfg.setTemplateExceptionHandler(TemplateExceptionHandler.RETHROW_HANDLER);
+            cfg.setLogTemplateExceptions(false);
+
+            Template template = cfg.getTemplate("error.ftl");
+
+            // Build the data-model
+            Map<String, Object> data = new HashMap<>();
+            data.put("header", header);
+            data.put("message", message);
+
+            // Console output
+            Writer out = new OutputStreamWriter(System.out);
+            template.process(data, out);
+            out.flush();
+
+        } catch (TemplateException | IOException ex) {
+            LOG.error("{} {}", header, message, ex);
+        }
+    }
+
+    @Override
+    public void logMergeConflict(String header, String message, List<File> conflictedFiles) {
+        checkNotNull(header);
+        checkNotNull(message);
+
+        try {
+
+            freemarker.template.Configuration cfg = new freemarker.template.Configuration(freemarker.template.Configuration.getVersion());
+            cfg.setClassForTemplateLoading(PrompterImpl.class, "/freemarker");
+            cfg.setDefaultEncoding("UTF-8");
+            cfg.setTemplateExceptionHandler(TemplateExceptionHandler.RETHROW_HANDLER);
+            cfg.setLogTemplateExceptions(false);
+
+            Template template;
+            Map<String, Object> data = new HashMap<>();
+            if (null == conflictedFiles || conflictedFiles.isEmpty()) {
+                template = cfg.getTemplate("error.ftl");
+                data.put("header", header);
+                data.put("message", message);
+                data.put("message", message);
+            } else {
+                template = cfg.getTemplate("merge-conflict.ftl");
+                data.put("header", header);
+                data.put("conflicts", conflictedFiles);
+            }
+
+            // Console output
+            Writer out = new OutputStreamWriter(System.out);
+            template.process(data, out);
+            out.flush();
+
+        } catch (TemplateException | IOException ex) {
+            LOG.error("{} {}", header, message, ex);
+        }
+    }
+}
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/Prompter.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/Prompter.java
index af0dcda..d129d14 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/Prompter.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/Prompter.java
@@ -19,7 +19,7 @@ import java.io.IOException;
 import java.util.List;
 
 /**
  * Prompt for user input
  *
- * @since 2.3
+ * @since 3.0
  */
diff --git a/ggitflow-maven-plugin/src/main/resources/freemarker/choices.ftl b/ggitflow-maven-plugin/src/main/resources/freemarker/choices.ftl
index 3420aec..ea33ef8 100644
--- a/ggitflow-maven-plugin/src/main/resources/freemarker/choices.ftl
+++ b/ggitflow-maven-plugin/src/main/resources/freemarker/choices.ftl
@@ -1,12 +1,12 @@
-<#macro fg color>${'\x1B'}[${color + 32}m</#macro>
+<#macro fg color>${'\x1B'}[${color}m</#macro>
 <#macro bold>${'\x1B'}[1m</#macro>
 <#macro reset>${'\x1B'}[0m</#macro>
 
 <#assign header = header + ":">
-<@fg 4/><@bold/>=====${""?right_pad(header?length, "=")}=====
-<@fg 4/><@bold/>===  ${header?right_pad(header?length)}  ===
-<@fg 4/><@bold/>=====${""?right_pad(header?length, "=")}=====
+<@fg 42/><@bold/>=====${""?right_pad(header?length, "=")}=====<@reset/>
+<@fg 42/><@bold/>===  ${header?right_pad(header?length)}  ===<@reset/>
+<@fg 42/><@bold/>=====${""?right_pad(header?length, "=")}=====<@reset/>
 <#assign y = 0>
 <#list choices?chunk(5) as row>
-  <#list row as cell><#assign y++><@fg 4/><@bold/>${"(${y})"?right_pad(5)}<@reset/>${cell?right_pad(30)}</#list>
+  <#list row as cell><#assign y++><@fg 42/><@bold/>${"(${y})"?right_pad(5)}<@reset/>${cell?right_pad(30)}</#list>
 </#list>
diff --git a/ggitflow-maven-plugin/src/main/resources/freemarker/error.ftl b/ggitflow-maven-plugin/src/main/resources/freemarker/error.ftl
new file mode 100644
index 0000000..a418f1d
--- /dev/null
+++ b/ggitflow-maven-plugin/src/main/resources/freemarker/error.ftl
@@ -0,0 +1,11 @@
+<#macro fg color>${'\x1B'}[${color}m</#macro>
+<#macro bold>${'\x1B'}[1m</#macro>
+<#macro reset>${'\x1B'}[0m</#macro>
+
+<#assign header = header + ":">
+<@fg 31/><@bold/>=====${""?right_pad(header?length, "=")}=====<@reset/>
+<@fg 31/><@bold/>===  ${header?right_pad(header?length)}  ===<@reset/>
+<@fg 31/><@bold/>=====${""?right_pad(header?length, "=")}=====<@reset/>
+
+<@fg 31/><@bold/>${message}<@reset/>
+
diff --git a/ggitflow-maven-plugin/src/main/resources/freemarker/merge-conflict.ftl b/ggitflow-maven-plugin/src/main/resources/freemarker/merge-conflict.ftl
new file mode 100644
index 0000000..a5c3ce1
--- /dev/null
+++ b/ggitflow-maven-plugin/src/main/resources/freemarker/merge-conflict.ftl
@@ -0,0 +1,15 @@
+<#macro fg color>${'\x1B'}[${color}m</#macro>
+<#macro bold>${'\x1B'}[1m</#macro>
+<#macro reset>${'\x1B'}[0m</#macro>
+
+<#assign header = header + ":">
+<@fg 31/><@bold/>=====${""?right_pad(header?length, "=")}=====<@reset/>
+<@fg 31/><@bold/>===  ${header?right_pad(header?length)}  ===<@reset/>
+<@fg 31/><@bold/>=====${""?right_pad(header?length, "=")}=====<@reset/>
+
+<@fg 31/><@bold/>Files in conflict:<@reset/>
+
+<#list conflicts as conflict>
+                <@fg 31/><@bold/>${conflict}<@reset/>
+</#list>
+

commit 0f6e00b0724949f4fa724af888a0d47cf9c4f8c2
Author: dkirrane <dkirrane@avaya.com>
Date:   Thu Sep 22 20:31:28 2016 +0100

    multi caths

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/util/Finder.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/util/Finder.java
index 7b7330c..a364dae 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/util/Finder.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/util/Finder.java
@@ -31,62 +31,62 @@ import org.slf4j.LoggerFactory;
 /**
  * A {@code java.nio.file.FileVisitor} that finds all files that match the
  * specified pattern.
  *
  * @author dkirrane
  */
 public class Finder extends SimpleFileVisitor<Path> {
 
     private static final Logger LOG = LoggerFactory.getLogger(Finder.class.getName());
 
     public enum Syntax {
         glob, regex;
     }
 
     private final PathMatcher matcher;
-    private List<Path> files = new ArrayList<Path>();
+    private List<Path> files = new ArrayList<>();
 
     /**
      *
      * @param syntax "glob" and "regex" syntax
      * @param pattern pattern to match
      */
     public Finder(Syntax syntax, String pattern) {
         matcher = FileSystems.getDefault().getPathMatcher(syntax.name() + ':' + pattern);
     }
 
     public void find(Path file) {
         Path name = file.getFileName();
         if (name != null && matcher.matches(name)) {
             LOG.debug("Found file " + file);
             files.add(file);
         }
     }
 
     /**
      * Get files matching provided pattern
      *
      * @return empty list if no files found
      */
     public List<Path> getPaths() {
         return files;
     }
 
     @Override
     public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) {
         find(file);
         return CONTINUE;
     }
 
     @Override
     public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) {
         find(dir);
         return CONTINUE;
     }
 
     @Override
     public FileVisitResult visitFileFailed(Path file, IOException exc) {
         System.err.println(exc);
         return CONTINUE;
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/util/MavenUtil.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/util/MavenUtil.java
index 9bf3291..e04e0df 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/util/MavenUtil.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/util/MavenUtil.java
@@ -29,44 +29,42 @@ import org.codehaus.plexus.util.xml.pull.XmlPullParserException;
 /**
  *
  */
 public final class MavenUtil {
 
     public static MavenProject getRootProject(List<MavenProject> reactorProjects) {
         MavenProject project = reactorProjects.get(0);
         for (MavenProject currentProject : reactorProjects) {
             if (currentProject.isExecutionRoot()) {
                 project = currentProject;
                 break;
             }
         }
         return project;
     }
 
     public static Model readPom(List<MavenProject> reactorProjects) throws MojoExecutionException {
         MavenProject rootProject = getRootProject(reactorProjects);
         File pomFile = rootProject.getFile();
 
         FileReader fileReader = null;
 
         try {
             fileReader = new FileReader(pomFile);
             MavenXpp3Reader m = new MavenXpp3Reader();
             Model model = m.read(fileReader);
             return model;
         } catch (FileNotFoundException ex) {
             throw new MojoExecutionException("POM " + pomFile.getAbsolutePath() + " could not be parsed.", ex);
-        } catch (IOException ex) {
-            throw new MojoExecutionException("POM " + pomFile.getAbsolutePath() + " could not be parsed.", ex);
-        } catch (XmlPullParserException ex) {
+        } catch (IOException | XmlPullParserException ex) {
             throw new MojoExecutionException("POM " + pomFile.getAbsolutePath() + " could not be parsed.", ex);
         } finally {
             if (null != fileReader) {
                 try {
                     fileReader.close();
                 } catch (IOException ex) {
                 }
             }
         }
     }
 
 }

commit d7be2befa91578d40f66a65bfad35bbda20f628b
Author: dkirrane <dkirrane@avaya.com>
Date:   Thu Sep 22 20:25:38 2016 +0100

    fix reload reactor

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index 7568176..4eec4b7 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -26,2 +26,3 @@ import com.google.common.base.Splitter;
 import com.google.common.collect.ImmutableList;
+import static com.google.common.collect.Lists.newArrayList;
 import java.io.File;
@@ -40,10 +41,8 @@ import org.apache.commons.lang.exception.ExceptionUtils;
 import org.apache.maven.artifact.Artifact;
+import org.apache.maven.execution.MavenExecutionRequest;
 import org.apache.maven.execution.MavenSession;
+import org.apache.maven.execution.ReactorManager;
 import org.apache.maven.model.Dependency;
 import org.apache.maven.model.DependencyManagement;
-import org.apache.maven.model.Model;
 import org.apache.maven.model.Plugin;
-import org.apache.maven.model.building.DefaultModelProcessor;
-import org.apache.maven.model.io.DefaultModelReader;
-import org.apache.maven.model.locator.DefaultModelLocator;
 import org.apache.maven.plugin.AbstractMojo;
@@ -54,3 +53,8 @@ import org.apache.maven.plugins.annotations.Component;
 import org.apache.maven.plugins.annotations.Parameter;
+import org.apache.maven.project.DuplicateProjectException;
 import org.apache.maven.project.MavenProject;
+import org.apache.maven.project.ProjectBuilder;
+import org.apache.maven.project.ProjectBuildingException;
+import org.apache.maven.project.ProjectBuildingRequest;
+import org.apache.maven.project.ProjectBuildingResult;
 import org.apache.maven.shared.release.ReleaseResult;
@@ -60,4 +64,6 @@ import org.apache.maven.shared.release.exec.MavenExecutor;
 import org.apache.maven.shared.release.exec.MavenExecutorException;
+import org.apache.maven.shared.release.util.ReleaseUtil;
 import org.codehaus.plexus.util.FileUtils;
 import org.codehaus.plexus.util.StringUtils;
+import org.codehaus.plexus.util.dag.CycleDetectedException;
 import org.codehaus.plexus.util.xml.Xpp3Dom;
@@ -76,455 +82,478 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 public class AbstractGitflowMojo extends AbstractMojo {
 
     public final Pattern matchSnapshotRegex = Pattern.compile("-SNAPSHOT");
 
     public static final ImmutableList<String> DEFAULT_INSTALL_ARGS = ImmutableList.of(
             "-DinstallAtEnd=false");
 
     public static final ImmutableList<String> DEFAULT_DEPLOY_ARGS = ImmutableList.of(
             "-DdeployAtEnd=false",
             "-DretryFailedDeploymentCount=2");
 
     public static final Splitter PROFILES_SPLITTER = Splitter.on(',').trimResults().omitEmptyStrings();
     public static final Joiner PROFILES_JOINER = Joiner.on(',').skipNulls();
 
     private static final Plugin VERSIONS_MVN_PLUGIN = plugin(
             groupId("org.codehaus.mojo"),
             artifactId("versions-maven-plugin"),
             version("2.1")
     );
 
     @Parameter(defaultValue = "${session}", readonly = true)
     protected MavenSession session;
 
     @Parameter(defaultValue = "${project}", readonly = true)
     protected MavenProject project;
 
     @Parameter(defaultValue = "${reactorProjects}", readonly = true, required = true)
     protected List<MavenProject> reactorProjects;
 
+    @Component
+    private ProjectBuilder projectBuilder;
+
     @Component
     protected BuildPluginManager pluginManager;
 
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
     @Component(role = Prompter.class)
     protected Prompter prompter;
 
     /**
      * Gitflow branches and prefixes to use.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
     /**
      * Message prefix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgPrefix", defaultValue = "", required = false)
     protected String msgPrefix;
 
     /**
      * Message suffix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgSuffix", defaultValue = "", required = false)
     protected String msgSuffix;
 
     private GitflowInit init;
     private Path tempDir;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             getLog().debug("Gitflow pom  '" + project.getBasedir() + "'");
         }
 
         GitflowInit gitflowInit = getGitflowInit();
 
         gitflowInit.requireGitRepo();
         gitflowInit.checkRemoteConnection();
 
         if (!gitflowInit.gitflowIsInitialized()) {
             try {
                 gitflowInit.cmdDefault();
             } catch (GitflowException ex) {
                 throw new MojoExecutionException("Failed to initialise Gitflow " + ex.getMessage(), ex);
             }
         }
 
         gitflowInit.requireCleanWorkingTree();
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     protected final GitflowInit getGitflowInit() {
         if (null == init) {
             getLog().debug("Initialising Gitflow");
             init = new GitflowInit();
             File basedir = getProject().getBasedir();
             getLog().debug("Setting base directory " + basedir);
             init.setRepoDir(basedir);
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
 
             /* root Git directory may not be the pom directory */
             String gitRootPath = init.executeLocal("git rev-parse --show-toplevel");
             getLog().debug("Git repo top level " + gitRootPath);
             File baseGitDir = new File(gitRootPath);
             if (baseGitDir.isDirectory()) {
                 getLog().debug("Setting git base directory " + baseGitDir);
                 init.setRepoDir(baseGitDir);
             }
 
             /* Create temp directory - delete any previous first */
             try {
                 Finder finder = new Finder(Syntax.glob, "mvn-gitflow*");
                 Files.walkFileTree(Paths.get(System.getProperty("java.io.tmpdir")), finder);
                 List<Path> paths = finder.getPaths();
                 getLog().debug("Deleting old temp directories " + paths);
                 for (Path path : paths) {
                     FileUtils.deleteDirectory(path.toFile());
                 }
                 tempDir = Files.createTempDirectory("mvn-gitflow");
             } catch (IOException ioe) {
                 getLog().error("Failed to create temp directory", ioe);
             }
         }
         return init;
     }
 
     protected final boolean setVersion(String version, Boolean push, String branch) throws MojoExecutionException, MojoFailureException {
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         MavenProject topLevelProject = session.getTopLevelProject();
         session.setCurrentProject(topLevelProject);
 
         String goal = goal("set");
         Xpp3Dom configuration = configuration(
                 element(name("generateBackupPoms"), "false"),
                 element(name("newVersion"), version)
         );
 
         String mavenCommand = getMavenCommand(VERSIONS_MVN_PLUGIN, goal);
 
         getLog().info("");
         getLog().info("--- " + mavenCommand + " " + topLevelProject.getArtifactId() + " to " + version + " (" + branch + ") ---");
         executeMyMojo(VERSIONS_MVN_PLUGIN, goal, configuration);
         getLog().info("------------------------------------------------------------------------");
 
         boolean commitMade = false;
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (push && getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change " + version + " to origin. ExitCode:" + exitCode);
                 }
             }
             commitMade = true;
         }
         /* We don't want to fail maybe the version was manually set correctly */
 //        else {
 //            throw new MojoFailureException("Failed to update poms to version " + version);
 //        }
         return commitMade;
     }
 
     protected final boolean setNextVersions(Boolean allowSnapshots, Boolean updateParent, String includes) throws MojoExecutionException, MojoFailureException {
         getLog().debug("setNextVersions");
 
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         MavenProject topLevelProject = session.getTopLevelProject();
         session.setCurrentProject(topLevelProject);
 
         if (updateParent) {
             String updateParentGoal = goal("update-parent");
             Xpp3Dom configuration = configuration(
                     element(name("generateBackupPoms"), "false"),
                     element(name("allowSnapshots"), allowSnapshots.toString())
             );
 
             String mavenCommand = getMavenCommand(VERSIONS_MVN_PLUGIN, updateParentGoal);
             getLog().info("");
             getLog().info("--- " + mavenCommand + " " + topLevelProject.getArtifactId() + " ---");
             executeMyMojo(VERSIONS_MVN_PLUGIN, updateParentGoal, configuration);
             getLog().info("------------------------------------------------------------------------");
         }
 
         if (!StringUtils.isBlank(includes)) {
             String useNextVersionsGoal = goal("use-next-versions");
             Xpp3Dom configuration = configuration(
                     element(name("generateBackupPoms"), "false"),
                     element(name("allowSnapshots"), allowSnapshots.toString()),
                     element(name("includesList"), includes)
             );
 
             String mavenCommand = getMavenCommand(VERSIONS_MVN_PLUGIN, useNextVersionsGoal);
             getLog().info("");
             getLog().info("--- " + mavenCommand + " " + topLevelProject.getArtifactId() + " ---");
             executeMyMojo(VERSIONS_MVN_PLUGIN, useNextVersionsGoal, configuration);
             getLog().info("------------------------------------------------------------------------");
         } else {
             getLog().warn("Parameter <includes> is not set. Skipping dependency updates");
         }
 
         boolean commitMade = false;
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg;
             if (allowSnapshots) {
                 msg = getMsgPrefix() + "Replaces any release versions with the next snapshot version (if it has been deployed)." + getMsgSuffix();
             } else {
                 msg = getMsgPrefix() + "Replaces snapshot versions with the corresponding release version" + getMsgSuffix();
             }
 
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change to origin. ExitCode:" + exitCode);
                 }
             }
             commitMade = true;
         }
         return commitMade;
     }
 
     protected final void executeMyMojo(Plugin plugin, String goal, Xpp3Dom configuration) throws MojoExecutionException, MojoFailureException {
         String mavenCommand = getMavenCommand(plugin, goal);
         MavenProject topLevelProject = session.getTopLevelProject();
         String projArtifactId = topLevelProject.getArtifactId();
         getLog().debug("START " + mavenCommand + " on " + projArtifactId);
         getLog().debug("configuration " + configuration.toUnescapedString());
 
         /* Maven 3.3.x log settings */
 //        session.getRequest().setLoggingLevel(MavenExecutionRequest.LOGGING_LEVEL_WARN);
 //        System.setProperty("org.slf4j.simpleLogger.defaultLogLevel", "error");
 //        System.setProperty("maven.logging.root.level", "error");
         PrintStream stdout = System.out;
         PrintStream stoutStream = null;
         Path tempStoutFile = null;
         try {
 
             /* Capture System.out */
             if (!getLog().isDebugEnabled()) {
                 try {
                     String logFileName = plugin.getArtifactId() + '-' + goal + '-';
                     tempStoutFile = Files.createTempFile(tempDir, logFileName, ".log");
                     stoutStream = new PrintStream(new FileOutputStream(tempStoutFile.toFile(), true));
                     System.setOut(stoutStream);
                 } catch (Exception ioe) {
                     getLog().warn("Failed to capture System.out", ioe);
                 }
             }
 
             /* Execute Maven plugin goal */
             executeMojo(
                     plugin,
                     goal,
                     configuration,
                     executionEnvironment(
                             session.getTopLevelProject(),
                             session,
                             pluginManager
                     )
             );
 
         } catch (MojoExecutionException mee) {
             /* Reset System.out */
             System.setOut(stdout);
             String rootCauseMessage = ExceptionUtils.getRootCauseMessage(mee);
             if (rootCauseMessage.contains("Project version is inherited from parent")) {
                 getLog().debug("Skipping " + mavenCommand + " for project " + projArtifactId + ". Project version is inherited from parent.");
             } else {
                 getLog().error("Failed to execute " + mavenCommand + " on " + projArtifactId, mee);
                 throw mee;
             }
         } finally {
             if (!getLog().isDebugEnabled()) {
                 /* Reset System.out */
                 System.setOut(stdout);
 
                 if (null != tempStoutFile) {
                     getLog().info(mavenCommand + " log " + tempStoutFile.toString());
                 }
 
                 if (null != stoutStream) {
                     try {
                         stoutStream.close();
                     } catch (Exception e) {
                     }
                 }
             }
             getLog().debug("DONE " + mavenCommand);
         }
     }
 
     private String getMavenCommand(Plugin plugin, String goal) {
         return plugin.getArtifactId() + ':' + plugin.getVersion() + ':' + goal;
     }
 
     protected final void runGoals(String goals, List<String> additionalArgs) throws MojoExecutionException, MojoFailureException {
         getLog().debug("START executing " + goals + " with args " + additionalArgs);
 
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         File basedir = rootProject.getBasedir();
 
         ReleaseResult result = new ReleaseResult();
         ReleaseEnvironment env = new DefaultReleaseEnvironment();
         env.setSettings(session.getSettings());
         MavenExecutor mavenExecutor = mavenExecutors.get(env.getMavenExecutorId());
 
         Joiner joiner = Joiner.on(" ").skipNulls();
         String additionalArguments = joiner.join(additionalArgs);
         getLog().debug("additionalArguments " + additionalArguments);
 
         try {
             mavenExecutor.executeGoals(basedir, goals, env, false, additionalArguments, result);
         } catch (MavenExecutorException ex) {
             throw new MojoExecutionException(result.getOutput(), ex);
         }
         getLog().debug("DONE executing " + goals);
     }
 
     protected final String getReleaseVersion(String version) throws MojoFailureException {
         getLog().debug("Current Develop version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
             getLog().debug("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
     protected final void checkForSnapshotDependencies() throws MojoExecutionException {
         getLog().info("Checking for SNAPSHOT dependencies");
         Boolean hasDepSnapshots = false;
         Boolean hasParentSnapshot = false;
         for (MavenProject mavenProject : reactorProjects) {
             String artifactId = mavenProject.getArtifactId();
 
             /* Check <parent> */
             Artifact parentArtifact = mavenProject.getParentArtifact();
             if (parentArtifact != null && parentArtifact.isSnapshot()) {
                 getLog().error("Parent of project " + artifactId + " is a SNAPSHOT " + parentArtifact.getId());
                 hasParentSnapshot = true;
             }
 
             /* Check <dependencyManagement> */
             DependencyManagement dependencyManagement = mavenProject.getDependencyManagement();
             if (null != dependencyManagement) {
                 if (checkForSnapshot(artifactId, dependencyManagement.getDependencies())) {
                     hasDepSnapshots = true;
                 }
             }
 
             /* Check <dependencies> */
             if (checkForSnapshot(artifactId, mavenProject.getDependencies())) {
                 hasDepSnapshots = true;
             }
         }
         if (hasParentSnapshot || hasDepSnapshots) {
             throw new MojoExecutionException("Cannot release because SNAPSHOT dependencies exist");
         }
     }
 
     private boolean checkForSnapshot(String artifactId, List<Dependency> dependencies) throws MojoExecutionException {
         Boolean hasSnapshotDependency = false;
         for (Dependency dependency : dependencies) {
             String version = dependency.getVersion();
             Matcher versionMatcher = matchSnapshotRegex.matcher(version);
             if (versionMatcher.find() && versionMatcher.end() == version.length()) {
                 getLog().error("Project " + artifactId + " contains SNAPSHOT dependency: " + dependency.getGroupId() + ":" + dependency.getArtifactId() + ":" + version);
                 hasSnapshotDependency = true;
             }
         }
         return hasSnapshotDependency;
     }
 
-    protected final void reloadReactorProjects() {
+    protected void reloadReactorProjects() {
         getLog().debug("Reloading poms...");
 
         List<MavenProject> updatedReactorProjects = new ArrayList<>();
-        for (MavenProject mavenProject : reactorProjects) {
-            File pomFile = mavenProject.getFile();
-            if (pomFile.canRead()) {
-                Model readModel = readModel(pomFile);
-                MavenProject updatedMavenProject = new MavenProject(readModel);
-                updatedReactorProjects.add(updatedMavenProject);
-            } else {
-                getLog().warn("Cannot reload pom file " + pomFile + ". It may not exist on this Git branch");
+
+        MavenProject rootProject = ReleaseUtil.getRootProject(reactorProjects);
+        getLog().debug("rootProject = " + rootProject);
+        if (rootProject.getFile().exists() && rootProject.getFile().canRead()) {
+            MavenExecutionRequest mavenExecutionRequest = session.getRequest();
+            ProjectBuildingRequest projectBuildingRequest = mavenExecutionRequest.getProjectBuildingRequest();
+            try {
+                List<ProjectBuildingResult> buildResults = projectBuilder.build(newArrayList(rootProject.getFile()), true, projectBuildingRequest);
+                for (ProjectBuildingResult buildResult : buildResults) {
+                    MavenProject reloadProject = buildResult.getProject();
+                    reloadProject.setActiveProfiles(rootProject.getActiveProfiles());
+                    updatedReactorProjects.add(reloadProject);
+                }
+            } catch (ProjectBuildingException ex) {
+                getLog().error("Build error reloading Maven projects", ex);
             }
         }
-        for (MavenProject updatedReactorProject : updatedReactorProjects) {
-            getLog().debug(String.format("\t %-30s %-30s", updatedReactorProject.getArtifactId(), updatedReactorProject.getVersion()));
-        }
-
-        getLog().debug("Reloading poms complete");
-    }
-
-    private static Model readModel(File pomFile) {
-        DefaultModelProcessor modelProcessor = new DefaultModelProcessor();
-        modelProcessor.setModelLocator(new DefaultModelLocator());
-        modelProcessor.setModelReader(new DefaultModelReader());
 
         try {
-            return modelProcessor.read(pomFile, null);
-        } catch (IOException ex) {
-            throw new IllegalStateException("Failed to build model from pom " + pomFile, ex);
+            ReactorManager reactorManager = new ReactorManager(updatedReactorProjects);
+            updatedReactorProjects = reactorManager.getSortedProjects();
+        } catch (CycleDetectedException | DuplicateProjectException ex) {
+            getLog().error("Failed to sort reactor projects", ex);
+        }
+
+        session.setProjects(updatedReactorProjects);
+        project = ReleaseUtil.getRootProject(updatedReactorProjects);
+        reactorProjects = updatedReactorProjects;
+
+        if (getLog().isDebugEnabled()) {
+            getLog().debug("Updated MavenSession: " + session);
+            getLog().debug("Updated MavenProject: " + project);
+            getLog().debug("Updated reactorProjects: ");
+            for (int i = 0; i < reactorProjects.size(); i++) {
+                MavenProject updatedReactorProject = updatedReactorProjects.get(i);
+                System.out.println("");
+                System.out.printf(" %d) %s:%s \n \t\t\t Parent: %s \n \t\t\t DependencyManagement:%s \n \t\t\t Dependencies:%s \n",
+                        i,
+                        updatedReactorProject.getArtifactId(), updatedReactorProject.getVersion(),
+                        updatedReactorProject.getParentArtifact(),
+                        null != updatedReactorProject.getDependencyManagement() ? updatedReactorProject.getDependencyManagement().getDependencies() : null,
+                        updatedReactorProject.getDependencies());
+                System.out.println("");
+            }
         }
+
+        getLog().debug("Reloading poms complete");
     }
 
     protected List<String> rearrange(String input, List<String> strings) {
         strings.remove(input);
         strings.add(0, input);
         return strings;
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
index 5ed74ad..9a42722 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
@@ -23,4 +23,2 @@ import java.io.IOException;
 import java.util.List;
-import java.util.logging.Level;
-import java.util.logging.Logger;
 import org.apache.maven.plugin.MojoExecutionException;
@@ -29,3 +27,2 @@ import org.apache.maven.plugins.annotations.Mojo;
 import org.apache.maven.plugins.annotations.Parameter;
-import org.codehaus.plexus.components.interactivity.PrompterException;
 import org.codehaus.plexus.util.StringUtils;
@@ -33,166 +30,166 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  * Merges a feature branch back into the develop.
  */
 @Mojo(name = "feature-finish", aggregator = true)
 public class FeatureFinishMojo extends AbstractFeatureMojo {
 
     /**
      * If <code>true</code>, the feature finish merge to develop will get pushed
      * to the remote repository
      *
      * @since 1.6
      */
     @Parameter(property = "pushFeatureFinish", defaultValue = "false", required = false)
     protected boolean pushFeatureFinish;
 
     /**
      * If <code>true</code>, the feature branch will be rebased onto develop,
      * then finish will fast-forward merge the feature branch back onto develop.
      *
      * @since 1.2
      */
     @Parameter(property = "isRebase", defaultValue = "false", required = false)
     private boolean isRebase;
 
 //    No good way to handle Interactive rebase from a Maven plugin
 //    /**
 //     * If <code>true</code>, and <code>isRebase</code> is true, then an interactive rebase is
 //     * performed for the feature branch.
 //     *
 //     * @since 1.2
 //     */
 //    @Parameter(property = "isInteractive", defaultValue = "false", required = false)
     private final boolean isInteractive = false;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "true", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any tests during <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipTests", defaultValue = "true", required = false)
     private Boolean skipTests;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the local feature branch will not be deleted after
      * the merge.
      *
      * @since 1.6
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keepLocal;
 
     /**
      * If <code>true</code>, the remote feature branch will not be deleted after
      * the merge.
      *
      * @since 1.6
      */
     @Parameter(property = "keep", defaultValue = "true", required = false)
     private Boolean keepRemote;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().debug("Finishing feature");
 
         String prefix = getFeatureBranchPrefix();
         List<String> featureBranches = getGitflowInit().gitLocalFeatureBranches();
         if (null == featureBranches || featureBranches.isEmpty()) {
             throw new MojoFailureException("No local feature branches exist!");
         }
 
         if (StringUtils.isBlank(featureName)) {
             String featureBranch = promptForExistingFeatureBranch(prefix, featureBranches);
             featureName = trimFeatureName(featureBranch);
         } else {
             featureName = trimFeatureName(featureName);
             if (!getGitflowInit().gitLocalBranchExists(prefix + featureName)) {
                 throw new MojoFailureException("No local feature branch named '" + prefix + featureName + "' exists!");
             }
         }
 
         getLog().info("Finishing feature '" + featureName + "'");
 
         if (enableFeatureVersions) {
             /* Switch to develop branch and get its current version */
             getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
             reloadReactorProjects();
             String developVersion = project.getVersion();
             getLog().debug("develop version = " + developVersion);
 
             /* Switch to feature branch and get its current version */
             getGitflowInit().executeLocal("git checkout " + prefix + featureName);
             reloadReactorProjects();
             String featureVersion = project.getVersion();
             getLog().debug("feature version = " + featureVersion);
 
             setVersion(developVersion, pushFeatureFinish, prefix + featureName);
         }
 
         if (skipBuild == false) {
-            ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
+            ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<>();
             additionalArgs.addAll(DEFAULT_INSTALL_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             runGoals("clean install", additionalArgs.build());
         } else {
             getLog().debug("Skipping mvn install for feature " + featureName);
         }
 
         GitflowFeature gitflowFeature = new GitflowFeature();
         gitflowFeature.setInit(getGitflowInit());
         gitflowFeature.setMsgPrefix(getMsgPrefix());
         gitflowFeature.setMsgSuffix(getMsgSuffix());
         gitflowFeature.setPush(pushFeatureBranch);
         gitflowFeature.setSquash(squash);
         gitflowFeature.setKeepLocal(keepLocal);
         gitflowFeature.setKeepRemote(keepRemote);
         gitflowFeature.setIsRebase(isRebase);
         gitflowFeature.setIsInteractive(isInteractive);
 
         try {
             gitflowFeature.finish(featureName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
     }
 
     private String promptForExistingFeatureBranch(String prefix, List<String> featureBranches) throws MojoFailureException {
         List<String> choices = featureBranches;
 
         /* if current branch is a feature branch at it to start of list so it is the default in prompt */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (currentBranch.startsWith(prefix)) {
             choices = rearrange(currentBranch, featureBranches);
         }
 
         String name = "";
         try {
             prompter.promptChoice("Feature branches", "Please select a feature branch to finish", choices);
         } catch (IOException ex) {
             throw new MojoFailureException("Error reading feature name from command line " + ex.getMessage());
         }
         return name.trim();
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index a74b58b..62deb2e 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -29,3 +29,2 @@ import org.apache.maven.plugins.annotations.Mojo;
 import org.apache.maven.plugins.annotations.Parameter;
-import org.codehaus.plexus.components.interactivity.PrompterException;
 import org.codehaus.plexus.util.StringUtils;
@@ -34,347 +33,347 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  * Merges a release branch back into the develop and master branch and then
  * creates a tag for the release on master.
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
 
     /**
      * If <code>true</code>, the release finish merge to develop & master and
      * the created tag will get pushed to the remote repository
      *
      * @since 1.6
      */
     @Parameter(property = "pushReleaseFinish", defaultValue = "false", required = false)
     protected boolean pushReleaseFinish;
 
     /**
      * If <code>true</code>, the release can still finish even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private Boolean allowSnapshots;
 
     /**
      * If the project has a parent with a release version it will be replaced
      * with the next <code>-SNAPSHOT</code> version (if it has been deployed).
      * This action is performed on the develop branch after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "updateParent", defaultValue = "false", required = false)
     private Boolean updateParent;
 
     /**
      * On the release branch before finish is called any dependencies with a
      * <code>-SNAPSHOT</code> version are replaced with the corresponding
      * release version (if it has been released).
      *
      * On the develop branch after the merge any dependencies with a release
      * version are replaced with the next <code>-SNAPSHOT</code> version (if it
      * has been deployed).
      *
      * @since 1.2
      */
     @Parameter(property = "updateDependencies", defaultValue = "false", required = false)
     private Boolean updateDependencies;
 
     /**
      * If <code>updateDependencies</code> is set, then this should contain a
      * comma separated list of artifact patterns to include. Follows the pattern <code>groupId:artifactId:type:classifier:version<code>
      *
      * @since 1.5
      */
     @Parameter(property = "includes", defaultValue = "", required = false)
     private String includes;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "true", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any calls to <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipDeploy", defaultValue = "true", required = false)
     private Boolean skipDeploy;
 
     /**
      * Skips any tests during <code>mvn install</code> and
      * <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipTests", defaultValue = "true", required = false)
     private Boolean skipTests;
 
     /**
      * Whether to use the release profile that adds sources and javadoc to the
      * released artifact, if appropriate. If set to true, the release-finish
      * will set the property "performRelease" to true, which activates the
      * profile "release-profile", which is inherited from the super pom.
      *
      * @since 1.2
      */
     @Parameter(property = "useReleaseProfile", defaultValue = "true", required = false)
     private Boolean useReleaseProfile;
 
     /**
      * Comma separated profiles to enable on deployment, in addition to active
      * profiles for project execution.
      *
      * @since 1.2
      */
     @Parameter(property = "releaseProfiles", defaultValue = "", required = false)
     private String releaseProfiles;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the local release branch will not be deleted after
      * the merge.
      *
      * @since 1.6
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keepLocal;
 
     /**
      * If <code>true</code>, the remote release branch will not be deleted after
      * the merge.
      *
      * @since 1.6
      */
     @Parameter(property = "keep", defaultValue = "true", required = false)
     private Boolean keepRemote;
 
     /**
      * If <code>true</code>, the release tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().debug("Finishing release");
 
         /* Fetch any new tags and prune any branches that may already be deleted */
         getGitflowInit().executeRemote("git fetch --tags --prune");
 
         /* Get release branch name */
         String prefix = getReleaseBranchPrefix();
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
         if (releaseBranches.isEmpty()) {
             throw new MojoFailureException("Could not find any local release branch!");
         }
 
         if (StringUtils.isBlank(releaseName)) {
             if (releaseBranches.size() == 1) {
                 String releaseBranch = releaseBranches.get(0);
                 releaseName = trimReleaseName(releaseBranch);
             } else {
                 String releaseBranch = promptForExistingReleaseBranch(prefix, releaseBranches);
                 releaseName = trimReleaseName(releaseBranch);
             }
 
         } else {
             releaseName = trimReleaseName(releaseName);
             if (!getGitflowInit().gitLocalBranchExists(prefix + releaseName)) {
                 throw new MojoFailureException("No local release branch named '" + prefix + releaseName + "' exists!");
             }
         }
 
         getLog().info("Finishing release '" + releaseName + "'");
-        
+
         String releaseBranch = prefix + releaseName;
 
         /* Switch to develop branch and get its current version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         getLog().debug("develop version = " + developVersion);
 
         /* Switch to release branch and set poms to release version */
         getGitflowInit().executeLocal("git checkout " + releaseBranch);
         reloadReactorProjects();
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(project.getVersion());
         String releaseVersion;
         if ("SNAPSHOT".equals(artifactVersion.getBuildSpecifier())) {
             releaseVersion = getReleaseVersion(project.getVersion());
         } else {
             releaseVersion = project.getVersion();
         }
         getLog().debug("release version = " + releaseVersion);
 
         boolean setVersion = setVersion(releaseVersion, pushReleaseFinish, releaseBranch);
 
         /* Update release branch dependencies to release version */
         boolean setNextVersions = false;
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions = setNextVersions(false, updateParent, includes);
         }
 
         if (!allowSnapshots) {
             reloadReactorProjects();
             try {
                 checkForSnapshotDependencies();
             } catch (MojoExecutionException mee) {
                 // reset setNextVersions and/or setVersion commits to allow user fix & push SNAPSHOT dependencies
                 // but can only reset if it the commits have not been pushed */
                 if (!pushReleaseFinish) {
                     if (setNextVersions) {
                         getGitflowInit().executeLocal("git reset --hard HEAD~1");
                     }
                     if (setVersion) {
                         getGitflowInit().executeLocal("git reset --hard HEAD~1");
                     }
                 }
                 throw mee;
             }
         }
 
         /* finish release */
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setPush(pushReleaseBranch);
         gitflowRelease.setSquash(squash);
         gitflowRelease.setKeepLocal(keepLocal);
         gitflowRelease.setKeepRemote(keepRemote);
         gitflowRelease.setSign(sign);
         gitflowRelease.setSigningkey(signingkey);
 
         /* 1. merge to master */
         try {
             gitflowRelease.finishToMaster(releaseBranch, pushReleaseFinish);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
 
         /* 2. make versions in release and develop branches match to avoid conflicts */
         getGitflowInit().executeLocal("git checkout " + releaseBranch);
         reloadReactorProjects();
         boolean setDevVersion = setVersion(developVersion, pushReleaseFinish, releaseBranch);
 
         /* 3. merge to develop */
         try {
             gitflowRelease.finishToDevelop(releaseBranch, pushReleaseFinish);
         } catch (GitflowException ge) {
             // reset setVersion commit and allow user fix whatever exception occurred
             // but can only reset if the commit has not been pushed */
             if (!pushReleaseFinish && setDevVersion) {
                 getGitflowInit().executeLocal("git reset --hard HEAD~1");
             }
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
         /* Update develop branch dependencies to next snapshot version (if deployed) */
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions(true, updateParent, includes);
         }
 
         /* Switch to release tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);
         reloadReactorProjects();
         String tagVersion = project.getVersion();
         getLog().debug("tag version = " + tagVersion);
 
         /* install or deploy */
         if (skipDeploy == false) {
             String goals = "clean deploy";
             if (project.getDistributionManagement() != null
                     && project.getDistributionManagement().getSite() != null) {
                 goals += " site-deploy";
             }
 
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             if (useReleaseProfile) {
                 additionalArgs.add("-DperformRelease=true");
             }
             if (StringUtils.isNotBlank(releaseProfiles)) {
                 Iterable<String> profiles = PROFILES_SPLITTER.split(releaseProfiles);
                 additionalArgs.add("-P " + PROFILES_JOINER.join(profiles));
             }
             runGoals(goals, additionalArgs.build());
         } else if (skipBuild == false) {
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             runGoals("clean install", additionalArgs.build());
         } else {
             getLog().debug("Skipping both install and deploy for release tag " + releaseBranch);
         }
 
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingReleaseBranch(String prefix, List<String> releaseBranches) throws MojoFailureException {
         List<String> choices = releaseBranches;
 
         /* if current branch is a feature branch at it to start of list so it is the default in prompt */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (currentBranch.startsWith(prefix)) {
             choices = rearrange(currentBranch, releaseBranches);
         }
 
         String name = "";
         try {
             prompter.promptChoice("Release branches", "Please select a release branch to finish", choices);
         } catch (IOException ex) {
             throw new MojoFailureException("Error reading release name from command line " + ex.getMessage());
         }
         return name.trim();
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
index 0e31e91..ceed496 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
@@ -20,4 +20,2 @@ import com.dkirrane.gitflow.groovy.ex.GitflowException;
 import java.io.IOException;
-import java.util.logging.Level;
-import java.util.logging.Logger;
 import org.apache.maven.plugin.MojoExecutionException;
@@ -26,3 +24,2 @@ import org.apache.maven.plugins.annotations.Mojo;
 import org.apache.maven.plugins.annotations.Parameter;
-import org.codehaus.plexus.components.interactivity.PrompterException;
 import org.codehaus.plexus.util.StringUtils;
@@ -32,164 +29,155 @@ import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
 /**
  * Creates a new release branch off of the develop branch.
  */
 @Mojo(name = "release-start", aggregator = true)
 public class ReleaseStartMojo extends AbstractReleaseMojo {
 
-    /**
-     * Whether to run the plugin in interactive mode or not. The default is to
-     * run without interaction when possible.
-     *
-     * @since 1.2
-     */
-    @Parameter(property = "interactive", defaultValue = "true", required = false)
-    protected boolean interactive;
-
     /**
      * If the project has a parent with a <code>-SNAPSHOT</code> version it will
      * be replaced with the corresponding release version (if it has been
      * released). This action is performed on the release branch after it is
      * created.
      *
      * @since 1.2
      */
     @Parameter(property = "updateParent", defaultValue = "false", required = false)
     private boolean updateParent;
 
     /**
      * Any dependencies with a <code>-SNAPSHOT</code> version are replaced with
      * the corresponding release version (if it has been released). This action
      * is performed on the release branch after it is created.
      *
      * @since 1.2
      */
     @Parameter(property = "updateDependencies", defaultValue = "false", required = false)
     private boolean updateDependencies;
 
     /**
      * If <code>updateDependencies</code> is set, then this should contain a
      * comma separated list of artifact patterns to include. Follows the pattern <code>groupId:artifactId:type:classifier:version<code>
      *
      * @since 1.5
      */
     @Parameter(property = "includes", defaultValue = "", required = false)
     private String includes;
 
     /**
      * The commit to start the release branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     private String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         /* Fetch any new tags and prune any branches that may already be deleted */
         getGitflowInit().executeRemote("git fetch --tags --prune");
 
         /* Switch to develop branch and get its current version */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
         reloadReactorProjects();
 
         String developVersion = project.getVersion();
         getLog().info("Current develop version = " + developVersion);
 
         /* Get next development version */
         String nextDevelopVersion = getNextDevelopVersion(developVersion);
-        if (interactive) {
+        if (session.getRequest().isInteractiveMode()) {
             try {
                 nextDevelopVersion = prompter.promptWithDefault("Please enter the next development version? ", nextDevelopVersion);
             } catch (IOException ex) {
                 throw new MojoExecutionException("Error reading next development version from command line " + ex.getMessage(), ex);
             }
         }
         getLog().debug("Next development version = " + developVersion);
 
         /* Get suggested release version */
         String releaseVersion = getReleaseVersion(developVersion);
         getLog().debug("release version = " + releaseVersion);
 
         /* create release branch */
         String prefix = getReleaseBranchPrefix();
         if (!StringUtils.isBlank(releaseName)) {
             getLog().debug("Using releaseName passed  '" + releaseName + "'");
-        } else if (interactive) {
+        } else if (session.getRequest().isInteractiveMode()) {
             try {
                 releaseName = prompter.promptWithDefault("Please enter the release branch name? " + prefix, releaseVersion);
             } catch (IOException ex) {
                 throw new MojoExecutionException("Error reading release name from command line " + ex.getMessage(), ex);
             }
         } else {
             releaseName = releaseVersion;
         }
 
         releaseName = trimReleaseName(releaseName);
 
         if (StringUtils.isBlank(releaseName)) {
             throw new MojoFailureException("Parameter <releaseName> cannot be null or empty.");
         }
 
         GenericArtifactVersion releaseArtifactVersion;
         try {
             releaseArtifactVersion = new GenericArtifactVersion(releaseName);
             if (SNAPSHOT_QUALIFIER.equals(releaseArtifactVersion.getBuildSpecifier())) {
                 throw new IllegalArgumentException("Parameter <releaseName> is not a release version as it contains SNAPSHOT build specifier");
             }
         } catch (IllegalArgumentException e) {
             throw new MojoExecutionException("Parameter <releaseName> value '" + releaseName + "' is not a valid Maven release version.");
         }
 
         getLog().info("Starting release '" + releaseName + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setPush(pushReleaseBranch);
         gitflowRelease.setStartCommit(startCommit);
 
         try {
             gitflowRelease.start(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         // current branch should be the release branch
         String releaseBranch = getGitflowInit().gitCurrentBranch();
         if (!releaseBranch.startsWith(prefix)) {
             throw new MojoFailureException("Failed to create release version.");
         }
 
         /* Update release branch dependencies to release version */
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions(false, updateParent, includes);
         }
 
         // checkout develop branch and update it's version
         String developBranch = (String) getGitflowInit().getDevelopBrnName();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         setVersion(nextDevelopVersion, pushReleaseBranch, developBranch);
 
         // checkout release branch again and update it's version to required release version
         getGitflowInit().executeLocal("git checkout " + releaseBranch);
         reloadReactorProjects();
         setVersion(releaseArtifactVersion.setBuildSpecifier(SNAPSHOT_QUALIFIER).toString(), pushReleaseBranch, releaseBranch);
     }
 
     public String getReleaseName() {
         return releaseName;
     }
 
     private String getNextDevelopVersion(String developVersion) {
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(developVersion);
         artifactVersion.upgradeLeastSignificantPrimaryNumber();
 
         return artifactVersion.toString();
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportTagMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportTagMojo.java
index 79741e9..931a766 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportTagMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportTagMojo.java
@@ -23,3 +23,2 @@ import org.apache.maven.plugins.annotations.Mojo;
 import org.apache.maven.plugins.annotations.Parameter;
-import org.codehaus.plexus.components.interactivity.PrompterException;
 import org.codehaus.plexus.util.StringUtils;

commit e7b37dc8c2c76f6e15ea0712c959e7f3260b0f4d
Author: dkirrane <dkirrane@avaya.com>
Date:   Thu Sep 22 16:34:18 2016 +0100

    print gitflow config always

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index 15e2196..7568176 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -76,454 +76,455 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 public class AbstractGitflowMojo extends AbstractMojo {
 
     public final Pattern matchSnapshotRegex = Pattern.compile("-SNAPSHOT");
 
     public static final ImmutableList<String> DEFAULT_INSTALL_ARGS = ImmutableList.of(
             "-DinstallAtEnd=false");
 
     public static final ImmutableList<String> DEFAULT_DEPLOY_ARGS = ImmutableList.of(
             "-DdeployAtEnd=false",
             "-DretryFailedDeploymentCount=2");
 
     public static final Splitter PROFILES_SPLITTER = Splitter.on(',').trimResults().omitEmptyStrings();
     public static final Joiner PROFILES_JOINER = Joiner.on(',').skipNulls();
 
     private static final Plugin VERSIONS_MVN_PLUGIN = plugin(
             groupId("org.codehaus.mojo"),
             artifactId("versions-maven-plugin"),
             version("2.1")
     );
 
     @Parameter(defaultValue = "${session}", readonly = true)
     protected MavenSession session;
 
     @Parameter(defaultValue = "${project}", readonly = true)
     protected MavenProject project;
 
     @Parameter(defaultValue = "${reactorProjects}", readonly = true, required = true)
     protected List<MavenProject> reactorProjects;
 
     @Component
     protected BuildPluginManager pluginManager;
 
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
     @Component(role = Prompter.class)
     protected Prompter prompter;
 
     /**
      * Gitflow branches and prefixes to use.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
     /**
      * Message prefix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgPrefix", defaultValue = "", required = false)
     protected String msgPrefix;
 
     /**
      * Message suffix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgSuffix", defaultValue = "", required = false)
     protected String msgSuffix;
 
     private GitflowInit init;
     private Path tempDir;
 
     protected final MavenProject getProject() {
         return project;
     }
 
+    @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             getLog().debug("Gitflow pom  '" + project.getBasedir() + "'");
         }
 
         GitflowInit gitflowInit = getGitflowInit();
 
         gitflowInit.requireGitRepo();
         gitflowInit.checkRemoteConnection();
 
         if (!gitflowInit.gitflowIsInitialized()) {
             try {
                 gitflowInit.cmdDefault();
             } catch (GitflowException ex) {
                 throw new MojoExecutionException("Failed to initialise Gitflow " + ex.getMessage(), ex);
             }
         }
 
         gitflowInit.requireCleanWorkingTree();
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     protected final GitflowInit getGitflowInit() {
         if (null == init) {
             getLog().debug("Initialising Gitflow");
             init = new GitflowInit();
             File basedir = getProject().getBasedir();
             getLog().debug("Setting base directory " + basedir);
             init.setRepoDir(basedir);
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
 
             /* root Git directory may not be the pom directory */
             String gitRootPath = init.executeLocal("git rev-parse --show-toplevel");
             getLog().debug("Git repo top level " + gitRootPath);
             File baseGitDir = new File(gitRootPath);
             if (baseGitDir.isDirectory()) {
                 getLog().debug("Setting git base directory " + baseGitDir);
                 init.setRepoDir(baseGitDir);
             }
 
             /* Create temp directory - delete any previous first */
             try {
                 Finder finder = new Finder(Syntax.glob, "mvn-gitflow*");
                 Files.walkFileTree(Paths.get(System.getProperty("java.io.tmpdir")), finder);
                 List<Path> paths = finder.getPaths();
                 getLog().debug("Deleting old temp directories " + paths);
                 for (Path path : paths) {
                     FileUtils.deleteDirectory(path.toFile());
                 }
                 tempDir = Files.createTempDirectory("mvn-gitflow");
             } catch (IOException ioe) {
                 getLog().error("Failed to create temp directory", ioe);
             }
         }
         return init;
     }
 
     protected final boolean setVersion(String version, Boolean push, String branch) throws MojoExecutionException, MojoFailureException {
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         MavenProject topLevelProject = session.getTopLevelProject();
         session.setCurrentProject(topLevelProject);
 
         String goal = goal("set");
         Xpp3Dom configuration = configuration(
                 element(name("generateBackupPoms"), "false"),
                 element(name("newVersion"), version)
         );
 
         String mavenCommand = getMavenCommand(VERSIONS_MVN_PLUGIN, goal);
 
         getLog().info("");
         getLog().info("--- " + mavenCommand + " " + topLevelProject.getArtifactId() + " to " + version + " (" + branch + ") ---");
         executeMyMojo(VERSIONS_MVN_PLUGIN, goal, configuration);
         getLog().info("------------------------------------------------------------------------");
 
         boolean commitMade = false;
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (push && getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change " + version + " to origin. ExitCode:" + exitCode);
                 }
             }
             commitMade = true;
         }
         /* We don't want to fail maybe the version was manually set correctly */
 //        else {
 //            throw new MojoFailureException("Failed to update poms to version " + version);
 //        }
         return commitMade;
     }
 
     protected final boolean setNextVersions(Boolean allowSnapshots, Boolean updateParent, String includes) throws MojoExecutionException, MojoFailureException {
         getLog().debug("setNextVersions");
 
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         MavenProject topLevelProject = session.getTopLevelProject();
         session.setCurrentProject(topLevelProject);
 
         if (updateParent) {
             String updateParentGoal = goal("update-parent");
             Xpp3Dom configuration = configuration(
                     element(name("generateBackupPoms"), "false"),
                     element(name("allowSnapshots"), allowSnapshots.toString())
             );
 
             String mavenCommand = getMavenCommand(VERSIONS_MVN_PLUGIN, updateParentGoal);
             getLog().info("");
             getLog().info("--- " + mavenCommand + " " + topLevelProject.getArtifactId() + " ---");
             executeMyMojo(VERSIONS_MVN_PLUGIN, updateParentGoal, configuration);
             getLog().info("------------------------------------------------------------------------");
         }
 
         if (!StringUtils.isBlank(includes)) {
             String useNextVersionsGoal = goal("use-next-versions");
             Xpp3Dom configuration = configuration(
                     element(name("generateBackupPoms"), "false"),
                     element(name("allowSnapshots"), allowSnapshots.toString()),
                     element(name("includesList"), includes)
             );
 
             String mavenCommand = getMavenCommand(VERSIONS_MVN_PLUGIN, useNextVersionsGoal);
             getLog().info("");
             getLog().info("--- " + mavenCommand + " " + topLevelProject.getArtifactId() + " ---");
             executeMyMojo(VERSIONS_MVN_PLUGIN, useNextVersionsGoal, configuration);
             getLog().info("------------------------------------------------------------------------");
         } else {
             getLog().warn("Parameter <includes> is not set. Skipping dependency updates");
         }
 
         boolean commitMade = false;
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg;
             if (allowSnapshots) {
                 msg = getMsgPrefix() + "Replaces any release versions with the next snapshot version (if it has been deployed)." + getMsgSuffix();
             } else {
                 msg = getMsgPrefix() + "Replaces snapshot versions with the corresponding release version" + getMsgSuffix();
             }
 
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change to origin. ExitCode:" + exitCode);
                 }
             }
             commitMade = true;
         }
         return commitMade;
     }
 
     protected final void executeMyMojo(Plugin plugin, String goal, Xpp3Dom configuration) throws MojoExecutionException, MojoFailureException {
         String mavenCommand = getMavenCommand(plugin, goal);
         MavenProject topLevelProject = session.getTopLevelProject();
         String projArtifactId = topLevelProject.getArtifactId();
         getLog().debug("START " + mavenCommand + " on " + projArtifactId);
         getLog().debug("configuration " + configuration.toUnescapedString());
 
         /* Maven 3.3.x log settings */
 //        session.getRequest().setLoggingLevel(MavenExecutionRequest.LOGGING_LEVEL_WARN);
 //        System.setProperty("org.slf4j.simpleLogger.defaultLogLevel", "error");
 //        System.setProperty("maven.logging.root.level", "error");
         PrintStream stdout = System.out;
         PrintStream stoutStream = null;
         Path tempStoutFile = null;
         try {
 
             /* Capture System.out */
             if (!getLog().isDebugEnabled()) {
                 try {
                     String logFileName = plugin.getArtifactId() + '-' + goal + '-';
                     tempStoutFile = Files.createTempFile(tempDir, logFileName, ".log");
                     stoutStream = new PrintStream(new FileOutputStream(tempStoutFile.toFile(), true));
                     System.setOut(stoutStream);
                 } catch (Exception ioe) {
                     getLog().warn("Failed to capture System.out", ioe);
                 }
             }
 
             /* Execute Maven plugin goal */
             executeMojo(
                     plugin,
                     goal,
                     configuration,
                     executionEnvironment(
                             session.getTopLevelProject(),
                             session,
                             pluginManager
                     )
             );
 
         } catch (MojoExecutionException mee) {
             /* Reset System.out */
             System.setOut(stdout);
             String rootCauseMessage = ExceptionUtils.getRootCauseMessage(mee);
             if (rootCauseMessage.contains("Project version is inherited from parent")) {
                 getLog().debug("Skipping " + mavenCommand + " for project " + projArtifactId + ". Project version is inherited from parent.");
             } else {
                 getLog().error("Failed to execute " + mavenCommand + " on " + projArtifactId, mee);
                 throw mee;
             }
         } finally {
             if (!getLog().isDebugEnabled()) {
                 /* Reset System.out */
                 System.setOut(stdout);
 
                 if (null != tempStoutFile) {
                     getLog().info(mavenCommand + " log " + tempStoutFile.toString());
                 }
 
                 if (null != stoutStream) {
                     try {
                         stoutStream.close();
                     } catch (Exception e) {
                     }
                 }
             }
             getLog().debug("DONE " + mavenCommand);
         }
     }
 
     private String getMavenCommand(Plugin plugin, String goal) {
         return plugin.getArtifactId() + ':' + plugin.getVersion() + ':' + goal;
     }
 
     protected final void runGoals(String goals, List<String> additionalArgs) throws MojoExecutionException, MojoFailureException {
         getLog().debug("START executing " + goals + " with args " + additionalArgs);
 
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         File basedir = rootProject.getBasedir();
 
         ReleaseResult result = new ReleaseResult();
         ReleaseEnvironment env = new DefaultReleaseEnvironment();
         env.setSettings(session.getSettings());
         MavenExecutor mavenExecutor = mavenExecutors.get(env.getMavenExecutorId());
 
         Joiner joiner = Joiner.on(" ").skipNulls();
         String additionalArguments = joiner.join(additionalArgs);
         getLog().debug("additionalArguments " + additionalArguments);
 
         try {
             mavenExecutor.executeGoals(basedir, goals, env, false, additionalArguments, result);
         } catch (MavenExecutorException ex) {
             throw new MojoExecutionException(result.getOutput(), ex);
         }
         getLog().debug("DONE executing " + goals);
     }
 
     protected final String getReleaseVersion(String version) throws MojoFailureException {
         getLog().debug("Current Develop version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
             getLog().debug("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
     protected final void checkForSnapshotDependencies() throws MojoExecutionException {
         getLog().info("Checking for SNAPSHOT dependencies");
         Boolean hasDepSnapshots = false;
         Boolean hasParentSnapshot = false;
         for (MavenProject mavenProject : reactorProjects) {
             String artifactId = mavenProject.getArtifactId();
 
             /* Check <parent> */
             Artifact parentArtifact = mavenProject.getParentArtifact();
             if (parentArtifact != null && parentArtifact.isSnapshot()) {
                 getLog().error("Parent of project " + artifactId + " is a SNAPSHOT " + parentArtifact.getId());
                 hasParentSnapshot = true;
             }
 
             /* Check <dependencyManagement> */
             DependencyManagement dependencyManagement = mavenProject.getDependencyManagement();
             if (null != dependencyManagement) {
                 if (checkForSnapshot(artifactId, dependencyManagement.getDependencies())) {
                     hasDepSnapshots = true;
                 }
             }
 
             /* Check <dependencies> */
             if (checkForSnapshot(artifactId, mavenProject.getDependencies())) {
                 hasDepSnapshots = true;
             }
         }
         if (hasParentSnapshot || hasDepSnapshots) {
             throw new MojoExecutionException("Cannot release because SNAPSHOT dependencies exist");
         }
     }
 
     private boolean checkForSnapshot(String artifactId, List<Dependency> dependencies) throws MojoExecutionException {
         Boolean hasSnapshotDependency = false;
         for (Dependency dependency : dependencies) {
             String version = dependency.getVersion();
             Matcher versionMatcher = matchSnapshotRegex.matcher(version);
             if (versionMatcher.find() && versionMatcher.end() == version.length()) {
                 getLog().error("Project " + artifactId + " contains SNAPSHOT dependency: " + dependency.getGroupId() + ":" + dependency.getArtifactId() + ":" + version);
                 hasSnapshotDependency = true;
             }
         }
         return hasSnapshotDependency;
     }
 
     protected final void reloadReactorProjects() {
         getLog().debug("Reloading poms...");
 
         List<MavenProject> updatedReactorProjects = new ArrayList<>();
         for (MavenProject mavenProject : reactorProjects) {
             File pomFile = mavenProject.getFile();
             if (pomFile.canRead()) {
                 Model readModel = readModel(pomFile);
                 MavenProject updatedMavenProject = new MavenProject(readModel);
                 updatedReactorProjects.add(updatedMavenProject);
             } else {
                 getLog().warn("Cannot reload pom file " + pomFile + ". It may not exist on this Git branch");
             }
         }
         for (MavenProject updatedReactorProject : updatedReactorProjects) {
             getLog().debug(String.format("\t %-30s %-30s", updatedReactorProject.getArtifactId(), updatedReactorProject.getVersion()));
         }
 
         getLog().debug("Reloading poms complete");
     }
 
     private static Model readModel(File pomFile) {
         DefaultModelProcessor modelProcessor = new DefaultModelProcessor();
         modelProcessor.setModelLocator(new DefaultModelLocator());
         modelProcessor.setModelReader(new DefaultModelReader());
 
         try {
             return modelProcessor.read(pomFile, null);
         } catch (IOException ex) {
             throw new IllegalStateException("Failed to build model from pom " + pomFile, ex);
         }
     }
 
     protected List<String> rearrange(String input, List<String> strings) {
         strings.remove(input);
         strings.add(0, input);
         return strings;
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/InitMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/InitMojo.java
index b924890..bd679bd 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/InitMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/InitMojo.java
@@ -23,11 +23,14 @@ import org.apache.maven.plugins.annotations.Mojo;
 /**
  * Mojo to initialise Gitflow branches
  */
 @Mojo(name = "init", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class InitMojo extends AbstractGitflowMojo {
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
+
+        String result = getGitflowInit().executeLocal("git config --get-regexp gitflow.*");
+        getLog().info("Gitflow config:\n\n" + result + "\n");
     }
 }

commit 30cd253dfc62587b180fa0a0a90de0f12c836e6a
Author: dkirrane <dkirrane@avaya.com>
Date:   Thu Sep 22 16:17:35 2016 +0100

    test

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/PrompterImpl.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/PrompterImpl.java
index 43eb36c..31ee4f9 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/PrompterImpl.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/PrompterImpl.java
@@ -36,3 +36,3 @@ import org.apache.commons.lang.StringUtils;
 import org.codehaus.plexus.component.annotations.Component;
-import static org.fusesource.jansi.Ansi.Color.BLUE;
+import static org.fusesource.jansi.Ansi.Color.GREEN;
 import static org.fusesource.jansi.Ansi.ansi;

commit 323584c847a04c1376fa55e9b0f74c01d8694a01
Author: dkirrane <dkirrane@avaya.com>
Date:   Thu Sep 22 15:57:14 2016 +0100

    freemarker

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/PrompterImpl.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/PrompterImpl.java
index 28616d9..43eb36c 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/PrompterImpl.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/PrompterImpl.java
@@ -42,165 +42,165 @@ import org.slf4j.LoggerFactory;
 /**
  * Default {@link Prompter} implementation.
  *
  * @since 3.0
  */
 @Component(role = Prompter.class, instantiationStrategy = "per-lookup")
 public class PrompterImpl implements Prompter {
 
     private static final Logger LOG = LoggerFactory.getLogger(PrompterImpl.class);
 
     private final ConsoleReader console;
 
     public PrompterImpl() throws IOException {
         TerminalFactory.configure(TerminalFactory.NONE);
         TerminalFactory.reset();
         Configuration.reset();
         this.console = new ConsoleReader();
         this.console.setHistoryEnabled(false);
         this.console.setExpandEvents(false);
     }
 
     public ConsoleReader getConsole() {
         return console;
     }
 
     @Override
     public String prompt(final String message, Character mask) throws IOException {
         checkNotNull(message);
 
         final String prompt = String.format("%s: ", message);
         String value;
         do {
             // mask DOES NOT WORK on WINDOWS 10 https://github.com/jline/jline2/issues/225
 //            value = console.readLine(ansi().fg(GREEN).a(prompt).reset().toString(), mask);
-            value = console.readLine(ansi().fg(BLUE).bold().a(prompt).boldOff().reset().toString(), null);
+            value = console.readLine(ansi().fg(GREEN).bold().a(prompt).boldOff().reset().toString(), null);
 
             // Do not LOG values read when masked
             if (mask == null) {
                 LOG.debug("Read value: '{}'", value);
             } else {
                 LOG.debug("Read masked chars: {}", value.length());
             }
         } while (StringUtils.isBlank(value));
         return value;
     }
 
     @Override
     public String prompt(final String message) throws IOException {
         checkNotNull(message);
 
         return prompt(message, null);
     }
 
     @Override
     public String promptWithDefault(final String message, final String defaultValue) throws IOException {
         checkNotNull(message);
         checkNotNull(defaultValue);
 
         final String prompt = String.format("%s [%s]: ", message, defaultValue);
-        String value = console.readLine(ansi().fg(BLUE).bold().a(prompt).boldOff().reset().toString());
+        String value = console.readLine(ansi().fg(GREEN).bold().a(prompt).boldOff().reset().toString());
         if (StringUtils.isBlank(value)) {
             return defaultValue;
         }
         return value;
     }
 
     /**
      * Helper to parse an integer w/o exceptions being thrown.
      */
     private Integer parseInt(final String value) {
         try {
             return Integer.parseInt(value);
         } catch (Exception e) {
             // ignore
         }
         return null;
     }
 
     @Override
     public Integer promptInteger(final String message, final Integer min, final Integer max) throws IOException {
         while (true) {
             String raw = prompt(message);
             Integer value = parseInt(raw);
             if (value != null) {
                 if (min != null && value < min) {
                     console.println("Value must be greater than " + (min - 1) + ": " + raw);
                     continue;
                 }
                 if (max != null && value > max) {
                     console.println("Value must be less than " + max + ": " + raw);
                     continue;
                 }
 
                 // valid
                 return value;
             }
             // else invalid, try again
             console.println("Invalid value: " + raw);
         }
     }
 
     @Override
     public String promptChoice(final String header, final String message, final List<String> choices) throws IOException {
         checkNotNull(header);
         checkNotNull(message);
         checkArgument(!choices.isEmpty(), "choices cannot be empty");
 
         if (choices.size() > 1) {
             /* Output choices using freemarker */
             try {
 
                 freemarker.template.Configuration cfg = new freemarker.template.Configuration(freemarker.template.Configuration.getVersion());
                 cfg.setClassForTemplateLoading(PrompterImpl.class, "/freemarker");
                 cfg.setDefaultEncoding("UTF-8");
                 cfg.setTemplateExceptionHandler(TemplateExceptionHandler.RETHROW_HANDLER);
                 cfg.setLogTemplateExceptions(false);
 
                 Template template = cfg.getTemplate("choices.ftl");
 
                 // Build the data-model
                 Map<String, Object> data = new HashMap<>();
                 data.put("header", header);
                 data.put("choices", choices);
 
                 // Console output
                 Writer out = new OutputStreamWriter(System.out);
                 template.process(data, out);
                 out.flush();
 
             } catch (TemplateException | IOException ex) {
                 java.util.logging.Logger.getLogger(PrompterImpl.class.getName()).log(Level.SEVERE, null, ex);
             }
         }
 
         console.println("");
 
         // setup completer
         Completer completer = new StringsCompleter(choices);
         console.addCompleter(completer);
 
         try {
             String value;
             while (true) {
                 value = promptWithDefault(message, choices.get(0)).trim();
 
                 // check if value is an index (choice display starts with index 1)
                 Integer i = parseInt(value);
                 if (i != null && i > 0 && i <= choices.size()) {
                     value = choices.get(i - 1);
                     break;
                 }
 
                 // check if choice is valid
                 if (choices.contains(value)) {
                     break;
                 }
 
                 console.println("Invalid selection: " + value);
             }
             return value;
         } finally {
             console.removeCompleter(completer);
         }
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/resources/freemarker/choices.ftl b/ggitflow-maven-plugin/src/main/resources/freemarker/choices.ftl
new file mode 100644
index 0000000..3420aec
--- /dev/null
+++ b/ggitflow-maven-plugin/src/main/resources/freemarker/choices.ftl
@@ -0,0 +1,12 @@
+<#macro fg color>${'\x1B'}[${color + 32}m</#macro>
+<#macro bold>${'\x1B'}[1m</#macro>
+<#macro reset>${'\x1B'}[0m</#macro>
+
+<#assign header = header + ":">
+<@fg 4/><@bold/>=====${""?right_pad(header?length, "=")}=====
+<@fg 4/><@bold/>===  ${header?right_pad(header?length)}  ===
+<@fg 4/><@bold/>=====${""?right_pad(header?length, "=")}=====
+<#assign y = 0>
+<#list choices?chunk(5) as row>
+  <#list row as cell><#assign y++><@fg 4/><@bold/>${"(${y})"?right_pad(5)}<@reset/>${cell?right_pad(30)}</#list>
+</#list>

commit 133dba55e4fed447de737ebdc8be7704c3343f36
Author: dkirrane <dkirrane@avaya.com>
Date:   Thu Sep 22 14:54:20 2016 +0100

    fxies

diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index 888a179..5839845 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,183 +1,183 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
         <version>3.0-SNAPSHOT</version>
     </parent>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
     <version>3.0-SNAPSHOT</version>
     <packaging>maven-plugin</packaging>
     <name>ggitflow-maven-plugin</name>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
             <version>3.0-SNAPSHOT</version>
         </dependency>
 
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-api</artifactId>
             <version>1.7.21</version>
         </dependency>
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-simple</artifactId>
             <version>1.7.21</version>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>${maven.version}</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-core</artifactId>
             <version>${maven.version}</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>${maven.plugin.version}</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>${maven.release.plugin.version}</version>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-component-annotations</artifactId>
             <version>${plexus.component.version}</version>
         </dependency>
 
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
         <dependency>
             <groupId>jline</groupId>
             <artifactId>jline</artifactId>
             <version>2.14</version>
         </dependency>
         <dependency>
             <groupId>org.fusesource.jansi</groupId>
             <artifactId>jansi</artifactId>
             <version>1.12</version>
         </dependency>
         <dependency>
             <groupId>com.google.guava</groupId>
             <artifactId>guava</artifactId>
             <version>19.0</version>
         </dependency>
         <dependency>
             <groupId>org.freemarker</groupId>
             <artifactId>freemarker</artifactId>
             <version>2.3.23</version>
         </dependency>
 
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.12</version>
             <scope>test</scope>
         </dependency>
     </dependencies>
 
     <build>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <version>3.5</version>
                 <configuration>
                     <encoding>${project.build.sourceEncoding}</encoding>
                 </configuration>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-resources-plugin</artifactId>
                 <version>2.7</version>
                 <configuration>
                     <encoding>${project.build.sourceEncoding}</encoding>
                 </configuration>
             </plugin>
 
             <plugin>
                 <groupId>org.codehaus.plexus</groupId>
                 <artifactId>plexus-component-metadata</artifactId>
                 <version>${plexus.component.version}</version>
                 <executions>
                     <execution>
                         <goals>
                             <goal>generate-metadata</goal>
                             <goal>generate-test-metadata</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
 
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>${maven.plugin.version}</version>
                 <configuration>
-                    <goalPrefix>reload</goalPrefix>
+                    <goalPrefix>gitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
 
             <plugin>
                 <groupId>com.github.github</groupId>
                 <artifactId>site-maven-plugin</artifactId>
                 <version>0.12</version>
                 <configuration>
                     <message>Creating site for ${project.version}</message>
                     <server>github</server>
                     <merge>true</merge>
                 </configuration>
                 <executions>
                     <execution>
                         <goals>
                             <goal>site</goal>
                         </goals>
                         <phase>site</phase>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.4</version>
                 <configuration>
                     <reportPlugins>
                         <plugin>
                             <groupId>org.apache.maven.plugins</groupId>
                             <artifactId>maven-plugin-plugin</artifactId>
                             <version>${maven.plugin.version}</version>
                         </plugin>
                     </reportPlugins>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/DownloadMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/DownloadMojo.java
new file mode 100644
index 0000000..47bb622
--- /dev/null
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/DownloadMojo.java
@@ -0,0 +1,33 @@
+/*
+ * Copyright 2014 Desmond Kirrane.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.dkirrane.maven.plugins.ggitflow;
+
+import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.plugin.MojoFailureException;
+import org.apache.maven.plugins.annotations.LifecyclePhase;
+import org.apache.maven.plugins.annotations.Mojo;
+
+/**
+ * Mojo to just download Gitflow plugin. Does nothing
+ */
+@Mojo(name = "download", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
+public class DownloadMojo extends AbstractMojo {
+
+    @Override
+    public void execute() throws MojoExecutionException, MojoFailureException {
+    }
+}

commit 436c22868b771427eea10747866a7dce934d5517
Author: dkirrane <dkirrane@avaya.com>
Date:   Thu Sep 22 11:44:37 2016 +0100

    fixes

diff --git a/ggitflow-maven-archetype/pom.xml b/ggitflow-maven-archetype/pom.xml
index 56d3234..110a500 100644
--- a/ggitflow-maven-archetype/pom.xml
+++ b/ggitflow-maven-archetype/pom.xml
@@ -1,45 +1,45 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
         <version>3.0-SNAPSHOT</version>
     </parent>
 
     <groupId>com.dkirrane.maven.archetype</groupId>
     <artifactId>ggitflow-maven-archetype</artifactId>
     <version>3.0-SNAPSHOT</version>
     <packaging>maven-archetype</packaging>
     <name>ggitflow-maven-archetype</name>
 
     <build>
         <extensions>
             <extension>
                 <groupId>org.apache.maven.archetype</groupId>
                 <artifactId>archetype-packaging</artifactId>
                 <version>2.4</version>
             </extension>
         </extensions>
 
         <pluginManagement>
             <plugins>
                 <plugin>
                     <artifactId>maven-archetype-plugin</artifactId>
                     <version>2.4</version>
                 </plugin>
             </plugins>
         </pluginManagement>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
-                <version>3.0</version>
+                <version>3.4</version>
                 <configuration>
                     <skip>true</skip>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index 07acc5c..888a179 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,195 +1,183 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
         <version>3.0-SNAPSHOT</version>
     </parent>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
     <version>3.0-SNAPSHOT</version>
     <packaging>maven-plugin</packaging>
     <name>ggitflow-maven-plugin</name>
 
-    <properties>
-        <maven.compiler.source>1.7</maven.compiler.source>
-        <maven.compiler.target>1.7</maven.compiler.target>
-        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-        <netbeans.hint.license>apache20</netbeans.hint.license>
-
-        <maven.version>3.3.9</maven.version>
-        <maven.plugin.version>3.5</maven.plugin.version>
-        <maven.release.plugin.version>2.5.3</maven.release.plugin.version>
-        <plexus.component.version>1.6</plexus.component.version>
-    </properties>
-
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
             <version>3.0-SNAPSHOT</version>
         </dependency>
 
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-api</artifactId>
             <version>1.7.21</version>
         </dependency>
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-simple</artifactId>
             <version>1.7.21</version>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>${maven.version}</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-core</artifactId>
             <version>${maven.version}</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>${maven.plugin.version}</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>${maven.release.plugin.version}</version>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-component-annotations</artifactId>
             <version>${plexus.component.version}</version>
         </dependency>
 
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
         <dependency>
             <groupId>jline</groupId>
             <artifactId>jline</artifactId>
             <version>2.14</version>
         </dependency>
         <dependency>
             <groupId>org.fusesource.jansi</groupId>
             <artifactId>jansi</artifactId>
             <version>1.12</version>
         </dependency>
         <dependency>
             <groupId>com.google.guava</groupId>
             <artifactId>guava</artifactId>
             <version>19.0</version>
         </dependency>
         <dependency>
             <groupId>org.freemarker</groupId>
             <artifactId>freemarker</artifactId>
             <version>2.3.23</version>
         </dependency>
 
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.12</version>
             <scope>test</scope>
         </dependency>
     </dependencies>
 
     <build>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <version>3.5</version>
                 <configuration>
                     <encoding>${project.build.sourceEncoding}</encoding>
                 </configuration>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-resources-plugin</artifactId>
                 <version>2.7</version>
                 <configuration>
                     <encoding>${project.build.sourceEncoding}</encoding>
                 </configuration>
             </plugin>
 
             <plugin>
                 <groupId>org.codehaus.plexus</groupId>
                 <artifactId>plexus-component-metadata</artifactId>
                 <version>${plexus.component.version}</version>
                 <executions>
                     <execution>
                         <goals>
                             <goal>generate-metadata</goal>
                             <goal>generate-test-metadata</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
 
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>${maven.plugin.version}</version>
                 <configuration>
                     <goalPrefix>reload</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
 
             <plugin>
                 <groupId>com.github.github</groupId>
                 <artifactId>site-maven-plugin</artifactId>
                 <version>0.12</version>
                 <configuration>
                     <message>Creating site for ${project.version}</message>
                     <server>github</server>
                     <merge>true</merge>
                 </configuration>
                 <executions>
                     <execution>
                         <goals>
                             <goal>site</goal>
                         </goals>
                         <phase>site</phase>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.4</version>
                 <configuration>
                     <reportPlugins>
                         <plugin>
                             <groupId>org.apache.maven.plugins</groupId>
                             <artifactId>maven-plugin-plugin</artifactId>
                             <version>${maven.plugin.version}</version>
                         </plugin>
                     </reportPlugins>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportTagMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportTagMojo.java
index a4f6c2a..79741e9 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportTagMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportTagMojo.java
@@ -28,160 +28,159 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  * Creates a tag on a support branch when releasing of a support branch. Note:
  * this does not merge support branch changes back to develop
  */
 @Mojo(name = "support-tag", aggregator = true)
 public class SupportTagMojo extends AbstractSupportMojo {
 
     /**
      * If <code>true</code>, the tag can still get created even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 2.3
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private Boolean allowSnapshots;
 
     /**
      * If <code>true</code>, the support tag will be signed.
      *
      * @since 2.3
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 2.3
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().debug("Tagging support branch");
 
         /* Fetch any new tags and prune any branches that may already be deleted */
         getGitflowInit().executeRemote("git fetch --tags --prune");
 
         /* Get support branch name */
         String prefix = getSupportBranchPrefix();
         List<String> supportBranches = getGitflowInit().gitLocalSupportBranches();
         if (supportBranches.isEmpty()) {
             throw new MojoFailureException("Could not find any local support branch!");
         }
 
         if (StringUtils.isBlank(supportName)) {
             if (supportBranches.size() == 1) {
                 String supportBranch = supportBranches.get(0);
                 supportName = trimSupportName(supportBranch);
             } else {
                 String supportBranch = promptForExistingSupportBranch(prefix, supportBranches);
                 supportName = trimSupportName(supportBranch);
             }
 
         } else {
             supportName = trimSupportName(supportName);
             if (!getGitflowInit().gitLocalBranchExists(prefix + supportName)) {
                 throw new MojoFailureException("No local support branch named '" + prefix + supportName + "' exists!");
             }
         }
 
         getLog().info("Tagging support branch '" + supportName + "'");
 
         String supportBranch = prefix + supportName;
 
         /* Switch to support branch and get its current version */
         getGitflowInit().executeLocal("git checkout " + supportBranch);
         reloadReactorProjects();
         String snapshotVersion = project.getVersion();
 
         /* Get release version for support tag */
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(snapshotVersion);
         String supportVersion;
         if ("SNAPSHOT".equals(artifactVersion.getBuildSpecifier())) {
             supportVersion = getReleaseVersion(project.getVersion());
         } else {
             supportVersion = project.getVersion();
         }
         getLog().debug("support version = " + supportVersion);
 
         getGitflowInit().requireTagAbsent(supportVersion);
 
         /* Set support branch to release version */
         boolean setVersion = setVersion(supportVersion, false, supportBranch);
 
         if (!allowSnapshots) {
             reloadReactorProjects();
             try {
                 checkForSnapshotDependencies();
             } catch (MojoExecutionException mee) {
                 // reset setVersion commit to allow user fix & push SNAPSHOT dependencies
                 if (setVersion) {
                     getGitflowInit().executeLocal("git reset --hard HEAD~1");
                 }
                 throw mee;
             }
         }
 
         /* tag support branch */
         String tagMsg = "Support release version " + supportVersion;
         String tagName = supportVersion;
         String tagString = getGitflowInit().executeLocal("git tag -a -m \"" + tagMsg + "\" " + tagName + " " + supportBranch);
         getLog().debug("Git tag output = " + tagString);
 
         /* Increment support branch to next version */
         String nextSupportVersion = getNextSupportVersion(snapshotVersion);
         setVersion(nextSupportVersion, false, supportBranch);
         promptToPushSupportBranchAndTag(supportBranch, tagName);
 
     }
 
     private String promptForExistingSupportBranch(String prefix, List<String> supportBranches) throws MojoFailureException {
         List<String> choices = supportBranches;
 
         /* if current branch is a support branch at it to start of list so it is the default in prompt */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (currentBranch.startsWith(prefix)) {
             choices = rearrange(currentBranch, supportBranches);
         }
 
         String name = "";
         try {
             prompter.promptChoice("Support branches", "Please select a support branch to tag", choices);
         } catch (IOException ex) {
             throw new MojoFailureException("Error reading release name from command line " + ex.getMessage());
         }
         return name.trim();
     }
 
     private void promptToPushSupportBranchAndTag(String supportBranch, String supportTag) throws MojoFailureException {
         String origin = getGitflowInit().getOrigin();
         String message = "Do you want to push " + supportBranch + " branch and support tag " + supportTag + " to " + origin + "? (y/N)";
 
         String answer = "";
         try {
             answer = prompter.prompt(message);
         } catch (IOException e) {
             throw new MojoFailureException("Error reading support branch name from command line " + e.getMessage());
         }
 
         if (answer.matches("/^([yY][eE][sS]|[yY])$/")) {
             if (getGitflowInit().gitRemoteBranchExists(supportBranch)) {
                 getGitflowInit().executeRemote("git push " + origin + " " + supportBranch);
                 getGitflowInit().executeRemote("git push " + origin + " " + supportTag);
             } else {
                 getLog().info("");
                 getLog().warn("===> Branch '" + supportBranch + "' does not exist on '" + origin + "'");
                 getLog().warn("===> Once ready you MUST manually push '" + supportBranch + "' branch and support tag '" + supportTag + "' to '" + origin + "'");
                 getLog().info("");
             }
         } else {
             getLog().info("");
             getLog().warn("===> Once ready you MUST manually push '" + supportBranch + "' branch and support tag '" + supportTag + "' to '" + origin + "'");
             getLog().info("");
         }
     }
-
 }
diff --git a/pom.xml b/pom.xml
index a169cb6..d001f6a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,183 +1,189 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven</artifactId>
     <version>3.0-SNAPSHOT</version>
     <name>ggitflow-maven</name>
     <packaging>pom</packaging>
 
     <modules>
         <module>ggitflow-maven-plugin</module>
         <module>ggitflow-maven-archetype</module>
     </modules>
 
     <properties>
         <maven.compiler.source>1.7</maven.compiler.source>
         <maven.compiler.target>1.7</maven.compiler.target>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
+
+        <maven.version>3.3.9</maven.version>
+        <maven.plugin.version>3.5</maven.plugin.version>
+        <maven.release.plugin.version>2.5.3</maven.release.plugin.version>
+        <plexus.component.version>1.6</plexus.component.version>
     </properties>
 
+
     <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
 
     <scm>
         <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
         <connection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</connection>
         <developerConnection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</developerConnection>
     </scm>
 
     <description>Maven Archetype for the Gitflow Maven Plugin</description>
     <developers>
         <developer>
             <id>dkirrane</id>
             <name>Desmond Kirrane</name>
             <email>desmond.kirrane@gmail.com</email>
         </developer>
     </developers>
     <licenses>
         <license>
             <name>Apache License Version 2.0, January 2004</name>
             <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
             <distribution>repo</distribution>
         </license>
     </licenses>
 
     <build>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <version>3.5</version>
                 <configuration>
                     <encoding>${project.build.sourceEncoding}</encoding>
                 </configuration>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-resources-plugin</artifactId>
                 <version>2.7</version>
                 <configuration>
                     <encoding>${project.build.sourceEncoding}</encoding>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 
     <profiles>
         <!-- For Release versions the Sonatype Nexus Stage rules require artifacts to be signed -->
         <!-- http://blog.sonatype.com/2010/01/how-to-generate-pgp-signatures-with-maven -->
         <!-- 1. Setup gpg, @see https://github.com/dkirrane/ggitflow/blob/develop/gradle.properties.sample -->
         <!-- 2. Run Maven deploy sign from Git terminal: mvn clean deploy -Prelease-sign-artifacts -->
         <!-- 3. Login to Nexus to release from the Stage: https://oss.sonatype.org | Login | Staging Repositories | Search for: com.dkirrane | Release -->
         <profile>
             <id>release-sign-artifacts</id>
             <activation>
                 <activeByDefault>false</activeByDefault>
             </activation>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-gpg-plugin</artifactId>
                         <version>1.6</version>
                         <executions>
                             <execution>
                                 <id>sign-artifacts</id>
                                 <phase>verify</phase>
                                 <goals>
                                     <goal>sign</goal>
                                 </goals>
                                 <configuration>
                                     <useAgent>false</useAgent>
                                 </configuration>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
             </build>
         </profile>
         <profile>
             <id>run-its</id>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-invoker-plugin</artifactId>
                         <version>1.8</version>
                         <configuration>
                             <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
                             <settingsFile>src/it/settings.xml</settingsFile>
                             <debug>true</debug>
                             <showErrors>true</showErrors>
                             <detail>true</detail>
                             <streamLogs>true</streamLogs>
                             <projectsDirectory>src/it/projects</projectsDirectory>
                             <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
                             <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
                             <addTestClassPath>true</addTestClassPath>
                             <preBuildHookScript>setup</preBuildHookScript>
                             <postBuildHookScript>verify</postBuildHookScript>
                             <pomIncludes>
                                 <pomInclude>*/pom.xml</pomInclude>
                             </pomIncludes>
                             <goals>
                                 <goal>clean</goal>
                                 <goal>test-compile</goal>
                             </goals>
                         </configuration>
                         <executions>
                             <execution>
                                 <id>integration-test</id>
                                 <goals>
                                     <goal>install</goal>
                                     <goal>integration-test</goal>
                                     <goal>verify</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
 
             </build>
         </profile>
     </profiles>
 
     <!--
         Sonatype upload details:
         http://central.sonatype.org/pages/ossrh-guide.html
         http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
         https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
         https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
         https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
 
             - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
             - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
             - Promote staged artifacts into repository 'Releases'
             - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
             - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
     -->
     <distributionManagement>
         <snapshotRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
         </snapshotRepository>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
         </repository>
     </distributionManagement>
     <repositories>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
             <snapshots>
                 <enabled>true</enabled>
             </snapshots>
         </repository>
     </repositories>
 </project>

commit 28f69d00afa88c00b86a2bf0a8d161048583e08a
Author: dkirrane <dkirrane@avaya.com>
Date:   Thu Sep 22 11:40:56 2016 +0100

    Add support branch fixes

diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index 9486b71..07acc5c 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,196 +1,195 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
         <version>3.0-SNAPSHOT</version>
     </parent>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
     <version>3.0-SNAPSHOT</version>
     <packaging>maven-plugin</packaging>
     <name>ggitflow-maven-plugin</name>
 
     <properties>
         <maven.compiler.source>1.7</maven.compiler.source>
         <maven.compiler.target>1.7</maven.compiler.target>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
 
         <maven.version>3.3.9</maven.version>
         <maven.plugin.version>3.5</maven.plugin.version>
         <maven.release.plugin.version>2.5.3</maven.release.plugin.version>
         <plexus.component.version>1.6</plexus.component.version>
     </properties>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
-            <version>2.6</version>
-            <type>jar</type>
+            <version>3.0-SNAPSHOT</version>
         </dependency>
 
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-api</artifactId>
             <version>1.7.21</version>
         </dependency>
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-simple</artifactId>
             <version>1.7.21</version>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>${maven.version}</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-core</artifactId>
             <version>${maven.version}</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>${maven.plugin.version}</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>${maven.release.plugin.version}</version>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-component-annotations</artifactId>
             <version>${plexus.component.version}</version>
         </dependency>
 
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
         <dependency>
             <groupId>jline</groupId>
             <artifactId>jline</artifactId>
             <version>2.14</version>
         </dependency>
         <dependency>
             <groupId>org.fusesource.jansi</groupId>
             <artifactId>jansi</artifactId>
             <version>1.12</version>
         </dependency>
         <dependency>
             <groupId>com.google.guava</groupId>
             <artifactId>guava</artifactId>
             <version>19.0</version>
         </dependency>
         <dependency>
             <groupId>org.freemarker</groupId>
             <artifactId>freemarker</artifactId>
             <version>2.3.23</version>
         </dependency>
 
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.12</version>
             <scope>test</scope>
         </dependency>
     </dependencies>
 
     <build>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <version>3.5</version>
                 <configuration>
                     <encoding>${project.build.sourceEncoding}</encoding>
                 </configuration>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-resources-plugin</artifactId>
                 <version>2.7</version>
                 <configuration>
                     <encoding>${project.build.sourceEncoding}</encoding>
                 </configuration>
             </plugin>
 
             <plugin>
                 <groupId>org.codehaus.plexus</groupId>
                 <artifactId>plexus-component-metadata</artifactId>
                 <version>${plexus.component.version}</version>
                 <executions>
                     <execution>
                         <goals>
                             <goal>generate-metadata</goal>
                             <goal>generate-test-metadata</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
 
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>${maven.plugin.version}</version>
                 <configuration>
                     <goalPrefix>reload</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
 
             <plugin>
                 <groupId>com.github.github</groupId>
                 <artifactId>site-maven-plugin</artifactId>
                 <version>0.12</version>
                 <configuration>
                     <message>Creating site for ${project.version}</message>
                     <server>github</server>
                     <merge>true</merge>
                 </configuration>
                 <executions>
                     <execution>
                         <goals>
                             <goal>site</goal>
                         </goals>
                         <phase>site</phase>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.4</version>
                 <configuration>
                     <reportPlugins>
                         <plugin>
                             <groupId>org.apache.maven.plugins</groupId>
                             <artifactId>maven-plugin-plugin</artifactId>
                             <version>${maven.plugin.version}</version>
                         </plugin>
                     </reportPlugins>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractSupportMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractSupportMojo.java
new file mode 100644
index 0000000..0dd9ddd
--- /dev/null
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractSupportMojo.java
@@ -0,0 +1,120 @@
+/*
+ * Copyright 2014 Desmond Kirrane.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.dkirrane.maven.plugins.ggitflow;
+
+import static com.dkirrane.gitflow.groovy.Constants.DEFAULT_SUPPORT_BRN_PREFIX;
+import org.apache.maven.plugin.MojoFailureException;
+import org.apache.maven.plugins.annotations.Parameter;
+import org.codehaus.plexus.util.StringUtils;
+import org.jfrog.hudson.util.GenericArtifactVersion;
+import static org.jfrog.hudson.util.GenericArtifactVersion.DEFAULT_VERSION_COMPONENT_SEPARATOR;
+import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
+
+public class AbstractSupportMojo extends AbstractGitflowMojo {
+
+    /**
+     * The name for the support branch.
+     *
+     * @since 1.2
+     */
+    @Parameter(property = "supportName", required = false)
+    protected String supportName;
+
+    protected String getSupportBranchPrefix() {
+        String prefix = getGitflowInit().getSupportBranchPrefix();
+        if (StringUtils.isBlank(prefix)) {
+            prefix = DEFAULT_SUPPORT_BRN_PREFIX;
+        }
+        return prefix;
+    }
+
+    protected String trimSupportName(String name) throws MojoFailureException {
+        if (StringUtils.isBlank(name)) {
+            throw new MojoFailureException("Missing argument <name>");
+        }
+
+        // remove whitespace
+        name = name.replaceAll("\\s+", "");
+
+        // trim off starting any leading 'support/' prefix
+        String prefix = getSupportBranchPrefix();
+        if (name.startsWith(prefix)) {
+            name = name.substring(prefix.length());
+        }
+
+        return name;
+    }
+
+    protected String getSupportVersion(String currentVersion) throws MojoFailureException {
+        getLog().debug("getSupportVersion from '" + currentVersion + "'");
+
+        GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
+
+        StringBuilder sb = new StringBuilder(10);
+        int pCount = artifactVersion.getPrimaryNumberCount();
+        if (pCount < 3) {
+            // Support versions should be like 1.0-xx e.g. 1.0-1, 1.0-2 etc
+            sb.append(artifactVersion.getPrimaryNumbersAsString()).append('-').append("xx");
+            sb.append(artifactVersion.getAnnotationAsString()).append(artifactVersion.getBuildSpecifierAsString());
+        } else {
+            // Support versions should be like 1.0.1-xx e.g. 1.0.1-1, 1.0.1-2 etc
+            if (null != artifactVersion.getAnnotation()) {
+                throw new MojoFailureException("Cannot start Support branch. Primary number " + artifactVersion.getPrimaryNumbersAsString() + " and annotations are already set " + artifactVersion.getAnnotation());
+            }
+            sb.append(artifactVersion.getPrimaryNumbersAsString()).append('-').append("xx");
+        }
+
+        return sb.toString();
+    }
+
+    protected String getSupportSnapshotVersion(String currentVersion) throws MojoFailureException {
+        getLog().debug("getSupportSnapshotVersion from '" + currentVersion + "'");
+
+        GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
+
+        StringBuilder sb = new StringBuilder(10);
+        int pCount = artifactVersion.getPrimaryNumberCount();
+        if (pCount < 3) {
+            // Support versions should be like 1.0-xx e.g. 1.0-1, 1.0-2 etc
+            sb.append(artifactVersion.getPrimaryNumbersAsString()).append('-').append("1");
+            sb.append(artifactVersion.getAnnotationAsString());
+        } else {
+            // Support versions should be like 1.0.1-xx e.g. 1.0.1-1, 1.0.1-2 etc
+            if (null != artifactVersion.getAnnotation()) {
+                throw new MojoFailureException("Cannot start Support branch. Primary number " + artifactVersion.getPrimaryNumbersAsString() + " and annotations are already set " + artifactVersion.getAnnotation());
+            }
+            sb.append(artifactVersion.getPrimaryNumbersAsString()).append('-').append("1");
+        }
+
+        sb.append(DEFAULT_VERSION_COMPONENT_SEPARATOR).append(SNAPSHOT_QUALIFIER);
+
+        return sb.toString();
+    }
+
+    protected String getNextSupportVersion(String currentVersion) throws MojoFailureException {
+        getLog().debug("getNextSupportVersion from '" + currentVersion + "'");
+
+        GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
+
+        StringBuilder sb = new StringBuilder(10);
+        Integer annotationRevision = artifactVersion.getAnnotationRevision();
+        if (null == annotationRevision) {
+            throw new MojoFailureException("Cannot find Maven buildNumber in support version " + currentVersion);
+        }
+        GenericArtifactVersion upgradeAnnotationRevision = artifactVersion.upgradeAnnotationRevision();
+        return upgradeAnnotationRevision.toString();
+    }
+}
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
index 5b36420..5bd4a85 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
@@ -19,2 +19,3 @@ import com.dkirrane.gitflow.groovy.GitflowSupport;
 import com.dkirrane.gitflow.groovy.ex.GitflowException;
+import java.io.IOException;
 import java.util.List;
@@ -24,133 +25,75 @@ import org.apache.maven.plugins.annotations.Mojo;
 import org.apache.maven.plugins.annotations.Parameter;
-import org.codehaus.plexus.components.interactivity.PrompterException;
 import org.codehaus.plexus.util.StringUtils;
-import org.jfrog.hudson.util.GenericArtifactVersion;
-import static org.jfrog.hudson.util.GenericArtifactVersion.DEFAULT_VERSION_COMPONENT_SEPARATOR;
-import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
 
 /**
  * Creates a new support branch from a specific commit on the master branch.
  */
 @Mojo(name = "support-start", aggregator = true)
-public class SupportStartMojo extends AbstractGitflowMojo {
+public class SupportStartMojo extends AbstractSupportMojo {
 
     /**
      * If <code>true</code>, the support branch is pushed to the remote
      * repository.
      *
      * @since 1.2
      */
     @Parameter(property = "pushSupportBranch", defaultValue = "true", required = false)
     protected boolean pushSupportBranch;
 
     /**
      * The commit to start the support branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     protected String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         String prefix = getGitflowInit().getSupportBranchPrefix();
 
-        List<String> tags = getGitflowInit().gitAllTags();
-        if (tags.isEmpty()) {
-            throw new MojoFailureException("Could not find any tags to create support branch from!");
+        List<String> localTags = getGitflowInit().gitLocalTags();
+        if (localTags.isEmpty()) {
+            throw new MojoFailureException("Could not find any local tags to create support branch from!");
         }
 
         if (StringUtils.isBlank(startCommit)) {
-            startCommit = promptForExistingTagName(tags, tags.get(tags.size() - 1));
+            try {
+                startCommit = prompter.promptChoice("Support branches", "Please select a tag to create Support branch from", localTags);
+            } catch (IOException ex) {
+                throw new MojoFailureException("Error reading tag name from command line " + ex.getMessage());
+            }
         }
 
         getGitflowInit().executeLocal("git checkout " + startCommit);
         reloadReactorProjects();
         String supportVersion = getSupportVersion(project.getVersion());
         String supportSnapshotVersion = getSupportSnapshotVersion(project.getVersion());
 
         getLog().info("Starting support branch '" + supportVersion + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowSupport gitflowSupport = new GitflowSupport();
         gitflowSupport.setInit(getGitflowInit());
         gitflowSupport.setMsgPrefix(getMsgPrefix());
         gitflowSupport.setMsgSuffix(getMsgSuffix());
         gitflowSupport.setPush(pushSupportBranch);
         gitflowSupport.setStartCommit(startCommit);
 
         try {
             gitflowSupport.start(supportVersion);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         setVersion(supportSnapshotVersion, pushSupportBranch, prefix + supportVersion);
 
         if (getGitflowInit().gitRemoteBranchExists(prefix + supportVersion)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + supportVersion);
         }
     }
 
-    private String promptForExistingTagName(List<String> branches, String defaultBrnName) throws MojoFailureException {
-        String message = "Create a support branch from tag:";
-
-        String name = "";
-        try {
-            name = prompter.prompt(message, branches, defaultBrnName);
-        } catch (PrompterException e) {
-            throw new MojoFailureException("Error reading selected Tag name from command line " + e.getMessage());
-        }
-
-        return name;
-    }
-
-    private String getSupportVersion(String currentVersion) throws MojoFailureException {
-        getLog().debug("getSupportVersion from '" + currentVersion + "'");
-
-        GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
-
-        StringBuilder sb = new StringBuilder(10);
-        int pCount = artifactVersion.getPrimaryNumberCount();
-        if (pCount < 3) {
-            // Support versions should be like 1.0-xx e.g. 1.0-1, 1.0-2 etc
-            sb.append(artifactVersion.getPrimaryNumbersAsString()).append('-').append("xx");
-            sb.append(artifactVersion.getAnnotationAsString()).append(artifactVersion.getBuildSpecifierAsString());
-        } else {
-            // Support versions should be like 1.0.1-xx e.g. 1.0.1-1, 1.0.1-2 etc
-            if (null != artifactVersion.getAnnotation()) {
-                throw new MojoFailureException("Cannot start Support branch. Primary number " + artifactVersion.getPrimaryNumbersAsString() + " and annotations are already set " + artifactVersion.getAnnotation());
-            }
-            sb.append(artifactVersion.getPrimaryNumbersAsString()).append('-').append("xx");
-        }
-
-        return sb.toString();
-    }
-
-    private String getSupportSnapshotVersion(String currentVersion) throws MojoFailureException {
-        getLog().debug("getSupportSnapshotVersion from '" + currentVersion + "'");
-
-        GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
-
-        StringBuilder sb = new StringBuilder(10);
-        int pCount = artifactVersion.getPrimaryNumberCount();
-        if (pCount < 3) {
-            // Support versions should be like 1.0-xx e.g. 1.0-1, 1.0-2 etc
-            sb.append(artifactVersion.getPrimaryNumbersAsString()).append('-').append("1");
-            sb.append(artifactVersion.getAnnotationAsString());
-        } else {
-            // Support versions should be like 1.0.1-xx e.g. 1.0.1-1, 1.0.1-2 etc
-            if (null != artifactVersion.getAnnotation()) {
-                throw new MojoFailureException("Cannot start Support branch. Primary number " + artifactVersion.getPrimaryNumbersAsString() + " and annotations are already set " + artifactVersion.getAnnotation());
-            }
-            sb.append(artifactVersion.getPrimaryNumbersAsString()).append('-').append("1");
-        }
-
-        sb.append(DEFAULT_VERSION_COMPONENT_SEPARATOR).append(SNAPSHOT_QUALIFIER);
-
-        return sb.toString();
-    }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportTagMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportTagMojo.java
index 1f05773..a4f6c2a 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportTagMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportTagMojo.java
@@ -17,2 +17,3 @@ package com.dkirrane.maven.plugins.ggitflow;
 
+import java.io.IOException;
 import java.util.List;
@@ -23,2 +24,3 @@ import org.apache.maven.plugins.annotations.Parameter;
 import org.codehaus.plexus.components.interactivity.PrompterException;
+import org.codehaus.plexus.util.StringUtils;
 import org.jfrog.hudson.util.GenericArtifactVersion;
@@ -26,151 +28,160 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  * Creates a tag on a support branch when releasing of a support branch. Note:
  * this does not merge support branch changes back to develop
  */
 @Mojo(name = "support-tag", aggregator = true)
-public class SupportTagMojo extends AbstractGitflowMojo {
+public class SupportTagMojo extends AbstractSupportMojo {
 
     /**
      * If <code>true</code>, the tag can still get created even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 2.3
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private Boolean allowSnapshots;
 
     /**
      * If <code>true</code>, the support tag will be signed.
      *
      * @since 2.3
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 2.3
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().debug("Tagging support branch");
 
-        /* Get release branch name */
+        /* Fetch any new tags and prune any branches that may already be deleted */
+        getGitflowInit().executeRemote("git fetch --tags --prune");
+
+        /* Get support branch name */
+        String prefix = getSupportBranchPrefix();
         List<String> supportBranches = getGitflowInit().gitLocalSupportBranches();
-        String supportBranch = "";
         if (supportBranches.isEmpty()) {
             throw new MojoFailureException("Could not find any local support branch!");
-        } else if (supportBranches.size() == 1) {
-            supportBranch = supportBranches.get(0);
+        }
+
+        if (StringUtils.isBlank(supportName)) {
+            if (supportBranches.size() == 1) {
+                String supportBranch = supportBranches.get(0);
+                supportName = trimSupportName(supportBranch);
+            } else {
+                String supportBranch = promptForExistingSupportBranch(prefix, supportBranches);
+                supportName = trimSupportName(supportBranch);
+            }
+
         } else {
-            supportBranch = promptForExistingSupportBranch(supportBranches, supportBranch);
+            supportName = trimSupportName(supportName);
+            if (!getGitflowInit().gitLocalBranchExists(prefix + supportName)) {
+                throw new MojoFailureException("No local support branch named '" + prefix + supportName + "' exists!");
+            }
         }
 
-        getLog().info("Tagging support branch '" + supportBranch + "'");
+        getLog().info("Tagging support branch '" + supportName + "'");
+
+        String supportBranch = prefix + supportName;
 
         /* Switch to support branch and get its current version */
         getGitflowInit().executeLocal("git checkout " + supportBranch);
         reloadReactorProjects();
         String snapshotVersion = project.getVersion();
 
         /* Get release version for support tag */
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(snapshotVersion);
         String supportVersion;
         if ("SNAPSHOT".equals(artifactVersion.getBuildSpecifier())) {
             supportVersion = getReleaseVersion(project.getVersion());
         } else {
             supportVersion = project.getVersion();
         }
         getLog().debug("support version = " + supportVersion);
 
         getGitflowInit().requireTagAbsent(supportVersion);
 
         /* Set support branch to release version */
         boolean setVersion = setVersion(supportVersion, false, supportBranch);
 
         if (!allowSnapshots) {
             reloadReactorProjects();
             try {
                 checkForSnapshotDependencies();
             } catch (MojoExecutionException mee) {
                 // reset setVersion commit to allow user fix & push SNAPSHOT dependencies
                 if (setVersion) {
                     getGitflowInit().executeLocal("git reset --hard HEAD~1");
                 }
                 throw mee;
             }
         }
 
         /* tag support branch */
         String tagMsg = "Support release version " + supportVersion;
         String tagName = supportVersion;
         String tagString = getGitflowInit().executeLocal("git tag -a -m \"" + tagMsg + "\" " + tagName + " " + supportBranch);
         getLog().debug("Git tag output = " + tagString);
 
         /* Increment support branch to next version */
         String nextSupportVersion = getNextSupportVersion(snapshotVersion);
         setVersion(nextSupportVersion, false, supportBranch);
         promptToPushSupportBranchAndTag(supportBranch, tagName);
 
     }
 
-    private String promptForExistingSupportBranch(List<String> supportBranches, String defaultSupportBranch) throws MojoFailureException {
-        String message = "Please select a support branch to tag?";
+    private String promptForExistingSupportBranch(String prefix, List<String> supportBranches) throws MojoFailureException {
+        List<String> choices = supportBranches;
+
+        /* if current branch is a support branch at it to start of list so it is the default in prompt */
+        String currentBranch = getGitflowInit().gitCurrentBranch();
+        if (currentBranch.startsWith(prefix)) {
+            choices = rearrange(currentBranch, supportBranches);
+        }
 
         String name = "";
         try {
-            name = prompter.prompt(message, supportBranches, defaultSupportBranch);
-        } catch (PrompterException e) {
-            throw new MojoFailureException("Error reading support branch name from command line " + e.getMessage());
+            prompter.promptChoice("Support branches", "Please select a support branch to tag", choices);
+        } catch (IOException ex) {
+            throw new MojoFailureException("Error reading release name from command line " + ex.getMessage());
         }
-
-        return name;
+        return name.trim();
     }
 
     private void promptToPushSupportBranchAndTag(String supportBranch, String supportTag) throws MojoFailureException {
         String origin = getGitflowInit().getOrigin();
         String message = "Do you want to push " + supportBranch + " branch and support tag " + supportTag + " to " + origin + "? (y/N)";
 
         String answer = "";
         try {
             answer = prompter.prompt(message);
-        } catch (PrompterException e) {
+        } catch (IOException e) {
             throw new MojoFailureException("Error reading support branch name from command line " + e.getMessage());
         }
 
         if (answer.matches("/^([yY][eE][sS]|[yY])$/")) {
             if (getGitflowInit().gitRemoteBranchExists(supportBranch)) {
                 getGitflowInit().executeRemote("git push " + origin + " " + supportBranch);
                 getGitflowInit().executeRemote("git push " + origin + " " + supportTag);
             } else {
                 getLog().info("");
                 getLog().warn("===> Branch '" + supportBranch + "' does not exist on '" + origin + "'");
                 getLog().warn("===> Once ready you MUST manually push '" + supportBranch + "' branch and support tag '" + supportTag + "' to '" + origin + "'");
                 getLog().info("");
             }
         } else {
             getLog().info("");
             getLog().warn("===> Once ready you MUST manually push '" + supportBranch + "' branch and support tag '" + supportTag + "' to '" + origin + "'");
             getLog().info("");
         }
     }
 
-    private String getNextSupportVersion(String currentVersion) throws MojoFailureException {
-        getLog().debug("getNextSupportVersion from '" + currentVersion + "'");
-
-        GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
-
-        StringBuilder sb = new StringBuilder(10);
-        Integer annotationRevision = artifactVersion.getAnnotationRevision();
-        if (null == annotationRevision) {
-            throw new MojoFailureException("Cannot find Maven buildNumber in support version " + currentVersion);
-        }
-        GenericArtifactVersion upgradeAnnotationRevision = artifactVersion.upgradeAnnotationRevision();
-        return upgradeAnnotationRevision.toString();
-    }
 }

commit 56bfb8a1864e0451f4fc0e635349394a092f18cc
Author: dkirrane <dkirrane@avaya.com>
Date:   Thu Sep 22 11:19:02 2016 +0100

    Set version to next Major release 3.0

diff --git a/ggitflow-maven-archetype/pom.xml b/ggitflow-maven-archetype/pom.xml
index 7e40322..56d3234 100644
--- a/ggitflow-maven-archetype/pom.xml
+++ b/ggitflow-maven-archetype/pom.xml
@@ -1,45 +1,45 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
-        <version>2.4-SNAPSHOT</version>
+        <version>3.0-SNAPSHOT</version>
     </parent>
 
     <groupId>com.dkirrane.maven.archetype</groupId>
     <artifactId>ggitflow-maven-archetype</artifactId>
-    <version>2.4-SNAPSHOT</version>
+    <version>3.0-SNAPSHOT</version>
     <packaging>maven-archetype</packaging>
     <name>ggitflow-maven-archetype</name>
 
     <build>
         <extensions>
             <extension>
                 <groupId>org.apache.maven.archetype</groupId>
                 <artifactId>archetype-packaging</artifactId>
                 <version>2.4</version>
             </extension>
         </extensions>
 
         <pluginManagement>
             <plugins>
                 <plugin>
                     <artifactId>maven-archetype-plugin</artifactId>
                     <version>2.4</version>
                 </plugin>
             </plugins>
         </pluginManagement>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <skip>true</skip>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index de10613..9486b71 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,196 +1,196 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
-        <version>2.4-SNAPSHOT</version>
+        <version>3.0-SNAPSHOT</version>
     </parent>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
-    <version>2.4-SNAPSHOT</version>
+    <version>3.0-SNAPSHOT</version>
     <packaging>maven-plugin</packaging>
     <name>ggitflow-maven-plugin</name>
 
     <properties>
         <maven.compiler.source>1.7</maven.compiler.source>
         <maven.compiler.target>1.7</maven.compiler.target>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
 
         <maven.version>3.3.9</maven.version>
         <maven.plugin.version>3.5</maven.plugin.version>
         <maven.release.plugin.version>2.5.3</maven.release.plugin.version>
         <plexus.component.version>1.6</plexus.component.version>
     </properties>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
             <version>2.6</version>
             <type>jar</type>
         </dependency>
 
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-api</artifactId>
             <version>1.7.21</version>
         </dependency>
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-simple</artifactId>
             <version>1.7.21</version>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>${maven.version}</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-core</artifactId>
             <version>${maven.version}</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>${maven.plugin.version}</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>${maven.release.plugin.version}</version>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-component-annotations</artifactId>
             <version>${plexus.component.version}</version>
         </dependency>
 
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
         <dependency>
             <groupId>jline</groupId>
             <artifactId>jline</artifactId>
             <version>2.14</version>
         </dependency>
         <dependency>
             <groupId>org.fusesource.jansi</groupId>
             <artifactId>jansi</artifactId>
             <version>1.12</version>
         </dependency>
         <dependency>
             <groupId>com.google.guava</groupId>
             <artifactId>guava</artifactId>
             <version>19.0</version>
         </dependency>
         <dependency>
             <groupId>org.freemarker</groupId>
             <artifactId>freemarker</artifactId>
             <version>2.3.23</version>
         </dependency>
 
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.12</version>
             <scope>test</scope>
         </dependency>
     </dependencies>
 
     <build>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <version>3.5</version>
                 <configuration>
                     <encoding>${project.build.sourceEncoding}</encoding>
                 </configuration>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-resources-plugin</artifactId>
                 <version>2.7</version>
                 <configuration>
                     <encoding>${project.build.sourceEncoding}</encoding>
                 </configuration>
             </plugin>
 
             <plugin>
                 <groupId>org.codehaus.plexus</groupId>
                 <artifactId>plexus-component-metadata</artifactId>
                 <version>${plexus.component.version}</version>
                 <executions>
                     <execution>
                         <goals>
                             <goal>generate-metadata</goal>
                             <goal>generate-test-metadata</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
 
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>${maven.plugin.version}</version>
                 <configuration>
                     <goalPrefix>reload</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
 
             <plugin>
                 <groupId>com.github.github</groupId>
                 <artifactId>site-maven-plugin</artifactId>
                 <version>0.12</version>
                 <configuration>
                     <message>Creating site for ${project.version}</message>
                     <server>github</server>
                     <merge>true</merge>
                 </configuration>
                 <executions>
                     <execution>
                         <goals>
                             <goal>site</goal>
                         </goals>
                         <phase>site</phase>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.4</version>
                 <configuration>
                     <reportPlugins>
                         <plugin>
                             <groupId>org.apache.maven.plugins</groupId>
                             <artifactId>maven-plugin-plugin</artifactId>
                             <version>${maven.plugin.version}</version>
                         </plugin>
                     </reportPlugins>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/pom.xml b/pom.xml
index f3d09de..a169cb6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,183 +1,183 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven</artifactId>
-    <version>2.4-SNAPSHOT</version>
+    <version>3.0-SNAPSHOT</version>
     <name>ggitflow-maven</name>
     <packaging>pom</packaging>
 
     <modules>
         <module>ggitflow-maven-plugin</module>
         <module>ggitflow-maven-archetype</module>
     </modules>
 
     <properties>
         <maven.compiler.source>1.7</maven.compiler.source>
         <maven.compiler.target>1.7</maven.compiler.target>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
     </properties>
 
     <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
 
     <scm>
         <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
         <connection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</connection>
         <developerConnection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</developerConnection>
     </scm>
 
     <description>Maven Archetype for the Gitflow Maven Plugin</description>
     <developers>
         <developer>
             <id>dkirrane</id>
             <name>Desmond Kirrane</name>
             <email>desmond.kirrane@gmail.com</email>
         </developer>
     </developers>
     <licenses>
         <license>
             <name>Apache License Version 2.0, January 2004</name>
             <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
             <distribution>repo</distribution>
         </license>
     </licenses>
 
     <build>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <version>3.5</version>
                 <configuration>
                     <encoding>${project.build.sourceEncoding}</encoding>
                 </configuration>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-resources-plugin</artifactId>
                 <version>2.7</version>
                 <configuration>
                     <encoding>${project.build.sourceEncoding}</encoding>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 
     <profiles>
         <!-- For Release versions the Sonatype Nexus Stage rules require artifacts to be signed -->
         <!-- http://blog.sonatype.com/2010/01/how-to-generate-pgp-signatures-with-maven -->
         <!-- 1. Setup gpg, @see https://github.com/dkirrane/ggitflow/blob/develop/gradle.properties.sample -->
         <!-- 2. Run Maven deploy sign from Git terminal: mvn clean deploy -Prelease-sign-artifacts -->
         <!-- 3. Login to Nexus to release from the Stage: https://oss.sonatype.org | Login | Staging Repositories | Search for: com.dkirrane | Release -->
         <profile>
             <id>release-sign-artifacts</id>
             <activation>
                 <activeByDefault>false</activeByDefault>
             </activation>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-gpg-plugin</artifactId>
                         <version>1.6</version>
                         <executions>
                             <execution>
                                 <id>sign-artifacts</id>
                                 <phase>verify</phase>
                                 <goals>
                                     <goal>sign</goal>
                                 </goals>
                                 <configuration>
                                     <useAgent>false</useAgent>
                                 </configuration>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
             </build>
         </profile>
         <profile>
             <id>run-its</id>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-invoker-plugin</artifactId>
                         <version>1.8</version>
                         <configuration>
                             <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
                             <settingsFile>src/it/settings.xml</settingsFile>
                             <debug>true</debug>
                             <showErrors>true</showErrors>
                             <detail>true</detail>
                             <streamLogs>true</streamLogs>
                             <projectsDirectory>src/it/projects</projectsDirectory>
                             <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
                             <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
                             <addTestClassPath>true</addTestClassPath>
                             <preBuildHookScript>setup</preBuildHookScript>
                             <postBuildHookScript>verify</postBuildHookScript>
                             <pomIncludes>
                                 <pomInclude>*/pom.xml</pomInclude>
                             </pomIncludes>
                             <goals>
                                 <goal>clean</goal>
                                 <goal>test-compile</goal>
                             </goals>
                         </configuration>
                         <executions>
                             <execution>
                                 <id>integration-test</id>
                                 <goals>
                                     <goal>install</goal>
                                     <goal>integration-test</goal>
                                     <goal>verify</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
 
             </build>
         </profile>
     </profiles>
 
     <!--
         Sonatype upload details:
         http://central.sonatype.org/pages/ossrh-guide.html
         http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
         https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
         https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
         https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
 
             - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
             - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
             - Promote staged artifacts into repository 'Releases'
             - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
             - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
     -->
     <distributionManagement>
         <snapshotRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
         </snapshotRepository>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
         </repository>
     </distributionManagement>
     <repositories>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
             <snapshots>
                 <enabled>true</enabled>
             </snapshots>
         </repository>
     </repositories>
 </project>

commit f499889c3b5e9c7e15f1a8905012790026bb162d
Author: dkirrane <dkirrane@avaya.com>
Date:   Thu Sep 22 11:18:17 2016 +0100

    Updates to support Maven 3.3.9 and Prompter improvements

diff --git a/ggitflow-maven-archetype/pom.xml b/ggitflow-maven-archetype/pom.xml
index 4591e9f..7e40322 100644
--- a/ggitflow-maven-archetype/pom.xml
+++ b/ggitflow-maven-archetype/pom.xml
@@ -1,45 +1,45 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
         <version>2.4-SNAPSHOT</version>
     </parent>
 
     <groupId>com.dkirrane.maven.archetype</groupId>
     <artifactId>ggitflow-maven-archetype</artifactId>
     <version>2.4-SNAPSHOT</version>
     <packaging>maven-archetype</packaging>
     <name>ggitflow-maven-archetype</name>
 
     <build>
         <extensions>
             <extension>
                 <groupId>org.apache.maven.archetype</groupId>
                 <artifactId>archetype-packaging</artifactId>
-                <version>2.2</version>
+                <version>2.4</version>
             </extension>
         </extensions>
 
         <pluginManagement>
             <plugins>
                 <plugin>
                     <artifactId>maven-archetype-plugin</artifactId>
-                    <version>2.2</version>
+                    <version>2.4</version>
                 </plugin>
             </plugins>
         </pluginManagement>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <skip>true</skip>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index 04d6b6d..de10613 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,170 +1,196 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
         <version>2.4-SNAPSHOT</version>
     </parent>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
     <version>2.4-SNAPSHOT</version>
     <packaging>maven-plugin</packaging>
     <name>ggitflow-maven-plugin</name>
 
+    <properties>
+        <maven.compiler.source>1.7</maven.compiler.source>
+        <maven.compiler.target>1.7</maven.compiler.target>
+        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+        <netbeans.hint.license>apache20</netbeans.hint.license>
+
+        <maven.version>3.3.9</maven.version>
+        <maven.plugin.version>3.5</maven.plugin.version>
+        <maven.release.plugin.version>2.5.3</maven.release.plugin.version>
+        <plexus.component.version>1.6</plexus.component.version>
+    </properties>
+
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
             <version>2.6</version>
             <type>jar</type>
         </dependency>
+
         <dependency>
-            <groupId>org.twdata.maven</groupId>
-            <artifactId>mojo-executor</artifactId>
-            <version>2.2.0</version>
+            <groupId>org.slf4j</groupId>
+            <artifactId>slf4j-api</artifactId>
+            <version>1.7.21</version>
+        </dependency>
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>slf4j-simple</artifactId>
+            <version>1.7.21</version>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
-            <version>2.0</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.maven.plugin-tools</groupId>
-            <artifactId>maven-plugin-annotations</artifactId>
-            <version>3.2</version>
+            <version>${maven.version}</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
-            <groupId>org.codehaus.plexus</groupId>
-            <artifactId>plexus-utils</artifactId>
-            <version>3.0.8</version>
+            <groupId>org.apache.maven</groupId>
+            <artifactId>maven-core</artifactId>
+            <version>${maven.version}</version>
+            <scope>provided</scope>
         </dependency>
         <dependency>
-            <groupId>org.codehaus.plexus</groupId>
-            <artifactId>plexus-interactivity-api</artifactId>
-            <version>1.0-alpha-5</version>
-            <type>jar</type>
+            <groupId>org.apache.maven.plugin-tools</groupId>
+            <artifactId>maven-plugin-annotations</artifactId>
+            <version>${maven.plugin.version}</version>
+            <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
-            <version>2.4</version>
-            <type>jar</type>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.maven</groupId>
-            <artifactId>maven-project</artifactId>
-            <version>2.2.1</version>
-            <type>jar</type>
+            <version>${maven.release.plugin.version}</version>
         </dependency>
         <dependency>
-            <groupId>org.apache.maven.plugins</groupId>
-            <artifactId>maven-clean-plugin</artifactId>
-            <version>2.5</version>
+            <groupId>org.codehaus.plexus</groupId>
+            <artifactId>plexus-component-annotations</artifactId>
+            <version>${plexus.component.version}</version>
         </dependency>
+
         <dependency>
-            <groupId>org.apache.maven.plugins</groupId>
-            <artifactId>maven-install-plugin</artifactId>
-            <version>2.5.1</version>
+            <groupId>org.twdata.maven</groupId>
+            <artifactId>mojo-executor</artifactId>
+            <version>2.2.0</version>
         </dependency>
         <dependency>
-            <groupId>org.apache.maven.plugins</groupId>
-            <artifactId>maven-deploy-plugin</artifactId>
-            <version>2.8.1</version>
+            <groupId>jline</groupId>
+            <artifactId>jline</artifactId>
+            <version>2.14</version>
         </dependency>
         <dependency>
-            <groupId>org.apache.maven</groupId>
-            <artifactId>maven-artifact</artifactId>
-            <version>2.2.1</version>
+            <groupId>org.fusesource.jansi</groupId>
+            <artifactId>jansi</artifactId>
+            <version>1.12</version>
         </dependency>
         <dependency>
             <groupId>com.google.guava</groupId>
             <artifactId>guava</artifactId>
-            <version>16.0.1</version>
+            <version>19.0</version>
         </dependency>
-
         <dependency>
-            <groupId>org.slf4j</groupId>
-            <artifactId>slf4j-api</artifactId>
-            <version>1.7.21</version>
-        </dependency>
-        <dependency>
-            <groupId>org.slf4j</groupId>
-            <artifactId>slf4j-simple</artifactId>
-            <version>1.7.21</version>
+            <groupId>org.freemarker</groupId>
+            <artifactId>freemarker</artifactId>
+            <version>2.3.23</version>
         </dependency>
 
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
-            <version>4.11</version>
+            <version>4.12</version>
             <scope>test</scope>
         </dependency>
     </dependencies>
 
     <build>
-        <resources>
-            <resource>
-                <directory>src/it</directory>
-                <includes>
-                    <include>**/**</include>
-                </includes>
-            </resource>
-        </resources>
         <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <version>3.5</version>
+                <configuration>
+                    <encoding>${project.build.sourceEncoding}</encoding>
+                </configuration>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-resources-plugin</artifactId>
+                <version>2.7</version>
+                <configuration>
+                    <encoding>${project.build.sourceEncoding}</encoding>
+                </configuration>
+            </plugin>
+
+            <plugin>
+                <groupId>org.codehaus.plexus</groupId>
+                <artifactId>plexus-component-metadata</artifactId>
+                <version>${plexus.component.version}</version>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>generate-metadata</goal>
+                            <goal>generate-test-metadata</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
-                <version>3.2</version>
+                <version>${maven.plugin.version}</version>
                 <configuration>
-                    <goalPrefix>ggitflow</goalPrefix>
+                    <goalPrefix>reload</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
+
             <plugin>
                 <groupId>com.github.github</groupId>
                 <artifactId>site-maven-plugin</artifactId>
-                <version>0.9</version>
+                <version>0.12</version>
                 <configuration>
                     <message>Creating site for ${project.version}</message>
                     <server>github</server>
                     <merge>true</merge>
                 </configuration>
                 <executions>
                     <execution>
                         <goals>
                             <goal>site</goal>
                         </goals>
                         <phase>site</phase>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
-                <version>3.0</version>
+                <version>3.4</version>
                 <configuration>
                     <reportPlugins>
                         <plugin>
                             <groupId>org.apache.maven.plugins</groupId>
                             <artifactId>maven-plugin-plugin</artifactId>
-                            <version>3.2</version>
+                            <version>${maven.plugin.version}</version>
                         </plugin>
                     </reportPlugins>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
index 0736566..88d462e 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
@@ -24,93 +24,93 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  *
  */
 public class AbstractFeatureMojo extends AbstractGitflowMojo {
 
     /**
      * The name for the feature branch
      *
      * @since 1.2
      */
     @Parameter(property = "featureName", required = false)
     protected String featureName;
 
     /**
      * If <code>true</code>, the feature branch name is added to the pom
      * versions
      *
      * @since 1.2
      */
     @Parameter(property = "enableFeatureVersions", defaultValue = "true", required = false)
     protected boolean enableFeatureVersions;
 
     /**
      * If <code>true</code>, the feature branch is pushed to the remote
      * repository
      *
      * @since 1.2
      */
     @Parameter(property = "pushFeatureBranch", defaultValue = "false", required = false)
     protected boolean pushFeatureBranch;
 
     public String getFeatureBranchPrefix() {
         String prefix = getGitflowInit().getFeatureBranchPrefix();
         if (StringUtils.isBlank(prefix)) {
             prefix = DEFAULT_FEATURE_BRN_PREFIX;
         }
         return prefix;
     }
 
-    public String trimFeatureName(String featureLabel) throws MojoFailureException {
-        if (StringUtils.isBlank(featureLabel)) {
-            throw new MojoFailureException("Missing argument <featureName>");
-        }  
-        
+    public String trimFeatureName(String name) throws MojoFailureException {
+        if (StringUtils.isBlank(name)) {
+            throw new MojoFailureException("Missing argument <name>");
+        }
+
         // remove whitespace
-        featureLabel = featureLabel.replaceAll("\\s+", "");
+        name = name.replaceAll("\\s+", "");
 
         // trim off starting any leading 'feature/' prefix
-        String featureBranchPrefix = getFeatureBranchPrefix();
-        if (featureLabel.startsWith(featureBranchPrefix)) {
-            featureLabel = featureLabel.substring(featureBranchPrefix.length());
-        }            
-        
-        return featureLabel;
+        String prefix = getFeatureBranchPrefix();
+        if (name.startsWith(prefix)) {
+            name = name.substring(prefix.length());
+        }
+
+        return name;
     }
 
     public String getFeatureVersion(String currentVersion, String featureLabel) throws MojoFailureException {
         getLog().debug("getFeatureVersion from '" + currentVersion + "'");
         featureLabel = getValidFeatureVersionAnnotation(featureLabel);
         getLog().debug("Feature version annotation '" + featureLabel + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         Character annotationSeparator = artifactVersion.getAnnotationRevisionSeparator();
         String buildSpecifier = artifactVersion.getBuildSpecifier();
         Character buildSpecifierSeparator = artifactVersion.getBuildSpecifierSeparator();
 
         getLog().debug("Parsed version = " + artifactVersion.toString());
         if (!StringUtils.isBlank(annotationAsString)) {
             throw new MojoFailureException("Cannot add feature name to version. An annotation " + annotationAsString + " already exists");
         }
 
         final StringBuilder result = new StringBuilder(30);
 
         result.append(primaryNumbersAsString).append(annotationSeparator).append(featureLabel);
 
         if (buildSpecifier != null) {
             if (buildSpecifierSeparator != null) {
                 result.append(buildSpecifierSeparator);
             }
             result.append(buildSpecifier);
         }
 
         return result.toString();
     }
 
     private String getValidFeatureVersionAnnotation(String featureLabel) {
         featureLabel = featureLabel.trim().replaceAll("\\s+", "_");
         featureLabel = featureLabel.trim().replaceAll("-+", "_");
         return featureLabel;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index 3726a78..15e2196 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -19,2 +19,3 @@ import com.dkirrane.gitflow.groovy.GitflowInit;
 import com.dkirrane.gitflow.groovy.ex.GitflowException;
+import com.dkirrane.maven.plugins.ggitflow.prompt.Prompter;
 import com.dkirrane.maven.plugins.ggitflow.util.Finder;
@@ -33,3 +34,2 @@ import java.nio.file.Paths;
 import java.util.ArrayList;
-import java.util.Collection;
 import java.util.List;
@@ -40,4 +40,2 @@ import org.apache.commons.lang.exception.ExceptionUtils;
 import org.apache.maven.artifact.Artifact;
-import org.apache.maven.artifact.repository.ArtifactRepository;
-import org.apache.maven.artifact.resolver.ArtifactResolver;
 import org.apache.maven.execution.MavenSession;
@@ -45,4 +43,7 @@ import org.apache.maven.model.Dependency;
 import org.apache.maven.model.DependencyManagement;
+import org.apache.maven.model.Model;
 import org.apache.maven.model.Plugin;
-import org.apache.maven.model.building.ModelBuildingRequest;
+import org.apache.maven.model.building.DefaultModelProcessor;
+import org.apache.maven.model.io.DefaultModelReader;
+import org.apache.maven.model.locator.DefaultModelLocator;
 import org.apache.maven.plugin.AbstractMojo;
@@ -53,9 +54,3 @@ import org.apache.maven.plugins.annotations.Component;
 import org.apache.maven.plugins.annotations.Parameter;
-import org.apache.maven.project.DefaultProjectBuildingRequest;
-import org.apache.maven.project.DuplicateProjectException;
 import org.apache.maven.project.MavenProject;
-import org.apache.maven.project.ProjectBuilder;
-import org.apache.maven.project.ProjectBuildingException;
-import org.apache.maven.project.ProjectBuildingRequest;
-import org.apache.maven.project.ProjectSorter;
 import org.apache.maven.shared.release.ReleaseResult;
@@ -65,6 +60,4 @@ import org.apache.maven.shared.release.exec.MavenExecutor;
 import org.apache.maven.shared.release.exec.MavenExecutorException;
-import org.codehaus.plexus.components.interactivity.Prompter;
 import org.codehaus.plexus.util.FileUtils;
 import org.codehaus.plexus.util.StringUtils;
-import org.codehaus.plexus.util.dag.CycleDetectedException;
 import org.codehaus.plexus.util.xml.Xpp3Dom;
@@ -83,547 +76,454 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 public class AbstractGitflowMojo extends AbstractMojo {
 
     public final Pattern matchSnapshotRegex = Pattern.compile("-SNAPSHOT");
 
     public static final ImmutableList<String> DEFAULT_INSTALL_ARGS = ImmutableList.of(
             "-DinstallAtEnd=false");
 
     public static final ImmutableList<String> DEFAULT_DEPLOY_ARGS = ImmutableList.of(
             "-DdeployAtEnd=false",
             "-DretryFailedDeploymentCount=2");
 
     public static final Splitter PROFILES_SPLITTER = Splitter.on(',').trimResults().omitEmptyStrings();
     public static final Joiner PROFILES_JOINER = Joiner.on(',').skipNulls();
 
     private static final Plugin VERSIONS_MVN_PLUGIN = plugin(
             groupId("org.codehaus.mojo"),
             artifactId("versions-maven-plugin"),
             version("2.1")
     );
 
+    @Parameter(defaultValue = "${session}", readonly = true)
+    protected MavenSession session;
+
+    @Parameter(defaultValue = "${project}", readonly = true)
+    protected MavenProject project;
+
+    @Parameter(defaultValue = "${reactorProjects}", readonly = true, required = true)
+    protected List<MavenProject> reactorProjects;
+
+    @Component
+    protected BuildPluginManager pluginManager;
+
+    @Component
+    protected Map<String, MavenExecutor> mavenExecutors;
+
+    @Component(role = Prompter.class)
+    protected Prompter prompter;
+
     /**
      * Gitflow branches and prefixes to use.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
     /**
      * Message prefix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgPrefix", defaultValue = "", required = false)
     protected String msgPrefix;
 
     /**
      * Message suffix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgSuffix", defaultValue = "", required = false)
     protected String msgSuffix;
 
-    /**
-     * Component used to prompt for input.
-     */
-    @Component
-    protected Prompter prompter;
-
-    @Component
-    protected Map<String, MavenExecutor> mavenExecutors;
-
-    @Component
-    protected ArtifactResolver artifactResolver;
-
-    /**
-     * @parameter default-value="${project.artifacts}"
-     * @required
-     * @readonly
-     */
-    protected Collection artifacts;
-
-    /**
-     * @parameter expression="${localRepository}"
-     */
-    protected ArtifactRepository localRepository;
-
-    /**
-     * @parameter expression="${project.remoteArtifactRepositories}"
-     */
-    protected List remoteArtifactRepositories;
-
-//    @Component
-//    protected MavenProjectBuilder projectBuilder;
-//    @Component
-//    protected DefaultProjectBuilder projectBuilder;
-//    /**
-//     * @parameter property="plugin"
-//     * @required
-//     */
-//    @Component
-//    protected PluginDescriptor pluginDescriptor;
-//
-    /**
-     * The projects in the reactor.
-     */
-    @Parameter(defaultValue = "${reactorProjects}", readonly = true, required = true)
-    protected List<MavenProject> reactorProjects;
-
-    /**
-     * The project builder
-     */
-    @Component
-    private ProjectBuilder projectBuilder;
-
-    /**
-     * The project currently being build.
-     *
-     * @parameter expression="${project}"
-     * @required
-     * @readonly
-     */
-    @Component
-    protected MavenProject project;
-
-    /**
-     * The current Maven session.
-     *
-     * @parameter expression="${session}"
-     * @required
-     * @readonly
-     */
-    @Component
-    protected MavenSession session;
-
-    /**
-     * The Maven BuildPluginManager component.
-     *
-     * @component
-     * @required
-     */
-    @Component
-    protected BuildPluginManager pluginManager;
-
-//    @Parameter(defaultValue = "${basedir}", readonly = true, required = true)
-//    protected File basedir;
-//    @Component
-//    protected Settings settings;
     private GitflowInit init;
     private Path tempDir;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     public void execute() throws MojoExecutionException, MojoFailureException {
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             getLog().debug("Gitflow pom  '" + project.getBasedir() + "'");
         }
 
         GitflowInit gitflowInit = getGitflowInit();
 
         gitflowInit.requireGitRepo();
         gitflowInit.checkRemoteConnection();
 
         if (!gitflowInit.gitflowIsInitialized()) {
             try {
                 gitflowInit.cmdDefault();
             } catch (GitflowException ex) {
                 throw new MojoExecutionException("Failed to initialise Gitflow " + ex.getMessage(), ex);
             }
         }
 
         gitflowInit.requireCleanWorkingTree();
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     protected final GitflowInit getGitflowInit() {
         if (null == init) {
             getLog().debug("Initialising Gitflow");
             init = new GitflowInit();
             File basedir = getProject().getBasedir();
             getLog().debug("Setting base directory " + basedir);
             init.setRepoDir(basedir);
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
 
             /* root Git directory may not be the pom directory */
             String gitRootPath = init.executeLocal("git rev-parse --show-toplevel");
             getLog().debug("Git repo top level " + gitRootPath);
             File baseGitDir = new File(gitRootPath);
             if (baseGitDir.isDirectory()) {
                 getLog().debug("Setting git base directory " + baseGitDir);
                 init.setRepoDir(baseGitDir);
             }
 
             /* Create temp directory - delete any previous first */
             try {
                 Finder finder = new Finder(Syntax.glob, "mvn-gitflow*");
                 Files.walkFileTree(Paths.get(System.getProperty("java.io.tmpdir")), finder);
                 List<Path> paths = finder.getPaths();
                 getLog().debug("Deleting old temp directories " + paths);
                 for (Path path : paths) {
                     FileUtils.deleteDirectory(path.toFile());
                 }
                 tempDir = Files.createTempDirectory("mvn-gitflow");
             } catch (IOException ioe) {
                 getLog().error("Failed to create temp directory", ioe);
             }
         }
         return init;
     }
 
     protected final boolean setVersion(String version, Boolean push, String branch) throws MojoExecutionException, MojoFailureException {
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         MavenProject topLevelProject = session.getTopLevelProject();
         session.setCurrentProject(topLevelProject);
 
         String goal = goal("set");
         Xpp3Dom configuration = configuration(
                 element(name("generateBackupPoms"), "false"),
                 element(name("newVersion"), version)
         );
 
         String mavenCommand = getMavenCommand(VERSIONS_MVN_PLUGIN, goal);
 
         getLog().info("");
         getLog().info("--- " + mavenCommand + " " + topLevelProject.getArtifactId() + " to " + version + " (" + branch + ") ---");
         executeMyMojo(VERSIONS_MVN_PLUGIN, goal, configuration);
         getLog().info("------------------------------------------------------------------------");
 
         boolean commitMade = false;
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (push && getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change " + version + " to origin. ExitCode:" + exitCode);
                 }
             }
             commitMade = true;
         }
         /* We don't want to fail maybe the version was manually set correctly */
 //        else {
 //            throw new MojoFailureException("Failed to update poms to version " + version);
 //        }
         return commitMade;
     }
 
     protected final boolean setNextVersions(Boolean allowSnapshots, Boolean updateParent, String includes) throws MojoExecutionException, MojoFailureException {
         getLog().debug("setNextVersions");
 
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         MavenProject topLevelProject = session.getTopLevelProject();
         session.setCurrentProject(topLevelProject);
 
         if (updateParent) {
             String updateParentGoal = goal("update-parent");
             Xpp3Dom configuration = configuration(
                     element(name("generateBackupPoms"), "false"),
                     element(name("allowSnapshots"), allowSnapshots.toString())
             );
 
             String mavenCommand = getMavenCommand(VERSIONS_MVN_PLUGIN, updateParentGoal);
             getLog().info("");
             getLog().info("--- " + mavenCommand + " " + topLevelProject.getArtifactId() + " ---");
             executeMyMojo(VERSIONS_MVN_PLUGIN, updateParentGoal, configuration);
             getLog().info("------------------------------------------------------------------------");
         }
 
         if (!StringUtils.isBlank(includes)) {
             String useNextVersionsGoal = goal("use-next-versions");
             Xpp3Dom configuration = configuration(
                     element(name("generateBackupPoms"), "false"),
                     element(name("allowSnapshots"), allowSnapshots.toString()),
                     element(name("includesList"), includes)
             );
 
             String mavenCommand = getMavenCommand(VERSIONS_MVN_PLUGIN, useNextVersionsGoal);
             getLog().info("");
             getLog().info("--- " + mavenCommand + " " + topLevelProject.getArtifactId() + " ---");
             executeMyMojo(VERSIONS_MVN_PLUGIN, useNextVersionsGoal, configuration);
             getLog().info("------------------------------------------------------------------------");
         } else {
             getLog().warn("Parameter <includes> is not set. Skipping dependency updates");
         }
 
         boolean commitMade = false;
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg;
             if (allowSnapshots) {
                 msg = getMsgPrefix() + "Replaces any release versions with the next snapshot version (if it has been deployed)." + getMsgSuffix();
             } else {
                 msg = getMsgPrefix() + "Replaces snapshot versions with the corresponding release version" + getMsgSuffix();
             }
 
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change to origin. ExitCode:" + exitCode);
                 }
             }
             commitMade = true;
         }
         return commitMade;
     }
 
     protected final void executeMyMojo(Plugin plugin, String goal, Xpp3Dom configuration) throws MojoExecutionException, MojoFailureException {
         String mavenCommand = getMavenCommand(plugin, goal);
         MavenProject topLevelProject = session.getTopLevelProject();
         String projArtifactId = topLevelProject.getArtifactId();
         getLog().debug("START " + mavenCommand + " on " + projArtifactId);
         getLog().debug("configuration " + configuration.toUnescapedString());
 
         /* Maven 3.3.x log settings */
 //        session.getRequest().setLoggingLevel(MavenExecutionRequest.LOGGING_LEVEL_WARN);
 //        System.setProperty("org.slf4j.simpleLogger.defaultLogLevel", "error");
 //        System.setProperty("maven.logging.root.level", "error");
         PrintStream stdout = System.out;
         PrintStream stoutStream = null;
         Path tempStoutFile = null;
         try {
 
             /* Capture System.out */
             if (!getLog().isDebugEnabled()) {
                 try {
                     String logFileName = plugin.getArtifactId() + '-' + goal + '-';
                     tempStoutFile = Files.createTempFile(tempDir, logFileName, ".log");
                     stoutStream = new PrintStream(new FileOutputStream(tempStoutFile.toFile(), true));
                     System.setOut(stoutStream);
                 } catch (Exception ioe) {
                     getLog().warn("Failed to capture System.out", ioe);
                 }
             }
 
             /* Execute Maven plugin goal */
             executeMojo(
                     plugin,
                     goal,
                     configuration,
                     executionEnvironment(
                             session.getTopLevelProject(),
                             session,
                             pluginManager
                     )
             );
 
         } catch (MojoExecutionException mee) {
             /* Reset System.out */
             System.setOut(stdout);
             String rootCauseMessage = ExceptionUtils.getRootCauseMessage(mee);
             if (rootCauseMessage.contains("Project version is inherited from parent")) {
                 getLog().debug("Skipping " + mavenCommand + " for project " + projArtifactId + ". Project version is inherited from parent.");
             } else {
                 getLog().error("Failed to execute " + mavenCommand + " on " + projArtifactId, mee);
                 throw mee;
             }
         } finally {
             if (!getLog().isDebugEnabled()) {
                 /* Reset System.out */
                 System.setOut(stdout);
 
                 if (null != tempStoutFile) {
                     getLog().info(mavenCommand + " log " + tempStoutFile.toString());
                 }
 
                 if (null != stoutStream) {
                     try {
                         stoutStream.close();
                     } catch (Exception e) {
                     }
                 }
             }
             getLog().debug("DONE " + mavenCommand);
         }
     }
 
     private String getMavenCommand(Plugin plugin, String goal) {
         return plugin.getArtifactId() + ':' + plugin.getVersion() + ':' + goal;
     }
 
     protected final void runGoals(String goals, List<String> additionalArgs) throws MojoExecutionException, MojoFailureException {
         getLog().debug("START executing " + goals + " with args " + additionalArgs);
 
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         File basedir = rootProject.getBasedir();
 
         ReleaseResult result = new ReleaseResult();
         ReleaseEnvironment env = new DefaultReleaseEnvironment();
         env.setSettings(session.getSettings());
         MavenExecutor mavenExecutor = mavenExecutors.get(env.getMavenExecutorId());
 
         Joiner joiner = Joiner.on(" ").skipNulls();
         String additionalArguments = joiner.join(additionalArgs);
         getLog().debug("additionalArguments " + additionalArguments);
 
         try {
             mavenExecutor.executeGoals(basedir, goals, env, false, additionalArguments, result);
         } catch (MavenExecutorException ex) {
             throw new MojoExecutionException(result.getOutput(), ex);
         }
         getLog().debug("DONE executing " + goals);
     }
 
     protected final String getReleaseVersion(String version) throws MojoFailureException {
         getLog().debug("Current Develop version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
             getLog().debug("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
     protected final void checkForSnapshotDependencies() throws MojoExecutionException {
         getLog().info("Checking for SNAPSHOT dependencies");
         Boolean hasDepSnapshots = false;
         Boolean hasParentSnapshot = false;
         for (MavenProject mavenProject : reactorProjects) {
             String artifactId = mavenProject.getArtifactId();
 
             /* Check <parent> */
             Artifact parentArtifact = mavenProject.getParentArtifact();
             if (parentArtifact != null && parentArtifact.isSnapshot()) {
                 getLog().error("Parent of project " + artifactId + " is a SNAPSHOT " + parentArtifact.getId());
                 hasParentSnapshot = true;
             }
 
             /* Check <dependencyManagement> */
             DependencyManagement dependencyManagement = mavenProject.getDependencyManagement();
             if (null != dependencyManagement) {
                 if (checkForSnapshot(artifactId, dependencyManagement.getDependencies())) {
                     hasDepSnapshots = true;
                 }
             }
 
             /* Check <dependencies> */
             if (checkForSnapshot(artifactId, mavenProject.getDependencies())) {
                 hasDepSnapshots = true;
             }
         }
         if (hasParentSnapshot || hasDepSnapshots) {
             throw new MojoExecutionException("Cannot release because SNAPSHOT dependencies exist");
         }
     }
 
     private boolean checkForSnapshot(String artifactId, List<Dependency> dependencies) throws MojoExecutionException {
         Boolean hasSnapshotDependency = false;
         for (Dependency dependency : dependencies) {
             String version = dependency.getVersion();
             Matcher versionMatcher = matchSnapshotRegex.matcher(version);
             if (versionMatcher.find() && versionMatcher.end() == version.length()) {
                 getLog().error("Project " + artifactId + " contains SNAPSHOT dependency: " + dependency.getGroupId() + ":" + dependency.getArtifactId() + ":" + version);
                 hasSnapshotDependency = true;
             }
         }
         return hasSnapshotDependency;
     }
 
-    protected final void reloadReactorProjects() throws MojoExecutionException {
+    protected final void reloadReactorProjects() {
         getLog().debug("Reloading poms...");
 
-        List<MavenProject> newReactorProjects;
-        try {
-            newReactorProjects = buildReactorProjects();
-        } catch (ProjectBuildingException e) {
-            getLog().error("Re-parse aborted due to malformed pom.xml file(s)", e);
-            throw new MojoExecutionException("Re-parse aborted due to malformed pom.xml file(s)", e);
-        } catch (CycleDetectedException e) {
-            getLog().error("Re-parse aborted due to dependency cycle in project model", e);
-            throw new MojoExecutionException("Re-parse aborted due to dependency cycle in project model", e);
-        } catch (DuplicateProjectException e) {
-            getLog().error("Re-parse aborted due to duplicate projects in project model", e);
-            throw new MojoExecutionException("Re-parse aborted due to duplicate projects in project model", e);
-        } catch (Exception e) {
-            getLog().error("Re-parse aborted due a problem that prevented sorting the project model", e);
-            throw new MojoExecutionException("Re-parse aborted due a problem that prevented sorting the project model", e);
+        List<MavenProject> updatedReactorProjects = new ArrayList<>();
+        for (MavenProject mavenProject : reactorProjects) {
+            File pomFile = mavenProject.getFile();
+            if (pomFile.canRead()) {
+                Model readModel = readModel(pomFile);
+                MavenProject updatedMavenProject = new MavenProject(readModel);
+                updatedReactorProjects.add(updatedMavenProject);
+            } else {
+                getLog().warn("Cannot reload pom file " + pomFile + ". It may not exist on this Git branch");
+            }
         }
-        MavenProject newProject = findProject(newReactorProjects, this.project);
-        if (newProject == null) {
-            throw new MojoExecutionException("A pom.xml change appears to have removed " + this.project.getId() + " from the build plan.");
+        for (MavenProject updatedReactorProject : updatedReactorProjects) {
+            getLog().debug(String.format("\t %-30s %-30s", updatedReactorProject.getArtifactId(), updatedReactorProject.getVersion()));
         }
 
-        this.project = newProject;
-        this.reactorProjects = newReactorProjects;
-
-        getLog().debug("Reloading poms complete...");
+        getLog().debug("Reloading poms complete");
     }
 
-    private List<MavenProject> buildReactorProjects() throws Exception {
-
-        List<MavenProject> projects = new ArrayList<MavenProject>();
-        for (MavenProject p : reactorProjects) {
-            ProjectBuildingRequest request = new DefaultProjectBuildingRequest();
-
-            request.setProcessPlugins(false);
-            request.setProfiles(request.getProfiles());
-            request.setActiveProfileIds(session.getRequest().getActiveProfiles());
-            request.setInactiveProfileIds(session.getRequest().getInactiveProfiles());
-            request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
-            request.setSystemProperties(session.getSystemProperties());
-            request.setUserProperties(session.getUserProperties());
-            request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
-            request.setPluginArtifactRepositories(session.getRequest().getPluginArtifactRepositories());
-            request.setRepositorySession(session.getRepositorySession());
-            request.setLocalRepository(localRepository);
-            request.setBuildStartTime(session.getRequest().getStartTime());
-            request.setResolveDependencies(false);
-            request.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_STRICT);
-            projects.add(projectBuilder.build(p.getFile(), request).getProject());
+    private static Model readModel(File pomFile) {
+        DefaultModelProcessor modelProcessor = new DefaultModelProcessor();
+        modelProcessor.setModelLocator(new DefaultModelLocator());
+        modelProcessor.setModelReader(new DefaultModelReader());
+
+        try {
+            return modelProcessor.read(pomFile, null);
+        } catch (IOException ex) {
+            throw new IllegalStateException("Failed to build model from pom " + pomFile, ex);
         }
-        return new ProjectSorter(projects).getSortedProjects();
     }
 
-    private MavenProject findProject(List<MavenProject> newReactorProjects, MavenProject oldProject) {
-        for (MavenProject newProject : newReactorProjects) {
-            if (oldProject.getGroupId().equals(newProject.getGroupId())
-                    && oldProject.getArtifactId().equals(newProject.getArtifactId())) {
-                return newProject;
-            }
-        }
-        return null;
+    protected List<String> rearrange(String input, List<String> strings) {
+        strings.remove(input);
+        strings.add(0, input);
+        return strings;
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractHotfixMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractHotfixMojo.java
index d4877e0..8d8a254 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractHotfixMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractHotfixMojo.java
@@ -17,15 +17,42 @@ package com.dkirrane.maven.plugins.ggitflow;
 
+import static com.dkirrane.gitflow.groovy.Constants.DEFAULT_HOTFIX_BRN_PREFIX;
+import org.apache.maven.plugin.MojoFailureException;
 import org.apache.maven.plugins.annotations.Parameter;
+import org.codehaus.plexus.util.StringUtils;
 
 public class AbstractHotfixMojo extends AbstractGitflowMojo {
 
     /**
      * If <code>true</code>, the hotfix branch is pushed to the remote
      * repository
      *
      * @since 1.6
      */
     @Parameter(property = "pushHotfixBranch", defaultValue = "true", required = false)
     protected boolean pushHotfixBranch;
 
+    public String getHotfixBranchPrefix() {
+        String prefix = getGitflowInit().getHotfixBranchPrefix();
+        if (StringUtils.isBlank(prefix)) {
+            prefix = DEFAULT_HOTFIX_BRN_PREFIX;
+        }
+        return prefix;
+    }
+
+    public String trimHotfixName(String name) throws MojoFailureException {
+        if (StringUtils.isBlank(name)) {
+            throw new MojoFailureException("Missing argument <featureName>");
+        }
+
+        // remove whitespace
+        name = name.replaceAll("\\s+", "");
+
+        // trim off starting any leading 'hotfix/' prefix
+        String prefix = getHotfixBranchPrefix();
+        if (name.startsWith(prefix)) {
+            name = name.substring(prefix.length());
+        }
+
+        return name;
+    }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java
index 303bbd0..70e7f16 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java
@@ -24,37 +24,54 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 public class AbstractReleaseMojo extends AbstractGitflowMojo {
 
     /**
      * The name for the release branch.
      *
      * @since 1.2
      */
     @Parameter(property = "releaseName", required = false)
     protected String releaseName;
 
     /**
      * If <code>true</code>, the release branch is pushed to the remote
      * repository.
      *
      * @since 1.6
      */
     @Parameter(property = "pushReleaseBranch", defaultValue = "true", required = false)
     protected boolean pushReleaseBranch;
 
     public String getReleaseBranchPrefix() {
         String prefix = getGitflowInit().getReleaseBranchPrefix();
         if (StringUtils.isBlank(prefix)) {
             prefix = DEFAULT_RELEASE_BRN_PREFIX;
         }
         return prefix;
     }
 
+    public String trimReleaseName(String name) throws MojoFailureException {
+        if (StringUtils.isBlank(name)) {
+            throw new MojoFailureException("Missing argument <name>");
+        }
+
+        // remove whitespace
+        name = name.replaceAll("\\s+", "");
+
+        // trim off starting any leading 'release/' prefix
+        String prefix = getReleaseBranchPrefix();
+        if (name.startsWith(prefix)) {
+            name = name.substring(prefix.length());
+        }
+
+        return name;
+    }
+
     public String getNextDevelopmentVersion(String version) throws MojoFailureException {
         getLog().debug("Project version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
         GenericArtifactVersion nextDevelopVersion = artifactVersion.upgradeLeastSignificantNumber();
 
         getLog().debug("Project version '" + nextDevelopVersion + "'");
         return nextDevelopVersion.toString();
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
index 138232e..5ed74ad 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
@@ -21,3 +21,6 @@ import com.dkirrane.gitflow.groovy.ex.GitflowMergeConflictException;
 import com.google.common.collect.ImmutableList;
+import java.io.IOException;
 import java.util.List;
+import java.util.logging.Level;
+import java.util.logging.Logger;
 import org.apache.maven.plugin.MojoExecutionException;
@@ -30,169 +33,166 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  * Merges a feature branch back into the develop.
  */
 @Mojo(name = "feature-finish", aggregator = true)
 public class FeatureFinishMojo extends AbstractFeatureMojo {
 
     /**
      * If <code>true</code>, the feature finish merge to develop will get pushed
      * to the remote repository
      *
      * @since 1.6
      */
     @Parameter(property = "pushFeatureFinish", defaultValue = "false", required = false)
     protected boolean pushFeatureFinish;
 
     /**
      * If <code>true</code>, the feature branch will be rebased onto develop,
      * then finish will fast-forward merge the feature branch back onto develop.
      *
      * @since 1.2
      */
     @Parameter(property = "isRebase", defaultValue = "false", required = false)
     private boolean isRebase;
 
 //    No good way to handle Interactive rebase from a Maven plugin
 //    /**
 //     * If <code>true</code>, and <code>isRebase</code> is true, then an interactive rebase is
 //     * performed for the feature branch.
 //     *
 //     * @since 1.2
 //     */
 //    @Parameter(property = "isInteractive", defaultValue = "false", required = false)
     private final boolean isInteractive = false;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "true", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any tests during <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipTests", defaultValue = "true", required = false)
     private Boolean skipTests;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the local feature branch will not be deleted after
      * the merge.
      *
      * @since 1.6
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keepLocal;
 
     /**
      * If <code>true</code>, the remote feature branch will not be deleted after
      * the merge.
      *
      * @since 1.6
      */
     @Parameter(property = "keep", defaultValue = "true", required = false)
     private Boolean keepRemote;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().debug("Finishing feature");
 
         String prefix = getFeatureBranchPrefix();
         List<String> featureBranches = getGitflowInit().gitLocalFeatureBranches();
-
         if (null == featureBranches || featureBranches.isEmpty()) {
             throw new MojoFailureException("No local feature branches exist!");
         }
 
         if (StringUtils.isBlank(featureName)) {
-            String defaultFeatureBranch;
-            String currentBranch = getGitflowInit().gitCurrentBranch();
-            if (currentBranch.startsWith(prefix)) {
-                defaultFeatureBranch = currentBranch;
-            } else {
-                defaultFeatureBranch = featureBranches.get(0);
-            }
-            String featureBranch = promptForExistingFeatureBranch(featureBranches, defaultFeatureBranch);
+            String featureBranch = promptForExistingFeatureBranch(prefix, featureBranches);
             featureName = trimFeatureName(featureBranch);
         } else {
             featureName = trimFeatureName(featureName);
             if (!getGitflowInit().gitLocalBranchExists(prefix + featureName)) {
                 throw new MojoFailureException("No local feature branch named '" + prefix + featureName + "' exists!");
             }
         }
 
         getLog().info("Finishing feature '" + featureName + "'");
 
         if (enableFeatureVersions) {
             /* Switch to develop branch and get its current version */
             getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
             reloadReactorProjects();
             String developVersion = project.getVersion();
             getLog().debug("develop version = " + developVersion);
 
             /* Switch to feature branch and get its current version */
             getGitflowInit().executeLocal("git checkout " + prefix + featureName);
             reloadReactorProjects();
             String featureVersion = project.getVersion();
             getLog().debug("feature version = " + featureVersion);
 
             setVersion(developVersion, pushFeatureFinish, prefix + featureName);
         }
 
         if (skipBuild == false) {
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_INSTALL_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             runGoals("clean install", additionalArgs.build());
         } else {
             getLog().debug("Skipping mvn install for feature " + featureName);
         }
 
         GitflowFeature gitflowFeature = new GitflowFeature();
         gitflowFeature.setInit(getGitflowInit());
         gitflowFeature.setMsgPrefix(getMsgPrefix());
         gitflowFeature.setMsgSuffix(getMsgSuffix());
         gitflowFeature.setPush(pushFeatureBranch);
         gitflowFeature.setSquash(squash);
         gitflowFeature.setKeepLocal(keepLocal);
         gitflowFeature.setKeepRemote(keepRemote);
         gitflowFeature.setIsRebase(isRebase);
         gitflowFeature.setIsInteractive(isInteractive);
 
         try {
             gitflowFeature.finish(featureName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
     }
 
-    private String promptForExistingFeatureBranch(List<String> featureBranches, String defaultFeatureBranch) throws MojoFailureException {
-        String message = "Please select a feature branch to finish?";
+    private String promptForExistingFeatureBranch(String prefix, List<String> featureBranches) throws MojoFailureException {
+        List<String> choices = featureBranches;
+
+        /* if current branch is a feature branch at it to start of list so it is the default in prompt */
+        String currentBranch = getGitflowInit().gitCurrentBranch();
+        if (currentBranch.startsWith(prefix)) {
+            choices = rearrange(currentBranch, featureBranches);
+        }
 
         String name = "";
         try {
-            name = prompter.prompt(message, featureBranches, defaultFeatureBranch);
-        } catch (PrompterException e) {
-            throw new MojoFailureException("Error reading feature name from command line " + e.getMessage());
+            prompter.promptChoice("Feature branches", "Please select a feature branch to finish", choices);
+        } catch (IOException ex) {
+            throw new MojoFailureException("Error reading feature name from command line " + ex.getMessage());
         }
-
         return name.trim();
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
index 368579d..3569e14 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
@@ -20,2 +20,3 @@ import com.dkirrane.gitflow.groovy.ex.GitflowException;
 import com.dkirrane.maven.plugins.ggitflow.util.MavenUtil;
+import java.io.IOException;
 import org.apache.maven.model.Model;
@@ -25,3 +26,2 @@ import org.apache.maven.plugins.annotations.Mojo;
 import org.apache.maven.plugins.annotations.Parameter;
-import org.codehaus.plexus.components.interactivity.PrompterException;
 import org.codehaus.plexus.util.StringUtils;
@@ -29,68 +29,68 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  * Creates a new feature branch off of the develop branch.
  */
 @Mojo(name = "feature-start", aggregator = true)
 public class FeatureStartMojo extends AbstractFeatureMojo {
 
     /**
      * The commit to start the feature branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     protected String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         String prefix = getFeatureBranchPrefix();
         if (StringUtils.isBlank(featureName)) {
-            String message = "What is the feature branch name? " + prefix;
+            String message = "Please enter a feature branch name? " + prefix;
             try {
                 featureName = prompter.prompt(message);
                 if (StringUtils.isBlank(featureName)) {
                     throw new MojoFailureException("Parameter <featureName> cannot be null or empty.");
                 }
-            } catch (PrompterException ex) {
+            } catch (IOException ex) {
                 throw new MojoExecutionException("Error reading feature name from command line " + ex.getMessage(), ex);
             }
         }
         featureName = trimFeatureName(featureName);
 
         getLog().info("Starting feature '" + featureName + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowFeature gitflowFeature = new GitflowFeature();
         gitflowFeature.setInit(getGitflowInit());
         gitflowFeature.setMsgPrefix(getMsgPrefix());
         gitflowFeature.setMsgSuffix(getMsgSuffix());
         gitflowFeature.setPush(pushFeatureBranch);
         gitflowFeature.setStartCommit(startCommit);
 
         try {
             gitflowFeature.start(featureName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         if (enableFeatureVersions) {
             /* Already on feature branch so just get its current version */
             Model model = MavenUtil.readPom(reactorProjects);
             String currentVersion = model.getVersion();
 
             String featureVersion = getFeatureVersion(currentVersion, featureName);
             setVersion(featureVersion, pushFeatureBranch, prefix + featureName);
 
             if (getGitflowInit().gitRemoteBranchExists(prefix + featureName)) {
                 getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + featureName);
             }
 
             /* print feature version */
             reloadReactorProjects();
             getLog().debug("project = " + project.getVersion());
         }
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
index a972add..d167a79 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
@@ -22,2 +22,3 @@ import static com.dkirrane.maven.plugins.ggitflow.AbstractGitflowMojo.DEFAULT_DE
 import com.google.common.collect.ImmutableList;
+import java.io.IOException;
 import java.util.List;
@@ -27,3 +28,2 @@ import org.apache.maven.plugins.annotations.Mojo;
 import org.apache.maven.plugins.annotations.Parameter;
-import org.codehaus.plexus.components.interactivity.PrompterException;
 import org.codehaus.plexus.util.StringUtils;
@@ -31,264 +31,285 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  * Merges a hotfix branch back into the develop and master branch and then
  * creates a tag for the hotfix on master.
  */
 @Mojo(name = "hotfix-finish", aggregator = true)
 public class HotfixFinishMojo extends AbstractHotfixMojo {
 
     protected String hotfixName;
 
     /**
      * If <code>true</code>, the hotfix finish merge to develop & master and
      * created tag will get pushed to the remote repository
      *
      * @since 1.6
      */
     @Parameter(property = "pushHotfixFinish", defaultValue = "false", required = false)
     protected boolean pushHotfixFinish;
 
     /**
      * If <code>true</code>, the hotfix can still finish even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private boolean allowSnapshots;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "true", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any calls to <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipDeploy", defaultValue = "true", required = false)
     private Boolean skipDeploy;
 
     /**
      * Skips any tests during <code>mvn install</code> and
      * <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipTests", defaultValue = "true", required = false)
     private Boolean skipTests;
 
     /**
      * Whether to use the release profile that adds sources and javadoc to the
      * released artifact, if appropriate. If set to true, the hotfix-finish will
      * set the property "performRelease" to true, which activates the profile
      * "release-profile", which is inherited from the super pom.
      *
      * @since 1.2
      */
     @Parameter(property = "useReleaseProfile", defaultValue = "true", required = false)
     private Boolean useReleaseProfile;
 
     /**
      * Comma separated profiles to enable on deployment, in addition to active
      * profiles for project execution.
      *
      * @since 1.2
      */
     @Parameter(property = "releaseProfiles", defaultValue = "", required = false)
     private String releaseProfiles;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the hotfix feature branch will not be deleted after
      * the merge.
      *
      * @since 1.6
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keepLocal;
 
     /**
      * If <code>true</code>, the hotfix feature branch will not be deleted after
      * the merge.
      *
      * @since 1.6
      */
     @Parameter(property = "keep", defaultValue = "true", required = false)
     private Boolean keepRemote;
 
     /**
      * If <code>true</code>, the hotfix tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().debug("Finishing hotfix");
 
+        /* Fetch any new tags and prune any branches that may already be deleted */
+        getGitflowInit().executeRemote("git fetch --tags --prune");
+
         /* Get hotfix branch name */
+        String prefix = getHotfixBranchPrefix();
         List<String> hotfixBranches = getGitflowInit().gitLocalHotfixBranches();
         if (hotfixBranches.isEmpty()) {
-            throw new MojoFailureException("Could not find hotfix branch!");
-        } else if (hotfixBranches.size() == 1) {
-            hotfixName = hotfixBranches.get(0);
+            throw new MojoFailureException("Could not find any local hotfix branch!");
+        }
+
+        if (StringUtils.isBlank(hotfixName)) {
+            if (hotfixBranches.size() == 1) {
+                String hotfixBranch = hotfixBranches.get(0);
+                hotfixName = trimHotfixName(hotfixBranch);
+            } else {
+                String hotfixBranch = promptForExistingHotfixBranch(prefix, hotfixBranches);
+                hotfixName = trimHotfixName(hotfixBranch);
+            }
+
         } else {
-            hotfixName = promptForExistingHotfixName(hotfixBranches, hotfixName);
+            hotfixName = trimHotfixName(hotfixName);
+            if (!getGitflowInit().gitLocalBranchExists(prefix + hotfixName)) {
+                throw new MojoFailureException("No local hotfix branch named '" + prefix + hotfixName + "' exists!");
+            }
         }
 
         getLog().info("Finishing hotfix '" + hotfixName + "'");
 
+        String hotfixBranch = prefix + hotfixName;
+
         /* Switch to develop branch and get its current version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         getLog().debug("develop version = " + developVersion);
 
         /* Switch to hotfix branch and set poms to hotfix version */
-        getGitflowInit().executeLocal("git checkout " + hotfixName);
+        getGitflowInit().executeLocal("git checkout " + hotfixBranch);
         reloadReactorProjects();
         String hotfixVersion = project.getVersion();
         getLog().debug("hotfix snapshot version = " + hotfixVersion);
         String hotfixReleaseVersion = getReleaseVersion(hotfixVersion);
         getLog().debug("hotfix release version = " + hotfixReleaseVersion);
 
-        boolean setVersion = setVersion(hotfixReleaseVersion, pushHotfixFinish, hotfixName);
+        boolean setVersion = setVersion(hotfixReleaseVersion, pushHotfixFinish, hotfixBranch);
 
         if (!allowSnapshots) {
             reloadReactorProjects();
             try {
                 checkForSnapshotDependencies();
             } catch (MojoExecutionException mee) {
                 // reset setVersion commit and allow user fix & push SNAPSHOT dependencies
                 // but can only reset if the commit has not been pushed */
                 if (!pushHotfixFinish && setVersion) {
                     getGitflowInit().executeLocal("git reset --hard HEAD~1");
                 }
                 throw mee;
             }
         }
 
         /* finish hotfix */
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
         gitflowHotfix.setPush(pushHotfixBranch);
         gitflowHotfix.setSquash(squash);
         gitflowHotfix.setKeepLocal(keepLocal);
         gitflowHotfix.setKeepRemote(keepRemote);
         gitflowHotfix.setSign(sign);
         gitflowHotfix.setSigningkey(signingkey);
 
         /* 1. merge to master */
         try {
-            gitflowHotfix.finishToMaster(hotfixName, pushHotfixFinish);
-        } catch (GitflowException ge) {
+            gitflowHotfix.finishToMaster(hotfixBranch, pushHotfixFinish);
+        } catch (GitflowException | GitflowMergeConflictException ge) {
             throw new MojoFailureException(ge.getMessage());
-        } catch (GitflowMergeConflictException gmce) {
-            throw new MojoFailureException(gmce.getMessage());
         }
 
         /* 2. make versions in hotfix and develop branches match to avoid conflicts */
-        getGitflowInit().executeLocal("git checkout " + hotfixName);
+        getGitflowInit().executeLocal("git checkout " + hotfixBranch);
         reloadReactorProjects();
-        boolean setDevVersion = setVersion(developVersion, pushHotfixFinish, hotfixName);
+        boolean setDevVersion = setVersion(developVersion, pushHotfixFinish, hotfixBranch);
 
         /* 3. merge to develop */
         try {
-            gitflowHotfix.finishToDevelop(hotfixName, pushHotfixFinish);
+            gitflowHotfix.finishToDevelop(hotfixBranch, pushHotfixFinish);
         } catch (GitflowException ge) {
             // reset setVersion commit and allow user fix whatever exception occurred
             // but can only reset if the commit has not been pushed */
             if (!pushHotfixFinish && setDevVersion) {
                 getGitflowInit().executeLocal("git reset --hard HEAD~1");
             }
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             // If a merge conflict arises we don't want to reset setDevVersion commit
             throw new MojoFailureException(gmce.getMessage());
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
         /* Switch to hotfix tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + hotfixReleaseVersion);
         reloadReactorProjects();
         String tagVersion = project.getVersion();
         getLog().debug("tag version = " + tagVersion);
 
         /* install or deploy */
         if (skipDeploy == false) {
             String goals = "clean deploy";
             if (project.getDistributionManagement() != null
                     && project.getDistributionManagement().getSite() != null) {
                 goals += " site-deploy";
             }
 
-            ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
+            ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             if (useReleaseProfile) {
                 additionalArgs.add("-DperformRelease=true");
             }
             if (StringUtils.isNotBlank(releaseProfiles)) {
                 Iterable<String> profiles = PROFILES_SPLITTER.split(releaseProfiles);
                 additionalArgs.add("-P " + PROFILES_JOINER.join(profiles));
             }
             runGoals(goals, additionalArgs.build());
         } else if (skipBuild == false) {
-            ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
+            ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             runGoals("clean install", additionalArgs.build());
         } else {
             getLog().debug("Skipping both install and deploy for hotfix tag " + hotfixName);
         }
 
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
-    private String promptForExistingHotfixName(List<String> hotfixBranches, String defaultHotfixName) throws MojoFailureException {
-        String message = "Please select a hotfix branch to finish?";
+    private String promptForExistingHotfixBranch(String prefix, List<String> hotfixBranches) throws MojoFailureException {
+        List<String> choices = hotfixBranches;
+
+        /* if current branch is a feature branch at it to start of list so it is the default in prompt */
+        String currentBranch = getGitflowInit().gitCurrentBranch();
+        if (currentBranch.startsWith(prefix)) {
+            choices = rearrange(currentBranch, hotfixBranches);
+        }
 
         String name = "";
         try {
-            name = prompter.prompt(message, hotfixBranches, defaultHotfixName);
-        } catch (PrompterException e) {
-            throw new MojoFailureException("Error reading hotfix name from command line " + e.getMessage());
+            prompter.promptChoice("Hotfix branches", "Please select a hotfix branch to finish", choices);
+        } catch (IOException ex) {
+            throw new MojoFailureException("Error reading hotfix name from command line " + ex.getMessage());
         }
-
-        return name;
+        return name.trim();
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
index e3cbc87..6551a73 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
@@ -27,75 +27,78 @@ import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
 /**
  * Creates a new hotfix branch off of the master branch.
  */
 @Mojo(name = "hotfix-start", aggregator = true)
 public class HotfixStartMojo extends AbstractHotfixMojo {
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
+        /* Fetch any new tags and prune any branches that may already be deleted */
+        getGitflowInit().executeRemote("git fetch --tags --prune");
+
         /* Switch to master branch and get current version i.e. lastest tag */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getMasterBrnName());
         reloadReactorProjects();
         String masterVersion = project.getVersion();
         getLog().debug("master version = " + masterVersion);
 
         String hotfixVersion = getHotfixVersion(masterVersion);
         String hotfixSnapshotVersion = getHotfixSnapshotVersion(masterVersion);
 
         getLog().info("Starting hotfix '" + hotfixVersion + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
         gitflowHotfix.setPush(pushHotfixBranch);
 
         try {
             gitflowHotfix.start(hotfixVersion);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         String prefix = getGitflowInit().getHotfixBranchPrefix();
 
         setVersion(hotfixSnapshotVersion, pushHotfixBranch, prefix + hotfixVersion);
 
         if (getGitflowInit().gitRemoteBranchExists(prefix + hotfixVersion)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + hotfixVersion);
         }
     }
 
     private String getHotfixVersion(String currentVersion) throws MojoFailureException {
         getLog().debug("getHotfixVersion from '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         final StringBuilder result = new StringBuilder(30);
         if (artifactVersion.getPrimaryNumberCount() < 3) {
             String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
             String annotationAsString = artifactVersion.getAnnotationAsString();
             result.append(primaryNumbersAsString).append('.').append('1');
             result.append(annotationAsString);
         } else {
             artifactVersion.upgradeLeastSignificantNumber();
             result.append(artifactVersion.toString());
         }
         return result.toString();
     }
 
     private String getHotfixSnapshotVersion(String currentVersion) throws MojoFailureException {
         getLog().debug("getHotfixSnapshotVersion from '" + currentVersion + "'");
 
         final StringBuilder result = new StringBuilder(30);
 
         String hotfixVersion = getHotfixVersion(currentVersion);
         result.append(hotfixVersion);
 
         result.append(DEFAULT_VERSION_COMPONENT_SEPARATOR).append(SNAPSHOT_QUALIFIER);
 
         return result.toString();
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index bd74ee2..a74b58b 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -23,2 +23,3 @@ import static com.dkirrane.maven.plugins.ggitflow.AbstractGitflowMojo.PROFILES_S
 import com.google.common.collect.ImmutableList;
+import java.io.IOException;
 import java.util.List;
@@ -33,324 +34,347 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  * Merges a release branch back into the develop and master branch and then
  * creates a tag for the release on master.
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
 
     /**
      * If <code>true</code>, the release finish merge to develop & master and
      * the created tag will get pushed to the remote repository
      *
      * @since 1.6
      */
     @Parameter(property = "pushReleaseFinish", defaultValue = "false", required = false)
     protected boolean pushReleaseFinish;
 
     /**
      * If <code>true</code>, the release can still finish even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private Boolean allowSnapshots;
 
     /**
      * If the project has a parent with a release version it will be replaced
      * with the next <code>-SNAPSHOT</code> version (if it has been deployed).
      * This action is performed on the develop branch after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "updateParent", defaultValue = "false", required = false)
     private Boolean updateParent;
 
     /**
      * On the release branch before finish is called any dependencies with a
      * <code>-SNAPSHOT</code> version are replaced with the corresponding
      * release version (if it has been released).
      *
      * On the develop branch after the merge any dependencies with a release
      * version are replaced with the next <code>-SNAPSHOT</code> version (if it
      * has been deployed).
      *
      * @since 1.2
      */
     @Parameter(property = "updateDependencies", defaultValue = "false", required = false)
     private Boolean updateDependencies;
 
     /**
      * If <code>updateDependencies</code> is set, then this should contain a
      * comma separated list of artifact patterns to include. Follows the pattern <code>groupId:artifactId:type:classifier:version<code>
      *
      * @since 1.5
      */
     @Parameter(property = "includes", defaultValue = "", required = false)
     private String includes;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "true", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any calls to <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipDeploy", defaultValue = "true", required = false)
     private Boolean skipDeploy;
 
     /**
      * Skips any tests during <code>mvn install</code> and
      * <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipTests", defaultValue = "true", required = false)
     private Boolean skipTests;
 
     /**
      * Whether to use the release profile that adds sources and javadoc to the
      * released artifact, if appropriate. If set to true, the release-finish
      * will set the property "performRelease" to true, which activates the
      * profile "release-profile", which is inherited from the super pom.
      *
      * @since 1.2
      */
     @Parameter(property = "useReleaseProfile", defaultValue = "true", required = false)
     private Boolean useReleaseProfile;
 
     /**
      * Comma separated profiles to enable on deployment, in addition to active
      * profiles for project execution.
      *
      * @since 1.2
      */
     @Parameter(property = "releaseProfiles", defaultValue = "", required = false)
     private String releaseProfiles;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the local release branch will not be deleted after
      * the merge.
      *
      * @since 1.6
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keepLocal;
 
     /**
      * If <code>true</code>, the remote release branch will not be deleted after
      * the merge.
      *
      * @since 1.6
      */
     @Parameter(property = "keep", defaultValue = "true", required = false)
     private Boolean keepRemote;
 
     /**
      * If <code>true</code>, the release tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().debug("Finishing release");
 
+        /* Fetch any new tags and prune any branches that may already be deleted */
+        getGitflowInit().executeRemote("git fetch --tags --prune");
+
         /* Get release branch name */
+        String prefix = getReleaseBranchPrefix();
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
         if (releaseBranches.isEmpty()) {
-            throw new MojoFailureException("Could not find release branch!");
-        } else if (releaseBranches.size() == 1) {
-            releaseName = releaseBranches.get(0);
+            throw new MojoFailureException("Could not find any local release branch!");
+        }
+
+        if (StringUtils.isBlank(releaseName)) {
+            if (releaseBranches.size() == 1) {
+                String releaseBranch = releaseBranches.get(0);
+                releaseName = trimReleaseName(releaseBranch);
+            } else {
+                String releaseBranch = promptForExistingReleaseBranch(prefix, releaseBranches);
+                releaseName = trimReleaseName(releaseBranch);
+            }
+
         } else {
-            releaseName = promptForExistingReleaseName(releaseBranches, releaseName);
+            releaseName = trimReleaseName(releaseName);
+            if (!getGitflowInit().gitLocalBranchExists(prefix + releaseName)) {
+                throw new MojoFailureException("No local release branch named '" + prefix + releaseName + "' exists!");
+            }
         }
 
         getLog().info("Finishing release '" + releaseName + "'");
+        
+        String releaseBranch = prefix + releaseName;
 
         /* Switch to develop branch and get its current version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         getLog().debug("develop version = " + developVersion);
 
         /* Switch to release branch and set poms to release version */
-        getGitflowInit().executeLocal("git checkout " + releaseName);
+        getGitflowInit().executeLocal("git checkout " + releaseBranch);
         reloadReactorProjects();
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(project.getVersion());
         String releaseVersion;
         if ("SNAPSHOT".equals(artifactVersion.getBuildSpecifier())) {
             releaseVersion = getReleaseVersion(project.getVersion());
         } else {
             releaseVersion = project.getVersion();
         }
         getLog().debug("release version = " + releaseVersion);
 
-        boolean setVersion = setVersion(releaseVersion, pushReleaseFinish, releaseName);
+        boolean setVersion = setVersion(releaseVersion, pushReleaseFinish, releaseBranch);
 
         /* Update release branch dependencies to release version */
         boolean setNextVersions = false;
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions = setNextVersions(false, updateParent, includes);
         }
 
         if (!allowSnapshots) {
             reloadReactorProjects();
             try {
                 checkForSnapshotDependencies();
             } catch (MojoExecutionException mee) {
                 // reset setNextVersions and/or setVersion commits to allow user fix & push SNAPSHOT dependencies
                 // but can only reset if it the commits have not been pushed */
                 if (!pushReleaseFinish) {
                     if (setNextVersions) {
                         getGitflowInit().executeLocal("git reset --hard HEAD~1");
                     }
                     if (setVersion) {
                         getGitflowInit().executeLocal("git reset --hard HEAD~1");
                     }
                 }
                 throw mee;
             }
         }
 
         /* finish release */
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setPush(pushReleaseBranch);
         gitflowRelease.setSquash(squash);
         gitflowRelease.setKeepLocal(keepLocal);
         gitflowRelease.setKeepRemote(keepRemote);
         gitflowRelease.setSign(sign);
         gitflowRelease.setSigningkey(signingkey);
 
         /* 1. merge to master */
         try {
-            gitflowRelease.finishToMaster(releaseName, pushReleaseFinish);
+            gitflowRelease.finishToMaster(releaseBranch, pushReleaseFinish);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
 
         /* 2. make versions in release and develop branches match to avoid conflicts */
-        getGitflowInit().executeLocal("git checkout " + releaseName);
+        getGitflowInit().executeLocal("git checkout " + releaseBranch);
         reloadReactorProjects();
-        boolean setDevVersion = setVersion(developVersion, pushReleaseFinish, releaseName);
+        boolean setDevVersion = setVersion(developVersion, pushReleaseFinish, releaseBranch);
 
         /* 3. merge to develop */
         try {
-            gitflowRelease.finishToDevelop(releaseName, pushReleaseFinish);
+            gitflowRelease.finishToDevelop(releaseBranch, pushReleaseFinish);
         } catch (GitflowException ge) {
             // reset setVersion commit and allow user fix whatever exception occurred
             // but can only reset if the commit has not been pushed */
             if (!pushReleaseFinish && setDevVersion) {
                 getGitflowInit().executeLocal("git reset --hard HEAD~1");
             }
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
         /* Update develop branch dependencies to next snapshot version (if deployed) */
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions(true, updateParent, includes);
         }
 
         /* Switch to release tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);
         reloadReactorProjects();
         String tagVersion = project.getVersion();
         getLog().debug("tag version = " + tagVersion);
 
         /* install or deploy */
         if (skipDeploy == false) {
             String goals = "clean deploy";
             if (project.getDistributionManagement() != null
                     && project.getDistributionManagement().getSite() != null) {
                 goals += " site-deploy";
             }
 
-            ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
+            ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             if (useReleaseProfile) {
                 additionalArgs.add("-DperformRelease=true");
             }
             if (StringUtils.isNotBlank(releaseProfiles)) {
                 Iterable<String> profiles = PROFILES_SPLITTER.split(releaseProfiles);
                 additionalArgs.add("-P " + PROFILES_JOINER.join(profiles));
             }
             runGoals(goals, additionalArgs.build());
         } else if (skipBuild == false) {
-            ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
+            ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             runGoals("clean install", additionalArgs.build());
         } else {
-            getLog().debug("Skipping both install and deploy for release tag " + releaseName);
+            getLog().debug("Skipping both install and deploy for release tag " + releaseBranch);
         }
 
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
-    private String promptForExistingReleaseName(List<String> releaseBranches, String defaultReleaseName) throws MojoFailureException {
-        String message = "Please select a release branch to finish?";
+    private String promptForExistingReleaseBranch(String prefix, List<String> releaseBranches) throws MojoFailureException {
+        List<String> choices = releaseBranches;
+
+        /* if current branch is a feature branch at it to start of list so it is the default in prompt */
+        String currentBranch = getGitflowInit().gitCurrentBranch();
+        if (currentBranch.startsWith(prefix)) {
+            choices = rearrange(currentBranch, releaseBranches);
+        }
 
         String name = "";
         try {
-            name = prompter.prompt(message, releaseBranches, defaultReleaseName);
-        } catch (PrompterException e) {
-            throw new MojoFailureException("Error reading release name from command line " + e.getMessage());
+            prompter.promptChoice("Release branches", "Please select a release branch to finish", choices);
+        } catch (IOException ex) {
+            throw new MojoFailureException("Error reading release name from command line " + ex.getMessage());
         }
-
-        return name;
+        return name.trim();
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
index 41b1608..0e31e91 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
@@ -19,2 +19,5 @@ import com.dkirrane.gitflow.groovy.GitflowRelease;
 import com.dkirrane.gitflow.groovy.ex.GitflowException;
+import java.io.IOException;
+import java.util.logging.Level;
+import java.util.logging.Logger;
 import org.apache.maven.plugin.MojoExecutionException;
@@ -29,161 +32,164 @@ import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
 /**
  * Creates a new release branch off of the develop branch.
  */
 @Mojo(name = "release-start", aggregator = true)
 public class ReleaseStartMojo extends AbstractReleaseMojo {
 
     /**
      * Whether to run the plugin in interactive mode or not. The default is to
      * run without interaction when possible.
      *
      * @since 1.2
      */
     @Parameter(property = "interactive", defaultValue = "true", required = false)
     protected boolean interactive;
 
     /**
      * If the project has a parent with a <code>-SNAPSHOT</code> version it will
      * be replaced with the corresponding release version (if it has been
      * released). This action is performed on the release branch after it is
      * created.
      *
      * @since 1.2
      */
     @Parameter(property = "updateParent", defaultValue = "false", required = false)
     private boolean updateParent;
 
     /**
      * Any dependencies with a <code>-SNAPSHOT</code> version are replaced with
      * the corresponding release version (if it has been released). This action
      * is performed on the release branch after it is created.
      *
      * @since 1.2
      */
     @Parameter(property = "updateDependencies", defaultValue = "false", required = false)
     private boolean updateDependencies;
 
     /**
      * If <code>updateDependencies</code> is set, then this should contain a
      * comma separated list of artifact patterns to include. Follows the pattern <code>groupId:artifactId:type:classifier:version<code>
      *
      * @since 1.5
      */
     @Parameter(property = "includes", defaultValue = "", required = false)
     private String includes;
 
     /**
      * The commit to start the release branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     private String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
+        /* Fetch any new tags and prune any branches that may already be deleted */
+        getGitflowInit().executeRemote("git fetch --tags --prune");
+
         /* Switch to develop branch and get its current version */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
         reloadReactorProjects();
 
         String developVersion = project.getVersion();
         getLog().info("Current develop version = " + developVersion);
 
         /* Get next development version */
         String nextDevelopVersion = getNextDevelopVersion(developVersion);
         if (interactive) {
-            String message = "What is the next development version? ";
             try {
-                nextDevelopVersion = prompter.prompt(message, nextDevelopVersion);
-            } catch (PrompterException ex) {
+                nextDevelopVersion = prompter.promptWithDefault("Please enter the next development version? ", nextDevelopVersion);
+            } catch (IOException ex) {
                 throw new MojoExecutionException("Error reading next development version from command line " + ex.getMessage(), ex);
             }
         }
         getLog().debug("Next development version = " + developVersion);
 
         /* Get suggested release version */
         String releaseVersion = getReleaseVersion(developVersion);
         getLog().debug("release version = " + releaseVersion);
 
         /* create release branch */
         String prefix = getReleaseBranchPrefix();
         if (!StringUtils.isBlank(releaseName)) {
             getLog().debug("Using releaseName passed  '" + releaseName + "'");
         } else if (interactive) {
-            String message = "What is the release branch name? " + prefix;
             try {
-                releaseName = prompter.prompt(message, releaseVersion);
-            } catch (PrompterException ex) {
+                releaseName = prompter.promptWithDefault("Please enter the release branch name? " + prefix, releaseVersion);
+            } catch (IOException ex) {
                 throw new MojoExecutionException("Error reading release name from command line " + ex.getMessage(), ex);
             }
         } else {
             releaseName = releaseVersion;
         }
 
+        releaseName = trimReleaseName(releaseName);
+
         if (StringUtils.isBlank(releaseName)) {
             throw new MojoFailureException("Parameter <releaseName> cannot be null or empty.");
         }
 
         GenericArtifactVersion releaseArtifactVersion;
         try {
             releaseArtifactVersion = new GenericArtifactVersion(releaseName);
             if (SNAPSHOT_QUALIFIER.equals(releaseArtifactVersion.getBuildSpecifier())) {
                 throw new IllegalArgumentException("Parameter <releaseName> is not a release version as it contains SNAPSHOT build specifier");
             }
         } catch (IllegalArgumentException e) {
             throw new MojoExecutionException("Parameter <releaseName> value '" + releaseName + "' is not a valid Maven release version.");
         }
 
         getLog().info("Starting release '" + releaseName + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setPush(pushReleaseBranch);
         gitflowRelease.setStartCommit(startCommit);
 
         try {
             gitflowRelease.start(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         // current branch should be the release branch
         String releaseBranch = getGitflowInit().gitCurrentBranch();
         if (!releaseBranch.startsWith(prefix)) {
             throw new MojoFailureException("Failed to create release version.");
         }
 
         /* Update release branch dependencies to release version */
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions(false, updateParent, includes);
         }
 
         // checkout develop branch and update it's version
         String developBranch = (String) getGitflowInit().getDevelopBrnName();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         setVersion(nextDevelopVersion, pushReleaseBranch, developBranch);
 
         // checkout release branch again and update it's version to required release version
         getGitflowInit().executeLocal("git checkout " + releaseBranch);
         reloadReactorProjects();
         setVersion(releaseArtifactVersion.setBuildSpecifier(SNAPSHOT_QUALIFIER).toString(), pushReleaseBranch, releaseBranch);
     }
 
     public String getReleaseName() {
         return releaseName;
     }
 
     private String getNextDevelopVersion(String developVersion) {
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(developVersion);
         artifactVersion.upgradeLeastSignificantPrimaryNumber();
 
         return artifactVersion.toString();
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/PromptTesterMain.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/PromptTesterMain.java
new file mode 100644
index 0000000..69d904f
--- /dev/null
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/PromptTesterMain.java
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2016 dkirrane.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.dkirrane.maven.plugins.ggitflow.prompt;
+
+import java.util.Arrays;
+import java.util.List;
+
+/**
+ * Useful for testing prompter
+ * @author dkirrane
+ */
+public class PromptTesterMain {
+
+    public static void main(String[] args) throws Exception {
+        Prompter prompter = new PrompterImpl();
+
+        String something = prompter.prompt("Enter something");
+        System.out.println("user entered: " + something);
+
+        String password = prompter.prompt("Enter Password", '*');
+        System.out.println("user password: " + password);
+
+        String somethingOrDefault = prompter.promptWithDefault("Enter something or choose default", "myDefault");
+        System.out.println("user entered: " + somethingOrDefault);
+
+//        List<String> choices = Arrays.asList("1.0", "1.1", "1.2", "1.3");
+        List<String> choices = Arrays.asList("1.0");
+        String promptChoice = prompter.promptChoice("Git tags", "Please select a Git tag", choices);
+        System.out.println("user chose: " + promptChoice);
+    }
+
+}
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/Prompter.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/Prompter.java
new file mode 100644
index 0000000..af0dcda
--- /dev/null
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/Prompter.java
@@ -0,0 +1,81 @@
+/*
+ * Copyright 2016 dkirrane.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.dkirrane.maven.plugins.ggitflow.prompt;
+
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * Prompt for user input
+ *
+ * @since 2.3
+ */
+public interface Prompter {
+
+    /**
+     * Prompt user for a string, optionally masking the input.
+     *
+     * @param message
+     * @param mask
+     * @return
+     * @throws java.io.IOException
+     */
+    String prompt(String message, Character mask) throws IOException;
+
+    /**
+     * Prompt user for a string.
+     *
+     * @param message
+     * @return
+     * @throws java.io.IOException
+     */
+    String prompt(String message) throws IOException;
+
+    /**
+     * Prompt user for a string; if user response is blank use a default value.
+     *
+     * @param message
+     * @param defaultValue
+     * @return
+     * @throws java.io.IOException
+     */
+    String promptWithDefault(String message, String defaultValue) throws IOException;
+
+    /**
+     * Prompt user for a string out of a set of available choices.
+     *
+     * Choices must not have entries with leading/trailing whitespace. At least
+     * 2 choices are required.
+     *
+     * @param header
+     * @param choices
+     * @param message
+     * @return
+     * @throws java.io.IOException
+     */
+    String promptChoice(String header, String message, List<String> choices) throws IOException;
+
+    /**
+     * Prompt user for an integer.
+     *
+     * @param message
+     * @param max
+     * @param min
+     * @return
+     * @throws java.io.IOException
+     */
+    Integer promptInteger(String message, Integer min, Integer max) throws IOException;
+}
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/PrompterImpl.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/PrompterImpl.java
new file mode 100644
index 0000000..28616d9
--- /dev/null
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/PrompterImpl.java
@@ -0,0 +1,206 @@
+/*
+ * Copyright 2016 dkirrane.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.dkirrane.maven.plugins.ggitflow.prompt;
+
+import static com.google.common.base.Preconditions.checkArgument;
+import static com.google.common.base.Preconditions.checkNotNull;
+import freemarker.template.Template;
+import freemarker.template.TemplateException;
+import freemarker.template.TemplateExceptionHandler;
+import java.io.IOException;
+import java.io.OutputStreamWriter;
+import java.io.Writer;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.logging.Level;
+import jline.TerminalFactory;
+import jline.console.ConsoleReader;
+import jline.console.completer.Completer;
+import jline.console.completer.StringsCompleter;
+import jline.internal.Configuration;
+import org.apache.commons.lang.StringUtils;
+import org.codehaus.plexus.component.annotations.Component;
+import static org.fusesource.jansi.Ansi.Color.BLUE;
+import static org.fusesource.jansi.Ansi.ansi;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ * Default {@link Prompter} implementation.
+ *
+ * @since 3.0
+ */
+@Component(role = Prompter.class, instantiationStrategy = "per-lookup")
+public class PrompterImpl implements Prompter {
+
+    private static final Logger LOG = LoggerFactory.getLogger(PrompterImpl.class);
+
+    private final ConsoleReader console;
+
+    public PrompterImpl() throws IOException {
+        TerminalFactory.configure(TerminalFactory.NONE);
+        TerminalFactory.reset();
+        Configuration.reset();
+        this.console = new ConsoleReader();
+        this.console.setHistoryEnabled(false);
+        this.console.setExpandEvents(false);
+    }
+
+    public ConsoleReader getConsole() {
+        return console;
+    }
+
+    @Override
+    public String prompt(final String message, Character mask) throws IOException {
+        checkNotNull(message);
+
+        final String prompt = String.format("%s: ", message);
+        String value;
+        do {
+            // mask DOES NOT WORK on WINDOWS 10 https://github.com/jline/jline2/issues/225
+//            value = console.readLine(ansi().fg(GREEN).a(prompt).reset().toString(), mask);
+            value = console.readLine(ansi().fg(BLUE).bold().a(prompt).boldOff().reset().toString(), null);
+
+            // Do not LOG values read when masked
+            if (mask == null) {
+                LOG.debug("Read value: '{}'", value);
+            } else {
+                LOG.debug("Read masked chars: {}", value.length());
+            }
+        } while (StringUtils.isBlank(value));
+        return value;
+    }
+
+    @Override
+    public String prompt(final String message) throws IOException {
+        checkNotNull(message);
+
+        return prompt(message, null);
+    }
+
+    @Override
+    public String promptWithDefault(final String message, final String defaultValue) throws IOException {
+        checkNotNull(message);
+        checkNotNull(defaultValue);
+
+        final String prompt = String.format("%s [%s]: ", message, defaultValue);
+        String value = console.readLine(ansi().fg(BLUE).bold().a(prompt).boldOff().reset().toString());
+        if (StringUtils.isBlank(value)) {
+            return defaultValue;
+        }
+        return value;
+    }
+
+    /**
+     * Helper to parse an integer w/o exceptions being thrown.
+     */
+    private Integer parseInt(final String value) {
+        try {
+            return Integer.parseInt(value);
+        } catch (Exception e) {
+            // ignore
+        }
+        return null;
+    }
+
+    @Override
+    public Integer promptInteger(final String message, final Integer min, final Integer max) throws IOException {
+        while (true) {
+            String raw = prompt(message);
+            Integer value = parseInt(raw);
+            if (value != null) {
+                if (min != null && value < min) {
+                    console.println("Value must be greater than " + (min - 1) + ": " + raw);
+                    continue;
+                }
+                if (max != null && value > max) {
+                    console.println("Value must be less than " + max + ": " + raw);
+                    continue;
+                }
+
+                // valid
+                return value;
+            }
+            // else invalid, try again
+            console.println("Invalid value: " + raw);
+        }
+    }
+
+    @Override
+    public String promptChoice(final String header, final String message, final List<String> choices) throws IOException {
+        checkNotNull(header);
+        checkNotNull(message);
+        checkArgument(!choices.isEmpty(), "choices cannot be empty");
+
+        if (choices.size() > 1) {
+            /* Output choices using freemarker */
+            try {
+
+                freemarker.template.Configuration cfg = new freemarker.template.Configuration(freemarker.template.Configuration.getVersion());
+                cfg.setClassForTemplateLoading(PrompterImpl.class, "/freemarker");
+                cfg.setDefaultEncoding("UTF-8");
+                cfg.setTemplateExceptionHandler(TemplateExceptionHandler.RETHROW_HANDLER);
+                cfg.setLogTemplateExceptions(false);
+
+                Template template = cfg.getTemplate("choices.ftl");
+
+                // Build the data-model
+                Map<String, Object> data = new HashMap<>();
+                data.put("header", header);
+                data.put("choices", choices);
+
+                // Console output
+                Writer out = new OutputStreamWriter(System.out);
+                template.process(data, out);
+                out.flush();
+
+            } catch (TemplateException | IOException ex) {
+                java.util.logging.Logger.getLogger(PrompterImpl.class.getName()).log(Level.SEVERE, null, ex);
+            }
+        }
+
+        console.println("");
+
+        // setup completer
+        Completer completer = new StringsCompleter(choices);
+        console.addCompleter(completer);
+
+        try {
+            String value;
+            while (true) {
+                value = promptWithDefault(message, choices.get(0)).trim();
+
+                // check if value is an index (choice display starts with index 1)
+                Integer i = parseInt(value);
+                if (i != null && i > 0 && i <= choices.size()) {
+                    value = choices.get(i - 1);
+                    break;
+                }
+
+                // check if choice is valid
+                if (choices.contains(value)) {
+                    break;
+                }
+
+                console.println("Invalid selection: " + value);
+            }
+            return value;
+        } finally {
+            console.removeCompleter(completer);
+        }
+    }
+}
diff --git a/pom.xml b/pom.xml
index 16f1c80..f3d09de 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,174 +1,183 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven</artifactId>
     <version>2.4-SNAPSHOT</version>
     <name>ggitflow-maven</name>
     <packaging>pom</packaging>
 
     <modules>
         <module>ggitflow-maven-plugin</module>
         <module>ggitflow-maven-archetype</module>
     </modules>
 
     <properties>
+        <maven.compiler.source>1.7</maven.compiler.source>
+        <maven.compiler.target>1.7</maven.compiler.target>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
     </properties>
 
     <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
 
     <scm>
         <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
         <connection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</connection>
         <developerConnection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</developerConnection>
     </scm>
 
     <description>Maven Archetype for the Gitflow Maven Plugin</description>
     <developers>
         <developer>
             <id>dkirrane</id>
             <name>Desmond Kirrane</name>
             <email>desmond.kirrane@gmail.com</email>
         </developer>
     </developers>
     <licenses>
         <license>
             <name>Apache License Version 2.0, January 2004</name>
             <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
             <distribution>repo</distribution>
         </license>
     </licenses>
 
     <build>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
-                <version>2.3.2</version>
+                <version>3.5</version>
                 <configuration>
-                    <source>1.5</source>
-                    <target>1.5</target>
+                    <encoding>${project.build.sourceEncoding}</encoding>
+                </configuration>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-resources-plugin</artifactId>
+                <version>2.7</version>
+                <configuration>
+                    <encoding>${project.build.sourceEncoding}</encoding>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 
     <profiles>
         <!-- For Release versions the Sonatype Nexus Stage rules require artifacts to be signed -->
         <!-- http://blog.sonatype.com/2010/01/how-to-generate-pgp-signatures-with-maven -->
         <!-- 1. Setup gpg, @see https://github.com/dkirrane/ggitflow/blob/develop/gradle.properties.sample -->
         <!-- 2. Run Maven deploy sign from Git terminal: mvn clean deploy -Prelease-sign-artifacts -->
         <!-- 3. Login to Nexus to release from the Stage: https://oss.sonatype.org | Login | Staging Repositories | Search for: com.dkirrane | Release -->
         <profile>
             <id>release-sign-artifacts</id>
             <activation>
                 <activeByDefault>false</activeByDefault>
             </activation>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-gpg-plugin</artifactId>
                         <version>1.6</version>
                         <executions>
                             <execution>
                                 <id>sign-artifacts</id>
                                 <phase>verify</phase>
                                 <goals>
                                     <goal>sign</goal>
                                 </goals>
                                 <configuration>
                                     <useAgent>false</useAgent>
                                 </configuration>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
             </build>
         </profile>
         <profile>
             <id>run-its</id>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-invoker-plugin</artifactId>
                         <version>1.8</version>
                         <configuration>
                             <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
                             <settingsFile>src/it/settings.xml</settingsFile>
                             <debug>true</debug>
                             <showErrors>true</showErrors>
                             <detail>true</detail>
                             <streamLogs>true</streamLogs>
                             <projectsDirectory>src/it/projects</projectsDirectory>
                             <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
                             <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
                             <addTestClassPath>true</addTestClassPath>
                             <preBuildHookScript>setup</preBuildHookScript>
                             <postBuildHookScript>verify</postBuildHookScript>
                             <pomIncludes>
                                 <pomInclude>*/pom.xml</pomInclude>
                             </pomIncludes>
                             <goals>
                                 <goal>clean</goal>
                                 <goal>test-compile</goal>
                             </goals>
                         </configuration>
                         <executions>
                             <execution>
                                 <id>integration-test</id>
                                 <goals>
                                     <goal>install</goal>
                                     <goal>integration-test</goal>
                                     <goal>verify</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
 
             </build>
         </profile>
     </profiles>
 
     <!--
         Sonatype upload details:
         http://central.sonatype.org/pages/ossrh-guide.html
         http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
         https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
         https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
         https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
 
             - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
             - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
             - Promote staged artifacts into repository 'Releases'
             - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
             - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
     -->
     <distributionManagement>
         <snapshotRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
         </snapshotRepository>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
         </repository>
     </distributionManagement>
     <repositories>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
             <snapshots>
                 <enabled>true</enabled>
             </snapshots>
         </repository>
     </repositories>
 </project>

commit 60ead4e3214223d75c5e9fd725b4cbb9cc1c9800
Author: dkirrane <dkirrane@avaya.com>
Date:   Wed Sep 14 10:25:08 2016 +0100

    PUMP VERSION

diff --git a/ggitflow-maven-archetype/pom.xml b/ggitflow-maven-archetype/pom.xml
index e5346b2..4591e9f 100644
--- a/ggitflow-maven-archetype/pom.xml
+++ b/ggitflow-maven-archetype/pom.xml
@@ -1,45 +1,45 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
-        <version>2.3</version>
+        <version>2.4-SNAPSHOT</version>
     </parent>
 
     <groupId>com.dkirrane.maven.archetype</groupId>
     <artifactId>ggitflow-maven-archetype</artifactId>
-    <version>2.3</version>
+    <version>2.4-SNAPSHOT</version>
     <packaging>maven-archetype</packaging>
     <name>ggitflow-maven-archetype</name>
 
     <build>
         <extensions>
             <extension>
                 <groupId>org.apache.maven.archetype</groupId>
                 <artifactId>archetype-packaging</artifactId>
                 <version>2.2</version>
             </extension>
         </extensions>
 
         <pluginManagement>
             <plugins>
                 <plugin>
                     <artifactId>maven-archetype-plugin</artifactId>
                     <version>2.2</version>
                 </plugin>
             </plugins>
         </pluginManagement>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <skip>true</skip>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index 1b22e84..04d6b6d 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,170 +1,170 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
-        <version>2.3</version>
+        <version>2.4-SNAPSHOT</version>
     </parent>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
-    <version>2.3</version>
+    <version>2.4-SNAPSHOT</version>
     <packaging>maven-plugin</packaging>
     <name>ggitflow-maven-plugin</name>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
             <version>2.6</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>3.2</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>3.0.8</version>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-interactivity-api</artifactId>
             <version>1.0-alpha-5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>2.4</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-project</artifactId>
             <version>2.2.1</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-clean-plugin</artifactId>
             <version>2.5</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-install-plugin</artifactId>
             <version>2.5.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-deploy-plugin</artifactId>
             <version>2.8.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-artifact</artifactId>
             <version>2.2.1</version>
         </dependency>
         <dependency>
             <groupId>com.google.guava</groupId>
             <artifactId>guava</artifactId>
             <version>16.0.1</version>
         </dependency>
 
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-api</artifactId>
             <version>1.7.21</version>
         </dependency>
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-simple</artifactId>
             <version>1.7.21</version>
         </dependency>
 
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
     </dependencies>
 
     <build>
         <resources>
             <resource>
                 <directory>src/it</directory>
                 <includes>
                     <include>**/**</include>
                 </includes>
             </resource>
         </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>3.2</version>
                 <configuration>
                     <goalPrefix>ggitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>com.github.github</groupId>
                 <artifactId>site-maven-plugin</artifactId>
                 <version>0.9</version>
                 <configuration>
                     <message>Creating site for ${project.version}</message>
                     <server>github</server>
                     <merge>true</merge>
                 </configuration>
                 <executions>
                     <execution>
                         <goals>
                             <goal>site</goal>
                         </goals>
                         <phase>site</phase>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <reportPlugins>
                         <plugin>
                             <groupId>org.apache.maven.plugins</groupId>
                             <artifactId>maven-plugin-plugin</artifactId>
                             <version>3.2</version>
                         </plugin>
                     </reportPlugins>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/pom.xml b/pom.xml
index a0e75e9..16f1c80 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,174 +1,174 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven</artifactId>
-    <version>2.3</version>
+    <version>2.4-SNAPSHOT</version>
     <name>ggitflow-maven</name>
     <packaging>pom</packaging>
 
     <modules>
         <module>ggitflow-maven-plugin</module>
         <module>ggitflow-maven-archetype</module>
     </modules>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
     </properties>
 
     <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
 
     <scm>
         <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
         <connection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</connection>
         <developerConnection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</developerConnection>
     </scm>
 
     <description>Maven Archetype for the Gitflow Maven Plugin</description>
     <developers>
         <developer>
             <id>dkirrane</id>
             <name>Desmond Kirrane</name>
             <email>desmond.kirrane@gmail.com</email>
         </developer>
     </developers>
     <licenses>
         <license>
             <name>Apache License Version 2.0, January 2004</name>
             <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
             <distribution>repo</distribution>
         </license>
     </licenses>
 
     <build>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <version>2.3.2</version>
                 <configuration>
                     <source>1.5</source>
                     <target>1.5</target>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 
     <profiles>
         <!-- For Release versions the Sonatype Nexus Stage rules require artifacts to be signed -->
         <!-- http://blog.sonatype.com/2010/01/how-to-generate-pgp-signatures-with-maven -->
         <!-- 1. Setup gpg, @see https://github.com/dkirrane/ggitflow/blob/develop/gradle.properties.sample -->
         <!-- 2. Run Maven deploy sign from Git terminal: mvn clean deploy -Prelease-sign-artifacts -->
         <!-- 3. Login to Nexus to release from the Stage: https://oss.sonatype.org | Login | Staging Repositories | Search for: com.dkirrane | Release -->
         <profile>
             <id>release-sign-artifacts</id>
             <activation>
                 <activeByDefault>false</activeByDefault>
             </activation>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-gpg-plugin</artifactId>
                         <version>1.6</version>
                         <executions>
                             <execution>
                                 <id>sign-artifacts</id>
                                 <phase>verify</phase>
                                 <goals>
                                     <goal>sign</goal>
                                 </goals>
                                 <configuration>
                                     <useAgent>false</useAgent>
                                 </configuration>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
             </build>
         </profile>
         <profile>
             <id>run-its</id>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-invoker-plugin</artifactId>
                         <version>1.8</version>
                         <configuration>
                             <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
                             <settingsFile>src/it/settings.xml</settingsFile>
                             <debug>true</debug>
                             <showErrors>true</showErrors>
                             <detail>true</detail>
                             <streamLogs>true</streamLogs>
                             <projectsDirectory>src/it/projects</projectsDirectory>
                             <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
                             <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
                             <addTestClassPath>true</addTestClassPath>
                             <preBuildHookScript>setup</preBuildHookScript>
                             <postBuildHookScript>verify</postBuildHookScript>
                             <pomIncludes>
                                 <pomInclude>*/pom.xml</pomInclude>
                             </pomIncludes>
                             <goals>
                                 <goal>clean</goal>
                                 <goal>test-compile</goal>
                             </goals>
                         </configuration>
                         <executions>
                             <execution>
                                 <id>integration-test</id>
                                 <goals>
                                     <goal>install</goal>
                                     <goal>integration-test</goal>
                                     <goal>verify</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
 
             </build>
         </profile>
     </profiles>
 
     <!--
         Sonatype upload details:
         http://central.sonatype.org/pages/ossrh-guide.html
         http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
         https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
         https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
         https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
 
             - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
             - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
             - Promote staged artifacts into repository 'Releases'
             - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
             - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
     -->
     <distributionManagement>
         <snapshotRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
         </snapshotRepository>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
         </repository>
     </distributionManagement>
     <repositories>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
             <snapshots>
                 <enabled>true</enabled>
             </snapshots>
         </repository>
     </repositories>
 </project>

commit 0eb306cef67e7c2dbf8b107852161146b3bcd494
Merge: 10dabc7 b7e9ac6
Author: dkirrane <dkirrane@avaya.com>
Date:   Fri Sep 9 15:44:36 2016 +0100

    Merge branch 'release/2.3'

commit b7e9ac6583fc3e27577a738997fbdbafa3221fc2
Author: dkirrane <dkirrane@avaya.com>
Date:   Fri Sep 9 15:40:18 2016 +0100

    newline

diff --git a/pom.xml b/pom.xml
index 035ac2d..a0e75e9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,175 +1,174 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven</artifactId>
     <version>2.3</version>
     <name>ggitflow-maven</name>
     <packaging>pom</packaging>
 
     <modules>
         <module>ggitflow-maven-plugin</module>
         <module>ggitflow-maven-archetype</module>
     </modules>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
     </properties>
 
     <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
 
     <scm>
         <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
         <connection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</connection>
         <developerConnection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</developerConnection>
     </scm>
 
     <description>Maven Archetype for the Gitflow Maven Plugin</description>
     <developers>
         <developer>
             <id>dkirrane</id>
             <name>Desmond Kirrane</name>
             <email>desmond.kirrane@gmail.com</email>
         </developer>
     </developers>
     <licenses>
         <license>
             <name>Apache License Version 2.0, January 2004</name>
             <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
             <distribution>repo</distribution>
         </license>
     </licenses>
 
     <build>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <version>2.3.2</version>
                 <configuration>
                     <source>1.5</source>
                     <target>1.5</target>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 
     <profiles>
         <!-- For Release versions the Sonatype Nexus Stage rules require artifacts to be signed -->
         <!-- http://blog.sonatype.com/2010/01/how-to-generate-pgp-signatures-with-maven -->
         <!-- 1. Setup gpg, @see https://github.com/dkirrane/ggitflow/blob/develop/gradle.properties.sample -->
         <!-- 2. Run Maven deploy sign from Git terminal: mvn clean deploy -Prelease-sign-artifacts -->
         <!-- 3. Login to Nexus to release from the Stage: https://oss.sonatype.org | Login | Staging Repositories | Search for: com.dkirrane | Release -->
         <profile>
             <id>release-sign-artifacts</id>
             <activation>
                 <activeByDefault>false</activeByDefault>
             </activation>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-gpg-plugin</artifactId>
                         <version>1.6</version>
                         <executions>
                             <execution>
                                 <id>sign-artifacts</id>
                                 <phase>verify</phase>
                                 <goals>
                                     <goal>sign</goal>
                                 </goals>
                                 <configuration>
                                     <useAgent>false</useAgent>
                                 </configuration>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
             </build>
         </profile>
         <profile>
             <id>run-its</id>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-invoker-plugin</artifactId>
                         <version>1.8</version>
                         <configuration>
                             <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
                             <settingsFile>src/it/settings.xml</settingsFile>
                             <debug>true</debug>
                             <showErrors>true</showErrors>
                             <detail>true</detail>
                             <streamLogs>true</streamLogs>
                             <projectsDirectory>src/it/projects</projectsDirectory>
                             <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
                             <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
                             <addTestClassPath>true</addTestClassPath>
                             <preBuildHookScript>setup</preBuildHookScript>
                             <postBuildHookScript>verify</postBuildHookScript>
                             <pomIncludes>
                                 <pomInclude>*/pom.xml</pomInclude>
                             </pomIncludes>
                             <goals>
                                 <goal>clean</goal>
                                 <goal>test-compile</goal>
                             </goals>
                         </configuration>
                         <executions>
                             <execution>
                                 <id>integration-test</id>
                                 <goals>
                                     <goal>install</goal>
                                     <goal>integration-test</goal>
                                     <goal>verify</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
 
             </build>
         </profile>
     </profiles>
 
     <!--
         Sonatype upload details:
         http://central.sonatype.org/pages/ossrh-guide.html
         http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
         https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
         https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
         https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
 
             - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
             - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
             - Promote staged artifacts into repository 'Releases'
             - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
             - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
     -->
-
     <distributionManagement>
         <snapshotRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
         </snapshotRepository>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
         </repository>
     </distributionManagement>
     <repositories>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
             <snapshots>
                 <enabled>true</enabled>
             </snapshots>
         </repository>
     </repositories>
 </project>

commit d87d159a9445fd1622c3ad976c9590c89484071a
Author: dkirrane <dkirrane@avaya.com>
Date:   Fri Sep 9 13:53:44 2016 +0100

    prepare for release 2.3

diff --git a/ggitflow-maven-archetype/pom.xml b/ggitflow-maven-archetype/pom.xml
index 71c4b2e..e5346b2 100644
--- a/ggitflow-maven-archetype/pom.xml
+++ b/ggitflow-maven-archetype/pom.xml
@@ -1,45 +1,45 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
-        <version>2.3-SNAPSHOT</version>
+        <version>2.3</version>
     </parent>
 
     <groupId>com.dkirrane.maven.archetype</groupId>
     <artifactId>ggitflow-maven-archetype</artifactId>
-    <version>2.3-SNAPSHOT</version>
+    <version>2.3</version>
     <packaging>maven-archetype</packaging>
     <name>ggitflow-maven-archetype</name>
 
     <build>
         <extensions>
             <extension>
                 <groupId>org.apache.maven.archetype</groupId>
                 <artifactId>archetype-packaging</artifactId>
                 <version>2.2</version>
             </extension>
         </extensions>
 
         <pluginManagement>
             <plugins>
                 <plugin>
                     <artifactId>maven-archetype-plugin</artifactId>
                     <version>2.2</version>
                 </plugin>
             </plugins>
         </pluginManagement>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <skip>true</skip>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index d62ef64..1b22e84 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,170 +1,170 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
-        <version>2.3-SNAPSHOT</version>
+        <version>2.3</version>
     </parent>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
-    <version>2.3-SNAPSHOT</version>
+    <version>2.3</version>
     <packaging>maven-plugin</packaging>
     <name>ggitflow-maven-plugin</name>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
             <version>2.6</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>3.2</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>3.0.8</version>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-interactivity-api</artifactId>
             <version>1.0-alpha-5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>2.4</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-project</artifactId>
             <version>2.2.1</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-clean-plugin</artifactId>
             <version>2.5</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-install-plugin</artifactId>
             <version>2.5.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-deploy-plugin</artifactId>
             <version>2.8.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-artifact</artifactId>
             <version>2.2.1</version>
         </dependency>
         <dependency>
             <groupId>com.google.guava</groupId>
             <artifactId>guava</artifactId>
             <version>16.0.1</version>
         </dependency>
 
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-api</artifactId>
             <version>1.7.21</version>
         </dependency>
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-simple</artifactId>
             <version>1.7.21</version>
         </dependency>
 
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
     </dependencies>
 
     <build>
         <resources>
             <resource>
                 <directory>src/it</directory>
                 <includes>
                     <include>**/**</include>
                 </includes>
             </resource>
         </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>3.2</version>
                 <configuration>
                     <goalPrefix>ggitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>com.github.github</groupId>
                 <artifactId>site-maven-plugin</artifactId>
                 <version>0.9</version>
                 <configuration>
                     <message>Creating site for ${project.version}</message>
                     <server>github</server>
                     <merge>true</merge>
                 </configuration>
                 <executions>
                     <execution>
                         <goals>
                             <goal>site</goal>
                         </goals>
                         <phase>site</phase>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <reportPlugins>
                         <plugin>
                             <groupId>org.apache.maven.plugins</groupId>
                             <artifactId>maven-plugin-plugin</artifactId>
                             <version>3.2</version>
                         </plugin>
                     </reportPlugins>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/pom.xml b/pom.xml
index 38ac900..035ac2d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,175 +1,175 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven</artifactId>
-    <version>2.3-SNAPSHOT</version>
+    <version>2.3</version>
     <name>ggitflow-maven</name>
     <packaging>pom</packaging>
 
     <modules>
         <module>ggitflow-maven-plugin</module>
         <module>ggitflow-maven-archetype</module>
     </modules>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
     </properties>
 
     <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
 
     <scm>
         <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
         <connection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</connection>
         <developerConnection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</developerConnection>
     </scm>
 
     <description>Maven Archetype for the Gitflow Maven Plugin</description>
     <developers>
         <developer>
             <id>dkirrane</id>
             <name>Desmond Kirrane</name>
             <email>desmond.kirrane@gmail.com</email>
         </developer>
     </developers>
     <licenses>
         <license>
             <name>Apache License Version 2.0, January 2004</name>
             <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
             <distribution>repo</distribution>
         </license>
     </licenses>
 
     <build>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <version>2.3.2</version>
                 <configuration>
                     <source>1.5</source>
                     <target>1.5</target>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 
     <profiles>
         <!-- For Release versions the Sonatype Nexus Stage rules require artifacts to be signed -->
         <!-- http://blog.sonatype.com/2010/01/how-to-generate-pgp-signatures-with-maven -->
         <!-- 1. Setup gpg, @see https://github.com/dkirrane/ggitflow/blob/develop/gradle.properties.sample -->
         <!-- 2. Run Maven deploy sign from Git terminal: mvn clean deploy -Prelease-sign-artifacts -->
         <!-- 3. Login to Nexus to release from the Stage: https://oss.sonatype.org | Login | Staging Repositories | Search for: com.dkirrane | Release -->
         <profile>
             <id>release-sign-artifacts</id>
             <activation>
                 <activeByDefault>false</activeByDefault>
             </activation>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-gpg-plugin</artifactId>
                         <version>1.6</version>
                         <executions>
                             <execution>
                                 <id>sign-artifacts</id>
                                 <phase>verify</phase>
                                 <goals>
                                     <goal>sign</goal>
                                 </goals>
                                 <configuration>
                                     <useAgent>false</useAgent>
                                 </configuration>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
             </build>
         </profile>
         <profile>
             <id>run-its</id>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-invoker-plugin</artifactId>
                         <version>1.8</version>
                         <configuration>
                             <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
                             <settingsFile>src/it/settings.xml</settingsFile>
                             <debug>true</debug>
                             <showErrors>true</showErrors>
                             <detail>true</detail>
                             <streamLogs>true</streamLogs>
                             <projectsDirectory>src/it/projects</projectsDirectory>
                             <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
                             <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
                             <addTestClassPath>true</addTestClassPath>
                             <preBuildHookScript>setup</preBuildHookScript>
                             <postBuildHookScript>verify</postBuildHookScript>
                             <pomIncludes>
                                 <pomInclude>*/pom.xml</pomInclude>
                             </pomIncludes>
                             <goals>
                                 <goal>clean</goal>
                                 <goal>test-compile</goal>
                             </goals>
                         </configuration>
                         <executions>
                             <execution>
                                 <id>integration-test</id>
                                 <goals>
                                     <goal>install</goal>
                                     <goal>integration-test</goal>
                                     <goal>verify</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
 
             </build>
         </profile>
     </profiles>
 
     <!--
         Sonatype upload details:
         http://central.sonatype.org/pages/ossrh-guide.html
         http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
         https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
         https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
         https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
 
             - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
             - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
             - Promote staged artifacts into repository 'Releases'
             - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
             - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
     -->
 
     <distributionManagement>
         <snapshotRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
         </snapshotRepository>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
         </repository>
     </distributionManagement>
     <repositories>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
             <snapshots>
                 <enabled>true</enabled>
             </snapshots>
         </repository>
     </repositories>
 </project>

commit 95a906dc1156ba3b24d40a0460c15c8b95128fcd
Author: dkirrane <dkirrane@avaya.com>
Date:   Fri Sep 9 13:53:35 2016 +0100

    support tagging support

diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index e6065c2..d62ef64 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,170 +1,170 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
         <version>2.3-SNAPSHOT</version>
     </parent>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
     <version>2.3-SNAPSHOT</version>
     <packaging>maven-plugin</packaging>
     <name>ggitflow-maven-plugin</name>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
-            <version>2.5</version>
+            <version>2.6</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>3.2</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>3.0.8</version>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-interactivity-api</artifactId>
             <version>1.0-alpha-5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>2.4</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-project</artifactId>
             <version>2.2.1</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-clean-plugin</artifactId>
             <version>2.5</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-install-plugin</artifactId>
             <version>2.5.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-deploy-plugin</artifactId>
             <version>2.8.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-artifact</artifactId>
             <version>2.2.1</version>
         </dependency>
         <dependency>
             <groupId>com.google.guava</groupId>
             <artifactId>guava</artifactId>
             <version>16.0.1</version>
         </dependency>
 
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-api</artifactId>
             <version>1.7.21</version>
         </dependency>
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-simple</artifactId>
             <version>1.7.21</version>
         </dependency>
 
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
     </dependencies>
 
     <build>
         <resources>
             <resource>
                 <directory>src/it</directory>
                 <includes>
                     <include>**/**</include>
                 </includes>
             </resource>
         </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>3.2</version>
                 <configuration>
                     <goalPrefix>ggitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>com.github.github</groupId>
                 <artifactId>site-maven-plugin</artifactId>
                 <version>0.9</version>
                 <configuration>
                     <message>Creating site for ${project.version}</message>
                     <server>github</server>
                     <merge>true</merge>
                 </configuration>
                 <executions>
                     <execution>
                         <goals>
                             <goal>site</goal>
                         </goals>
                         <phase>site</phase>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <reportPlugins>
                         <plugin>
                             <groupId>org.apache.maven.plugins</groupId>
                             <artifactId>maven-plugin-plugin</artifactId>
                             <version>3.2</version>
                         </plugin>
                     </reportPlugins>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index 4df5327..bd74ee2 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -33,324 +33,324 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  * Merges a release branch back into the develop and master branch and then
  * creates a tag for the release on master.
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
 
     /**
      * If <code>true</code>, the release finish merge to develop & master and
      * the created tag will get pushed to the remote repository
      *
      * @since 1.6
      */
     @Parameter(property = "pushReleaseFinish", defaultValue = "false", required = false)
     protected boolean pushReleaseFinish;
 
     /**
      * If <code>true</code>, the release can still finish even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private Boolean allowSnapshots;
 
     /**
      * If the project has a parent with a release version it will be replaced
      * with the next <code>-SNAPSHOT</code> version (if it has been deployed).
      * This action is performed on the develop branch after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "updateParent", defaultValue = "false", required = false)
     private Boolean updateParent;
 
     /**
      * On the release branch before finish is called any dependencies with a
      * <code>-SNAPSHOT</code> version are replaced with the corresponding
      * release version (if it has been released).
      *
      * On the develop branch after the merge any dependencies with a release
      * version are replaced with the next <code>-SNAPSHOT</code> version (if it
      * has been deployed).
      *
      * @since 1.2
      */
     @Parameter(property = "updateDependencies", defaultValue = "false", required = false)
     private Boolean updateDependencies;
 
     /**
      * If <code>updateDependencies</code> is set, then this should contain a
      * comma separated list of artifact patterns to include. Follows the pattern <code>groupId:artifactId:type:classifier:version<code>
      *
      * @since 1.5
      */
     @Parameter(property = "includes", defaultValue = "", required = false)
     private String includes;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "true", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any calls to <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipDeploy", defaultValue = "true", required = false)
     private Boolean skipDeploy;
 
     /**
      * Skips any tests during <code>mvn install</code> and
      * <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipTests", defaultValue = "true", required = false)
     private Boolean skipTests;
 
     /**
      * Whether to use the release profile that adds sources and javadoc to the
      * released artifact, if appropriate. If set to true, the release-finish
      * will set the property "performRelease" to true, which activates the
      * profile "release-profile", which is inherited from the super pom.
      *
      * @since 1.2
      */
     @Parameter(property = "useReleaseProfile", defaultValue = "true", required = false)
     private Boolean useReleaseProfile;
 
     /**
      * Comma separated profiles to enable on deployment, in addition to active
      * profiles for project execution.
      *
      * @since 1.2
      */
     @Parameter(property = "releaseProfiles", defaultValue = "", required = false)
     private String releaseProfiles;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the local release branch will not be deleted after
      * the merge.
      *
      * @since 1.6
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keepLocal;
 
     /**
      * If <code>true</code>, the remote release branch will not be deleted after
      * the merge.
      *
      * @since 1.6
      */
     @Parameter(property = "keep", defaultValue = "true", required = false)
     private Boolean keepRemote;
 
     /**
      * If <code>true</code>, the release tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().debug("Finishing release");
 
         /* Get release branch name */
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
         if (releaseBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         } else if (releaseBranches.size() == 1) {
             releaseName = releaseBranches.get(0);
         } else {
             releaseName = promptForExistingReleaseName(releaseBranches, releaseName);
         }
 
         getLog().info("Finishing release '" + releaseName + "'");
 
         /* Switch to develop branch and get its current version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         getLog().debug("develop version = " + developVersion);
 
         /* Switch to release branch and set poms to release version */
         getGitflowInit().executeLocal("git checkout " + releaseName);
         reloadReactorProjects();
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(project.getVersion());
         String releaseVersion;
         if ("SNAPSHOT".equals(artifactVersion.getBuildSpecifier())) {
             releaseVersion = getReleaseVersion(project.getVersion());
         } else {
             releaseVersion = project.getVersion();
         }
         getLog().debug("release version = " + releaseVersion);
 
         boolean setVersion = setVersion(releaseVersion, pushReleaseFinish, releaseName);
 
         /* Update release branch dependencies to release version */
         boolean setNextVersions = false;
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions = setNextVersions(false, updateParent, includes);
         }
 
         if (!allowSnapshots) {
             reloadReactorProjects();
             try {
                 checkForSnapshotDependencies();
             } catch (MojoExecutionException mee) {
                 // reset setNextVersions and/or setVersion commits to allow user fix & push SNAPSHOT dependencies
                 // but can only reset if it the commits have not been pushed */
                 if (!pushReleaseFinish) {
                     if (setNextVersions) {
                         getGitflowInit().executeLocal("git reset --hard HEAD~1");
                     }
                     if (setVersion) {
                         getGitflowInit().executeLocal("git reset --hard HEAD~1");
                     }
                 }
                 throw mee;
             }
         }
 
         /* finish release */
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setPush(pushReleaseBranch);
         gitflowRelease.setSquash(squash);
         gitflowRelease.setKeepLocal(keepLocal);
         gitflowRelease.setKeepRemote(keepRemote);
         gitflowRelease.setSign(sign);
         gitflowRelease.setSigningkey(signingkey);
 
         /* 1. merge to master */
         try {
             gitflowRelease.finishToMaster(releaseName, pushReleaseFinish);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
 
         /* 2. make versions in release and develop branches match to avoid conflicts */
         getGitflowInit().executeLocal("git checkout " + releaseName);
         reloadReactorProjects();
         boolean setDevVersion = setVersion(developVersion, pushReleaseFinish, releaseName);
 
         /* 3. merge to develop */
         try {
             gitflowRelease.finishToDevelop(releaseName, pushReleaseFinish);
         } catch (GitflowException ge) {
             // reset setVersion commit and allow user fix whatever exception occurred
             // but can only reset if the commit has not been pushed */
             if (!pushReleaseFinish && setDevVersion) {
                 getGitflowInit().executeLocal("git reset --hard HEAD~1");
-            }            
+            }
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
         /* Update develop branch dependencies to next snapshot version (if deployed) */
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions(true, updateParent, includes);
         }
 
         /* Switch to release tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);
         reloadReactorProjects();
         String tagVersion = project.getVersion();
         getLog().debug("tag version = " + tagVersion);
 
         /* install or deploy */
         if (skipDeploy == false) {
             String goals = "clean deploy";
             if (project.getDistributionManagement() != null
                     && project.getDistributionManagement().getSite() != null) {
                 goals += " site-deploy";
             }
 
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             if (useReleaseProfile) {
                 additionalArgs.add("-DperformRelease=true");
             }
             if (StringUtils.isNotBlank(releaseProfiles)) {
                 Iterable<String> profiles = PROFILES_SPLITTER.split(releaseProfiles);
                 additionalArgs.add("-P " + PROFILES_JOINER.join(profiles));
             }
             runGoals(goals, additionalArgs.build());
         } else if (skipBuild == false) {
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             runGoals("clean install", additionalArgs.build());
         } else {
             getLog().debug("Skipping both install and deploy for release tag " + releaseName);
         }
 
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingReleaseName(List<String> releaseBranches, String defaultReleaseName) throws MojoFailureException {
         String message = "Please select a release branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, releaseBranches, defaultReleaseName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading release name from command line " + e.getMessage());
         }
 
         return name;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
index ad2456e..5b36420 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
@@ -31,126 +31,126 @@ import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
 /**
  * Creates a new support branch from a specific commit on the master branch.
  */
 @Mojo(name = "support-start", aggregator = true)
 public class SupportStartMojo extends AbstractGitflowMojo {
 
     /**
      * If <code>true</code>, the support branch is pushed to the remote
      * repository.
      *
      * @since 1.2
      */
     @Parameter(property = "pushSupportBranch", defaultValue = "true", required = false)
     protected boolean pushSupportBranch;
 
     /**
      * The commit to start the support branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     protected String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         String prefix = getGitflowInit().getSupportBranchPrefix();
 
         List<String> tags = getGitflowInit().gitAllTags();
         if (tags.isEmpty()) {
             throw new MojoFailureException("Could not find any tags to create support branch from!");
         }
 
         if (StringUtils.isBlank(startCommit)) {
             startCommit = promptForExistingTagName(tags, tags.get(tags.size() - 1));
         }
 
         getGitflowInit().executeLocal("git checkout " + startCommit);
         reloadReactorProjects();
         String supportVersion = getSupportVersion(project.getVersion());
         String supportSnapshotVersion = getSupportSnapshotVersion(project.getVersion());
 
         getLog().info("Starting support branch '" + supportVersion + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowSupport gitflowSupport = new GitflowSupport();
         gitflowSupport.setInit(getGitflowInit());
         gitflowSupport.setMsgPrefix(getMsgPrefix());
         gitflowSupport.setMsgSuffix(getMsgSuffix());
         gitflowSupport.setPush(pushSupportBranch);
         gitflowSupport.setStartCommit(startCommit);
 
         try {
             gitflowSupport.start(supportVersion);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         setVersion(supportSnapshotVersion, pushSupportBranch, prefix + supportVersion);
 
         if (getGitflowInit().gitRemoteBranchExists(prefix + supportVersion)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + supportVersion);
         }
     }
 
     private String promptForExistingTagName(List<String> branches, String defaultBrnName) throws MojoFailureException {
         String message = "Create a support branch from tag:";
 
         String name = "";
         try {
             name = prompter.prompt(message, branches, defaultBrnName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading selected Tag name from command line " + e.getMessage());
         }
 
         return name;
     }
 
     private String getSupportVersion(String currentVersion) throws MojoFailureException {
         getLog().debug("getSupportVersion from '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         StringBuilder sb = new StringBuilder(10);
         int pCount = artifactVersion.getPrimaryNumberCount();
         if (pCount < 3) {
-            // Support versions should be like 1.0-xx e.g. 1.0-01, 1.0-02 etc
+            // Support versions should be like 1.0-xx e.g. 1.0-1, 1.0-2 etc
             sb.append(artifactVersion.getPrimaryNumbersAsString()).append('-').append("xx");
             sb.append(artifactVersion.getAnnotationAsString()).append(artifactVersion.getBuildSpecifierAsString());
         } else {
-            // Support versions should be like 1.0.1-xx e.g. 1.0.1-01, 1.0.1-02 etc
+            // Support versions should be like 1.0.1-xx e.g. 1.0.1-1, 1.0.1-2 etc
             if (null != artifactVersion.getAnnotation()) {
                 throw new MojoFailureException("Cannot start Support branch. Primary number " + artifactVersion.getPrimaryNumbersAsString() + " and annotations are already set " + artifactVersion.getAnnotation());
             }
             sb.append(artifactVersion.getPrimaryNumbersAsString()).append('-').append("xx");
         }
 
         return sb.toString();
     }
 
     private String getSupportSnapshotVersion(String currentVersion) throws MojoFailureException {
         getLog().debug("getSupportSnapshotVersion from '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         StringBuilder sb = new StringBuilder(10);
         int pCount = artifactVersion.getPrimaryNumberCount();
         if (pCount < 3) {
-            // Support versions should be like 1.0-xx e.g. 1.0-01, 1.0-02 etc
-            sb.append(artifactVersion.getPrimaryNumbersAsString()).append('-').append("01");
+            // Support versions should be like 1.0-xx e.g. 1.0-1, 1.0-2 etc
+            sb.append(artifactVersion.getPrimaryNumbersAsString()).append('-').append("1");
             sb.append(artifactVersion.getAnnotationAsString());
         } else {
-            // Support versions should be like 1.0.1-xx e.g. 1.0.1-01, 1.0.1-02 etc
+            // Support versions should be like 1.0.1-xx e.g. 1.0.1-1, 1.0.1-2 etc
             if (null != artifactVersion.getAnnotation()) {
                 throw new MojoFailureException("Cannot start Support branch. Primary number " + artifactVersion.getPrimaryNumbersAsString() + " and annotations are already set " + artifactVersion.getAnnotation());
             }
-            sb.append(artifactVersion.getPrimaryNumbersAsString()).append('-').append("01");
+            sb.append(artifactVersion.getPrimaryNumbersAsString()).append('-').append("1");
         }
 
         sb.append(DEFAULT_VERSION_COMPONENT_SEPARATOR).append(SNAPSHOT_QUALIFIER);
 
         return sb.toString();
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportTagMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportTagMojo.java
new file mode 100644
index 0000000..1f05773
--- /dev/null
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportTagMojo.java
@@ -0,0 +1,176 @@
+/*
+ * Copyright 2014 Desmond Kirrane.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.dkirrane.maven.plugins.ggitflow;
+
+import java.util.List;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.plugin.MojoFailureException;
+import org.apache.maven.plugins.annotations.Mojo;
+import org.apache.maven.plugins.annotations.Parameter;
+import org.codehaus.plexus.components.interactivity.PrompterException;
+import org.jfrog.hudson.util.GenericArtifactVersion;
+
+/**
+ * Creates a tag on a support branch when releasing of a support branch. Note:
+ * this does not merge support branch changes back to develop
+ */
+@Mojo(name = "support-tag", aggregator = true)
+public class SupportTagMojo extends AbstractGitflowMojo {
+
+    /**
+     * If <code>true</code>, the tag can still get created even if
+     * <code>-SNAPSHOT</code> dependencies exists in the pom.
+     *
+     * @since 2.3
+     */
+    @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
+    private Boolean allowSnapshots;
+
+    /**
+     * If <code>true</code>, the support tag will be signed.
+     *
+     * @since 2.3
+     */
+    @Parameter(property = "sign", defaultValue = "false", required = false)
+    private Boolean sign;
+
+    /**
+     * The GNU Privacy Guard (GPG) private key used to sign the tag.
+     *
+     * @since 2.3
+     */
+    @Parameter(property = "signingkey", defaultValue = "", required = false)
+    private String signingkey;
+
+    @Override
+    public void execute() throws MojoExecutionException, MojoFailureException {
+        super.execute();
+        getLog().debug("Tagging support branch");
+
+        /* Get release branch name */
+        List<String> supportBranches = getGitflowInit().gitLocalSupportBranches();
+        String supportBranch = "";
+        if (supportBranches.isEmpty()) {
+            throw new MojoFailureException("Could not find any local support branch!");
+        } else if (supportBranches.size() == 1) {
+            supportBranch = supportBranches.get(0);
+        } else {
+            supportBranch = promptForExistingSupportBranch(supportBranches, supportBranch);
+        }
+
+        getLog().info("Tagging support branch '" + supportBranch + "'");
+
+        /* Switch to support branch and get its current version */
+        getGitflowInit().executeLocal("git checkout " + supportBranch);
+        reloadReactorProjects();
+        String snapshotVersion = project.getVersion();
+
+        /* Get release version for support tag */
+        GenericArtifactVersion artifactVersion = new GenericArtifactVersion(snapshotVersion);
+        String supportVersion;
+        if ("SNAPSHOT".equals(artifactVersion.getBuildSpecifier())) {
+            supportVersion = getReleaseVersion(project.getVersion());
+        } else {
+            supportVersion = project.getVersion();
+        }
+        getLog().debug("support version = " + supportVersion);
+
+        getGitflowInit().requireTagAbsent(supportVersion);
+
+        /* Set support branch to release version */
+        boolean setVersion = setVersion(supportVersion, false, supportBranch);
+
+        if (!allowSnapshots) {
+            reloadReactorProjects();
+            try {
+                checkForSnapshotDependencies();
+            } catch (MojoExecutionException mee) {
+                // reset setVersion commit to allow user fix & push SNAPSHOT dependencies
+                if (setVersion) {
+                    getGitflowInit().executeLocal("git reset --hard HEAD~1");
+                }
+                throw mee;
+            }
+        }
+
+        /* tag support branch */
+        String tagMsg = "Support release version " + supportVersion;
+        String tagName = supportVersion;
+        String tagString = getGitflowInit().executeLocal("git tag -a -m \"" + tagMsg + "\" " + tagName + " " + supportBranch);
+        getLog().debug("Git tag output = " + tagString);
+
+        /* Increment support branch to next version */
+        String nextSupportVersion = getNextSupportVersion(snapshotVersion);
+        setVersion(nextSupportVersion, false, supportBranch);
+        promptToPushSupportBranchAndTag(supportBranch, tagName);
+
+    }
+
+    private String promptForExistingSupportBranch(List<String> supportBranches, String defaultSupportBranch) throws MojoFailureException {
+        String message = "Please select a support branch to tag?";
+
+        String name = "";
+        try {
+            name = prompter.prompt(message, supportBranches, defaultSupportBranch);
+        } catch (PrompterException e) {
+            throw new MojoFailureException("Error reading support branch name from command line " + e.getMessage());
+        }
+
+        return name;
+    }
+
+    private void promptToPushSupportBranchAndTag(String supportBranch, String supportTag) throws MojoFailureException {
+        String origin = getGitflowInit().getOrigin();
+        String message = "Do you want to push " + supportBranch + " branch and support tag " + supportTag + " to " + origin + "? (y/N)";
+
+        String answer = "";
+        try {
+            answer = prompter.prompt(message);
+        } catch (PrompterException e) {
+            throw new MojoFailureException("Error reading support branch name from command line " + e.getMessage());
+        }
+
+        if (answer.matches("/^([yY][eE][sS]|[yY])$/")) {
+            if (getGitflowInit().gitRemoteBranchExists(supportBranch)) {
+                getGitflowInit().executeRemote("git push " + origin + " " + supportBranch);
+                getGitflowInit().executeRemote("git push " + origin + " " + supportTag);
+            } else {
+                getLog().info("");
+                getLog().warn("===> Branch '" + supportBranch + "' does not exist on '" + origin + "'");
+                getLog().warn("===> Once ready you MUST manually push '" + supportBranch + "' branch and support tag '" + supportTag + "' to '" + origin + "'");
+                getLog().info("");
+            }
+        } else {
+            getLog().info("");
+            getLog().warn("===> Once ready you MUST manually push '" + supportBranch + "' branch and support tag '" + supportTag + "' to '" + origin + "'");
+            getLog().info("");
+        }
+    }
+
+    private String getNextSupportVersion(String currentVersion) throws MojoFailureException {
+        getLog().debug("getNextSupportVersion from '" + currentVersion + "'");
+
+        GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
+
+        StringBuilder sb = new StringBuilder(10);
+        Integer annotationRevision = artifactVersion.getAnnotationRevision();
+        if (null == annotationRevision) {
+            throw new MojoFailureException("Cannot find Maven buildNumber in support version " + currentVersion);
+        }
+        GenericArtifactVersion upgradeAnnotationRevision = artifactVersion.upgradeAnnotationRevision();
+        return upgradeAnnotationRevision.toString();
+    }
+}

commit fb5f44e528c333223b35f1ade4b07c5428b847d7
Author: dkirrane <dkirrane@avaya.com>
Date:   Thu Aug 11 12:20:28 2016 +0100

    NEXT DEV VERSION

diff --git a/ggitflow-maven-archetype/pom.xml b/ggitflow-maven-archetype/pom.xml
index 45a43f0..71c4b2e 100644
--- a/ggitflow-maven-archetype/pom.xml
+++ b/ggitflow-maven-archetype/pom.xml
@@ -1,45 +1,45 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
-        <version>2.2</version>
+        <version>2.3-SNAPSHOT</version>
     </parent>
 
     <groupId>com.dkirrane.maven.archetype</groupId>
     <artifactId>ggitflow-maven-archetype</artifactId>
-    <version>2.2</version>
+    <version>2.3-SNAPSHOT</version>
     <packaging>maven-archetype</packaging>
     <name>ggitflow-maven-archetype</name>
 
     <build>
         <extensions>
             <extension>
                 <groupId>org.apache.maven.archetype</groupId>
                 <artifactId>archetype-packaging</artifactId>
                 <version>2.2</version>
             </extension>
         </extensions>
 
         <pluginManagement>
             <plugins>
                 <plugin>
                     <artifactId>maven-archetype-plugin</artifactId>
                     <version>2.2</version>
                 </plugin>
             </plugins>
         </pluginManagement>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <skip>true</skip>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index d0f82aa..e6065c2 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,170 +1,170 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
-        <version>2.2</version>
+        <version>2.3-SNAPSHOT</version>
     </parent>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
-    <version>2.2</version>
+    <version>2.3-SNAPSHOT</version>
     <packaging>maven-plugin</packaging>
     <name>ggitflow-maven-plugin</name>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
             <version>2.5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>3.2</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>3.0.8</version>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-interactivity-api</artifactId>
             <version>1.0-alpha-5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>2.4</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-project</artifactId>
             <version>2.2.1</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-clean-plugin</artifactId>
             <version>2.5</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-install-plugin</artifactId>
             <version>2.5.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-deploy-plugin</artifactId>
             <version>2.8.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-artifact</artifactId>
             <version>2.2.1</version>
         </dependency>
         <dependency>
             <groupId>com.google.guava</groupId>
             <artifactId>guava</artifactId>
             <version>16.0.1</version>
         </dependency>
 
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-api</artifactId>
             <version>1.7.21</version>
         </dependency>
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-simple</artifactId>
             <version>1.7.21</version>
         </dependency>
 
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
     </dependencies>
 
     <build>
         <resources>
             <resource>
                 <directory>src/it</directory>
                 <includes>
                     <include>**/**</include>
                 </includes>
             </resource>
         </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>3.2</version>
                 <configuration>
                     <goalPrefix>ggitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>com.github.github</groupId>
                 <artifactId>site-maven-plugin</artifactId>
                 <version>0.9</version>
                 <configuration>
                     <message>Creating site for ${project.version}</message>
                     <server>github</server>
                     <merge>true</merge>
                 </configuration>
                 <executions>
                     <execution>
                         <goals>
                             <goal>site</goal>
                         </goals>
                         <phase>site</phase>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <reportPlugins>
                         <plugin>
                             <groupId>org.apache.maven.plugins</groupId>
                             <artifactId>maven-plugin-plugin</artifactId>
                             <version>3.2</version>
                         </plugin>
                     </reportPlugins>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/pom.xml b/pom.xml
index a3f85ec..38ac900 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,175 +1,175 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven</artifactId>
-    <version>2.2</version>
+    <version>2.3-SNAPSHOT</version>
     <name>ggitflow-maven</name>
     <packaging>pom</packaging>
 
     <modules>
         <module>ggitflow-maven-plugin</module>
         <module>ggitflow-maven-archetype</module>
     </modules>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
     </properties>
 
     <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
 
     <scm>
         <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
         <connection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</connection>
         <developerConnection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</developerConnection>
     </scm>
 
     <description>Maven Archetype for the Gitflow Maven Plugin</description>
     <developers>
         <developer>
             <id>dkirrane</id>
             <name>Desmond Kirrane</name>
             <email>desmond.kirrane@gmail.com</email>
         </developer>
     </developers>
     <licenses>
         <license>
             <name>Apache License Version 2.0, January 2004</name>
             <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
             <distribution>repo</distribution>
         </license>
     </licenses>
 
     <build>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <version>2.3.2</version>
                 <configuration>
                     <source>1.5</source>
                     <target>1.5</target>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 
     <profiles>
         <!-- For Release versions the Sonatype Nexus Stage rules require artifacts to be signed -->
         <!-- http://blog.sonatype.com/2010/01/how-to-generate-pgp-signatures-with-maven -->
         <!-- 1. Setup gpg, @see https://github.com/dkirrane/ggitflow/blob/develop/gradle.properties.sample -->
         <!-- 2. Run Maven deploy sign from Git terminal: mvn clean deploy -Prelease-sign-artifacts -->
         <!-- 3. Login to Nexus to release from the Stage: https://oss.sonatype.org | Login | Staging Repositories | Search for: com.dkirrane | Release -->
         <profile>
             <id>release-sign-artifacts</id>
             <activation>
                 <activeByDefault>false</activeByDefault>
             </activation>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-gpg-plugin</artifactId>
                         <version>1.6</version>
                         <executions>
                             <execution>
                                 <id>sign-artifacts</id>
                                 <phase>verify</phase>
                                 <goals>
                                     <goal>sign</goal>
                                 </goals>
                                 <configuration>
                                     <useAgent>false</useAgent>
                                 </configuration>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
             </build>
         </profile>
         <profile>
             <id>run-its</id>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-invoker-plugin</artifactId>
                         <version>1.8</version>
                         <configuration>
                             <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
                             <settingsFile>src/it/settings.xml</settingsFile>
                             <debug>true</debug>
                             <showErrors>true</showErrors>
                             <detail>true</detail>
                             <streamLogs>true</streamLogs>
                             <projectsDirectory>src/it/projects</projectsDirectory>
                             <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
                             <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
                             <addTestClassPath>true</addTestClassPath>
                             <preBuildHookScript>setup</preBuildHookScript>
                             <postBuildHookScript>verify</postBuildHookScript>
                             <pomIncludes>
                                 <pomInclude>*/pom.xml</pomInclude>
                             </pomIncludes>
                             <goals>
                                 <goal>clean</goal>
                                 <goal>test-compile</goal>
                             </goals>
                         </configuration>
                         <executions>
                             <execution>
                                 <id>integration-test</id>
                                 <goals>
                                     <goal>install</goal>
                                     <goal>integration-test</goal>
                                     <goal>verify</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
 
             </build>
         </profile>
     </profiles>
 
     <!--
         Sonatype upload details:
         http://central.sonatype.org/pages/ossrh-guide.html
         http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
         https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
         https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
         https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
 
             - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
             - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
             - Promote staged artifacts into repository 'Releases'
             - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
             - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
     -->
 
     <distributionManagement>
         <snapshotRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
         </snapshotRepository>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
         </repository>
     </distributionManagement>
     <repositories>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
             <snapshots>
                 <enabled>true</enabled>
             </snapshots>
         </repository>
     </repositories>
 </project>

commit 10dabc7094295aceb8ff66ba2dbe3bf9b1d38731
Merge: 81c4b37 1f7f88a
Author: dkirrane <dkirrane@avaya.com>
Date:   Thu Aug 11 12:19:49 2016 +0100

    Merge branch 'release/2.2'

commit ea95563f35845533d1aab6514d58d70821209f2d
Merge: 6b3cb26 1f7f88a
Author: dkirrane <dkirrane@avaya.com>
Date:   Thu Aug 11 12:19:49 2016 +0100

    Merge branch 'release/2.2' into develop

commit 1f7f88a54cb0441c6f07cf36b6724a90363705df
Author: dkirrane <dkirrane@avaya.com>
Date:   Thu Aug 11 12:15:24 2016 +0100

    set to version 2.2

diff --git a/ggitflow-maven-archetype/pom.xml b/ggitflow-maven-archetype/pom.xml
index a61dbc3..45a43f0 100644
--- a/ggitflow-maven-archetype/pom.xml
+++ b/ggitflow-maven-archetype/pom.xml
@@ -1,45 +1,45 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
-        <version>2.2-SNAPSHOT</version>
+        <version>2.2</version>
     </parent>
 
     <groupId>com.dkirrane.maven.archetype</groupId>
     <artifactId>ggitflow-maven-archetype</artifactId>
-    <version>2.2-SNAPSHOT</version>
+    <version>2.2</version>
     <packaging>maven-archetype</packaging>
     <name>ggitflow-maven-archetype</name>
 
     <build>
         <extensions>
             <extension>
                 <groupId>org.apache.maven.archetype</groupId>
                 <artifactId>archetype-packaging</artifactId>
                 <version>2.2</version>
             </extension>
         </extensions>
 
         <pluginManagement>
             <plugins>
                 <plugin>
                     <artifactId>maven-archetype-plugin</artifactId>
                     <version>2.2</version>
                 </plugin>
             </plugins>
         </pluginManagement>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <skip>true</skip>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index 2ab3482..d0f82aa 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,170 +1,170 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
-        <version>2.2-SNAPSHOT</version>
+        <version>2.2</version>
     </parent>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
-    <version>2.2-SNAPSHOT</version>
+    <version>2.2</version>
     <packaging>maven-plugin</packaging>
     <name>ggitflow-maven-plugin</name>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
             <version>2.5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>3.2</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>3.0.8</version>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-interactivity-api</artifactId>
             <version>1.0-alpha-5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>2.4</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-project</artifactId>
             <version>2.2.1</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-clean-plugin</artifactId>
             <version>2.5</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-install-plugin</artifactId>
             <version>2.5.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-deploy-plugin</artifactId>
             <version>2.8.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-artifact</artifactId>
             <version>2.2.1</version>
         </dependency>
         <dependency>
             <groupId>com.google.guava</groupId>
             <artifactId>guava</artifactId>
             <version>16.0.1</version>
         </dependency>
 
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-api</artifactId>
             <version>1.7.21</version>
         </dependency>
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-simple</artifactId>
             <version>1.7.21</version>
         </dependency>
 
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
     </dependencies>
 
     <build>
         <resources>
             <resource>
                 <directory>src/it</directory>
                 <includes>
                     <include>**/**</include>
                 </includes>
             </resource>
         </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>3.2</version>
                 <configuration>
                     <goalPrefix>ggitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>com.github.github</groupId>
                 <artifactId>site-maven-plugin</artifactId>
                 <version>0.9</version>
                 <configuration>
                     <message>Creating site for ${project.version}</message>
                     <server>github</server>
                     <merge>true</merge>
                 </configuration>
                 <executions>
                     <execution>
                         <goals>
                             <goal>site</goal>
                         </goals>
                         <phase>site</phase>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <reportPlugins>
                         <plugin>
                             <groupId>org.apache.maven.plugins</groupId>
                             <artifactId>maven-plugin-plugin</artifactId>
                             <version>3.2</version>
                         </plugin>
                     </reportPlugins>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/pom.xml b/pom.xml
index 4395cf5..a3f85ec 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,175 +1,175 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven</artifactId>
-    <version>2.2-SNAPSHOT</version>
+    <version>2.2</version>
     <name>ggitflow-maven</name>
     <packaging>pom</packaging>
 
     <modules>
         <module>ggitflow-maven-plugin</module>
         <module>ggitflow-maven-archetype</module>
     </modules>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
     </properties>
 
     <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
 
     <scm>
         <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
         <connection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</connection>
         <developerConnection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</developerConnection>
     </scm>
 
     <description>Maven Archetype for the Gitflow Maven Plugin</description>
     <developers>
         <developer>
             <id>dkirrane</id>
             <name>Desmond Kirrane</name>
             <email>desmond.kirrane@gmail.com</email>
         </developer>
     </developers>
     <licenses>
         <license>
             <name>Apache License Version 2.0, January 2004</name>
             <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
             <distribution>repo</distribution>
         </license>
     </licenses>
 
     <build>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <version>2.3.2</version>
                 <configuration>
                     <source>1.5</source>
                     <target>1.5</target>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 
     <profiles>
         <!-- For Release versions the Sonatype Nexus Stage rules require artifacts to be signed -->
         <!-- http://blog.sonatype.com/2010/01/how-to-generate-pgp-signatures-with-maven -->
         <!-- 1. Setup gpg, @see https://github.com/dkirrane/ggitflow/blob/develop/gradle.properties.sample -->
         <!-- 2. Run Maven deploy sign from Git terminal: mvn clean deploy -Prelease-sign-artifacts -->
         <!-- 3. Login to Nexus to release from the Stage: https://oss.sonatype.org | Login | Staging Repositories | Search for: com.dkirrane | Release -->
         <profile>
             <id>release-sign-artifacts</id>
             <activation>
                 <activeByDefault>false</activeByDefault>
             </activation>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-gpg-plugin</artifactId>
                         <version>1.6</version>
                         <executions>
                             <execution>
                                 <id>sign-artifacts</id>
                                 <phase>verify</phase>
                                 <goals>
                                     <goal>sign</goal>
                                 </goals>
                                 <configuration>
                                     <useAgent>false</useAgent>
                                 </configuration>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
             </build>
         </profile>
         <profile>
             <id>run-its</id>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-invoker-plugin</artifactId>
                         <version>1.8</version>
                         <configuration>
                             <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
                             <settingsFile>src/it/settings.xml</settingsFile>
                             <debug>true</debug>
                             <showErrors>true</showErrors>
                             <detail>true</detail>
                             <streamLogs>true</streamLogs>
                             <projectsDirectory>src/it/projects</projectsDirectory>
                             <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
                             <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
                             <addTestClassPath>true</addTestClassPath>
                             <preBuildHookScript>setup</preBuildHookScript>
                             <postBuildHookScript>verify</postBuildHookScript>
                             <pomIncludes>
                                 <pomInclude>*/pom.xml</pomInclude>
                             </pomIncludes>
                             <goals>
                                 <goal>clean</goal>
                                 <goal>test-compile</goal>
                             </goals>
                         </configuration>
                         <executions>
                             <execution>
                                 <id>integration-test</id>
                                 <goals>
                                     <goal>install</goal>
                                     <goal>integration-test</goal>
                                     <goal>verify</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
 
             </build>
         </profile>
     </profiles>
 
     <!--
         Sonatype upload details:
         http://central.sonatype.org/pages/ossrh-guide.html
         http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
         https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
         https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
         https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
 
             - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
             - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
             - Promote staged artifacts into repository 'Releases'
             - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
             - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
     -->
 
     <distributionManagement>
         <snapshotRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
         </snapshotRepository>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
         </repository>
     </distributionManagement>
     <repositories>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
             <snapshots>
                 <enabled>true</enabled>
             </snapshots>
         </repository>
     </repositories>
 </project>

commit 6b3cb26cf7187974773a3d6bb0deb207067024c0
Author: dkirrane <dkirrane@avaya.com>
Date:   Thu Aug 11 12:04:15 2016 +0100

    fix hotfix checkout

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
index 268c25f..a972add 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
@@ -31,264 +31,264 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  * Merges a hotfix branch back into the develop and master branch and then
  * creates a tag for the hotfix on master.
  */
 @Mojo(name = "hotfix-finish", aggregator = true)
 public class HotfixFinishMojo extends AbstractHotfixMojo {
 
     protected String hotfixName;
 
     /**
      * If <code>true</code>, the hotfix finish merge to develop & master and
      * created tag will get pushed to the remote repository
      *
      * @since 1.6
      */
     @Parameter(property = "pushHotfixFinish", defaultValue = "false", required = false)
     protected boolean pushHotfixFinish;
 
     /**
      * If <code>true</code>, the hotfix can still finish even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private boolean allowSnapshots;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "true", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any calls to <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipDeploy", defaultValue = "true", required = false)
     private Boolean skipDeploy;
 
     /**
      * Skips any tests during <code>mvn install</code> and
      * <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipTests", defaultValue = "true", required = false)
     private Boolean skipTests;
 
     /**
      * Whether to use the release profile that adds sources and javadoc to the
      * released artifact, if appropriate. If set to true, the hotfix-finish will
      * set the property "performRelease" to true, which activates the profile
      * "release-profile", which is inherited from the super pom.
      *
      * @since 1.2
      */
     @Parameter(property = "useReleaseProfile", defaultValue = "true", required = false)
     private Boolean useReleaseProfile;
 
     /**
      * Comma separated profiles to enable on deployment, in addition to active
      * profiles for project execution.
      *
      * @since 1.2
      */
     @Parameter(property = "releaseProfiles", defaultValue = "", required = false)
     private String releaseProfiles;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the hotfix feature branch will not be deleted after
      * the merge.
      *
      * @since 1.6
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keepLocal;
 
     /**
      * If <code>true</code>, the hotfix feature branch will not be deleted after
      * the merge.
      *
      * @since 1.6
      */
     @Parameter(property = "keep", defaultValue = "true", required = false)
     private Boolean keepRemote;
 
     /**
      * If <code>true</code>, the hotfix tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().debug("Finishing hotfix");
 
         /* Get hotfix branch name */
         List<String> hotfixBranches = getGitflowInit().gitLocalHotfixBranches();
         if (hotfixBranches.isEmpty()) {
             throw new MojoFailureException("Could not find hotfix branch!");
         } else if (hotfixBranches.size() == 1) {
             hotfixName = hotfixBranches.get(0);
         } else {
             hotfixName = promptForExistingHotfixName(hotfixBranches, hotfixName);
         }
 
         getLog().info("Finishing hotfix '" + hotfixName + "'");
 
         /* Switch to develop branch and get its current version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         getLog().debug("develop version = " + developVersion);
 
         /* Switch to hotfix branch and set poms to hotfix version */
         getGitflowInit().executeLocal("git checkout " + hotfixName);
         reloadReactorProjects();
         String hotfixVersion = project.getVersion();
         getLog().debug("hotfix snapshot version = " + hotfixVersion);
         String hotfixReleaseVersion = getReleaseVersion(hotfixVersion);
         getLog().debug("hotfix release version = " + hotfixReleaseVersion);
 
         boolean setVersion = setVersion(hotfixReleaseVersion, pushHotfixFinish, hotfixName);
 
         if (!allowSnapshots) {
             reloadReactorProjects();
             try {
                 checkForSnapshotDependencies();
             } catch (MojoExecutionException mee) {
                 // reset setVersion commit and allow user fix & push SNAPSHOT dependencies
                 // but can only reset if the commit has not been pushed */
                 if (!pushHotfixFinish && setVersion) {
                     getGitflowInit().executeLocal("git reset --hard HEAD~1");
                 }
                 throw mee;
             }
         }
 
         /* finish hotfix */
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
         gitflowHotfix.setPush(pushHotfixBranch);
         gitflowHotfix.setSquash(squash);
         gitflowHotfix.setKeepLocal(keepLocal);
         gitflowHotfix.setKeepRemote(keepRemote);
         gitflowHotfix.setSign(sign);
         gitflowHotfix.setSigningkey(signingkey);
 
         /* 1. merge to master */
         try {
             gitflowHotfix.finishToMaster(hotfixName, pushHotfixFinish);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
 
         /* 2. make versions in hotfix and develop branches match to avoid conflicts */
         getGitflowInit().executeLocal("git checkout " + hotfixName);
         reloadReactorProjects();
         boolean setDevVersion = setVersion(developVersion, pushHotfixFinish, hotfixName);
 
         /* 3. merge to develop */
         try {
             gitflowHotfix.finishToDevelop(hotfixName, pushHotfixFinish);
         } catch (GitflowException ge) {
             // reset setVersion commit and allow user fix whatever exception occurred
             // but can only reset if the commit has not been pushed */
             if (!pushHotfixFinish && setDevVersion) {
                 getGitflowInit().executeLocal("git reset --hard HEAD~1");
             }
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             // If a merge conflict arises we don't want to reset setDevVersion commit
             throw new MojoFailureException(gmce.getMessage());
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
         /* Switch to hotfix tag and deploy it */
-        getGitflowInit().executeLocal("git checkout " + hotfixName);
+        getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + hotfixReleaseVersion);
         reloadReactorProjects();
         String tagVersion = project.getVersion();
         getLog().debug("tag version = " + tagVersion);
 
         /* install or deploy */
         if (skipDeploy == false) {
             String goals = "clean deploy";
             if (project.getDistributionManagement() != null
                     && project.getDistributionManagement().getSite() != null) {
                 goals += " site-deploy";
             }
 
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             if (useReleaseProfile) {
                 additionalArgs.add("-DperformRelease=true");
             }
             if (StringUtils.isNotBlank(releaseProfiles)) {
                 Iterable<String> profiles = PROFILES_SPLITTER.split(releaseProfiles);
                 additionalArgs.add("-P " + PROFILES_JOINER.join(profiles));
             }
             runGoals(goals, additionalArgs.build());
         } else if (skipBuild == false) {
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             runGoals("clean install", additionalArgs.build());
         } else {
             getLog().debug("Skipping both install and deploy for hotfix tag " + hotfixName);
         }
 
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingHotfixName(List<String> hotfixBranches, String defaultHotfixName) throws MojoFailureException {
         String message = "Please select a hotfix branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, hotfixBranches, defaultHotfixName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading hotfix name from command line " + e.getMessage());
         }
 
         return name;
     }
 }

commit 83041a363d6a405009d11990b84dec14c8e02cf8
Author: dkirrane <dkirrane@avaya.com>
Date:   Thu Aug 11 11:42:53 2016 +0100

    Fix support version

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
index 09b86a7..ad2456e 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
@@ -25,2 +25,3 @@ import org.apache.maven.plugins.annotations.Parameter;
 import org.codehaus.plexus.components.interactivity.PrompterException;
+import org.codehaus.plexus.util.StringUtils;
 import org.jfrog.hudson.util.GenericArtifactVersion;
@@ -30,124 +31,126 @@ import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
 /**
  * Creates a new support branch from a specific commit on the master branch.
  */
 @Mojo(name = "support-start", aggregator = true)
 public class SupportStartMojo extends AbstractGitflowMojo {
 
     /**
      * If <code>true</code>, the support branch is pushed to the remote
      * repository.
      *
      * @since 1.2
      */
     @Parameter(property = "pushSupportBranch", defaultValue = "true", required = false)
     protected boolean pushSupportBranch;
 
     /**
      * The commit to start the support branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     protected String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         String prefix = getGitflowInit().getSupportBranchPrefix();
 
         List<String> tags = getGitflowInit().gitAllTags();
         if (tags.isEmpty()) {
             throw new MojoFailureException("Could not find any tags to create support branch from!");
         }
 
-        String baseName = promptForExistingTagName(tags, tags.get(tags.size() - 1));
+        if (StringUtils.isBlank(startCommit)) {
+            startCommit = promptForExistingTagName(tags, tags.get(tags.size() - 1));
+        }
 
-        getGitflowInit().executeLocal("git checkout " + baseName);
+        getGitflowInit().executeLocal("git checkout " + startCommit);
         reloadReactorProjects();
         String supportVersion = getSupportVersion(project.getVersion());
         String supportSnapshotVersion = getSupportSnapshotVersion(project.getVersion());
 
         getLog().info("Starting support branch '" + supportVersion + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowSupport gitflowSupport = new GitflowSupport();
         gitflowSupport.setInit(getGitflowInit());
         gitflowSupport.setMsgPrefix(getMsgPrefix());
         gitflowSupport.setMsgSuffix(getMsgSuffix());
         gitflowSupport.setPush(pushSupportBranch);
         gitflowSupport.setStartCommit(startCommit);
 
         try {
             gitflowSupport.start(supportVersion);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         setVersion(supportSnapshotVersion, pushSupportBranch, prefix + supportVersion);
 
         if (getGitflowInit().gitRemoteBranchExists(prefix + supportVersion)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + supportVersion);
         }
     }
 
     private String promptForExistingTagName(List<String> branches, String defaultBrnName) throws MojoFailureException {
         String message = "Create a support branch from tag:";
 
         String name = "";
         try {
             name = prompter.prompt(message, branches, defaultBrnName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading selected Tag name from command line " + e.getMessage());
         }
 
         return name;
     }
 
     private String getSupportVersion(String currentVersion) throws MojoFailureException {
         getLog().debug("getSupportVersion from '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         StringBuilder sb = new StringBuilder(10);
         int pCount = artifactVersion.getPrimaryNumberCount();
         if (pCount < 3) {
             // Support versions should be like 1.0-xx e.g. 1.0-01, 1.0-02 etc
             sb.append(artifactVersion.getPrimaryNumbersAsString()).append('-').append("xx");
             sb.append(artifactVersion.getAnnotationAsString()).append(artifactVersion.getBuildSpecifierAsString());
         } else {
             // Support versions should be like 1.0.1-xx e.g. 1.0.1-01, 1.0.1-02 etc
             if (null != artifactVersion.getAnnotation()) {
                 throw new MojoFailureException("Cannot start Support branch. Primary number " + artifactVersion.getPrimaryNumbersAsString() + " and annotations are already set " + artifactVersion.getAnnotation());
             }
             sb.append(artifactVersion.getPrimaryNumbersAsString()).append('-').append("xx");
         }
 
         return sb.toString();
     }
 
     private String getSupportSnapshotVersion(String currentVersion) throws MojoFailureException {
         getLog().debug("getSupportSnapshotVersion from '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         StringBuilder sb = new StringBuilder(10);
         int pCount = artifactVersion.getPrimaryNumberCount();
         if (pCount < 3) {
             // Support versions should be like 1.0-xx e.g. 1.0-01, 1.0-02 etc
             sb.append(artifactVersion.getPrimaryNumbersAsString()).append('-').append("01");
             sb.append(artifactVersion.getAnnotationAsString());
         } else {
             // Support versions should be like 1.0.1-xx e.g. 1.0.1-01, 1.0.1-02 etc
             if (null != artifactVersion.getAnnotation()) {
                 throw new MojoFailureException("Cannot start Support branch. Primary number " + artifactVersion.getPrimaryNumbersAsString() + " and annotations are already set " + artifactVersion.getAnnotation());
             }
             sb.append(artifactVersion.getPrimaryNumbersAsString()).append('-').append("01");
         }
 
         sb.append(DEFAULT_VERSION_COMPONENT_SEPARATOR).append(SNAPSHOT_QUALIFIER);
 
         return sb.toString();
     }
 }

commit ffca17c4117322b81e9be446df740e7c575caadf
Author: dkirrane <dkirrane@avaya.com>
Date:   Fri Jul 22 18:21:00 2016 +0100

    2.2-SNAPSHOT

diff --git a/ggitflow-maven-archetype/pom.xml b/ggitflow-maven-archetype/pom.xml
index 005cd4a..a61dbc3 100644
--- a/ggitflow-maven-archetype/pom.xml
+++ b/ggitflow-maven-archetype/pom.xml
@@ -1,45 +1,45 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
-        <version>2.1</version>
+        <version>2.2-SNAPSHOT</version>
     </parent>
 
     <groupId>com.dkirrane.maven.archetype</groupId>
     <artifactId>ggitflow-maven-archetype</artifactId>
-    <version>2.1</version>
+    <version>2.2-SNAPSHOT</version>
     <packaging>maven-archetype</packaging>
     <name>ggitflow-maven-archetype</name>
 
     <build>
         <extensions>
             <extension>
                 <groupId>org.apache.maven.archetype</groupId>
                 <artifactId>archetype-packaging</artifactId>
                 <version>2.2</version>
             </extension>
         </extensions>
 
         <pluginManagement>
             <plugins>
                 <plugin>
                     <artifactId>maven-archetype-plugin</artifactId>
                     <version>2.2</version>
                 </plugin>
             </plugins>
         </pluginManagement>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <skip>true</skip>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index 5d88eb1..2ab3482 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,170 +1,170 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
-        <version>2.1</version>
+        <version>2.2-SNAPSHOT</version>
     </parent>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
-    <version>2.1</version>
+    <version>2.2-SNAPSHOT</version>
     <packaging>maven-plugin</packaging>
     <name>ggitflow-maven-plugin</name>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
             <version>2.5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>3.2</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>3.0.8</version>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-interactivity-api</artifactId>
             <version>1.0-alpha-5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>2.4</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-project</artifactId>
             <version>2.2.1</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-clean-plugin</artifactId>
             <version>2.5</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-install-plugin</artifactId>
             <version>2.5.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-deploy-plugin</artifactId>
             <version>2.8.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-artifact</artifactId>
             <version>2.2.1</version>
         </dependency>
         <dependency>
             <groupId>com.google.guava</groupId>
             <artifactId>guava</artifactId>
             <version>16.0.1</version>
         </dependency>
 
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-api</artifactId>
             <version>1.7.21</version>
         </dependency>
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-simple</artifactId>
             <version>1.7.21</version>
         </dependency>
 
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
     </dependencies>
 
     <build>
         <resources>
             <resource>
                 <directory>src/it</directory>
                 <includes>
                     <include>**/**</include>
                 </includes>
             </resource>
         </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>3.2</version>
                 <configuration>
                     <goalPrefix>ggitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>com.github.github</groupId>
                 <artifactId>site-maven-plugin</artifactId>
                 <version>0.9</version>
                 <configuration>
                     <message>Creating site for ${project.version}</message>
                     <server>github</server>
                     <merge>true</merge>
                 </configuration>
                 <executions>
                     <execution>
                         <goals>
                             <goal>site</goal>
                         </goals>
                         <phase>site</phase>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <reportPlugins>
                         <plugin>
                             <groupId>org.apache.maven.plugins</groupId>
                             <artifactId>maven-plugin-plugin</artifactId>
                             <version>3.2</version>
                         </plugin>
                     </reportPlugins>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/pom.xml b/pom.xml
index 580726f..4395cf5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,175 +1,175 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven</artifactId>
-    <version>2.1</version>
+    <version>2.2-SNAPSHOT</version>
     <name>ggitflow-maven</name>
     <packaging>pom</packaging>
 
     <modules>
         <module>ggitflow-maven-plugin</module>
         <module>ggitflow-maven-archetype</module>
     </modules>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
     </properties>
 
     <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
 
     <scm>
         <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
         <connection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</connection>
         <developerConnection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</developerConnection>
     </scm>
 
     <description>Maven Archetype for the Gitflow Maven Plugin</description>
     <developers>
         <developer>
             <id>dkirrane</id>
             <name>Desmond Kirrane</name>
             <email>desmond.kirrane@gmail.com</email>
         </developer>
     </developers>
     <licenses>
         <license>
             <name>Apache License Version 2.0, January 2004</name>
             <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
             <distribution>repo</distribution>
         </license>
     </licenses>
 
     <build>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <version>2.3.2</version>
                 <configuration>
                     <source>1.5</source>
                     <target>1.5</target>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 
     <profiles>
         <!-- For Release versions the Sonatype Nexus Stage rules require artifacts to be signed -->
         <!-- http://blog.sonatype.com/2010/01/how-to-generate-pgp-signatures-with-maven -->
         <!-- 1. Setup gpg, @see https://github.com/dkirrane/ggitflow/blob/develop/gradle.properties.sample -->
         <!-- 2. Run Maven deploy sign from Git terminal: mvn clean deploy -Prelease-sign-artifacts -->
         <!-- 3. Login to Nexus to release from the Stage: https://oss.sonatype.org | Login | Staging Repositories | Search for: com.dkirrane | Release -->
         <profile>
             <id>release-sign-artifacts</id>
             <activation>
                 <activeByDefault>false</activeByDefault>
             </activation>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-gpg-plugin</artifactId>
                         <version>1.6</version>
                         <executions>
                             <execution>
                                 <id>sign-artifacts</id>
                                 <phase>verify</phase>
                                 <goals>
                                     <goal>sign</goal>
                                 </goals>
                                 <configuration>
                                     <useAgent>false</useAgent>
                                 </configuration>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
             </build>
         </profile>
         <profile>
             <id>run-its</id>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-invoker-plugin</artifactId>
                         <version>1.8</version>
                         <configuration>
                             <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
                             <settingsFile>src/it/settings.xml</settingsFile>
                             <debug>true</debug>
                             <showErrors>true</showErrors>
                             <detail>true</detail>
                             <streamLogs>true</streamLogs>
                             <projectsDirectory>src/it/projects</projectsDirectory>
                             <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
                             <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
                             <addTestClassPath>true</addTestClassPath>
                             <preBuildHookScript>setup</preBuildHookScript>
                             <postBuildHookScript>verify</postBuildHookScript>
                             <pomIncludes>
                                 <pomInclude>*/pom.xml</pomInclude>
                             </pomIncludes>
                             <goals>
                                 <goal>clean</goal>
                                 <goal>test-compile</goal>
                             </goals>
                         </configuration>
                         <executions>
                             <execution>
                                 <id>integration-test</id>
                                 <goals>
                                     <goal>install</goal>
                                     <goal>integration-test</goal>
                                     <goal>verify</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
 
             </build>
         </profile>
     </profiles>
 
     <!--
         Sonatype upload details:
         http://central.sonatype.org/pages/ossrh-guide.html
         http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
         https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
         https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
         https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
 
             - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
             - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
             - Promote staged artifacts into repository 'Releases'
             - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
             - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
     -->
 
     <distributionManagement>
         <snapshotRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
         </snapshotRepository>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
         </repository>
     </distributionManagement>
     <repositories>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
             <snapshots>
                 <enabled>true</enabled>
             </snapshots>
         </repository>
     </repositories>
 </project>

commit 81c4b378687c8acd4932fa9279adbb2c6e65c44b
Merge: e8912bb 179de45
Author: dkirrane <dkirrane@avaya.com>
Date:   Fri Jul 22 18:20:01 2016 +0100

    Merge branch 'release/2.1'

commit 179de45f1cf334267373e93a0ca44172c168f335
Author: dkirrane <dkirrane@avaya.com>
Date:   Fri Jul 22 18:16:37 2016 +0100

    fix hotfix finihs set version issue

diff --git a/ggitflow-maven-archetype/pom.xml b/ggitflow-maven-archetype/pom.xml
index 2d130fc..005cd4a 100644
--- a/ggitflow-maven-archetype/pom.xml
+++ b/ggitflow-maven-archetype/pom.xml
@@ -1,45 +1,45 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
-        <version>2.1-SNAPSHOT</version>
+        <version>2.1</version>
     </parent>
 
     <groupId>com.dkirrane.maven.archetype</groupId>
     <artifactId>ggitflow-maven-archetype</artifactId>
-    <version>2.1-SNAPSHOT</version>
+    <version>2.1</version>
     <packaging>maven-archetype</packaging>
     <name>ggitflow-maven-archetype</name>
 
     <build>
         <extensions>
             <extension>
                 <groupId>org.apache.maven.archetype</groupId>
                 <artifactId>archetype-packaging</artifactId>
                 <version>2.2</version>
             </extension>
         </extensions>
 
         <pluginManagement>
             <plugins>
                 <plugin>
                     <artifactId>maven-archetype-plugin</artifactId>
                     <version>2.2</version>
                 </plugin>
             </plugins>
         </pluginManagement>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <skip>true</skip>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index 848b894..5d88eb1 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,170 +1,170 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
-        <version>2.1-SNAPSHOT</version>
+        <version>2.1</version>
     </parent>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
-    <version>2.1-SNAPSHOT</version>
+    <version>2.1</version>
     <packaging>maven-plugin</packaging>
     <name>ggitflow-maven-plugin</name>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
-            <version>2.4</version>
+            <version>2.5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>3.2</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>3.0.8</version>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-interactivity-api</artifactId>
             <version>1.0-alpha-5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>2.4</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-project</artifactId>
             <version>2.2.1</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-clean-plugin</artifactId>
             <version>2.5</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-install-plugin</artifactId>
             <version>2.5.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-deploy-plugin</artifactId>
             <version>2.8.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-artifact</artifactId>
             <version>2.2.1</version>
         </dependency>
         <dependency>
             <groupId>com.google.guava</groupId>
             <artifactId>guava</artifactId>
             <version>16.0.1</version>
         </dependency>
 
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-api</artifactId>
             <version>1.7.21</version>
         </dependency>
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-simple</artifactId>
             <version>1.7.21</version>
         </dependency>
 
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
     </dependencies>
 
     <build>
         <resources>
             <resource>
                 <directory>src/it</directory>
                 <includes>
                     <include>**/**</include>
                 </includes>
             </resource>
         </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>3.2</version>
                 <configuration>
                     <goalPrefix>ggitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>com.github.github</groupId>
                 <artifactId>site-maven-plugin</artifactId>
                 <version>0.9</version>
                 <configuration>
                     <message>Creating site for ${project.version}</message>
                     <server>github</server>
                     <merge>true</merge>
                 </configuration>
                 <executions>
                     <execution>
                         <goals>
                             <goal>site</goal>
                         </goals>
                         <phase>site</phase>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <reportPlugins>
                         <plugin>
                             <groupId>org.apache.maven.plugins</groupId>
                             <artifactId>maven-plugin-plugin</artifactId>
                             <version>3.2</version>
                         </plugin>
                     </reportPlugins>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index 90495b1..3726a78 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -83,546 +83,547 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 public class AbstractGitflowMojo extends AbstractMojo {
 
     public final Pattern matchSnapshotRegex = Pattern.compile("-SNAPSHOT");
 
     public static final ImmutableList<String> DEFAULT_INSTALL_ARGS = ImmutableList.of(
             "-DinstallAtEnd=false");
 
     public static final ImmutableList<String> DEFAULT_DEPLOY_ARGS = ImmutableList.of(
             "-DdeployAtEnd=false",
             "-DretryFailedDeploymentCount=2");
 
     public static final Splitter PROFILES_SPLITTER = Splitter.on(',').trimResults().omitEmptyStrings();
     public static final Joiner PROFILES_JOINER = Joiner.on(',').skipNulls();
 
     private static final Plugin VERSIONS_MVN_PLUGIN = plugin(
             groupId("org.codehaus.mojo"),
             artifactId("versions-maven-plugin"),
             version("2.1")
     );
 
     /**
      * Gitflow branches and prefixes to use.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
     /**
      * Message prefix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgPrefix", defaultValue = "", required = false)
     protected String msgPrefix;
 
     /**
      * Message suffix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgSuffix", defaultValue = "", required = false)
     protected String msgSuffix;
 
     /**
      * Component used to prompt for input.
      */
     @Component
     protected Prompter prompter;
 
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
     @Component
     protected ArtifactResolver artifactResolver;
 
     /**
      * @parameter default-value="${project.artifacts}"
      * @required
      * @readonly
      */
     protected Collection artifacts;
 
     /**
      * @parameter expression="${localRepository}"
      */
     protected ArtifactRepository localRepository;
 
     /**
      * @parameter expression="${project.remoteArtifactRepositories}"
      */
     protected List remoteArtifactRepositories;
 
 //    @Component
 //    protected MavenProjectBuilder projectBuilder;
 //    @Component
 //    protected DefaultProjectBuilder projectBuilder;
 //    /**
 //     * @parameter property="plugin"
 //     * @required
 //     */
 //    @Component
 //    protected PluginDescriptor pluginDescriptor;
 //
     /**
      * The projects in the reactor.
      */
     @Parameter(defaultValue = "${reactorProjects}", readonly = true, required = true)
     protected List<MavenProject> reactorProjects;
 
     /**
      * The project builder
      */
     @Component
     private ProjectBuilder projectBuilder;
 
     /**
      * The project currently being build.
      *
      * @parameter expression="${project}"
      * @required
      * @readonly
      */
     @Component
     protected MavenProject project;
 
     /**
      * The current Maven session.
      *
      * @parameter expression="${session}"
      * @required
      * @readonly
      */
     @Component
     protected MavenSession session;
 
     /**
      * The Maven BuildPluginManager component.
      *
      * @component
      * @required
      */
     @Component
     protected BuildPluginManager pluginManager;
 
 //    @Parameter(defaultValue = "${basedir}", readonly = true, required = true)
 //    protected File basedir;
 //    @Component
 //    protected Settings settings;
     private GitflowInit init;
     private Path tempDir;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     public void execute() throws MojoExecutionException, MojoFailureException {
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             getLog().debug("Gitflow pom  '" + project.getBasedir() + "'");
         }
 
         GitflowInit gitflowInit = getGitflowInit();
 
         gitflowInit.requireGitRepo();
+        gitflowInit.checkRemoteConnection();
 
         if (!gitflowInit.gitflowIsInitialized()) {
             try {
                 gitflowInit.cmdDefault();
             } catch (GitflowException ex) {
-                throw new MojoExecutionException("Failed to inintialise Gitflow " + ex.getMessage(), ex);
+                throw new MojoExecutionException("Failed to initialise Gitflow " + ex.getMessage(), ex);
             }
         }
 
         gitflowInit.requireCleanWorkingTree();
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     protected final GitflowInit getGitflowInit() {
         if (null == init) {
-            getLog().info("Initialising Gitflow");
+            getLog().debug("Initialising Gitflow");
             init = new GitflowInit();
             File basedir = getProject().getBasedir();
             getLog().debug("Setting base directory " + basedir);
             init.setRepoDir(basedir);
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
 
             /* root Git directory may not be the pom directory */
             String gitRootPath = init.executeLocal("git rev-parse --show-toplevel");
             getLog().debug("Git repo top level " + gitRootPath);
             File baseGitDir = new File(gitRootPath);
             if (baseGitDir.isDirectory()) {
                 getLog().debug("Setting git base directory " + baseGitDir);
                 init.setRepoDir(baseGitDir);
             }
 
             /* Create temp directory - delete any previous first */
             try {
                 Finder finder = new Finder(Syntax.glob, "mvn-gitflow*");
                 Files.walkFileTree(Paths.get(System.getProperty("java.io.tmpdir")), finder);
                 List<Path> paths = finder.getPaths();
                 getLog().debug("Deleting old temp directories " + paths);
                 for (Path path : paths) {
                     FileUtils.deleteDirectory(path.toFile());
                 }
                 tempDir = Files.createTempDirectory("mvn-gitflow");
             } catch (IOException ioe) {
                 getLog().error("Failed to create temp directory", ioe);
             }
         }
         return init;
     }
 
     protected final boolean setVersion(String version, Boolean push, String branch) throws MojoExecutionException, MojoFailureException {
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         MavenProject topLevelProject = session.getTopLevelProject();
         session.setCurrentProject(topLevelProject);
 
         String goal = goal("set");
         Xpp3Dom configuration = configuration(
                 element(name("generateBackupPoms"), "false"),
                 element(name("newVersion"), version)
         );
 
         String mavenCommand = getMavenCommand(VERSIONS_MVN_PLUGIN, goal);
 
         getLog().info("");
         getLog().info("--- " + mavenCommand + " " + topLevelProject.getArtifactId() + " to " + version + " (" + branch + ") ---");
         executeMyMojo(VERSIONS_MVN_PLUGIN, goal, configuration);
         getLog().info("------------------------------------------------------------------------");
 
         boolean commitMade = false;
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (push && getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change " + version + " to origin. ExitCode:" + exitCode);
                 }
             }
             commitMade = true;
         }
         /* We don't want to fail maybe the version was manually set correctly */
 //        else {
 //            throw new MojoFailureException("Failed to update poms to version " + version);
 //        }
         return commitMade;
     }
 
     protected final boolean setNextVersions(Boolean allowSnapshots, Boolean updateParent, String includes) throws MojoExecutionException, MojoFailureException {
         getLog().debug("setNextVersions");
 
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         MavenProject topLevelProject = session.getTopLevelProject();
         session.setCurrentProject(topLevelProject);
 
         if (updateParent) {
             String updateParentGoal = goal("update-parent");
             Xpp3Dom configuration = configuration(
                     element(name("generateBackupPoms"), "false"),
                     element(name("allowSnapshots"), allowSnapshots.toString())
             );
 
             String mavenCommand = getMavenCommand(VERSIONS_MVN_PLUGIN, updateParentGoal);
             getLog().info("");
             getLog().info("--- " + mavenCommand + " " + topLevelProject.getArtifactId() + " ---");
             executeMyMojo(VERSIONS_MVN_PLUGIN, updateParentGoal, configuration);
             getLog().info("------------------------------------------------------------------------");
         }
 
         if (!StringUtils.isBlank(includes)) {
             String useNextVersionsGoal = goal("use-next-versions");
             Xpp3Dom configuration = configuration(
                     element(name("generateBackupPoms"), "false"),
                     element(name("allowSnapshots"), allowSnapshots.toString()),
                     element(name("includesList"), includes)
             );
 
             String mavenCommand = getMavenCommand(VERSIONS_MVN_PLUGIN, useNextVersionsGoal);
             getLog().info("");
             getLog().info("--- " + mavenCommand + " " + topLevelProject.getArtifactId() + " ---");
             executeMyMojo(VERSIONS_MVN_PLUGIN, useNextVersionsGoal, configuration);
             getLog().info("------------------------------------------------------------------------");
         } else {
             getLog().warn("Parameter <includes> is not set. Skipping dependency updates");
         }
 
         boolean commitMade = false;
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg;
             if (allowSnapshots) {
                 msg = getMsgPrefix() + "Replaces any release versions with the next snapshot version (if it has been deployed)." + getMsgSuffix();
             } else {
                 msg = getMsgPrefix() + "Replaces snapshot versions with the corresponding release version" + getMsgSuffix();
             }
 
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change to origin. ExitCode:" + exitCode);
                 }
             }
             commitMade = true;
         }
         return commitMade;
     }
 
     protected final void executeMyMojo(Plugin plugin, String goal, Xpp3Dom configuration) throws MojoExecutionException, MojoFailureException {
         String mavenCommand = getMavenCommand(plugin, goal);
         MavenProject topLevelProject = session.getTopLevelProject();
         String projArtifactId = topLevelProject.getArtifactId();
         getLog().debug("START " + mavenCommand + " on " + projArtifactId);
         getLog().debug("configuration " + configuration.toUnescapedString());
 
         /* Maven 3.3.x log settings */
 //        session.getRequest().setLoggingLevel(MavenExecutionRequest.LOGGING_LEVEL_WARN);
 //        System.setProperty("org.slf4j.simpleLogger.defaultLogLevel", "error");
 //        System.setProperty("maven.logging.root.level", "error");
         PrintStream stdout = System.out;
         PrintStream stoutStream = null;
         Path tempStoutFile = null;
         try {
 
             /* Capture System.out */
             if (!getLog().isDebugEnabled()) {
                 try {
                     String logFileName = plugin.getArtifactId() + '-' + goal + '-';
                     tempStoutFile = Files.createTempFile(tempDir, logFileName, ".log");
                     stoutStream = new PrintStream(new FileOutputStream(tempStoutFile.toFile(), true));
                     System.setOut(stoutStream);
                 } catch (Exception ioe) {
                     getLog().warn("Failed to capture System.out", ioe);
                 }
             }
 
             /* Execute Maven plugin goal */
             executeMojo(
                     plugin,
                     goal,
                     configuration,
                     executionEnvironment(
                             session.getTopLevelProject(),
                             session,
                             pluginManager
                     )
             );
 
         } catch (MojoExecutionException mee) {
             /* Reset System.out */
             System.setOut(stdout);
             String rootCauseMessage = ExceptionUtils.getRootCauseMessage(mee);
             if (rootCauseMessage.contains("Project version is inherited from parent")) {
                 getLog().debug("Skipping " + mavenCommand + " for project " + projArtifactId + ". Project version is inherited from parent.");
             } else {
                 getLog().error("Failed to execute " + mavenCommand + " on " + projArtifactId, mee);
                 throw mee;
             }
         } finally {
             if (!getLog().isDebugEnabled()) {
                 /* Reset System.out */
                 System.setOut(stdout);
 
                 if (null != tempStoutFile) {
                     getLog().info(mavenCommand + " log " + tempStoutFile.toString());
                 }
 
                 if (null != stoutStream) {
                     try {
                         stoutStream.close();
                     } catch (Exception e) {
                     }
                 }
             }
             getLog().debug("DONE " + mavenCommand);
         }
     }
 
     private String getMavenCommand(Plugin plugin, String goal) {
         return plugin.getArtifactId() + ':' + plugin.getVersion() + ':' + goal;
     }
 
     protected final void runGoals(String goals, List<String> additionalArgs) throws MojoExecutionException, MojoFailureException {
         getLog().debug("START executing " + goals + " with args " + additionalArgs);
 
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         File basedir = rootProject.getBasedir();
 
         ReleaseResult result = new ReleaseResult();
         ReleaseEnvironment env = new DefaultReleaseEnvironment();
         env.setSettings(session.getSettings());
         MavenExecutor mavenExecutor = mavenExecutors.get(env.getMavenExecutorId());
 
         Joiner joiner = Joiner.on(" ").skipNulls();
         String additionalArguments = joiner.join(additionalArgs);
         getLog().debug("additionalArguments " + additionalArguments);
 
         try {
             mavenExecutor.executeGoals(basedir, goals, env, false, additionalArguments, result);
         } catch (MavenExecutorException ex) {
             throw new MojoExecutionException(result.getOutput(), ex);
         }
         getLog().debug("DONE executing " + goals);
     }
 
     protected final String getReleaseVersion(String version) throws MojoFailureException {
         getLog().debug("Current Develop version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
             getLog().debug("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
     protected final void checkForSnapshotDependencies() throws MojoExecutionException {
         getLog().info("Checking for SNAPSHOT dependencies");
         Boolean hasDepSnapshots = false;
         Boolean hasParentSnapshot = false;
         for (MavenProject mavenProject : reactorProjects) {
             String artifactId = mavenProject.getArtifactId();
 
             /* Check <parent> */
             Artifact parentArtifact = mavenProject.getParentArtifact();
             if (parentArtifact != null && parentArtifact.isSnapshot()) {
                 getLog().error("Parent of project " + artifactId + " is a SNAPSHOT " + parentArtifact.getId());
                 hasParentSnapshot = true;
             }
 
             /* Check <dependencyManagement> */
             DependencyManagement dependencyManagement = mavenProject.getDependencyManagement();
             if (null != dependencyManagement) {
                 if (checkForSnapshot(artifactId, dependencyManagement.getDependencies())) {
                     hasDepSnapshots = true;
                 }
             }
 
             /* Check <dependencies> */
             if (checkForSnapshot(artifactId, mavenProject.getDependencies())) {
                 hasDepSnapshots = true;
             }
         }
         if (hasParentSnapshot || hasDepSnapshots) {
             throw new MojoExecutionException("Cannot release because SNAPSHOT dependencies exist");
         }
     }
 
     private boolean checkForSnapshot(String artifactId, List<Dependency> dependencies) throws MojoExecutionException {
         Boolean hasSnapshotDependency = false;
         for (Dependency dependency : dependencies) {
             String version = dependency.getVersion();
             Matcher versionMatcher = matchSnapshotRegex.matcher(version);
             if (versionMatcher.find() && versionMatcher.end() == version.length()) {
                 getLog().error("Project " + artifactId + " contains SNAPSHOT dependency: " + dependency.getGroupId() + ":" + dependency.getArtifactId() + ":" + version);
                 hasSnapshotDependency = true;
             }
         }
         return hasSnapshotDependency;
     }
 
     protected final void reloadReactorProjects() throws MojoExecutionException {
         getLog().debug("Reloading poms...");
 
         List<MavenProject> newReactorProjects;
         try {
             newReactorProjects = buildReactorProjects();
         } catch (ProjectBuildingException e) {
             getLog().error("Re-parse aborted due to malformed pom.xml file(s)", e);
             throw new MojoExecutionException("Re-parse aborted due to malformed pom.xml file(s)", e);
         } catch (CycleDetectedException e) {
             getLog().error("Re-parse aborted due to dependency cycle in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to dependency cycle in project model", e);
         } catch (DuplicateProjectException e) {
             getLog().error("Re-parse aborted due to duplicate projects in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to duplicate projects in project model", e);
         } catch (Exception e) {
             getLog().error("Re-parse aborted due a problem that prevented sorting the project model", e);
             throw new MojoExecutionException("Re-parse aborted due a problem that prevented sorting the project model", e);
         }
         MavenProject newProject = findProject(newReactorProjects, this.project);
         if (newProject == null) {
             throw new MojoExecutionException("A pom.xml change appears to have removed " + this.project.getId() + " from the build plan.");
         }
 
         this.project = newProject;
         this.reactorProjects = newReactorProjects;
 
         getLog().debug("Reloading poms complete...");
     }
 
     private List<MavenProject> buildReactorProjects() throws Exception {
 
         List<MavenProject> projects = new ArrayList<MavenProject>();
         for (MavenProject p : reactorProjects) {
             ProjectBuildingRequest request = new DefaultProjectBuildingRequest();
 
             request.setProcessPlugins(false);
             request.setProfiles(request.getProfiles());
             request.setActiveProfileIds(session.getRequest().getActiveProfiles());
             request.setInactiveProfileIds(session.getRequest().getInactiveProfiles());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setSystemProperties(session.getSystemProperties());
             request.setUserProperties(session.getUserProperties());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setPluginArtifactRepositories(session.getRequest().getPluginArtifactRepositories());
             request.setRepositorySession(session.getRepositorySession());
             request.setLocalRepository(localRepository);
             request.setBuildStartTime(session.getRequest().getStartTime());
             request.setResolveDependencies(false);
             request.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_STRICT);
             projects.add(projectBuilder.build(p.getFile(), request).getProject());
         }
         return new ProjectSorter(projects).getSortedProjects();
     }
 
     private MavenProject findProject(List<MavenProject> newReactorProjects, MavenProject oldProject) {
         for (MavenProject newProject : newReactorProjects) {
             if (oldProject.getGroupId().equals(newProject.getGroupId())
                     && oldProject.getArtifactId().equals(newProject.getArtifactId())) {
                 return newProject;
             }
         }
         return null;
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
index 8a9798b..268c25f 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
@@ -31,258 +31,264 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  * Merges a hotfix branch back into the develop and master branch and then
  * creates a tag for the hotfix on master.
  */
 @Mojo(name = "hotfix-finish", aggregator = true)
 public class HotfixFinishMojo extends AbstractHotfixMojo {
 
     protected String hotfixName;
 
     /**
      * If <code>true</code>, the hotfix finish merge to develop & master and
      * created tag will get pushed to the remote repository
      *
      * @since 1.6
      */
     @Parameter(property = "pushHotfixFinish", defaultValue = "false", required = false)
     protected boolean pushHotfixFinish;
 
     /**
      * If <code>true</code>, the hotfix can still finish even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private boolean allowSnapshots;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "true", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any calls to <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipDeploy", defaultValue = "true", required = false)
     private Boolean skipDeploy;
 
     /**
      * Skips any tests during <code>mvn install</code> and
      * <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipTests", defaultValue = "true", required = false)
     private Boolean skipTests;
 
     /**
      * Whether to use the release profile that adds sources and javadoc to the
      * released artifact, if appropriate. If set to true, the hotfix-finish will
      * set the property "performRelease" to true, which activates the profile
      * "release-profile", which is inherited from the super pom.
      *
      * @since 1.2
      */
     @Parameter(property = "useReleaseProfile", defaultValue = "true", required = false)
     private Boolean useReleaseProfile;
 
     /**
      * Comma separated profiles to enable on deployment, in addition to active
      * profiles for project execution.
      *
      * @since 1.2
      */
     @Parameter(property = "releaseProfiles", defaultValue = "", required = false)
     private String releaseProfiles;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the hotfix feature branch will not be deleted after
      * the merge.
      *
      * @since 1.6
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keepLocal;
 
     /**
      * If <code>true</code>, the hotfix feature branch will not be deleted after
      * the merge.
      *
      * @since 1.6
      */
     @Parameter(property = "keep", defaultValue = "true", required = false)
     private Boolean keepRemote;
 
     /**
      * If <code>true</code>, the hotfix tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().debug("Finishing hotfix");
 
         /* Get hotfix branch name */
         List<String> hotfixBranches = getGitflowInit().gitLocalHotfixBranches();
         if (hotfixBranches.isEmpty()) {
             throw new MojoFailureException("Could not find hotfix branch!");
         } else if (hotfixBranches.size() == 1) {
             hotfixName = hotfixBranches.get(0);
         } else {
             hotfixName = promptForExistingHotfixName(hotfixBranches, hotfixName);
         }
 
         getLog().info("Finishing hotfix '" + hotfixName + "'");
 
         /* Switch to develop branch and get its current version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         getLog().debug("develop version = " + developVersion);
 
         /* Switch to hotfix branch and set poms to hotfix version */
         getGitflowInit().executeLocal("git checkout " + hotfixName);
         reloadReactorProjects();
         String hotfixVersion = project.getVersion();
         getLog().debug("hotfix snapshot version = " + hotfixVersion);
         String hotfixReleaseVersion = getReleaseVersion(hotfixVersion);
         getLog().debug("hotfix release version = " + hotfixReleaseVersion);
 
         boolean setVersion = setVersion(hotfixReleaseVersion, pushHotfixFinish, hotfixName);
 
         if (!allowSnapshots) {
             reloadReactorProjects();
             try {
                 checkForSnapshotDependencies();
             } catch (MojoExecutionException mee) {
                 // reset setVersion commit and allow user fix & push SNAPSHOT dependencies
                 // but can only reset if the commit has not been pushed */
                 if (!pushHotfixFinish && setVersion) {
                     getGitflowInit().executeLocal("git reset --hard HEAD~1");
                 }
                 throw mee;
             }
         }
 
         /* finish hotfix */
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
         gitflowHotfix.setPush(pushHotfixBranch);
         gitflowHotfix.setSquash(squash);
         gitflowHotfix.setKeepLocal(keepLocal);
         gitflowHotfix.setKeepRemote(keepRemote);
         gitflowHotfix.setSign(sign);
         gitflowHotfix.setSigningkey(signingkey);
 
         /* 1. merge to master */
         try {
             gitflowHotfix.finishToMaster(hotfixName, pushHotfixFinish);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
 
         /* 2. make versions in hotfix and develop branches match to avoid conflicts */
         getGitflowInit().executeLocal("git checkout " + hotfixName);
         reloadReactorProjects();
-        setVersion(developVersion, pushHotfixFinish, hotfixName);
+        boolean setDevVersion = setVersion(developVersion, pushHotfixFinish, hotfixName);
 
         /* 3. merge to develop */
         try {
             gitflowHotfix.finishToDevelop(hotfixName, pushHotfixFinish);
         } catch (GitflowException ge) {
+            // reset setVersion commit and allow user fix whatever exception occurred
+            // but can only reset if the commit has not been pushed */
+            if (!pushHotfixFinish && setDevVersion) {
+                getGitflowInit().executeLocal("git reset --hard HEAD~1");
+            }
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
+            // If a merge conflict arises we don't want to reset setDevVersion commit
             throw new MojoFailureException(gmce.getMessage());
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
         /* Switch to hotfix tag and deploy it */
-        getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + hotfixReleaseVersion);
+        getGitflowInit().executeLocal("git checkout " + hotfixName);
         reloadReactorProjects();
         String tagVersion = project.getVersion();
         getLog().debug("tag version = " + tagVersion);
 
         /* install or deploy */
         if (skipDeploy == false) {
             String goals = "clean deploy";
             if (project.getDistributionManagement() != null
                     && project.getDistributionManagement().getSite() != null) {
                 goals += " site-deploy";
             }
 
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             if (useReleaseProfile) {
                 additionalArgs.add("-DperformRelease=true");
             }
             if (StringUtils.isNotBlank(releaseProfiles)) {
                 Iterable<String> profiles = PROFILES_SPLITTER.split(releaseProfiles);
                 additionalArgs.add("-P " + PROFILES_JOINER.join(profiles));
             }
             runGoals(goals, additionalArgs.build());
         } else if (skipBuild == false) {
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             runGoals("clean install", additionalArgs.build());
         } else {
             getLog().debug("Skipping both install and deploy for hotfix tag " + hotfixName);
         }
 
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingHotfixName(List<String> hotfixBranches, String defaultHotfixName) throws MojoFailureException {
         String message = "Please select a hotfix branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, hotfixBranches, defaultHotfixName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading hotfix name from command line " + e.getMessage());
         }
 
         return name;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index ef16670..4df5327 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -33,319 +33,324 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  * Merges a release branch back into the develop and master branch and then
  * creates a tag for the release on master.
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
 
     /**
      * If <code>true</code>, the release finish merge to develop & master and
      * the created tag will get pushed to the remote repository
      *
      * @since 1.6
      */
     @Parameter(property = "pushReleaseFinish", defaultValue = "false", required = false)
     protected boolean pushReleaseFinish;
 
     /**
      * If <code>true</code>, the release can still finish even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private Boolean allowSnapshots;
 
     /**
      * If the project has a parent with a release version it will be replaced
      * with the next <code>-SNAPSHOT</code> version (if it has been deployed).
      * This action is performed on the develop branch after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "updateParent", defaultValue = "false", required = false)
     private Boolean updateParent;
 
     /**
      * On the release branch before finish is called any dependencies with a
      * <code>-SNAPSHOT</code> version are replaced with the corresponding
      * release version (if it has been released).
      *
      * On the develop branch after the merge any dependencies with a release
      * version are replaced with the next <code>-SNAPSHOT</code> version (if it
      * has been deployed).
      *
      * @since 1.2
      */
     @Parameter(property = "updateDependencies", defaultValue = "false", required = false)
     private Boolean updateDependencies;
 
     /**
      * If <code>updateDependencies</code> is set, then this should contain a
      * comma separated list of artifact patterns to include. Follows the pattern <code>groupId:artifactId:type:classifier:version<code>
      *
      * @since 1.5
      */
     @Parameter(property = "includes", defaultValue = "", required = false)
     private String includes;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "true", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any calls to <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipDeploy", defaultValue = "true", required = false)
     private Boolean skipDeploy;
 
     /**
      * Skips any tests during <code>mvn install</code> and
      * <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipTests", defaultValue = "true", required = false)
     private Boolean skipTests;
 
     /**
      * Whether to use the release profile that adds sources and javadoc to the
      * released artifact, if appropriate. If set to true, the release-finish
      * will set the property "performRelease" to true, which activates the
      * profile "release-profile", which is inherited from the super pom.
      *
      * @since 1.2
      */
     @Parameter(property = "useReleaseProfile", defaultValue = "true", required = false)
     private Boolean useReleaseProfile;
 
     /**
      * Comma separated profiles to enable on deployment, in addition to active
      * profiles for project execution.
      *
      * @since 1.2
      */
     @Parameter(property = "releaseProfiles", defaultValue = "", required = false)
     private String releaseProfiles;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the local release branch will not be deleted after
      * the merge.
      *
      * @since 1.6
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keepLocal;
 
     /**
      * If <code>true</code>, the remote release branch will not be deleted after
      * the merge.
      *
      * @since 1.6
      */
     @Parameter(property = "keep", defaultValue = "true", required = false)
     private Boolean keepRemote;
 
     /**
      * If <code>true</code>, the release tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().debug("Finishing release");
 
         /* Get release branch name */
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
         if (releaseBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         } else if (releaseBranches.size() == 1) {
             releaseName = releaseBranches.get(0);
         } else {
             releaseName = promptForExistingReleaseName(releaseBranches, releaseName);
         }
 
         getLog().info("Finishing release '" + releaseName + "'");
 
         /* Switch to develop branch and get its current version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         getLog().debug("develop version = " + developVersion);
 
         /* Switch to release branch and set poms to release version */
         getGitflowInit().executeLocal("git checkout " + releaseName);
         reloadReactorProjects();
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(project.getVersion());
         String releaseVersion;
         if ("SNAPSHOT".equals(artifactVersion.getBuildSpecifier())) {
             releaseVersion = getReleaseVersion(project.getVersion());
         } else {
             releaseVersion = project.getVersion();
         }
         getLog().debug("release version = " + releaseVersion);
 
         boolean setVersion = setVersion(releaseVersion, pushReleaseFinish, releaseName);
 
         /* Update release branch dependencies to release version */
         boolean setNextVersions = false;
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions = setNextVersions(false, updateParent, includes);
         }
 
         if (!allowSnapshots) {
             reloadReactorProjects();
             try {
                 checkForSnapshotDependencies();
             } catch (MojoExecutionException mee) {
                 // reset setNextVersions and/or setVersion commits to allow user fix & push SNAPSHOT dependencies
                 // but can only reset if it the commits have not been pushed */
                 if (!pushReleaseFinish) {
                     if (setNextVersions) {
                         getGitflowInit().executeLocal("git reset --hard HEAD~1");
                     }
                     if (setVersion) {
                         getGitflowInit().executeLocal("git reset --hard HEAD~1");
                     }
                 }
                 throw mee;
             }
         }
 
         /* finish release */
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setPush(pushReleaseBranch);
         gitflowRelease.setSquash(squash);
         gitflowRelease.setKeepLocal(keepLocal);
         gitflowRelease.setKeepRemote(keepRemote);
         gitflowRelease.setSign(sign);
         gitflowRelease.setSigningkey(signingkey);
 
         /* 1. merge to master */
         try {
             gitflowRelease.finishToMaster(releaseName, pushReleaseFinish);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
 
         /* 2. make versions in release and develop branches match to avoid conflicts */
         getGitflowInit().executeLocal("git checkout " + releaseName);
         reloadReactorProjects();
-        setVersion(developVersion, pushReleaseFinish, releaseName);
+        boolean setDevVersion = setVersion(developVersion, pushReleaseFinish, releaseName);
 
         /* 3. merge to develop */
         try {
             gitflowRelease.finishToDevelop(releaseName, pushReleaseFinish);
         } catch (GitflowException ge) {
+            // reset setVersion commit and allow user fix whatever exception occurred
+            // but can only reset if the commit has not been pushed */
+            if (!pushReleaseFinish && setDevVersion) {
+                getGitflowInit().executeLocal("git reset --hard HEAD~1");
+            }            
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
         /* Update develop branch dependencies to next snapshot version (if deployed) */
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions(true, updateParent, includes);
         }
 
         /* Switch to release tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);
         reloadReactorProjects();
         String tagVersion = project.getVersion();
         getLog().debug("tag version = " + tagVersion);
 
         /* install or deploy */
         if (skipDeploy == false) {
             String goals = "clean deploy";
             if (project.getDistributionManagement() != null
                     && project.getDistributionManagement().getSite() != null) {
                 goals += " site-deploy";
             }
 
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             if (useReleaseProfile) {
                 additionalArgs.add("-DperformRelease=true");
             }
             if (StringUtils.isNotBlank(releaseProfiles)) {
                 Iterable<String> profiles = PROFILES_SPLITTER.split(releaseProfiles);
                 additionalArgs.add("-P " + PROFILES_JOINER.join(profiles));
             }
             runGoals(goals, additionalArgs.build());
         } else if (skipBuild == false) {
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             runGoals("clean install", additionalArgs.build());
         } else {
             getLog().debug("Skipping both install and deploy for release tag " + releaseName);
         }
 
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingReleaseName(List<String> releaseBranches, String defaultReleaseName) throws MojoFailureException {
         String message = "Please select a release branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, releaseBranches, defaultReleaseName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading release name from command line " + e.getMessage());
         }
 
         return name;
     }
 }
diff --git a/pom.xml b/pom.xml
index 743ac93..580726f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,175 +1,175 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven</artifactId>
-    <version>2.1-SNAPSHOT</version>
+    <version>2.1</version>
     <name>ggitflow-maven</name>
     <packaging>pom</packaging>
 
     <modules>
         <module>ggitflow-maven-plugin</module>
         <module>ggitflow-maven-archetype</module>
     </modules>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
     </properties>
 
     <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
 
     <scm>
         <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
         <connection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</connection>
         <developerConnection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</developerConnection>
     </scm>
 
     <description>Maven Archetype for the Gitflow Maven Plugin</description>
     <developers>
         <developer>
             <id>dkirrane</id>
             <name>Desmond Kirrane</name>
             <email>desmond.kirrane@gmail.com</email>
         </developer>
     </developers>
     <licenses>
         <license>
             <name>Apache License Version 2.0, January 2004</name>
             <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
             <distribution>repo</distribution>
         </license>
     </licenses>
 
     <build>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <version>2.3.2</version>
                 <configuration>
                     <source>1.5</source>
                     <target>1.5</target>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 
     <profiles>
         <!-- For Release versions the Sonatype Nexus Stage rules require artifacts to be signed -->
         <!-- http://blog.sonatype.com/2010/01/how-to-generate-pgp-signatures-with-maven -->
         <!-- 1. Setup gpg, @see https://github.com/dkirrane/ggitflow/blob/develop/gradle.properties.sample -->
         <!-- 2. Run Maven deploy sign from Git terminal: mvn clean deploy -Prelease-sign-artifacts -->
         <!-- 3. Login to Nexus to release from the Stage: https://oss.sonatype.org | Login | Staging Repositories | Search for: com.dkirrane | Release -->
         <profile>
             <id>release-sign-artifacts</id>
             <activation>
                 <activeByDefault>false</activeByDefault>
             </activation>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-gpg-plugin</artifactId>
                         <version>1.6</version>
                         <executions>
                             <execution>
                                 <id>sign-artifacts</id>
                                 <phase>verify</phase>
                                 <goals>
                                     <goal>sign</goal>
                                 </goals>
                                 <configuration>
                                     <useAgent>false</useAgent>
                                 </configuration>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
             </build>
         </profile>
         <profile>
             <id>run-its</id>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-invoker-plugin</artifactId>
                         <version>1.8</version>
                         <configuration>
                             <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
                             <settingsFile>src/it/settings.xml</settingsFile>
                             <debug>true</debug>
                             <showErrors>true</showErrors>
                             <detail>true</detail>
                             <streamLogs>true</streamLogs>
                             <projectsDirectory>src/it/projects</projectsDirectory>
                             <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
                             <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
                             <addTestClassPath>true</addTestClassPath>
                             <preBuildHookScript>setup</preBuildHookScript>
                             <postBuildHookScript>verify</postBuildHookScript>
                             <pomIncludes>
                                 <pomInclude>*/pom.xml</pomInclude>
                             </pomIncludes>
                             <goals>
                                 <goal>clean</goal>
                                 <goal>test-compile</goal>
                             </goals>
                         </configuration>
                         <executions>
                             <execution>
                                 <id>integration-test</id>
                                 <goals>
                                     <goal>install</goal>
                                     <goal>integration-test</goal>
                                     <goal>verify</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
 
             </build>
         </profile>
     </profiles>
 
     <!--
         Sonatype upload details:
         http://central.sonatype.org/pages/ossrh-guide.html
         http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
         https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
         https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
         https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
 
             - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
             - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
             - Promote staged artifacts into repository 'Releases'
             - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
             - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
     -->
 
     <distributionManagement>
         <snapshotRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
         </snapshotRepository>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
         </repository>
     </distributionManagement>
     <repositories>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
             <snapshots>
                 <enabled>true</enabled>
             </snapshots>
         </repository>
     </repositories>
 </project>

commit f6b3fe7ebf4b6dd9e57994715fa05d2f722f2bae
Author: dkirrane <dkirrane@avaya.com>
Date:   Tue Jul 19 18:02:48 2016 +0100

    Pump to next dev version 2.1-SNAPSHOT

diff --git a/ggitflow-maven-archetype/pom.xml b/ggitflow-maven-archetype/pom.xml
index 3e7c568..2d130fc 100644
--- a/ggitflow-maven-archetype/pom.xml
+++ b/ggitflow-maven-archetype/pom.xml
@@ -1,45 +1,45 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
-        <version>2.0</version>
+        <version>2.1-SNAPSHOT</version>
     </parent>
 
     <groupId>com.dkirrane.maven.archetype</groupId>
     <artifactId>ggitflow-maven-archetype</artifactId>
-    <version>2.0</version>
+    <version>2.1-SNAPSHOT</version>
     <packaging>maven-archetype</packaging>
     <name>ggitflow-maven-archetype</name>
 
     <build>
         <extensions>
             <extension>
                 <groupId>org.apache.maven.archetype</groupId>
                 <artifactId>archetype-packaging</artifactId>
                 <version>2.2</version>
             </extension>
         </extensions>
 
         <pluginManagement>
             <plugins>
                 <plugin>
                     <artifactId>maven-archetype-plugin</artifactId>
                     <version>2.2</version>
                 </plugin>
             </plugins>
         </pluginManagement>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <skip>true</skip>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index 75025e0..848b894 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,170 +1,170 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
-        <version>2.0</version>
+        <version>2.1-SNAPSHOT</version>
     </parent>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
-    <version>2.0</version>
+    <version>2.1-SNAPSHOT</version>
     <packaging>maven-plugin</packaging>
     <name>ggitflow-maven-plugin</name>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
             <version>2.4</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>3.2</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>3.0.8</version>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-interactivity-api</artifactId>
             <version>1.0-alpha-5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>2.4</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-project</artifactId>
             <version>2.2.1</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-clean-plugin</artifactId>
             <version>2.5</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-install-plugin</artifactId>
             <version>2.5.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-deploy-plugin</artifactId>
             <version>2.8.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-artifact</artifactId>
             <version>2.2.1</version>
         </dependency>
         <dependency>
             <groupId>com.google.guava</groupId>
             <artifactId>guava</artifactId>
             <version>16.0.1</version>
         </dependency>
 
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-api</artifactId>
             <version>1.7.21</version>
         </dependency>
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-simple</artifactId>
             <version>1.7.21</version>
         </dependency>
 
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
     </dependencies>
 
     <build>
         <resources>
             <resource>
                 <directory>src/it</directory>
                 <includes>
                     <include>**/**</include>
                 </includes>
             </resource>
         </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>3.2</version>
                 <configuration>
                     <goalPrefix>ggitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>com.github.github</groupId>
                 <artifactId>site-maven-plugin</artifactId>
                 <version>0.9</version>
                 <configuration>
                     <message>Creating site for ${project.version}</message>
                     <server>github</server>
                     <merge>true</merge>
                 </configuration>
                 <executions>
                     <execution>
                         <goals>
                             <goal>site</goal>
                         </goals>
                         <phase>site</phase>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <reportPlugins>
                         <plugin>
                             <groupId>org.apache.maven.plugins</groupId>
                             <artifactId>maven-plugin-plugin</artifactId>
                             <version>3.2</version>
                         </plugin>
                     </reportPlugins>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/pom.xml b/pom.xml
index 169d829..743ac93 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,175 +1,175 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven</artifactId>
-    <version>2.0</version>
+    <version>2.1-SNAPSHOT</version>
     <name>ggitflow-maven</name>
     <packaging>pom</packaging>
 
     <modules>
         <module>ggitflow-maven-plugin</module>
         <module>ggitflow-maven-archetype</module>
     </modules>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
     </properties>
 
     <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
 
     <scm>
         <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
         <connection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</connection>
         <developerConnection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</developerConnection>
     </scm>
 
     <description>Maven Archetype for the Gitflow Maven Plugin</description>
     <developers>
         <developer>
             <id>dkirrane</id>
             <name>Desmond Kirrane</name>
             <email>desmond.kirrane@gmail.com</email>
         </developer>
     </developers>
     <licenses>
         <license>
             <name>Apache License Version 2.0, January 2004</name>
             <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
             <distribution>repo</distribution>
         </license>
     </licenses>
 
     <build>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <version>2.3.2</version>
                 <configuration>
                     <source>1.5</source>
                     <target>1.5</target>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 
     <profiles>
         <!-- For Release versions the Sonatype Nexus Stage rules require artifacts to be signed -->
         <!-- http://blog.sonatype.com/2010/01/how-to-generate-pgp-signatures-with-maven -->
         <!-- 1. Setup gpg, @see https://github.com/dkirrane/ggitflow/blob/develop/gradle.properties.sample -->
         <!-- 2. Run Maven deploy sign from Git terminal: mvn clean deploy -Prelease-sign-artifacts -->
         <!-- 3. Login to Nexus to release from the Stage: https://oss.sonatype.org | Login | Staging Repositories | Search for: com.dkirrane | Release -->
         <profile>
             <id>release-sign-artifacts</id>
             <activation>
                 <activeByDefault>false</activeByDefault>
             </activation>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-gpg-plugin</artifactId>
                         <version>1.6</version>
                         <executions>
                             <execution>
                                 <id>sign-artifacts</id>
                                 <phase>verify</phase>
                                 <goals>
                                     <goal>sign</goal>
                                 </goals>
                                 <configuration>
                                     <useAgent>false</useAgent>
                                 </configuration>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
             </build>
         </profile>
         <profile>
             <id>run-its</id>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-invoker-plugin</artifactId>
                         <version>1.8</version>
                         <configuration>
                             <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
                             <settingsFile>src/it/settings.xml</settingsFile>
                             <debug>true</debug>
                             <showErrors>true</showErrors>
                             <detail>true</detail>
                             <streamLogs>true</streamLogs>
                             <projectsDirectory>src/it/projects</projectsDirectory>
                             <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
                             <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
                             <addTestClassPath>true</addTestClassPath>
                             <preBuildHookScript>setup</preBuildHookScript>
                             <postBuildHookScript>verify</postBuildHookScript>
                             <pomIncludes>
                                 <pomInclude>*/pom.xml</pomInclude>
                             </pomIncludes>
                             <goals>
                                 <goal>clean</goal>
                                 <goal>test-compile</goal>
                             </goals>
                         </configuration>
                         <executions>
                             <execution>
                                 <id>integration-test</id>
                                 <goals>
                                     <goal>install</goal>
                                     <goal>integration-test</goal>
                                     <goal>verify</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
 
             </build>
         </profile>
     </profiles>
 
     <!--
         Sonatype upload details:
         http://central.sonatype.org/pages/ossrh-guide.html
         http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
         https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
         https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
         https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
 
             - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
             - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
             - Promote staged artifacts into repository 'Releases'
             - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
             - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
     -->
 
     <distributionManagement>
         <snapshotRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
         </snapshotRepository>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
         </repository>
     </distributionManagement>
     <repositories>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
             <snapshots>
                 <enabled>true</enabled>
             </snapshots>
         </repository>
     </repositories>
 </project>

commit e8912bb6175ce1e9da41224f58f557517dce4293
Merge: 274b018 62b8ae8
Author: dkirrane <dkirrane@avaya.com>
Date:   Tue Jul 19 17:59:45 2016 +0100

    Merge branch 'release/2.0'

commit 62b8ae81d6fd4df3c3b9fde6d02e60895097416b
Author: dkirrane <dkirrane@avaya.com>
Date:   Tue Jul 19 17:58:58 2016 +0100

    fix support versions

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
index 14d3775..09b86a7 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
@@ -30,124 +30,124 @@ import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
 /**
  * Creates a new support branch from a specific commit on the master branch.
  */
 @Mojo(name = "support-start", aggregator = true)
 public class SupportStartMojo extends AbstractGitflowMojo {
 
     /**
      * If <code>true</code>, the support branch is pushed to the remote
      * repository.
      *
      * @since 1.2
      */
     @Parameter(property = "pushSupportBranch", defaultValue = "true", required = false)
     protected boolean pushSupportBranch;
 
     /**
      * The commit to start the support branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     protected String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         String prefix = getGitflowInit().getSupportBranchPrefix();
 
         List<String> tags = getGitflowInit().gitAllTags();
         if (tags.isEmpty()) {
             throw new MojoFailureException("Could not find any tags to create support branch from!");
         }
 
         String baseName = promptForExistingTagName(tags, tags.get(tags.size() - 1));
 
         getGitflowInit().executeLocal("git checkout " + baseName);
         reloadReactorProjects();
         String supportVersion = getSupportVersion(project.getVersion());
         String supportSnapshotVersion = getSupportSnapshotVersion(project.getVersion());
 
         getLog().info("Starting support branch '" + supportVersion + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowSupport gitflowSupport = new GitflowSupport();
         gitflowSupport.setInit(getGitflowInit());
         gitflowSupport.setMsgPrefix(getMsgPrefix());
         gitflowSupport.setMsgSuffix(getMsgSuffix());
         gitflowSupport.setPush(pushSupportBranch);
         gitflowSupport.setStartCommit(startCommit);
 
         try {
             gitflowSupport.start(supportVersion);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         setVersion(supportSnapshotVersion, pushSupportBranch, prefix + supportVersion);
 
         if (getGitflowInit().gitRemoteBranchExists(prefix + supportVersion)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + supportVersion);
         }
     }
 
     private String promptForExistingTagName(List<String> branches, String defaultBrnName) throws MojoFailureException {
         String message = "Create a support branch from tag:";
 
         String name = "";
         try {
             name = prompter.prompt(message, branches, defaultBrnName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading selected Tag name from command line " + e.getMessage());
         }
 
         return name;
     }
 
     private String getSupportVersion(String currentVersion) throws MojoFailureException {
         getLog().debug("getSupportVersion from '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         StringBuilder sb = new StringBuilder(10);
         int pCount = artifactVersion.getPrimaryNumberCount();
         if (pCount < 3) {
-            // Support versions should be like 1.0.x e.g. 1.0.1, 1.0.2 etc
-            sb.append(artifactVersion.getPrimaryNumbersAsString()).append('.').append('x');
+            // Support versions should be like 1.0-xx e.g. 1.0-01, 1.0-02 etc
+            sb.append(artifactVersion.getPrimaryNumbersAsString()).append('-').append("xx");
             sb.append(artifactVersion.getAnnotationAsString()).append(artifactVersion.getBuildSpecifierAsString());
         } else {
-            // Support versions should be like 1.0.0-xx e.g. 1.0.0-01, 1.0.0-02 etc
+            // Support versions should be like 1.0.1-xx e.g. 1.0.1-01, 1.0.1-02 etc
             if (null != artifactVersion.getAnnotation()) {
                 throw new MojoFailureException("Cannot start Support branch. Primary number " + artifactVersion.getPrimaryNumbersAsString() + " and annotations are already set " + artifactVersion.getAnnotation());
             }
             sb.append(artifactVersion.getPrimaryNumbersAsString()).append('-').append("xx");
         }
 
         return sb.toString();
     }
 
     private String getSupportSnapshotVersion(String currentVersion) throws MojoFailureException {
         getLog().debug("getSupportSnapshotVersion from '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         StringBuilder sb = new StringBuilder(10);
         int pCount = artifactVersion.getPrimaryNumberCount();
         if (pCount < 3) {
             // Support versions should be like 1.0-xx e.g. 1.0-01, 1.0-02 etc
             sb.append(artifactVersion.getPrimaryNumbersAsString()).append('-').append("01");
             sb.append(artifactVersion.getAnnotationAsString());
         } else {
-            // Support versions should be like 1.0.0-xx e.g. 1.0.0-01, 1.0.0-02 etc
+            // Support versions should be like 1.0.1-xx e.g. 1.0.1-01, 1.0.1-02 etc
             if (null != artifactVersion.getAnnotation()) {
                 throw new MojoFailureException("Cannot start Support branch. Primary number " + artifactVersion.getPrimaryNumbersAsString() + " and annotations are already set " + artifactVersion.getAnnotation());
             }
             sb.append(artifactVersion.getPrimaryNumbersAsString()).append('-').append("01");
         }
 
         sb.append(DEFAULT_VERSION_COMPONENT_SEPARATOR).append(SNAPSHOT_QUALIFIER);
 
         return sb.toString();
     }
 }

commit 98768ae42c1cd6883c96a435d885b73acd1ecfe5
Author: dkirrane <dkirrane@avaya.com>
Date:   Tue Jul 19 17:49:17 2016 +0100

    change support version when only major minor set

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
index e8423b2..14d3775 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
@@ -30,124 +30,124 @@ import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
 /**
  * Creates a new support branch from a specific commit on the master branch.
  */
 @Mojo(name = "support-start", aggregator = true)
 public class SupportStartMojo extends AbstractGitflowMojo {
 
     /**
      * If <code>true</code>, the support branch is pushed to the remote
      * repository.
      *
      * @since 1.2
      */
     @Parameter(property = "pushSupportBranch", defaultValue = "true", required = false)
     protected boolean pushSupportBranch;
 
     /**
      * The commit to start the support branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     protected String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         String prefix = getGitflowInit().getSupportBranchPrefix();
 
         List<String> tags = getGitflowInit().gitAllTags();
         if (tags.isEmpty()) {
             throw new MojoFailureException("Could not find any tags to create support branch from!");
         }
 
         String baseName = promptForExistingTagName(tags, tags.get(tags.size() - 1));
 
         getGitflowInit().executeLocal("git checkout " + baseName);
         reloadReactorProjects();
         String supportVersion = getSupportVersion(project.getVersion());
         String supportSnapshotVersion = getSupportSnapshotVersion(project.getVersion());
 
         getLog().info("Starting support branch '" + supportVersion + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowSupport gitflowSupport = new GitflowSupport();
         gitflowSupport.setInit(getGitflowInit());
         gitflowSupport.setMsgPrefix(getMsgPrefix());
         gitflowSupport.setMsgSuffix(getMsgSuffix());
         gitflowSupport.setPush(pushSupportBranch);
         gitflowSupport.setStartCommit(startCommit);
 
         try {
             gitflowSupport.start(supportVersion);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         setVersion(supportSnapshotVersion, pushSupportBranch, prefix + supportVersion);
 
         if (getGitflowInit().gitRemoteBranchExists(prefix + supportVersion)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + supportVersion);
         }
     }
 
     private String promptForExistingTagName(List<String> branches, String defaultBrnName) throws MojoFailureException {
         String message = "Create a support branch from tag:";
 
         String name = "";
         try {
             name = prompter.prompt(message, branches, defaultBrnName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading selected Tag name from command line " + e.getMessage());
         }
 
         return name;
     }
 
     private String getSupportVersion(String currentVersion) throws MojoFailureException {
         getLog().debug("getSupportVersion from '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         StringBuilder sb = new StringBuilder(10);
         int pCount = artifactVersion.getPrimaryNumberCount();
         if (pCount < 3) {
             // Support versions should be like 1.0.x e.g. 1.0.1, 1.0.2 etc
             sb.append(artifactVersion.getPrimaryNumbersAsString()).append('.').append('x');
             sb.append(artifactVersion.getAnnotationAsString()).append(artifactVersion.getBuildSpecifierAsString());
         } else {
             // Support versions should be like 1.0.0-xx e.g. 1.0.0-01, 1.0.0-02 etc
             if (null != artifactVersion.getAnnotation()) {
                 throw new MojoFailureException("Cannot start Support branch. Primary number " + artifactVersion.getPrimaryNumbersAsString() + " and annotations are already set " + artifactVersion.getAnnotation());
             }
             sb.append(artifactVersion.getPrimaryNumbersAsString()).append('-').append("xx");
         }
 
         return sb.toString();
     }
 
     private String getSupportSnapshotVersion(String currentVersion) throws MojoFailureException {
         getLog().debug("getSupportSnapshotVersion from '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         StringBuilder sb = new StringBuilder(10);
         int pCount = artifactVersion.getPrimaryNumberCount();
         if (pCount < 3) {
-            // Support versions should be like 1.0.x e.g. 1.0.1, 1.0.2 etc
-            sb.append(artifactVersion.getPrimaryNumbersAsString()).append('.').append('1');
+            // Support versions should be like 1.0-xx e.g. 1.0-01, 1.0-02 etc
+            sb.append(artifactVersion.getPrimaryNumbersAsString()).append('-').append("01");
             sb.append(artifactVersion.getAnnotationAsString());
         } else {
             // Support versions should be like 1.0.0-xx e.g. 1.0.0-01, 1.0.0-02 etc
             if (null != artifactVersion.getAnnotation()) {
                 throw new MojoFailureException("Cannot start Support branch. Primary number " + artifactVersion.getPrimaryNumbersAsString() + " and annotations are already set " + artifactVersion.getAnnotation());
             }
             sb.append(artifactVersion.getPrimaryNumbersAsString()).append('-').append("01");
         }
 
         sb.append(DEFAULT_VERSION_COMPONENT_SEPARATOR).append(SNAPSHOT_QUALIFIER);
 
         return sb.toString();
     }
 }

commit fed7ef1610fd21a927d0d480b621ffcb522b02f5
Author: dkirrane <dkirrane@avaya.com>
Date:   Tue Jul 19 17:45:34 2016 +0100

    2.0

diff --git a/ggitflow-maven-archetype/pom.xml b/ggitflow-maven-archetype/pom.xml
index 504dd36..3e7c568 100644
--- a/ggitflow-maven-archetype/pom.xml
+++ b/ggitflow-maven-archetype/pom.xml
@@ -1,45 +1,45 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
-        <version>1.9</version>
+        <version>2.0</version>
     </parent>
 
     <groupId>com.dkirrane.maven.archetype</groupId>
     <artifactId>ggitflow-maven-archetype</artifactId>
-    <version>1.9</version>
+    <version>2.0</version>
     <packaging>maven-archetype</packaging>
     <name>ggitflow-maven-archetype</name>
 
     <build>
         <extensions>
             <extension>
                 <groupId>org.apache.maven.archetype</groupId>
                 <artifactId>archetype-packaging</artifactId>
                 <version>2.2</version>
             </extension>
         </extensions>
 
         <pluginManagement>
             <plugins>
                 <plugin>
                     <artifactId>maven-archetype-plugin</artifactId>
                     <version>2.2</version>
                 </plugin>
             </plugins>
         </pluginManagement>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <skip>true</skip>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index 799bfe5..75025e0 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,170 +1,170 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
-        <version>1.9</version>
+        <version>2.0</version>
     </parent>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
-    <version>1.9</version>
+    <version>2.0</version>
     <packaging>maven-plugin</packaging>
     <name>ggitflow-maven-plugin</name>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
-            <version>2.3</version>
+            <version>2.4</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>3.2</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>3.0.8</version>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-interactivity-api</artifactId>
             <version>1.0-alpha-5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>2.4</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-project</artifactId>
             <version>2.2.1</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-clean-plugin</artifactId>
             <version>2.5</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-install-plugin</artifactId>
             <version>2.5.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-deploy-plugin</artifactId>
             <version>2.8.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-artifact</artifactId>
             <version>2.2.1</version>
         </dependency>
         <dependency>
             <groupId>com.google.guava</groupId>
             <artifactId>guava</artifactId>
             <version>16.0.1</version>
         </dependency>
 
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-api</artifactId>
             <version>1.7.21</version>
         </dependency>
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-simple</artifactId>
             <version>1.7.21</version>
         </dependency>
 
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
     </dependencies>
 
     <build>
         <resources>
             <resource>
                 <directory>src/it</directory>
                 <includes>
                     <include>**/**</include>
                 </includes>
             </resource>
         </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>3.2</version>
                 <configuration>
                     <goalPrefix>ggitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>com.github.github</groupId>
                 <artifactId>site-maven-plugin</artifactId>
                 <version>0.9</version>
                 <configuration>
                     <message>Creating site for ${project.version}</message>
                     <server>github</server>
                     <merge>true</merge>
                 </configuration>
                 <executions>
                     <execution>
                         <goals>
                             <goal>site</goal>
                         </goals>
                         <phase>site</phase>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <reportPlugins>
                         <plugin>
                             <groupId>org.apache.maven.plugins</groupId>
                             <artifactId>maven-plugin-plugin</artifactId>
                             <version>3.2</version>
                         </plugin>
                     </reportPlugins>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/pom.xml b/pom.xml
index c419ffb..169d829 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,175 +1,175 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven</artifactId>
-    <version>1.9</version>
+    <version>2.0</version>
     <name>ggitflow-maven</name>
     <packaging>pom</packaging>
 
     <modules>
         <module>ggitflow-maven-plugin</module>
         <module>ggitflow-maven-archetype</module>
     </modules>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
     </properties>
 
     <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
 
     <scm>
         <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
         <connection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</connection>
         <developerConnection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</developerConnection>
     </scm>
 
     <description>Maven Archetype for the Gitflow Maven Plugin</description>
     <developers>
         <developer>
             <id>dkirrane</id>
             <name>Desmond Kirrane</name>
             <email>desmond.kirrane@gmail.com</email>
         </developer>
     </developers>
     <licenses>
         <license>
             <name>Apache License Version 2.0, January 2004</name>
             <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
             <distribution>repo</distribution>
         </license>
     </licenses>
 
     <build>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <version>2.3.2</version>
                 <configuration>
                     <source>1.5</source>
                     <target>1.5</target>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 
     <profiles>
         <!-- For Release versions the Sonatype Nexus Stage rules require artifacts to be signed -->
         <!-- http://blog.sonatype.com/2010/01/how-to-generate-pgp-signatures-with-maven -->
         <!-- 1. Setup gpg, @see https://github.com/dkirrane/ggitflow/blob/develop/gradle.properties.sample -->
         <!-- 2. Run Maven deploy sign from Git terminal: mvn clean deploy -Prelease-sign-artifacts -->
         <!-- 3. Login to Nexus to release from the Stage: https://oss.sonatype.org | Login | Staging Repositories | Search for: com.dkirrane | Release -->
         <profile>
             <id>release-sign-artifacts</id>
             <activation>
                 <activeByDefault>false</activeByDefault>
             </activation>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-gpg-plugin</artifactId>
                         <version>1.6</version>
                         <executions>
                             <execution>
                                 <id>sign-artifacts</id>
                                 <phase>verify</phase>
                                 <goals>
                                     <goal>sign</goal>
                                 </goals>
                                 <configuration>
                                     <useAgent>false</useAgent>
                                 </configuration>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
             </build>
         </profile>
         <profile>
             <id>run-its</id>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-invoker-plugin</artifactId>
                         <version>1.8</version>
                         <configuration>
                             <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
                             <settingsFile>src/it/settings.xml</settingsFile>
                             <debug>true</debug>
                             <showErrors>true</showErrors>
                             <detail>true</detail>
                             <streamLogs>true</streamLogs>
                             <projectsDirectory>src/it/projects</projectsDirectory>
                             <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
                             <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
                             <addTestClassPath>true</addTestClassPath>
                             <preBuildHookScript>setup</preBuildHookScript>
                             <postBuildHookScript>verify</postBuildHookScript>
                             <pomIncludes>
                                 <pomInclude>*/pom.xml</pomInclude>
                             </pomIncludes>
                             <goals>
                                 <goal>clean</goal>
                                 <goal>test-compile</goal>
                             </goals>
                         </configuration>
                         <executions>
                             <execution>
                                 <id>integration-test</id>
                                 <goals>
                                     <goal>install</goal>
                                     <goal>integration-test</goal>
                                     <goal>verify</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
 
             </build>
         </profile>
     </profiles>
 
     <!--
         Sonatype upload details:
         http://central.sonatype.org/pages/ossrh-guide.html
         http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
         https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
         https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
         https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
 
             - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
             - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
             - Promote staged artifacts into repository 'Releases'
             - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
             - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
     -->
 
     <distributionManagement>
         <snapshotRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
         </snapshotRepository>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
         </repository>
     </distributionManagement>
     <repositories>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
             <snapshots>
                 <enabled>true</enabled>
             </snapshots>
         </repository>
     </repositories>
 </project>

commit 274b018b9b308a41f064b79b254d2e1678285b40
Merge: aeb0e88 3743afd
Author: dkirrane <dkirrane@avaya.com>
Date:   Tue Jul 19 16:47:10 2016 +0100

    Merge branch 'release/1.9'

commit 3743afd1526b1c2bb7fb8fea7f91966bee659f96
Author: dkirrane <dkirrane@avaya.com>
Date:   Tue Jul 19 16:29:44 2016 +0100

    use common execute mojo method

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index 71e8b09..90495b1 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -69,4 +69,4 @@ import org.codehaus.plexus.util.StringUtils;
 import org.codehaus.plexus.util.dag.CycleDetectedException;
+import org.codehaus.plexus.util.xml.Xpp3Dom;
 import org.jfrog.hudson.util.GenericArtifactVersion;
-import org.twdata.maven.mojoexecutor.MojoExecutor;
 import static org.twdata.maven.mojoexecutor.MojoExecutor.artifactId;
@@ -83,532 +83,546 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 public class AbstractGitflowMojo extends AbstractMojo {
 
     public final Pattern matchSnapshotRegex = Pattern.compile("-SNAPSHOT");
 
     public static final ImmutableList<String> DEFAULT_INSTALL_ARGS = ImmutableList.of(
             "-DinstallAtEnd=false");
 
     public static final ImmutableList<String> DEFAULT_DEPLOY_ARGS = ImmutableList.of(
             "-DdeployAtEnd=false",
             "-DretryFailedDeploymentCount=2");
 
     public static final Splitter PROFILES_SPLITTER = Splitter.on(',').trimResults().omitEmptyStrings();
     public static final Joiner PROFILES_JOINER = Joiner.on(',').skipNulls();
 
     private static final Plugin VERSIONS_MVN_PLUGIN = plugin(
             groupId("org.codehaus.mojo"),
             artifactId("versions-maven-plugin"),
             version("2.1")
     );
 
     /**
      * Gitflow branches and prefixes to use.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
     /**
      * Message prefix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgPrefix", defaultValue = "", required = false)
     protected String msgPrefix;
 
     /**
      * Message suffix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgSuffix", defaultValue = "", required = false)
     protected String msgSuffix;
 
     /**
      * Component used to prompt for input.
      */
     @Component
     protected Prompter prompter;
 
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
     @Component
     protected ArtifactResolver artifactResolver;
 
     /**
      * @parameter default-value="${project.artifacts}"
      * @required
      * @readonly
      */
     protected Collection artifacts;
 
     /**
      * @parameter expression="${localRepository}"
      */
     protected ArtifactRepository localRepository;
 
     /**
      * @parameter expression="${project.remoteArtifactRepositories}"
      */
     protected List remoteArtifactRepositories;
 
 //    @Component
 //    protected MavenProjectBuilder projectBuilder;
 //    @Component
 //    protected DefaultProjectBuilder projectBuilder;
 //    /**
 //     * @parameter property="plugin"
 //     * @required
 //     */
 //    @Component
 //    protected PluginDescriptor pluginDescriptor;
 //
     /**
      * The projects in the reactor.
      */
     @Parameter(defaultValue = "${reactorProjects}", readonly = true, required = true)
     protected List<MavenProject> reactorProjects;
 
     /**
      * The project builder
      */
     @Component
     private ProjectBuilder projectBuilder;
 
     /**
      * The project currently being build.
      *
      * @parameter expression="${project}"
      * @required
      * @readonly
      */
     @Component
     protected MavenProject project;
 
     /**
      * The current Maven session.
      *
      * @parameter expression="${session}"
      * @required
      * @readonly
      */
     @Component
     protected MavenSession session;
 
     /**
      * The Maven BuildPluginManager component.
      *
      * @component
      * @required
      */
     @Component
     protected BuildPluginManager pluginManager;
 
 //    @Parameter(defaultValue = "${basedir}", readonly = true, required = true)
 //    protected File basedir;
 //    @Component
 //    protected Settings settings;
     private GitflowInit init;
     private Path tempDir;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     public void execute() throws MojoExecutionException, MojoFailureException {
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             getLog().debug("Gitflow pom  '" + project.getBasedir() + "'");
         }
 
         GitflowInit gitflowInit = getGitflowInit();
 
         gitflowInit.requireGitRepo();
 
         if (!gitflowInit.gitflowIsInitialized()) {
             try {
                 gitflowInit.cmdDefault();
             } catch (GitflowException ex) {
                 throw new MojoExecutionException("Failed to inintialise Gitflow " + ex.getMessage(), ex);
             }
         }
 
         gitflowInit.requireCleanWorkingTree();
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     protected final GitflowInit getGitflowInit() {
         if (null == init) {
             getLog().info("Initialising Gitflow");
             init = new GitflowInit();
             File basedir = getProject().getBasedir();
             getLog().debug("Setting base directory " + basedir);
             init.setRepoDir(basedir);
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
 
             /* root Git directory may not be the pom directory */
             String gitRootPath = init.executeLocal("git rev-parse --show-toplevel");
             getLog().debug("Git repo top level " + gitRootPath);
             File baseGitDir = new File(gitRootPath);
             if (baseGitDir.isDirectory()) {
                 getLog().debug("Setting git base directory " + baseGitDir);
                 init.setRepoDir(baseGitDir);
             }
 
             /* Create temp directory - delete any previous first */
             try {
                 Finder finder = new Finder(Syntax.glob, "mvn-gitflow*");
                 Files.walkFileTree(Paths.get(System.getProperty("java.io.tmpdir")), finder);
                 List<Path> paths = finder.getPaths();
                 getLog().debug("Deleting old temp directories " + paths);
                 for (Path path : paths) {
                     FileUtils.deleteDirectory(path.toFile());
                 }
                 tempDir = Files.createTempDirectory("mvn-gitflow");
             } catch (IOException ioe) {
                 getLog().error("Failed to create temp directory", ioe);
             }
         }
         return init;
     }
 
     protected final boolean setVersion(String version, Boolean push, String branch) throws MojoExecutionException, MojoFailureException {
-        String goal = goal("set");
-        getLog().debug("START + " + VERSIONS_MVN_PLUGIN.getArtifactId() + ':' + VERSIONS_MVN_PLUGIN.getVersion() + ':' + goal);
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
-
-//        session.getRequest().setLoggingLevel(MavenExecutionRequest.LOGGING_LEVEL_WARN);
-//        System.setProperty("org.slf4j.simpleLogger.defaultLogLevel", "error");
-//        System.setProperty("maven.logging.root.level", "error");
         MavenProject topLevelProject = session.getTopLevelProject();
-        getLog().info("");
-        getLog().info("--- " + VERSIONS_MVN_PLUGIN.getArtifactId() + ':' + VERSIONS_MVN_PLUGIN.getVersion() + ':' + goal + " " + topLevelProject.getArtifactId() + " to " + version + " (" + branch + ") ---");
         session.setCurrentProject(topLevelProject);
-        PrintStream stdout = System.out;
-        Path tempStoutFile = null;
-        try {
 
-            /* Capture System.out */
-            PrintStream stoutStream = null;
-            if (!getLog().isDebugEnabled()) {
-                try {
-                    tempStoutFile = Files.createTempFile(tempDir, "mvn-versions-set-", ".log");
-                    stoutStream = new PrintStream(new FileOutputStream(tempStoutFile.toFile(), true));
-                    System.setOut(stoutStream);
-                } catch (Exception ioe) {
-                    throw new MojoExecutionException("Failed to capture System.out", ioe);
-                }
-            }
+        String goal = goal("set");
+        Xpp3Dom configuration = configuration(
+                element(name("generateBackupPoms"), "false"),
+                element(name("newVersion"), version)
+        );
 
-            /* Execute versions:set */
-            executeMojo(
-                    VERSIONS_MVN_PLUGIN,
-                    goal,
-                    configuration(
-                            element(name("generateBackupPoms"), "false"),
-                            element(name("newVersion"), version)
-                    ),
-                    executionEnvironment(
-                            topLevelProject,
-                            session,
-                            pluginManager
-                    )
-            );
+        String mavenCommand = getMavenCommand(VERSIONS_MVN_PLUGIN, goal);
 
-            /* Reset System.out */
-            if (!getLog().isDebugEnabled()) {
-                try {
-                    System.setOut(stdout);
-                    stoutStream.close();
-                } catch (Exception ex) {
-                }
-            }
-
-        } catch (MojoExecutionException mee) {
-            /* Reset System.out */
-            System.setOut(stdout);
-            String rootCauseMessage = ExceptionUtils.getRootCauseMessage(mee);
-            if (rootCauseMessage.contains("Project version is inherited from parent")) {
-                getLog().debug("Skipping " + VERSIONS_MVN_PLUGIN.getArtifactId() + ':' + VERSIONS_MVN_PLUGIN.getVersion() + ':' + goal + " for project " + topLevelProject.getArtifactId() + ". Project version is inherited from parent.");
-            } else {
-                getLog().error("Cannot set " + topLevelProject.getArtifactId() + " to version '" + version + "'", mee);
-                throw mee;
-            }
-        } finally {
-            if (!getLog().isDebugEnabled()) {
-                getLog().info(VERSIONS_MVN_PLUGIN.getArtifactId() + ':' + VERSIONS_MVN_PLUGIN.getVersion() + ':' + goal + " log " + tempStoutFile.toString());
-            }
-        }
+        getLog().info("");
+        getLog().info("--- " + mavenCommand + " " + topLevelProject.getArtifactId() + " to " + version + " (" + branch + ") ---");
+        executeMyMojo(VERSIONS_MVN_PLUGIN, goal, configuration);
         getLog().info("------------------------------------------------------------------------");
 
         boolean commitMade = false;
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (push && getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change " + version + " to origin. ExitCode:" + exitCode);
                 }
             }
             commitMade = true;
         }
         /* We don't want to fail maybe the version was manually set correctly */
 //        else {
 //            throw new MojoFailureException("Failed to update poms to version " + version);
 //        }
         return commitMade;
     }
 
     protected final boolean setNextVersions(Boolean allowSnapshots, Boolean updateParent, String includes) throws MojoExecutionException, MojoFailureException {
         getLog().debug("setNextVersions");
 
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
-
         MavenProject topLevelProject = session.getTopLevelProject();
+        session.setCurrentProject(topLevelProject);
+
         if (updateParent) {
             String updateParentGoal = goal("update-parent");
-            getLog().info("START + " + VERSIONS_MVN_PLUGIN.getArtifactId() + ':' + VERSIONS_MVN_PLUGIN.getVersion() + ':' + updateParentGoal);
-            executeMojo(
-                    VERSIONS_MVN_PLUGIN,
-                    updateParentGoal,
-                    configuration(
-                            element(name("generateBackupPoms"), "false"),
-                            element(name("allowSnapshots"), allowSnapshots.toString())
-                    ),
-                    executionEnvironment(
-                            topLevelProject,
-                            session,
-                            pluginManager
-                    )
+            Xpp3Dom configuration = configuration(
+                    element(name("generateBackupPoms"), "false"),
+                    element(name("allowSnapshots"), allowSnapshots.toString())
             );
+
+            String mavenCommand = getMavenCommand(VERSIONS_MVN_PLUGIN, updateParentGoal);
+            getLog().info("");
+            getLog().info("--- " + mavenCommand + " " + topLevelProject.getArtifactId() + " ---");
+            executeMyMojo(VERSIONS_MVN_PLUGIN, updateParentGoal, configuration);
             getLog().info("------------------------------------------------------------------------");
         }
 
         if (!StringUtils.isBlank(includes)) {
             String useNextVersionsGoal = goal("use-next-versions");
-            getLog().info("START + " + VERSIONS_MVN_PLUGIN.getArtifactId() + ':' + VERSIONS_MVN_PLUGIN.getVersion() + ':' + useNextVersionsGoal);
-            executeMojo(
-                    VERSIONS_MVN_PLUGIN,
-                    useNextVersionsGoal,
-                    configuration(
-                            element(name("generateBackupPoms"), "false"),
-                            element(name("allowSnapshots"), allowSnapshots.toString()),
-                            element(name("includesList"), includes)
-                    ),
-                    executionEnvironment(
-                            topLevelProject,
-                            session,
-                            pluginManager
-                    )
+            Xpp3Dom configuration = configuration(
+                    element(name("generateBackupPoms"), "false"),
+                    element(name("allowSnapshots"), allowSnapshots.toString()),
+                    element(name("includesList"), includes)
             );
+
+            String mavenCommand = getMavenCommand(VERSIONS_MVN_PLUGIN, useNextVersionsGoal);
+            getLog().info("");
+            getLog().info("--- " + mavenCommand + " " + topLevelProject.getArtifactId() + " ---");
+            executeMyMojo(VERSIONS_MVN_PLUGIN, useNextVersionsGoal, configuration);
             getLog().info("------------------------------------------------------------------------");
         } else {
             getLog().warn("Parameter <includes> is not set. Skipping dependency updates");
         }
 
         boolean commitMade = false;
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg;
             if (allowSnapshots) {
                 msg = getMsgPrefix() + "Replaces any release versions with the next snapshot version (if it has been deployed)." + getMsgSuffix();
             } else {
                 msg = getMsgPrefix() + "Replaces snapshot versions with the corresponding release version" + getMsgSuffix();
             }
 
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change to origin. ExitCode:" + exitCode);
                 }
             }
             commitMade = true;
         }
         return commitMade;
     }
 
+    protected final void executeMyMojo(Plugin plugin, String goal, Xpp3Dom configuration) throws MojoExecutionException, MojoFailureException {
+        String mavenCommand = getMavenCommand(plugin, goal);
+        MavenProject topLevelProject = session.getTopLevelProject();
+        String projArtifactId = topLevelProject.getArtifactId();
+        getLog().debug("START " + mavenCommand + " on " + projArtifactId);
+        getLog().debug("configuration " + configuration.toUnescapedString());
+
+        /* Maven 3.3.x log settings */
+//        session.getRequest().setLoggingLevel(MavenExecutionRequest.LOGGING_LEVEL_WARN);
+//        System.setProperty("org.slf4j.simpleLogger.defaultLogLevel", "error");
+//        System.setProperty("maven.logging.root.level", "error");
+        PrintStream stdout = System.out;
+        PrintStream stoutStream = null;
+        Path tempStoutFile = null;
+        try {
+
+            /* Capture System.out */
+            if (!getLog().isDebugEnabled()) {
+                try {
+                    String logFileName = plugin.getArtifactId() + '-' + goal + '-';
+                    tempStoutFile = Files.createTempFile(tempDir, logFileName, ".log");
+                    stoutStream = new PrintStream(new FileOutputStream(tempStoutFile.toFile(), true));
+                    System.setOut(stoutStream);
+                } catch (Exception ioe) {
+                    getLog().warn("Failed to capture System.out", ioe);
+                }
+            }
+
+            /* Execute Maven plugin goal */
+            executeMojo(
+                    plugin,
+                    goal,
+                    configuration,
+                    executionEnvironment(
+                            session.getTopLevelProject(),
+                            session,
+                            pluginManager
+                    )
+            );
+
+        } catch (MojoExecutionException mee) {
+            /* Reset System.out */
+            System.setOut(stdout);
+            String rootCauseMessage = ExceptionUtils.getRootCauseMessage(mee);
+            if (rootCauseMessage.contains("Project version is inherited from parent")) {
+                getLog().debug("Skipping " + mavenCommand + " for project " + projArtifactId + ". Project version is inherited from parent.");
+            } else {
+                getLog().error("Failed to execute " + mavenCommand + " on " + projArtifactId, mee);
+                throw mee;
+            }
+        } finally {
+            if (!getLog().isDebugEnabled()) {
+                /* Reset System.out */
+                System.setOut(stdout);
+
+                if (null != tempStoutFile) {
+                    getLog().info(mavenCommand + " log " + tempStoutFile.toString());
+                }
+
+                if (null != stoutStream) {
+                    try {
+                        stoutStream.close();
+                    } catch (Exception e) {
+                    }
+                }
+            }
+            getLog().debug("DONE " + mavenCommand);
+        }
+    }
+
+    private String getMavenCommand(Plugin plugin, String goal) {
+        return plugin.getArtifactId() + ':' + plugin.getVersion() + ':' + goal;
+    }
+
     protected final void runGoals(String goals, List<String> additionalArgs) throws MojoExecutionException, MojoFailureException {
         getLog().debug("START executing " + goals + " with args " + additionalArgs);
 
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         File basedir = rootProject.getBasedir();
 
         ReleaseResult result = new ReleaseResult();
         ReleaseEnvironment env = new DefaultReleaseEnvironment();
         env.setSettings(session.getSettings());
         MavenExecutor mavenExecutor = mavenExecutors.get(env.getMavenExecutorId());
 
         Joiner joiner = Joiner.on(" ").skipNulls();
         String additionalArguments = joiner.join(additionalArgs);
         getLog().debug("additionalArguments " + additionalArguments);
 
         try {
             mavenExecutor.executeGoals(basedir, goals, env, false, additionalArguments, result);
         } catch (MavenExecutorException ex) {
             throw new MojoExecutionException(result.getOutput(), ex);
         }
         getLog().debug("DONE executing " + goals);
     }
 
     protected final String getReleaseVersion(String version) throws MojoFailureException {
         getLog().debug("Current Develop version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
             getLog().debug("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
     protected final void checkForSnapshotDependencies() throws MojoExecutionException {
         getLog().info("Checking for SNAPSHOT dependencies");
         Boolean hasDepSnapshots = false;
         Boolean hasParentSnapshot = false;
         for (MavenProject mavenProject : reactorProjects) {
             String artifactId = mavenProject.getArtifactId();
 
             /* Check <parent> */
             Artifact parentArtifact = mavenProject.getParentArtifact();
             if (parentArtifact != null && parentArtifact.isSnapshot()) {
                 getLog().error("Parent of project " + artifactId + " is a SNAPSHOT " + parentArtifact.getId());
                 hasParentSnapshot = true;
             }
 
             /* Check <dependencyManagement> */
             DependencyManagement dependencyManagement = mavenProject.getDependencyManagement();
             if (null != dependencyManagement) {
                 if (checkForSnapshot(artifactId, dependencyManagement.getDependencies())) {
                     hasDepSnapshots = true;
                 }
             }
 
             /* Check <dependencies> */
             if (checkForSnapshot(artifactId, mavenProject.getDependencies())) {
                 hasDepSnapshots = true;
             }
         }
         if (hasParentSnapshot || hasDepSnapshots) {
             throw new MojoExecutionException("Cannot release because SNAPSHOT dependencies exist");
         }
     }
 
     private boolean checkForSnapshot(String artifactId, List<Dependency> dependencies) throws MojoExecutionException {
         Boolean hasSnapshotDependency = false;
         for (Dependency dependency : dependencies) {
             String version = dependency.getVersion();
             Matcher versionMatcher = matchSnapshotRegex.matcher(version);
             if (versionMatcher.find() && versionMatcher.end() == version.length()) {
                 getLog().error("Project " + artifactId + " contains SNAPSHOT dependency: " + dependency.getGroupId() + ":" + dependency.getArtifactId() + ":" + version);
                 hasSnapshotDependency = true;
             }
         }
         return hasSnapshotDependency;
     }
 
     protected final void reloadReactorProjects() throws MojoExecutionException {
         getLog().debug("Reloading poms...");
 
         List<MavenProject> newReactorProjects;
         try {
             newReactorProjects = buildReactorProjects();
         } catch (ProjectBuildingException e) {
             getLog().error("Re-parse aborted due to malformed pom.xml file(s)", e);
             throw new MojoExecutionException("Re-parse aborted due to malformed pom.xml file(s)", e);
         } catch (CycleDetectedException e) {
             getLog().error("Re-parse aborted due to dependency cycle in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to dependency cycle in project model", e);
         } catch (DuplicateProjectException e) {
             getLog().error("Re-parse aborted due to duplicate projects in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to duplicate projects in project model", e);
         } catch (Exception e) {
             getLog().error("Re-parse aborted due a problem that prevented sorting the project model", e);
             throw new MojoExecutionException("Re-parse aborted due a problem that prevented sorting the project model", e);
         }
         MavenProject newProject = findProject(newReactorProjects, this.project);
         if (newProject == null) {
             throw new MojoExecutionException("A pom.xml change appears to have removed " + this.project.getId() + " from the build plan.");
         }
 
         this.project = newProject;
         this.reactorProjects = newReactorProjects;
 
         getLog().debug("Reloading poms complete...");
     }
 
     private List<MavenProject> buildReactorProjects() throws Exception {
 
         List<MavenProject> projects = new ArrayList<MavenProject>();
         for (MavenProject p : reactorProjects) {
             ProjectBuildingRequest request = new DefaultProjectBuildingRequest();
 
             request.setProcessPlugins(false);
             request.setProfiles(request.getProfiles());
             request.setActiveProfileIds(session.getRequest().getActiveProfiles());
             request.setInactiveProfileIds(session.getRequest().getInactiveProfiles());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setSystemProperties(session.getSystemProperties());
             request.setUserProperties(session.getUserProperties());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setPluginArtifactRepositories(session.getRequest().getPluginArtifactRepositories());
             request.setRepositorySession(session.getRepositorySession());
             request.setLocalRepository(localRepository);
             request.setBuildStartTime(session.getRequest().getStartTime());
             request.setResolveDependencies(false);
             request.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_STRICT);
             projects.add(projectBuilder.build(p.getFile(), request).getProject());
         }
         return new ProjectSorter(projects).getSortedProjects();
     }
 
     private MavenProject findProject(List<MavenProject> newReactorProjects, MavenProject oldProject) {
         for (MavenProject newProject : newReactorProjects) {
             if (oldProject.getGroupId().equals(newProject.getGroupId())
                     && oldProject.getArtifactId().equals(newProject.getArtifactId())) {
                 return newProject;
             }
         }
         return null;
     }
 
 }

commit aeb0e88125bf15bc515c826032aa85dac4916246
Merge: e8e63de be83b7b
Author: dkirrane <dkirrane@avaya.com>
Date:   Tue Jul 19 15:45:35 2016 +0100

    Merge branch 'release/1.9'
    
    # Conflicts:
    #       ggitflow-maven-archetype/pom.xml
    #       ggitflow-maven-plugin/pom.xml
    #       ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
    #       ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
    #       ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
    #       pom.xml

commit be83b7b7604f4d37890b72bed22ee61e7288d91e
Author: dkirrane <dkirrane@avaya.com>
Date:   Tue Jul 19 15:43:21 2016 +0100

    add comment

diff --git a/pom.xml b/pom.xml
index b9058f8..c419ffb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,175 +1,175 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
-    <artifactId>ggitflow-maven</artifactId>    
+    <artifactId>ggitflow-maven</artifactId>
     <version>1.9</version>
     <name>ggitflow-maven</name>
     <packaging>pom</packaging>
 
     <modules>
         <module>ggitflow-maven-plugin</module>
         <module>ggitflow-maven-archetype</module>
     </modules>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
     </properties>
 
     <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
 
     <scm>
         <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
         <connection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</connection>
         <developerConnection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</developerConnection>
     </scm>
 
     <description>Maven Archetype for the Gitflow Maven Plugin</description>
     <developers>
         <developer>
             <id>dkirrane</id>
             <name>Desmond Kirrane</name>
             <email>desmond.kirrane@gmail.com</email>
         </developer>
     </developers>
     <licenses>
         <license>
             <name>Apache License Version 2.0, January 2004</name>
             <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
             <distribution>repo</distribution>
         </license>
     </licenses>
 
     <build>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <version>2.3.2</version>
                 <configuration>
                     <source>1.5</source>
                     <target>1.5</target>
                 </configuration>
-            </plugin>          
+            </plugin>
         </plugins>
     </build>
 
     <profiles>
         <!-- For Release versions the Sonatype Nexus Stage rules require artifacts to be signed -->
         <!-- http://blog.sonatype.com/2010/01/how-to-generate-pgp-signatures-with-maven -->
         <!-- 1. Setup gpg, @see https://github.com/dkirrane/ggitflow/blob/develop/gradle.properties.sample -->
-        <!-- 2. Run Maven deploy sign: mvn clean deploy -Prelease-sign-artifacts -->
+        <!-- 2. Run Maven deploy sign from Git terminal: mvn clean deploy -Prelease-sign-artifacts -->
         <!-- 3. Login to Nexus to release from the Stage: https://oss.sonatype.org | Login | Staging Repositories | Search for: com.dkirrane | Release -->
         <profile>
             <id>release-sign-artifacts</id>
             <activation>
                 <activeByDefault>false</activeByDefault>
             </activation>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-gpg-plugin</artifactId>
                         <version>1.6</version>
                         <executions>
                             <execution>
                                 <id>sign-artifacts</id>
                                 <phase>verify</phase>
                                 <goals>
                                     <goal>sign</goal>
                                 </goals>
                                 <configuration>
                                     <useAgent>false</useAgent>
                                 </configuration>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
             </build>
         </profile>
         <profile>
             <id>run-its</id>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-invoker-plugin</artifactId>
                         <version>1.8</version>
                         <configuration>
                             <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
                             <settingsFile>src/it/settings.xml</settingsFile>
                             <debug>true</debug>
                             <showErrors>true</showErrors>
                             <detail>true</detail>
                             <streamLogs>true</streamLogs>
                             <projectsDirectory>src/it/projects</projectsDirectory>
                             <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
                             <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
                             <addTestClassPath>true</addTestClassPath>
                             <preBuildHookScript>setup</preBuildHookScript>
                             <postBuildHookScript>verify</postBuildHookScript>
                             <pomIncludes>
                                 <pomInclude>*/pom.xml</pomInclude>
                             </pomIncludes>
                             <goals>
                                 <goal>clean</goal>
                                 <goal>test-compile</goal>
                             </goals>
                         </configuration>
                         <executions>
                             <execution>
                                 <id>integration-test</id>
                                 <goals>
                                     <goal>install</goal>
                                     <goal>integration-test</goal>
                                     <goal>verify</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
 
             </build>
         </profile>
     </profiles>
 
     <!--
         Sonatype upload details:
         http://central.sonatype.org/pages/ossrh-guide.html
         http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
         https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
         https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
         https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
 
             - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
             - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
             - Promote staged artifacts into repository 'Releases'
             - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
             - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
     -->
 
     <distributionManagement>
         <snapshotRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
         </snapshotRepository>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
         </repository>
     </distributionManagement>
     <repositories>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
             <snapshots>
                 <enabled>true</enabled>
             </snapshots>
         </repository>
     </repositories>
 </project>

commit cf55a640814ae28559e6440d513ea4f291c7db3a
Author: dkirrane <dkirrane@avaya.com>
Date:   Tue Jul 19 14:54:23 2016 +0100

    setting version 1.9

diff --git a/ggitflow-maven-archetype/pom.xml b/ggitflow-maven-archetype/pom.xml
index 5aaf8bf..504dd36 100644
--- a/ggitflow-maven-archetype/pom.xml
+++ b/ggitflow-maven-archetype/pom.xml
@@ -1,45 +1,45 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
-        <version>1.9-SNAPSHOT</version>
+        <version>1.9</version>
     </parent>
 
     <groupId>com.dkirrane.maven.archetype</groupId>
     <artifactId>ggitflow-maven-archetype</artifactId>
-    <version>1.9-SNAPSHOT</version>
+    <version>1.9</version>
     <packaging>maven-archetype</packaging>
     <name>ggitflow-maven-archetype</name>
 
     <build>
         <extensions>
             <extension>
                 <groupId>org.apache.maven.archetype</groupId>
                 <artifactId>archetype-packaging</artifactId>
                 <version>2.2</version>
             </extension>
         </extensions>
 
         <pluginManagement>
             <plugins>
                 <plugin>
                     <artifactId>maven-archetype-plugin</artifactId>
                     <version>2.2</version>
                 </plugin>
             </plugins>
         </pluginManagement>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <skip>true</skip>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index a9699b1..799bfe5 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,170 +1,170 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
-        <version>1.9-SNAPSHOT</version>
+        <version>1.9</version>
     </parent>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
-    <version>1.9-SNAPSHOT</version>
+    <version>1.9</version>
     <packaging>maven-plugin</packaging>
     <name>ggitflow-maven-plugin</name>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
             <version>2.3</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>3.2</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>3.0.8</version>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-interactivity-api</artifactId>
             <version>1.0-alpha-5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>2.4</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-project</artifactId>
             <version>2.2.1</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-clean-plugin</artifactId>
             <version>2.5</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-install-plugin</artifactId>
             <version>2.5.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-deploy-plugin</artifactId>
             <version>2.8.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-artifact</artifactId>
             <version>2.2.1</version>
         </dependency>
         <dependency>
             <groupId>com.google.guava</groupId>
             <artifactId>guava</artifactId>
             <version>16.0.1</version>
         </dependency>
 
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-api</artifactId>
             <version>1.7.21</version>
         </dependency>
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-simple</artifactId>
             <version>1.7.21</version>
         </dependency>
 
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
     </dependencies>
 
     <build>
         <resources>
             <resource>
                 <directory>src/it</directory>
                 <includes>
                     <include>**/**</include>
                 </includes>
             </resource>
         </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>3.2</version>
                 <configuration>
                     <goalPrefix>ggitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>com.github.github</groupId>
                 <artifactId>site-maven-plugin</artifactId>
                 <version>0.9</version>
                 <configuration>
                     <message>Creating site for ${project.version}</message>
                     <server>github</server>
                     <merge>true</merge>
                 </configuration>
                 <executions>
                     <execution>
                         <goals>
                             <goal>site</goal>
                         </goals>
                         <phase>site</phase>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <reportPlugins>
                         <plugin>
                             <groupId>org.apache.maven.plugins</groupId>
                             <artifactId>maven-plugin-plugin</artifactId>
                             <version>3.2</version>
                         </plugin>
                     </reportPlugins>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index 54fa20c..71e8b09 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -70,2 +70,3 @@ import org.codehaus.plexus.util.dag.CycleDetectedException;
 import org.jfrog.hudson.util.GenericArtifactVersion;
+import org.twdata.maven.mojoexecutor.MojoExecutor;
 import static org.twdata.maven.mojoexecutor.MojoExecutor.artifactId;
@@ -82,538 +83,532 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 public class AbstractGitflowMojo extends AbstractMojo {
 
     public final Pattern matchSnapshotRegex = Pattern.compile("-SNAPSHOT");
 
     public static final ImmutableList<String> DEFAULT_INSTALL_ARGS = ImmutableList.of(
             "-DinstallAtEnd=false");
 
     public static final ImmutableList<String> DEFAULT_DEPLOY_ARGS = ImmutableList.of(
             "-DdeployAtEnd=false",
             "-DretryFailedDeploymentCount=2");
 
     public static final Splitter PROFILES_SPLITTER = Splitter.on(',').trimResults().omitEmptyStrings();
     public static final Joiner PROFILES_JOINER = Joiner.on(',').skipNulls();
 
+    private static final Plugin VERSIONS_MVN_PLUGIN = plugin(
+            groupId("org.codehaus.mojo"),
+            artifactId("versions-maven-plugin"),
+            version("2.1")
+    );
+
     /**
      * Gitflow branches and prefixes to use.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
     /**
      * Message prefix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgPrefix", defaultValue = "", required = false)
     protected String msgPrefix;
 
     /**
      * Message suffix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgSuffix", defaultValue = "", required = false)
     protected String msgSuffix;
 
     /**
      * Component used to prompt for input.
      */
     @Component
     protected Prompter prompter;
 
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
     @Component
     protected ArtifactResolver artifactResolver;
 
     /**
      * @parameter default-value="${project.artifacts}"
      * @required
      * @readonly
      */
     protected Collection artifacts;
 
     /**
      * @parameter expression="${localRepository}"
      */
     protected ArtifactRepository localRepository;
 
     /**
      * @parameter expression="${project.remoteArtifactRepositories}"
      */
     protected List remoteArtifactRepositories;
 
 //    @Component
 //    protected MavenProjectBuilder projectBuilder;
 //    @Component
 //    protected DefaultProjectBuilder projectBuilder;
 //    /**
 //     * @parameter property="plugin"
 //     * @required
 //     */
 //    @Component
 //    protected PluginDescriptor pluginDescriptor;
 //
     /**
      * The projects in the reactor.
      */
     @Parameter(defaultValue = "${reactorProjects}", readonly = true, required = true)
     protected List<MavenProject> reactorProjects;
 
     /**
      * The project builder
      */
     @Component
     private ProjectBuilder projectBuilder;
 
     /**
      * The project currently being build.
      *
      * @parameter expression="${project}"
      * @required
      * @readonly
      */
     @Component
     protected MavenProject project;
 
     /**
      * The current Maven session.
      *
      * @parameter expression="${session}"
      * @required
      * @readonly
      */
     @Component
     protected MavenSession session;
 
     /**
      * The Maven BuildPluginManager component.
      *
      * @component
      * @required
      */
     @Component
     protected BuildPluginManager pluginManager;
 
 //    @Parameter(defaultValue = "${basedir}", readonly = true, required = true)
 //    protected File basedir;
 //    @Component
 //    protected Settings settings;
     private GitflowInit init;
     private Path tempDir;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     public void execute() throws MojoExecutionException, MojoFailureException {
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             getLog().debug("Gitflow pom  '" + project.getBasedir() + "'");
         }
 
         GitflowInit gitflowInit = getGitflowInit();
 
         gitflowInit.requireGitRepo();
 
         if (!gitflowInit.gitflowIsInitialized()) {
             try {
                 gitflowInit.cmdDefault();
             } catch (GitflowException ex) {
                 throw new MojoExecutionException("Failed to inintialise Gitflow " + ex.getMessage(), ex);
             }
         }
 
         gitflowInit.requireCleanWorkingTree();
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     protected final GitflowInit getGitflowInit() {
         if (null == init) {
             getLog().info("Initialising Gitflow");
             init = new GitflowInit();
             File basedir = getProject().getBasedir();
             getLog().debug("Setting base directory " + basedir);
             init.setRepoDir(basedir);
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
 
             /* root Git directory may not be the pom directory */
             String gitRootPath = init.executeLocal("git rev-parse --show-toplevel");
             getLog().debug("Git repo top level " + gitRootPath);
             File baseGitDir = new File(gitRootPath);
             if (baseGitDir.isDirectory()) {
                 getLog().debug("Setting git base directory " + baseGitDir);
                 init.setRepoDir(baseGitDir);
             }
 
             /* Create temp directory - delete any previous first */
             try {
                 Finder finder = new Finder(Syntax.glob, "mvn-gitflow*");
                 Files.walkFileTree(Paths.get(System.getProperty("java.io.tmpdir")), finder);
                 List<Path> paths = finder.getPaths();
                 getLog().debug("Deleting old temp directories " + paths);
                 for (Path path : paths) {
                     FileUtils.deleteDirectory(path.toFile());
                 }
                 tempDir = Files.createTempDirectory("mvn-gitflow");
             } catch (IOException ioe) {
                 getLog().error("Failed to create temp directory", ioe);
             }
         }
         return init;
     }
 
     protected final boolean setVersion(String version, Boolean push, String branch) throws MojoExecutionException, MojoFailureException {
-        getLog().debug("START org.codehaus.mojo:versions-maven-plugin:2.2:set '" + version + "'");
+        String goal = goal("set");
+        getLog().debug("START + " + VERSIONS_MVN_PLUGIN.getArtifactId() + ':' + VERSIONS_MVN_PLUGIN.getVersion() + ':' + goal);
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
 
 //        session.getRequest().setLoggingLevel(MavenExecutionRequest.LOGGING_LEVEL_WARN);
 //        System.setProperty("org.slf4j.simpleLogger.defaultLogLevel", "error");
 //        System.setProperty("maven.logging.root.level", "error");
-        Plugin versionsPlugin = plugin(
-                groupId("org.codehaus.mojo"),
-                artifactId("versions-maven-plugin"),
-                version("2.2")
-        );
-
-        String goal = goal("set");
-
         MavenProject topLevelProject = session.getTopLevelProject();
         getLog().info("");
-        getLog().info("--- " + versionsPlugin.getArtifactId() + ':' + versionsPlugin.getVersion() + ':' + goal + " " + topLevelProject.getArtifactId() + " to " + version + " (" + branch + ") ---");
+        getLog().info("--- " + VERSIONS_MVN_PLUGIN.getArtifactId() + ':' + VERSIONS_MVN_PLUGIN.getVersion() + ':' + goal + " " + topLevelProject.getArtifactId() + " to " + version + " (" + branch + ") ---");
         session.setCurrentProject(topLevelProject);
         PrintStream stdout = System.out;
+        Path tempStoutFile = null;
         try {
 
             /* Capture System.out */
-            Path tempStoutFile = null;
             PrintStream stoutStream = null;
             if (!getLog().isDebugEnabled()) {
                 try {
                     tempStoutFile = Files.createTempFile(tempDir, "mvn-versions-set-", ".log");
                     stoutStream = new PrintStream(new FileOutputStream(tempStoutFile.toFile(), true));
                     System.setOut(stoutStream);
                 } catch (Exception ioe) {
                     throw new MojoExecutionException("Failed to capture System.out", ioe);
                 }
             }
 
             /* Execute versions:set */
             executeMojo(
-                    versionsPlugin,
+                    VERSIONS_MVN_PLUGIN,
                     goal,
                     configuration(
                             element(name("generateBackupPoms"), "false"),
                             element(name("newVersion"), version)
                     ),
                     executionEnvironment(
                             topLevelProject,
                             session,
                             pluginManager
                     )
             );
 
             /* Reset System.out */
             if (!getLog().isDebugEnabled()) {
                 try {
                     System.setOut(stdout);
                     stoutStream.close();
-                    getLog().info("versions-maven-plugin:2.2:set log " + tempStoutFile.toString());
                 } catch (Exception ex) {
                 }
             }
 
         } catch (MojoExecutionException mee) {
             /* Reset System.out */
             System.setOut(stdout);
             String rootCauseMessage = ExceptionUtils.getRootCauseMessage(mee);
             if (rootCauseMessage.contains("Project version is inherited from parent")) {
-                getLog().debug("Skipping versions-maven-plugin:set for project " + topLevelProject.getArtifactId() + ". Project version is inherited from parent.");
+                getLog().debug("Skipping " + VERSIONS_MVN_PLUGIN.getArtifactId() + ':' + VERSIONS_MVN_PLUGIN.getVersion() + ':' + goal + " for project " + topLevelProject.getArtifactId() + ". Project version is inherited from parent.");
             } else {
                 getLog().error("Cannot set " + topLevelProject.getArtifactId() + " to version '" + version + "'", mee);
                 throw mee;
             }
+        } finally {
+            if (!getLog().isDebugEnabled()) {
+                getLog().info(VERSIONS_MVN_PLUGIN.getArtifactId() + ':' + VERSIONS_MVN_PLUGIN.getVersion() + ':' + goal + " log " + tempStoutFile.toString());
+            }
         }
         getLog().info("------------------------------------------------------------------------");
 
         boolean commitMade = false;
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (push && getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change " + version + " to origin. ExitCode:" + exitCode);
                 }
             }
             commitMade = true;
         }
         /* We don't want to fail maybe the version was manually set correctly */
 //        else {
 //            throw new MojoFailureException("Failed to update poms to version " + version);
 //        }
         return commitMade;
     }
 
     protected final boolean setNextVersions(Boolean allowSnapshots, Boolean updateParent, String includes) throws MojoExecutionException, MojoFailureException {
         getLog().debug("setNextVersions");
+
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
 
+        MavenProject topLevelProject = session.getTopLevelProject();
         if (updateParent) {
-            getLog().debug("START org.codehaus.mojo:versions-maven-plugin:2.2:update-parent updateParent=" + updateParent);
+            String updateParentGoal = goal("update-parent");
+            getLog().info("START + " + VERSIONS_MVN_PLUGIN.getArtifactId() + ':' + VERSIONS_MVN_PLUGIN.getVersion() + ':' + updateParentGoal);
             executeMojo(
-                    plugin(
-                            groupId("org.codehaus.mojo"),
-                            artifactId("versions-maven-plugin"),
-                            version("2.2")
-                    ),
-                    goal("update-parent"),
+                    VERSIONS_MVN_PLUGIN,
+                    updateParentGoal,
                     configuration(
                             element(name("generateBackupPoms"), "false"),
                             element(name("allowSnapshots"), allowSnapshots.toString())
                     ),
                     executionEnvironment(
-                            rootProject,
+                            topLevelProject,
                             session,
                             pluginManager
                     )
             );
-            getLog().debug("DONE org.codehaus.mojo:versions-maven-plugin:2.2:update-parent");
+            getLog().info("------------------------------------------------------------------------");
         }
 
         if (!StringUtils.isBlank(includes)) {
-            getLog().debug("START org.codehaus.mojo:versions-maven-plugin:2.2:use-next-versions allowSnapshots=" + allowSnapshots);
-            for (MavenProject mavenProject : reactorProjects) {
-                getLog().debug("Calling use-next-versions on " + mavenProject.getArtifactId());
-                session.setCurrentProject(mavenProject);
-                executeMojo(
-                        plugin(
-                                groupId("org.codehaus.mojo"),
-                                artifactId("versions-maven-plugin"),
-                                version("2.2")
-                        ),
-                        goal("use-next-versions"),
-                        configuration(
-                                element(name("generateBackupPoms"), "false"),
-                                element(name("allowSnapshots"), allowSnapshots.toString()),
-                                element(name("includesList"), includes)
-                        ),
-                        executionEnvironment(
-                                mavenProject,
-                                session,
-                                pluginManager
-                        )
-                );
-            }
-            getLog().debug("DONE org.codehaus.mojo:versions-maven-plugin:2.2:use-next-versions");
+            String useNextVersionsGoal = goal("use-next-versions");
+            getLog().info("START + " + VERSIONS_MVN_PLUGIN.getArtifactId() + ':' + VERSIONS_MVN_PLUGIN.getVersion() + ':' + useNextVersionsGoal);
+            executeMojo(
+                    VERSIONS_MVN_PLUGIN,
+                    useNextVersionsGoal,
+                    configuration(
+                            element(name("generateBackupPoms"), "false"),
+                            element(name("allowSnapshots"), allowSnapshots.toString()),
+                            element(name("includesList"), includes)
+                    ),
+                    executionEnvironment(
+                            topLevelProject,
+                            session,
+                            pluginManager
+                    )
+            );
+            getLog().info("------------------------------------------------------------------------");
         } else {
             getLog().warn("Parameter <includes> is not set. Skipping dependency updates");
         }
 
         boolean commitMade = false;
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg;
             if (allowSnapshots) {
                 msg = getMsgPrefix() + "Replaces any release versions with the next snapshot version (if it has been deployed)." + getMsgSuffix();
             } else {
                 msg = getMsgPrefix() + "Replaces snapshot versions with the corresponding release version" + getMsgSuffix();
             }
 
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change to origin. ExitCode:" + exitCode);
                 }
             }
             commitMade = true;
         }
         return commitMade;
     }
 
     protected final void runGoals(String goals, List<String> additionalArgs) throws MojoExecutionException, MojoFailureException {
         getLog().debug("START executing " + goals + " with args " + additionalArgs);
 
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         File basedir = rootProject.getBasedir();
 
         ReleaseResult result = new ReleaseResult();
         ReleaseEnvironment env = new DefaultReleaseEnvironment();
         env.setSettings(session.getSettings());
         MavenExecutor mavenExecutor = mavenExecutors.get(env.getMavenExecutorId());
 
         Joiner joiner = Joiner.on(" ").skipNulls();
         String additionalArguments = joiner.join(additionalArgs);
         getLog().debug("additionalArguments " + additionalArguments);
 
         try {
             mavenExecutor.executeGoals(basedir, goals, env, false, additionalArguments, result);
         } catch (MavenExecutorException ex) {
             throw new MojoExecutionException(result.getOutput(), ex);
         }
         getLog().debug("DONE executing " + goals);
     }
 
     protected final String getReleaseVersion(String version) throws MojoFailureException {
         getLog().debug("Current Develop version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
             getLog().debug("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
     protected final void checkForSnapshotDependencies() throws MojoExecutionException {
         getLog().info("Checking for SNAPSHOT dependencies");
         Boolean hasDepSnapshots = false;
         Boolean hasParentSnapshot = false;
         for (MavenProject mavenProject : reactorProjects) {
             String artifactId = mavenProject.getArtifactId();
 
             /* Check <parent> */
             Artifact parentArtifact = mavenProject.getParentArtifact();
             if (parentArtifact != null && parentArtifact.isSnapshot()) {
                 getLog().error("Parent of project " + artifactId + " is a SNAPSHOT " + parentArtifact.getId());
                 hasParentSnapshot = true;
             }
 
             /* Check <dependencyManagement> */
             DependencyManagement dependencyManagement = mavenProject.getDependencyManagement();
             if (null != dependencyManagement) {
                 if (checkForSnapshot(artifactId, dependencyManagement.getDependencies())) {
                     hasDepSnapshots = true;
                 }
             }
 
             /* Check <dependencies> */
             if (checkForSnapshot(artifactId, mavenProject.getDependencies())) {
                 hasDepSnapshots = true;
             }
         }
         if (hasParentSnapshot || hasDepSnapshots) {
             throw new MojoExecutionException("Cannot release because SNAPSHOT dependencies exist");
         }
     }
 
     private boolean checkForSnapshot(String artifactId, List<Dependency> dependencies) throws MojoExecutionException {
         Boolean hasSnapshotDependency = false;
         for (Dependency dependency : dependencies) {
             String version = dependency.getVersion();
             Matcher versionMatcher = matchSnapshotRegex.matcher(version);
             if (versionMatcher.find() && versionMatcher.end() == version.length()) {
                 getLog().error("Project " + artifactId + " contains SNAPSHOT dependency: " + dependency.getGroupId() + ":" + dependency.getArtifactId() + ":" + version);
                 hasSnapshotDependency = true;
             }
         }
         return hasSnapshotDependency;
     }
 
     protected final void reloadReactorProjects() throws MojoExecutionException {
         getLog().debug("Reloading poms...");
 
         List<MavenProject> newReactorProjects;
         try {
             newReactorProjects = buildReactorProjects();
         } catch (ProjectBuildingException e) {
             getLog().error("Re-parse aborted due to malformed pom.xml file(s)", e);
             throw new MojoExecutionException("Re-parse aborted due to malformed pom.xml file(s)", e);
         } catch (CycleDetectedException e) {
             getLog().error("Re-parse aborted due to dependency cycle in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to dependency cycle in project model", e);
         } catch (DuplicateProjectException e) {
             getLog().error("Re-parse aborted due to duplicate projects in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to duplicate projects in project model", e);
         } catch (Exception e) {
             getLog().error("Re-parse aborted due a problem that prevented sorting the project model", e);
             throw new MojoExecutionException("Re-parse aborted due a problem that prevented sorting the project model", e);
         }
         MavenProject newProject = findProject(newReactorProjects, this.project);
         if (newProject == null) {
             throw new MojoExecutionException("A pom.xml change appears to have removed " + this.project.getId() + " from the build plan.");
         }
 
         this.project = newProject;
         this.reactorProjects = newReactorProjects;
 
         getLog().debug("Reloading poms complete...");
     }
 
     private List<MavenProject> buildReactorProjects() throws Exception {
 
         List<MavenProject> projects = new ArrayList<MavenProject>();
         for (MavenProject p : reactorProjects) {
             ProjectBuildingRequest request = new DefaultProjectBuildingRequest();
 
             request.setProcessPlugins(false);
             request.setProfiles(request.getProfiles());
             request.setActiveProfileIds(session.getRequest().getActiveProfiles());
             request.setInactiveProfileIds(session.getRequest().getInactiveProfiles());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setSystemProperties(session.getSystemProperties());
             request.setUserProperties(session.getUserProperties());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setPluginArtifactRepositories(session.getRequest().getPluginArtifactRepositories());
             request.setRepositorySession(session.getRepositorySession());
             request.setLocalRepository(localRepository);
             request.setBuildStartTime(session.getRequest().getStartTime());
             request.setResolveDependencies(false);
             request.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_STRICT);
             projects.add(projectBuilder.build(p.getFile(), request).getProject());
         }
         return new ProjectSorter(projects).getSortedProjects();
     }
 
     private MavenProject findProject(List<MavenProject> newReactorProjects, MavenProject oldProject) {
         for (MavenProject newProject : newReactorProjects) {
             if (oldProject.getGroupId().equals(newProject.getGroupId())
                     && oldProject.getArtifactId().equals(newProject.getArtifactId())) {
                 return newProject;
             }
         }
         return null;
     }
 
 }
diff --git a/pom.xml b/pom.xml
index 48e3cce..b9058f8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,175 +1,175 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven</artifactId>    
-    <version>1.9-SNAPSHOT</version>
+    <version>1.9</version>
     <name>ggitflow-maven</name>
     <packaging>pom</packaging>
 
     <modules>
         <module>ggitflow-maven-plugin</module>
         <module>ggitflow-maven-archetype</module>
     </modules>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
     </properties>
 
     <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
 
     <scm>
         <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
         <connection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</connection>
         <developerConnection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</developerConnection>
     </scm>
 
     <description>Maven Archetype for the Gitflow Maven Plugin</description>
     <developers>
         <developer>
             <id>dkirrane</id>
             <name>Desmond Kirrane</name>
             <email>desmond.kirrane@gmail.com</email>
         </developer>
     </developers>
     <licenses>
         <license>
             <name>Apache License Version 2.0, January 2004</name>
             <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
             <distribution>repo</distribution>
         </license>
     </licenses>
 
     <build>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <version>2.3.2</version>
                 <configuration>
                     <source>1.5</source>
                     <target>1.5</target>
                 </configuration>
             </plugin>          
         </plugins>
     </build>
 
     <profiles>
         <!-- For Release versions the Sonatype Nexus Stage rules require artifacts to be signed -->
         <!-- http://blog.sonatype.com/2010/01/how-to-generate-pgp-signatures-with-maven -->
         <!-- 1. Setup gpg, @see https://github.com/dkirrane/ggitflow/blob/develop/gradle.properties.sample -->
         <!-- 2. Run Maven deploy sign: mvn clean deploy -Prelease-sign-artifacts -->
         <!-- 3. Login to Nexus to release from the Stage: https://oss.sonatype.org | Login | Staging Repositories | Search for: com.dkirrane | Release -->
         <profile>
             <id>release-sign-artifacts</id>
             <activation>
                 <activeByDefault>false</activeByDefault>
             </activation>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-gpg-plugin</artifactId>
                         <version>1.6</version>
                         <executions>
                             <execution>
                                 <id>sign-artifacts</id>
                                 <phase>verify</phase>
                                 <goals>
                                     <goal>sign</goal>
                                 </goals>
                                 <configuration>
                                     <useAgent>false</useAgent>
                                 </configuration>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
             </build>
         </profile>
         <profile>
             <id>run-its</id>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-invoker-plugin</artifactId>
                         <version>1.8</version>
                         <configuration>
                             <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
                             <settingsFile>src/it/settings.xml</settingsFile>
                             <debug>true</debug>
                             <showErrors>true</showErrors>
                             <detail>true</detail>
                             <streamLogs>true</streamLogs>
                             <projectsDirectory>src/it/projects</projectsDirectory>
                             <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
                             <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
                             <addTestClassPath>true</addTestClassPath>
                             <preBuildHookScript>setup</preBuildHookScript>
                             <postBuildHookScript>verify</postBuildHookScript>
                             <pomIncludes>
                                 <pomInclude>*/pom.xml</pomInclude>
                             </pomIncludes>
                             <goals>
                                 <goal>clean</goal>
                                 <goal>test-compile</goal>
                             </goals>
                         </configuration>
                         <executions>
                             <execution>
                                 <id>integration-test</id>
                                 <goals>
                                     <goal>install</goal>
                                     <goal>integration-test</goal>
                                     <goal>verify</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
 
             </build>
         </profile>
     </profiles>
 
     <!--
         Sonatype upload details:
         http://central.sonatype.org/pages/ossrh-guide.html
         http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
         https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
         https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
         https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
 
             - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
             - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
             - Promote staged artifacts into repository 'Releases'
             - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
             - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
     -->
 
     <distributionManagement>
         <snapshotRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
         </snapshotRepository>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
         </repository>
     </distributionManagement>
     <repositories>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
             <snapshots>
                 <enabled>true</enabled>
             </snapshots>
         </repository>
     </repositories>
 </project>

commit ef180168b02877d07873b72e790bf9f69360f880
Author: dkirrane <dkirrane@avaya.com>
Date:   Tue Jul 19 13:29:24 2016 +0100

    NEXT SNAP

diff --git a/ggitflow-maven-archetype/pom.xml b/ggitflow-maven-archetype/pom.xml
index 479cd2d..5aaf8bf 100644
--- a/ggitflow-maven-archetype/pom.xml
+++ b/ggitflow-maven-archetype/pom.xml
@@ -1,45 +1,45 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
-        <version>1.8-SNAPSHOT</version>
+        <version>1.9-SNAPSHOT</version>
     </parent>
 
     <groupId>com.dkirrane.maven.archetype</groupId>
     <artifactId>ggitflow-maven-archetype</artifactId>
-    <version>1.8-SNAPSHOT</version>
+    <version>1.9-SNAPSHOT</version>
     <packaging>maven-archetype</packaging>
     <name>ggitflow-maven-archetype</name>
 
     <build>
         <extensions>
             <extension>
                 <groupId>org.apache.maven.archetype</groupId>
                 <artifactId>archetype-packaging</artifactId>
                 <version>2.2</version>
             </extension>
         </extensions>
 
         <pluginManagement>
             <plugins>
                 <plugin>
                     <artifactId>maven-archetype-plugin</artifactId>
                     <version>2.2</version>
                 </plugin>
             </plugins>
         </pluginManagement>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <skip>true</skip>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index 73bc1aa..a9699b1 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,170 +1,170 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
-        <version>1.8-SNAPSHOT</version>
+        <version>1.9-SNAPSHOT</version>
     </parent>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
-    <version>1.8-SNAPSHOT</version>
+    <version>1.9-SNAPSHOT</version>
     <packaging>maven-plugin</packaging>
     <name>ggitflow-maven-plugin</name>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
-            <version>2.3-SNAPSHOT</version>
+            <version>2.3</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>3.2</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>3.0.8</version>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-interactivity-api</artifactId>
             <version>1.0-alpha-5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>2.4</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-project</artifactId>
             <version>2.2.1</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-clean-plugin</artifactId>
             <version>2.5</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-install-plugin</artifactId>
             <version>2.5.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-deploy-plugin</artifactId>
             <version>2.8.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-artifact</artifactId>
             <version>2.2.1</version>
         </dependency>
         <dependency>
             <groupId>com.google.guava</groupId>
             <artifactId>guava</artifactId>
             <version>16.0.1</version>
         </dependency>
 
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-api</artifactId>
             <version>1.7.21</version>
         </dependency>
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-simple</artifactId>
             <version>1.7.21</version>
         </dependency>
 
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
     </dependencies>
 
     <build>
         <resources>
             <resource>
                 <directory>src/it</directory>
                 <includes>
                     <include>**/**</include>
                 </includes>
             </resource>
         </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>3.2</version>
                 <configuration>
                     <goalPrefix>ggitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>com.github.github</groupId>
                 <artifactId>site-maven-plugin</artifactId>
                 <version>0.9</version>
                 <configuration>
                     <message>Creating site for ${project.version}</message>
                     <server>github</server>
                     <merge>true</merge>
                 </configuration>
                 <executions>
                     <execution>
                         <goals>
                             <goal>site</goal>
                         </goals>
                         <phase>site</phase>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <reportPlugins>
                         <plugin>
                             <groupId>org.apache.maven.plugins</groupId>
                             <artifactId>maven-plugin-plugin</artifactId>
                             <version>3.2</version>
                         </plugin>
                     </reportPlugins>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/pom.xml b/pom.xml
index 6c5fd89..48e3cce 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,175 +1,175 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven</artifactId>    
-    <version>1.8-SNAPSHOT</version>
+    <version>1.9-SNAPSHOT</version>
     <name>ggitflow-maven</name>
     <packaging>pom</packaging>
 
     <modules>
         <module>ggitflow-maven-plugin</module>
         <module>ggitflow-maven-archetype</module>
     </modules>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
     </properties>
 
     <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
 
     <scm>
         <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
         <connection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</connection>
         <developerConnection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</developerConnection>
     </scm>
 
     <description>Maven Archetype for the Gitflow Maven Plugin</description>
     <developers>
         <developer>
             <id>dkirrane</id>
             <name>Desmond Kirrane</name>
             <email>desmond.kirrane@gmail.com</email>
         </developer>
     </developers>
     <licenses>
         <license>
             <name>Apache License Version 2.0, January 2004</name>
             <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
             <distribution>repo</distribution>
         </license>
     </licenses>
 
     <build>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <version>2.3.2</version>
                 <configuration>
                     <source>1.5</source>
                     <target>1.5</target>
                 </configuration>
             </plugin>          
         </plugins>
     </build>
 
     <profiles>
         <!-- For Release versions the Sonatype Nexus Stage rules require artifacts to be signed -->
         <!-- http://blog.sonatype.com/2010/01/how-to-generate-pgp-signatures-with-maven -->
         <!-- 1. Setup gpg, @see https://github.com/dkirrane/ggitflow/blob/develop/gradle.properties.sample -->
         <!-- 2. Run Maven deploy sign: mvn clean deploy -Prelease-sign-artifacts -->
         <!-- 3. Login to Nexus to release from the Stage: https://oss.sonatype.org | Login | Staging Repositories | Search for: com.dkirrane | Release -->
         <profile>
             <id>release-sign-artifacts</id>
             <activation>
                 <activeByDefault>false</activeByDefault>
             </activation>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-gpg-plugin</artifactId>
                         <version>1.6</version>
                         <executions>
                             <execution>
                                 <id>sign-artifacts</id>
                                 <phase>verify</phase>
                                 <goals>
                                     <goal>sign</goal>
                                 </goals>
                                 <configuration>
                                     <useAgent>false</useAgent>
                                 </configuration>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
             </build>
         </profile>
         <profile>
             <id>run-its</id>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-invoker-plugin</artifactId>
                         <version>1.8</version>
                         <configuration>
                             <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
                             <settingsFile>src/it/settings.xml</settingsFile>
                             <debug>true</debug>
                             <showErrors>true</showErrors>
                             <detail>true</detail>
                             <streamLogs>true</streamLogs>
                             <projectsDirectory>src/it/projects</projectsDirectory>
                             <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
                             <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
                             <addTestClassPath>true</addTestClassPath>
                             <preBuildHookScript>setup</preBuildHookScript>
                             <postBuildHookScript>verify</postBuildHookScript>
                             <pomIncludes>
                                 <pomInclude>*/pom.xml</pomInclude>
                             </pomIncludes>
                             <goals>
                                 <goal>clean</goal>
                                 <goal>test-compile</goal>
                             </goals>
                         </configuration>
                         <executions>
                             <execution>
                                 <id>integration-test</id>
                                 <goals>
                                     <goal>install</goal>
                                     <goal>integration-test</goal>
                                     <goal>verify</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
 
             </build>
         </profile>
     </profiles>
 
     <!--
         Sonatype upload details:
         http://central.sonatype.org/pages/ossrh-guide.html
         http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
         https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
         https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
         https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
 
             - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
             - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
             - Promote staged artifacts into repository 'Releases'
             - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
             - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
     -->
 
     <distributionManagement>
         <snapshotRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
         </snapshotRepository>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
         </repository>
     </distributionManagement>
     <repositories>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
             <snapshots>
                 <enabled>true</enabled>
             </snapshots>
         </repository>
     </repositories>
 </project>

commit 097f7efd57ee561388b24d48b49118e90d2061c6
Author: dkirrane <dkirrane@avaya.com>
Date:   Mon Jul 18 13:07:36 2016 +0100

    log at debug

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index 4f0065a..54fa20c 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -82,538 +82,538 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 public class AbstractGitflowMojo extends AbstractMojo {
 
     public final Pattern matchSnapshotRegex = Pattern.compile("-SNAPSHOT");
 
     public static final ImmutableList<String> DEFAULT_INSTALL_ARGS = ImmutableList.of(
             "-DinstallAtEnd=false");
 
     public static final ImmutableList<String> DEFAULT_DEPLOY_ARGS = ImmutableList.of(
             "-DdeployAtEnd=false",
             "-DretryFailedDeploymentCount=2");
 
     public static final Splitter PROFILES_SPLITTER = Splitter.on(',').trimResults().omitEmptyStrings();
     public static final Joiner PROFILES_JOINER = Joiner.on(',').skipNulls();
 
     /**
      * Gitflow branches and prefixes to use.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
     /**
      * Message prefix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgPrefix", defaultValue = "", required = false)
     protected String msgPrefix;
 
     /**
      * Message suffix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgSuffix", defaultValue = "", required = false)
     protected String msgSuffix;
 
     /**
      * Component used to prompt for input.
      */
     @Component
     protected Prompter prompter;
 
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
     @Component
     protected ArtifactResolver artifactResolver;
 
     /**
      * @parameter default-value="${project.artifacts}"
      * @required
      * @readonly
      */
     protected Collection artifacts;
 
     /**
      * @parameter expression="${localRepository}"
      */
     protected ArtifactRepository localRepository;
 
     /**
      * @parameter expression="${project.remoteArtifactRepositories}"
      */
     protected List remoteArtifactRepositories;
 
 //    @Component
 //    protected MavenProjectBuilder projectBuilder;
 //    @Component
 //    protected DefaultProjectBuilder projectBuilder;
 //    /**
 //     * @parameter property="plugin"
 //     * @required
 //     */
 //    @Component
 //    protected PluginDescriptor pluginDescriptor;
 //
     /**
      * The projects in the reactor.
      */
     @Parameter(defaultValue = "${reactorProjects}", readonly = true, required = true)
     protected List<MavenProject> reactorProjects;
 
     /**
      * The project builder
      */
     @Component
     private ProjectBuilder projectBuilder;
 
     /**
      * The project currently being build.
      *
      * @parameter expression="${project}"
      * @required
      * @readonly
      */
     @Component
     protected MavenProject project;
 
     /**
      * The current Maven session.
      *
      * @parameter expression="${session}"
      * @required
      * @readonly
      */
     @Component
     protected MavenSession session;
 
     /**
      * The Maven BuildPluginManager component.
      *
      * @component
      * @required
      */
     @Component
     protected BuildPluginManager pluginManager;
 
 //    @Parameter(defaultValue = "${basedir}", readonly = true, required = true)
 //    protected File basedir;
 //    @Component
 //    protected Settings settings;
     private GitflowInit init;
     private Path tempDir;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     public void execute() throws MojoExecutionException, MojoFailureException {
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             getLog().debug("Gitflow pom  '" + project.getBasedir() + "'");
         }
 
         GitflowInit gitflowInit = getGitflowInit();
 
         gitflowInit.requireGitRepo();
 
         if (!gitflowInit.gitflowIsInitialized()) {
             try {
                 gitflowInit.cmdDefault();
             } catch (GitflowException ex) {
                 throw new MojoExecutionException("Failed to inintialise Gitflow " + ex.getMessage(), ex);
             }
         }
 
         gitflowInit.requireCleanWorkingTree();
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     protected final GitflowInit getGitflowInit() {
         if (null == init) {
             getLog().info("Initialising Gitflow");
             init = new GitflowInit();
             File basedir = getProject().getBasedir();
             getLog().debug("Setting base directory " + basedir);
             init.setRepoDir(basedir);
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
 
             /* root Git directory may not be the pom directory */
             String gitRootPath = init.executeLocal("git rev-parse --show-toplevel");
             getLog().debug("Git repo top level " + gitRootPath);
             File baseGitDir = new File(gitRootPath);
             if (baseGitDir.isDirectory()) {
                 getLog().debug("Setting git base directory " + baseGitDir);
                 init.setRepoDir(baseGitDir);
             }
 
             /* Create temp directory - delete any previous first */
             try {
                 Finder finder = new Finder(Syntax.glob, "mvn-gitflow*");
                 Files.walkFileTree(Paths.get(System.getProperty("java.io.tmpdir")), finder);
                 List<Path> paths = finder.getPaths();
-                getLog().info("Deleting old temp directories " + paths);
+                getLog().debug("Deleting old temp directories " + paths);
                 for (Path path : paths) {
                     FileUtils.deleteDirectory(path.toFile());
                 }
                 tempDir = Files.createTempDirectory("mvn-gitflow");
             } catch (IOException ioe) {
                 getLog().error("Failed to create temp directory", ioe);
             }
         }
         return init;
     }
 
     protected final boolean setVersion(String version, Boolean push, String branch) throws MojoExecutionException, MojoFailureException {
         getLog().debug("START org.codehaus.mojo:versions-maven-plugin:2.2:set '" + version + "'");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
 
 //        session.getRequest().setLoggingLevel(MavenExecutionRequest.LOGGING_LEVEL_WARN);
 //        System.setProperty("org.slf4j.simpleLogger.defaultLogLevel", "error");
 //        System.setProperty("maven.logging.root.level", "error");
         Plugin versionsPlugin = plugin(
                 groupId("org.codehaus.mojo"),
                 artifactId("versions-maven-plugin"),
                 version("2.2")
         );
 
         String goal = goal("set");
 
         MavenProject topLevelProject = session.getTopLevelProject();
         getLog().info("");
         getLog().info("--- " + versionsPlugin.getArtifactId() + ':' + versionsPlugin.getVersion() + ':' + goal + " " + topLevelProject.getArtifactId() + " to " + version + " (" + branch + ") ---");
         session.setCurrentProject(topLevelProject);
         PrintStream stdout = System.out;
         try {
 
             /* Capture System.out */
             Path tempStoutFile = null;
             PrintStream stoutStream = null;
             if (!getLog().isDebugEnabled()) {
                 try {
                     tempStoutFile = Files.createTempFile(tempDir, "mvn-versions-set-", ".log");
                     stoutStream = new PrintStream(new FileOutputStream(tempStoutFile.toFile(), true));
                     System.setOut(stoutStream);
                 } catch (Exception ioe) {
                     throw new MojoExecutionException("Failed to capture System.out", ioe);
                 }
             }
 
             /* Execute versions:set */
             executeMojo(
                     versionsPlugin,
                     goal,
                     configuration(
                             element(name("generateBackupPoms"), "false"),
                             element(name("newVersion"), version)
                     ),
                     executionEnvironment(
                             topLevelProject,
                             session,
                             pluginManager
                     )
             );
 
             /* Reset System.out */
             if (!getLog().isDebugEnabled()) {
                 try {
                     System.setOut(stdout);
                     stoutStream.close();
                     getLog().info("versions-maven-plugin:2.2:set log " + tempStoutFile.toString());
                 } catch (Exception ex) {
                 }
             }
 
         } catch (MojoExecutionException mee) {
             /* Reset System.out */
             System.setOut(stdout);
             String rootCauseMessage = ExceptionUtils.getRootCauseMessage(mee);
             if (rootCauseMessage.contains("Project version is inherited from parent")) {
                 getLog().debug("Skipping versions-maven-plugin:set for project " + topLevelProject.getArtifactId() + ". Project version is inherited from parent.");
             } else {
                 getLog().error("Cannot set " + topLevelProject.getArtifactId() + " to version '" + version + "'", mee);
                 throw mee;
             }
         }
         getLog().info("------------------------------------------------------------------------");
 
         boolean commitMade = false;
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (push && getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change " + version + " to origin. ExitCode:" + exitCode);
                 }
             }
             commitMade = true;
         }
         /* We don't want to fail maybe the version was manually set correctly */
 //        else {
 //            throw new MojoFailureException("Failed to update poms to version " + version);
 //        }
         return commitMade;
     }
 
     protected final boolean setNextVersions(Boolean allowSnapshots, Boolean updateParent, String includes) throws MojoExecutionException, MojoFailureException {
         getLog().debug("setNextVersions");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
 
         if (updateParent) {
             getLog().debug("START org.codehaus.mojo:versions-maven-plugin:2.2:update-parent updateParent=" + updateParent);
             executeMojo(
                     plugin(
                             groupId("org.codehaus.mojo"),
                             artifactId("versions-maven-plugin"),
                             version("2.2")
                     ),
                     goal("update-parent"),
                     configuration(
                             element(name("generateBackupPoms"), "false"),
                             element(name("allowSnapshots"), allowSnapshots.toString())
                     ),
                     executionEnvironment(
                             rootProject,
                             session,
                             pluginManager
                     )
             );
             getLog().debug("DONE org.codehaus.mojo:versions-maven-plugin:2.2:update-parent");
         }
 
         if (!StringUtils.isBlank(includes)) {
             getLog().debug("START org.codehaus.mojo:versions-maven-plugin:2.2:use-next-versions allowSnapshots=" + allowSnapshots);
             for (MavenProject mavenProject : reactorProjects) {
                 getLog().debug("Calling use-next-versions on " + mavenProject.getArtifactId());
                 session.setCurrentProject(mavenProject);
                 executeMojo(
                         plugin(
                                 groupId("org.codehaus.mojo"),
                                 artifactId("versions-maven-plugin"),
                                 version("2.2")
                         ),
                         goal("use-next-versions"),
                         configuration(
                                 element(name("generateBackupPoms"), "false"),
                                 element(name("allowSnapshots"), allowSnapshots.toString()),
                                 element(name("includesList"), includes)
                         ),
                         executionEnvironment(
                                 mavenProject,
                                 session,
                                 pluginManager
                         )
                 );
             }
             getLog().debug("DONE org.codehaus.mojo:versions-maven-plugin:2.2:use-next-versions");
         } else {
             getLog().warn("Parameter <includes> is not set. Skipping dependency updates");
         }
 
         boolean commitMade = false;
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg;
             if (allowSnapshots) {
                 msg = getMsgPrefix() + "Replaces any release versions with the next snapshot version (if it has been deployed)." + getMsgSuffix();
             } else {
                 msg = getMsgPrefix() + "Replaces snapshot versions with the corresponding release version" + getMsgSuffix();
             }
 
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change to origin. ExitCode:" + exitCode);
                 }
             }
             commitMade = true;
         }
         return commitMade;
     }
 
     protected final void runGoals(String goals, List<String> additionalArgs) throws MojoExecutionException, MojoFailureException {
         getLog().debug("START executing " + goals + " with args " + additionalArgs);
 
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         File basedir = rootProject.getBasedir();
 
         ReleaseResult result = new ReleaseResult();
         ReleaseEnvironment env = new DefaultReleaseEnvironment();
         env.setSettings(session.getSettings());
         MavenExecutor mavenExecutor = mavenExecutors.get(env.getMavenExecutorId());
 
         Joiner joiner = Joiner.on(" ").skipNulls();
         String additionalArguments = joiner.join(additionalArgs);
         getLog().debug("additionalArguments " + additionalArguments);
 
         try {
             mavenExecutor.executeGoals(basedir, goals, env, false, additionalArguments, result);
         } catch (MavenExecutorException ex) {
             throw new MojoExecutionException(result.getOutput(), ex);
         }
         getLog().debug("DONE executing " + goals);
     }
 
     protected final String getReleaseVersion(String version) throws MojoFailureException {
         getLog().debug("Current Develop version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
             getLog().debug("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
     protected final void checkForSnapshotDependencies() throws MojoExecutionException {
         getLog().info("Checking for SNAPSHOT dependencies");
         Boolean hasDepSnapshots = false;
         Boolean hasParentSnapshot = false;
         for (MavenProject mavenProject : reactorProjects) {
             String artifactId = mavenProject.getArtifactId();
 
             /* Check <parent> */
             Artifact parentArtifact = mavenProject.getParentArtifact();
             if (parentArtifact != null && parentArtifact.isSnapshot()) {
                 getLog().error("Parent of project " + artifactId + " is a SNAPSHOT " + parentArtifact.getId());
                 hasParentSnapshot = true;
             }
 
             /* Check <dependencyManagement> */
             DependencyManagement dependencyManagement = mavenProject.getDependencyManagement();
             if (null != dependencyManagement) {
                 if (checkForSnapshot(artifactId, dependencyManagement.getDependencies())) {
                     hasDepSnapshots = true;
                 }
             }
 
             /* Check <dependencies> */
             if (checkForSnapshot(artifactId, mavenProject.getDependencies())) {
                 hasDepSnapshots = true;
             }
         }
         if (hasParentSnapshot || hasDepSnapshots) {
             throw new MojoExecutionException("Cannot release because SNAPSHOT dependencies exist");
         }
     }
 
     private boolean checkForSnapshot(String artifactId, List<Dependency> dependencies) throws MojoExecutionException {
         Boolean hasSnapshotDependency = false;
         for (Dependency dependency : dependencies) {
             String version = dependency.getVersion();
             Matcher versionMatcher = matchSnapshotRegex.matcher(version);
             if (versionMatcher.find() && versionMatcher.end() == version.length()) {
                 getLog().error("Project " + artifactId + " contains SNAPSHOT dependency: " + dependency.getGroupId() + ":" + dependency.getArtifactId() + ":" + version);
                 hasSnapshotDependency = true;
             }
         }
         return hasSnapshotDependency;
     }
 
     protected final void reloadReactorProjects() throws MojoExecutionException {
         getLog().debug("Reloading poms...");
 
         List<MavenProject> newReactorProjects;
         try {
             newReactorProjects = buildReactorProjects();
         } catch (ProjectBuildingException e) {
             getLog().error("Re-parse aborted due to malformed pom.xml file(s)", e);
             throw new MojoExecutionException("Re-parse aborted due to malformed pom.xml file(s)", e);
         } catch (CycleDetectedException e) {
             getLog().error("Re-parse aborted due to dependency cycle in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to dependency cycle in project model", e);
         } catch (DuplicateProjectException e) {
             getLog().error("Re-parse aborted due to duplicate projects in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to duplicate projects in project model", e);
         } catch (Exception e) {
             getLog().error("Re-parse aborted due a problem that prevented sorting the project model", e);
             throw new MojoExecutionException("Re-parse aborted due a problem that prevented sorting the project model", e);
         }
         MavenProject newProject = findProject(newReactorProjects, this.project);
         if (newProject == null) {
             throw new MojoExecutionException("A pom.xml change appears to have removed " + this.project.getId() + " from the build plan.");
         }
 
         this.project = newProject;
         this.reactorProjects = newReactorProjects;
 
         getLog().debug("Reloading poms complete...");
     }
 
     private List<MavenProject> buildReactorProjects() throws Exception {
 
         List<MavenProject> projects = new ArrayList<MavenProject>();
         for (MavenProject p : reactorProjects) {
             ProjectBuildingRequest request = new DefaultProjectBuildingRequest();
 
             request.setProcessPlugins(false);
             request.setProfiles(request.getProfiles());
             request.setActiveProfileIds(session.getRequest().getActiveProfiles());
             request.setInactiveProfileIds(session.getRequest().getInactiveProfiles());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setSystemProperties(session.getSystemProperties());
             request.setUserProperties(session.getUserProperties());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setPluginArtifactRepositories(session.getRequest().getPluginArtifactRepositories());
             request.setRepositorySession(session.getRepositorySession());
             request.setLocalRepository(localRepository);
             request.setBuildStartTime(session.getRequest().getStartTime());
             request.setResolveDependencies(false);
             request.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_STRICT);
             projects.add(projectBuilder.build(p.getFile(), request).getProject());
         }
         return new ProjectSorter(projects).getSortedProjects();
     }
 
     private MavenProject findProject(List<MavenProject> newReactorProjects, MavenProject oldProject) {
         for (MavenProject newProject : newReactorProjects) {
             if (oldProject.getGroupId().equals(newProject.getGroupId())
                     && oldProject.getArtifactId().equals(newProject.getArtifactId())) {
                 return newProject;
             }
         }
         return null;
     }
 
 }

commit c7808c7fb4699e0b4a88b020d260f58cb6f8bf0b
Author: dkirrane <dkirrane@avaya.com>
Date:   Mon Jul 18 13:07:05 2016 +0100

    save set version out put to temp log

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index f5a4d22..4f0065a 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -19,2 +19,4 @@ import com.dkirrane.gitflow.groovy.GitflowInit;
 import com.dkirrane.gitflow.groovy.ex.GitflowException;
+import com.dkirrane.maven.plugins.ggitflow.util.Finder;
+import com.dkirrane.maven.plugins.ggitflow.util.Finder.Syntax;
 import com.dkirrane.maven.plugins.ggitflow.util.MavenUtil;
@@ -24,6 +26,8 @@ import com.google.common.collect.ImmutableList;
 import java.io.File;
+import java.io.FileOutputStream;
 import java.io.IOException;
-import java.io.PipedInputStream;
-import java.io.PipedOutputStream;
 import java.io.PrintStream;
+import java.nio.file.Files;
+import java.nio.file.Path;
+import java.nio.file.Paths;
 import java.util.ArrayList;
@@ -62,2 +66,3 @@ import org.apache.maven.shared.release.exec.MavenExecutorException;
 import org.codehaus.plexus.components.interactivity.Prompter;
+import org.codehaus.plexus.util.FileUtils;
 import org.codehaus.plexus.util.StringUtils;
@@ -77,522 +82,538 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 public class AbstractGitflowMojo extends AbstractMojo {
 
     public final Pattern matchSnapshotRegex = Pattern.compile("-SNAPSHOT");
 
     public static final ImmutableList<String> DEFAULT_INSTALL_ARGS = ImmutableList.of(
             "-DinstallAtEnd=false");
 
     public static final ImmutableList<String> DEFAULT_DEPLOY_ARGS = ImmutableList.of(
             "-DdeployAtEnd=false",
             "-DretryFailedDeploymentCount=2");
 
     public static final Splitter PROFILES_SPLITTER = Splitter.on(',').trimResults().omitEmptyStrings();
     public static final Joiner PROFILES_JOINER = Joiner.on(',').skipNulls();
 
     /**
      * Gitflow branches and prefixes to use.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
     /**
      * Message prefix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgPrefix", defaultValue = "", required = false)
     protected String msgPrefix;
 
     /**
      * Message suffix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgSuffix", defaultValue = "", required = false)
     protected String msgSuffix;
 
     /**
      * Component used to prompt for input.
      */
     @Component
     protected Prompter prompter;
 
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
     @Component
     protected ArtifactResolver artifactResolver;
 
     /**
      * @parameter default-value="${project.artifacts}"
      * @required
      * @readonly
      */
     protected Collection artifacts;
 
     /**
      * @parameter expression="${localRepository}"
      */
     protected ArtifactRepository localRepository;
 
     /**
      * @parameter expression="${project.remoteArtifactRepositories}"
      */
     protected List remoteArtifactRepositories;
 
 //    @Component
 //    protected MavenProjectBuilder projectBuilder;
 //    @Component
 //    protected DefaultProjectBuilder projectBuilder;
 //    /**
 //     * @parameter property="plugin"
 //     * @required
 //     */
 //    @Component
 //    protected PluginDescriptor pluginDescriptor;
 //
     /**
      * The projects in the reactor.
      */
     @Parameter(defaultValue = "${reactorProjects}", readonly = true, required = true)
     protected List<MavenProject> reactorProjects;
 
     /**
      * The project builder
      */
     @Component
     private ProjectBuilder projectBuilder;
 
     /**
      * The project currently being build.
      *
      * @parameter expression="${project}"
      * @required
      * @readonly
      */
     @Component
     protected MavenProject project;
 
     /**
      * The current Maven session.
      *
      * @parameter expression="${session}"
      * @required
      * @readonly
      */
     @Component
     protected MavenSession session;
 
     /**
      * The Maven BuildPluginManager component.
      *
      * @component
      * @required
      */
     @Component
     protected BuildPluginManager pluginManager;
 
 //    @Parameter(defaultValue = "${basedir}", readonly = true, required = true)
 //    protected File basedir;
 //    @Component
 //    protected Settings settings;
     private GitflowInit init;
+    private Path tempDir;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     public void execute() throws MojoExecutionException, MojoFailureException {
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             getLog().debug("Gitflow pom  '" + project.getBasedir() + "'");
         }
 
         GitflowInit gitflowInit = getGitflowInit();
 
         gitflowInit.requireGitRepo();
 
         if (!gitflowInit.gitflowIsInitialized()) {
             try {
                 gitflowInit.cmdDefault();
             } catch (GitflowException ex) {
                 throw new MojoExecutionException("Failed to inintialise Gitflow " + ex.getMessage(), ex);
             }
         }
 
         gitflowInit.requireCleanWorkingTree();
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     protected final GitflowInit getGitflowInit() {
         if (null == init) {
             getLog().info("Initialising Gitflow");
             init = new GitflowInit();
             File basedir = getProject().getBasedir();
             getLog().debug("Setting base directory " + basedir);
             init.setRepoDir(basedir);
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
 
             /* root Git directory may not be the pom directory */
             String gitRootPath = init.executeLocal("git rev-parse --show-toplevel");
             getLog().debug("Git repo top level " + gitRootPath);
             File baseGitDir = new File(gitRootPath);
             if (baseGitDir.isDirectory()) {
                 getLog().debug("Setting git base directory " + baseGitDir);
                 init.setRepoDir(baseGitDir);
             }
+
+            /* Create temp directory - delete any previous first */
+            try {
+                Finder finder = new Finder(Syntax.glob, "mvn-gitflow*");
+                Files.walkFileTree(Paths.get(System.getProperty("java.io.tmpdir")), finder);
+                List<Path> paths = finder.getPaths();
+                getLog().info("Deleting old temp directories " + paths);
+                for (Path path : paths) {
+                    FileUtils.deleteDirectory(path.toFile());
+                }
+                tempDir = Files.createTempDirectory("mvn-gitflow");
+            } catch (IOException ioe) {
+                getLog().error("Failed to create temp directory", ioe);
+            }
         }
         return init;
     }
 
     protected final boolean setVersion(String version, Boolean push, String branch) throws MojoExecutionException, MojoFailureException {
         getLog().debug("START org.codehaus.mojo:versions-maven-plugin:2.2:set '" + version + "'");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
 
 //        session.getRequest().setLoggingLevel(MavenExecutionRequest.LOGGING_LEVEL_WARN);
 //        System.setProperty("org.slf4j.simpleLogger.defaultLogLevel", "error");
 //        System.setProperty("maven.logging.root.level", "error");
         Plugin versionsPlugin = plugin(
                 groupId("org.codehaus.mojo"),
                 artifactId("versions-maven-plugin"),
                 version("2.2")
         );
 
         String goal = goal("set");
 
         MavenProject topLevelProject = session.getTopLevelProject();
         getLog().info("");
         getLog().info("--- " + versionsPlugin.getArtifactId() + ':' + versionsPlugin.getVersion() + ':' + goal + " " + topLevelProject.getArtifactId() + " to " + version + " (" + branch + ") ---");
         session.setCurrentProject(topLevelProject);
         PrintStream stdout = System.out;
         try {
 
             /* Capture System.out */
-            PipedOutputStream pipeOut;
-            PipedInputStream pipeIn;
-            PrintStream printOut;
-            try {
-                pipeOut = new PipedOutputStream();
-                pipeIn = new PipedInputStream(pipeOut);
-                printOut = new PrintStream(pipeOut);
-                System.setOut(printOut);
-            } catch (IOException ioe) {
-                throw new MojoExecutionException("Failed to capture System.out", ioe);
+            Path tempStoutFile = null;
+            PrintStream stoutStream = null;
+            if (!getLog().isDebugEnabled()) {
+                try {
+                    tempStoutFile = Files.createTempFile(tempDir, "mvn-versions-set-", ".log");
+                    stoutStream = new PrintStream(new FileOutputStream(tempStoutFile.toFile(), true));
+                    System.setOut(stoutStream);
+                } catch (Exception ioe) {
+                    throw new MojoExecutionException("Failed to capture System.out", ioe);
+                }
             }
 
             /* Execute versions:set */
             executeMojo(
                     versionsPlugin,
                     goal,
                     configuration(
                             element(name("generateBackupPoms"), "false"),
                             element(name("newVersion"), version)
                     ),
                     executionEnvironment(
                             topLevelProject,
                             session,
                             pluginManager
                     )
             );
 
             /* Reset System.out */
-            try {
-                System.setOut(stdout);
-                printOut.close();
-                pipeIn.close();
-                printOut.close();
-            } catch (IOException ex) {
+            if (!getLog().isDebugEnabled()) {
+                try {
+                    System.setOut(stdout);
+                    stoutStream.close();
+                    getLog().info("versions-maven-plugin:2.2:set log " + tempStoutFile.toString());
+                } catch (Exception ex) {
+                }
             }
 
         } catch (MojoExecutionException mee) {
             /* Reset System.out */
             System.setOut(stdout);
             String rootCauseMessage = ExceptionUtils.getRootCauseMessage(mee);
             if (rootCauseMessage.contains("Project version is inherited from parent")) {
                 getLog().debug("Skipping versions-maven-plugin:set for project " + topLevelProject.getArtifactId() + ". Project version is inherited from parent.");
             } else {
                 getLog().error("Cannot set " + topLevelProject.getArtifactId() + " to version '" + version + "'", mee);
                 throw mee;
             }
         }
         getLog().info("------------------------------------------------------------------------");
 
         boolean commitMade = false;
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (push && getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change " + version + " to origin. ExitCode:" + exitCode);
                 }
             }
             commitMade = true;
         }
         /* We don't want to fail maybe the version was manually set correctly */
 //        else {
 //            throw new MojoFailureException("Failed to update poms to version " + version);
 //        }
         return commitMade;
     }
 
     protected final boolean setNextVersions(Boolean allowSnapshots, Boolean updateParent, String includes) throws MojoExecutionException, MojoFailureException {
         getLog().debug("setNextVersions");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
 
         if (updateParent) {
             getLog().debug("START org.codehaus.mojo:versions-maven-plugin:2.2:update-parent updateParent=" + updateParent);
             executeMojo(
                     plugin(
                             groupId("org.codehaus.mojo"),
                             artifactId("versions-maven-plugin"),
                             version("2.2")
                     ),
                     goal("update-parent"),
                     configuration(
                             element(name("generateBackupPoms"), "false"),
                             element(name("allowSnapshots"), allowSnapshots.toString())
                     ),
                     executionEnvironment(
                             rootProject,
                             session,
                             pluginManager
                     )
             );
             getLog().debug("DONE org.codehaus.mojo:versions-maven-plugin:2.2:update-parent");
         }
 
         if (!StringUtils.isBlank(includes)) {
             getLog().debug("START org.codehaus.mojo:versions-maven-plugin:2.2:use-next-versions allowSnapshots=" + allowSnapshots);
             for (MavenProject mavenProject : reactorProjects) {
                 getLog().debug("Calling use-next-versions on " + mavenProject.getArtifactId());
                 session.setCurrentProject(mavenProject);
                 executeMojo(
                         plugin(
                                 groupId("org.codehaus.mojo"),
                                 artifactId("versions-maven-plugin"),
                                 version("2.2")
                         ),
                         goal("use-next-versions"),
                         configuration(
                                 element(name("generateBackupPoms"), "false"),
                                 element(name("allowSnapshots"), allowSnapshots.toString()),
                                 element(name("includesList"), includes)
                         ),
                         executionEnvironment(
                                 mavenProject,
                                 session,
                                 pluginManager
                         )
                 );
             }
             getLog().debug("DONE org.codehaus.mojo:versions-maven-plugin:2.2:use-next-versions");
         } else {
             getLog().warn("Parameter <includes> is not set. Skipping dependency updates");
         }
 
         boolean commitMade = false;
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg;
             if (allowSnapshots) {
                 msg = getMsgPrefix() + "Replaces any release versions with the next snapshot version (if it has been deployed)." + getMsgSuffix();
             } else {
                 msg = getMsgPrefix() + "Replaces snapshot versions with the corresponding release version" + getMsgSuffix();
             }
 
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change to origin. ExitCode:" + exitCode);
                 }
             }
             commitMade = true;
         }
         return commitMade;
     }
 
     protected final void runGoals(String goals, List<String> additionalArgs) throws MojoExecutionException, MojoFailureException {
         getLog().debug("START executing " + goals + " with args " + additionalArgs);
 
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         File basedir = rootProject.getBasedir();
 
         ReleaseResult result = new ReleaseResult();
         ReleaseEnvironment env = new DefaultReleaseEnvironment();
         env.setSettings(session.getSettings());
         MavenExecutor mavenExecutor = mavenExecutors.get(env.getMavenExecutorId());
 
         Joiner joiner = Joiner.on(" ").skipNulls();
         String additionalArguments = joiner.join(additionalArgs);
         getLog().debug("additionalArguments " + additionalArguments);
 
         try {
             mavenExecutor.executeGoals(basedir, goals, env, false, additionalArguments, result);
         } catch (MavenExecutorException ex) {
             throw new MojoExecutionException(result.getOutput(), ex);
         }
         getLog().debug("DONE executing " + goals);
     }
 
     protected final String getReleaseVersion(String version) throws MojoFailureException {
         getLog().debug("Current Develop version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
             getLog().debug("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
     protected final void checkForSnapshotDependencies() throws MojoExecutionException {
         getLog().info("Checking for SNAPSHOT dependencies");
         Boolean hasDepSnapshots = false;
         Boolean hasParentSnapshot = false;
         for (MavenProject mavenProject : reactorProjects) {
             String artifactId = mavenProject.getArtifactId();
 
             /* Check <parent> */
             Artifact parentArtifact = mavenProject.getParentArtifact();
             if (parentArtifact != null && parentArtifact.isSnapshot()) {
                 getLog().error("Parent of project " + artifactId + " is a SNAPSHOT " + parentArtifact.getId());
                 hasParentSnapshot = true;
             }
 
             /* Check <dependencyManagement> */
             DependencyManagement dependencyManagement = mavenProject.getDependencyManagement();
             if (null != dependencyManagement) {
                 if (checkForSnapshot(artifactId, dependencyManagement.getDependencies())) {
                     hasDepSnapshots = true;
                 }
             }
 
             /* Check <dependencies> */
             if (checkForSnapshot(artifactId, mavenProject.getDependencies())) {
                 hasDepSnapshots = true;
             }
         }
         if (hasParentSnapshot || hasDepSnapshots) {
             throw new MojoExecutionException("Cannot release because SNAPSHOT dependencies exist");
         }
     }
 
     private boolean checkForSnapshot(String artifactId, List<Dependency> dependencies) throws MojoExecutionException {
         Boolean hasSnapshotDependency = false;
         for (Dependency dependency : dependencies) {
             String version = dependency.getVersion();
             Matcher versionMatcher = matchSnapshotRegex.matcher(version);
             if (versionMatcher.find() && versionMatcher.end() == version.length()) {
                 getLog().error("Project " + artifactId + " contains SNAPSHOT dependency: " + dependency.getGroupId() + ":" + dependency.getArtifactId() + ":" + version);
                 hasSnapshotDependency = true;
             }
         }
         return hasSnapshotDependency;
     }
 
     protected final void reloadReactorProjects() throws MojoExecutionException {
         getLog().debug("Reloading poms...");
 
         List<MavenProject> newReactorProjects;
         try {
             newReactorProjects = buildReactorProjects();
         } catch (ProjectBuildingException e) {
             getLog().error("Re-parse aborted due to malformed pom.xml file(s)", e);
             throw new MojoExecutionException("Re-parse aborted due to malformed pom.xml file(s)", e);
         } catch (CycleDetectedException e) {
             getLog().error("Re-parse aborted due to dependency cycle in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to dependency cycle in project model", e);
         } catch (DuplicateProjectException e) {
             getLog().error("Re-parse aborted due to duplicate projects in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to duplicate projects in project model", e);
         } catch (Exception e) {
             getLog().error("Re-parse aborted due a problem that prevented sorting the project model", e);
             throw new MojoExecutionException("Re-parse aborted due a problem that prevented sorting the project model", e);
         }
         MavenProject newProject = findProject(newReactorProjects, this.project);
         if (newProject == null) {
             throw new MojoExecutionException("A pom.xml change appears to have removed " + this.project.getId() + " from the build plan.");
         }
 
         this.project = newProject;
         this.reactorProjects = newReactorProjects;
 
         getLog().debug("Reloading poms complete...");
     }
 
     private List<MavenProject> buildReactorProjects() throws Exception {
 
         List<MavenProject> projects = new ArrayList<MavenProject>();
         for (MavenProject p : reactorProjects) {
             ProjectBuildingRequest request = new DefaultProjectBuildingRequest();
 
             request.setProcessPlugins(false);
             request.setProfiles(request.getProfiles());
             request.setActiveProfileIds(session.getRequest().getActiveProfiles());
             request.setInactiveProfileIds(session.getRequest().getInactiveProfiles());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setSystemProperties(session.getSystemProperties());
             request.setUserProperties(session.getUserProperties());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setPluginArtifactRepositories(session.getRequest().getPluginArtifactRepositories());
             request.setRepositorySession(session.getRepositorySession());
             request.setLocalRepository(localRepository);
             request.setBuildStartTime(session.getRequest().getStartTime());
             request.setResolveDependencies(false);
             request.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_STRICT);
             projects.add(projectBuilder.build(p.getFile(), request).getProject());
         }
         return new ProjectSorter(projects).getSortedProjects();
     }
 
     private MavenProject findProject(List<MavenProject> newReactorProjects, MavenProject oldProject) {
         for (MavenProject newProject : newReactorProjects) {
             if (oldProject.getGroupId().equals(newProject.getGroupId())
                     && oldProject.getArtifactId().equals(newProject.getArtifactId())) {
                 return newProject;
             }
         }
         return null;
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/util/Finder.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/util/Finder.java
new file mode 100644
index 0000000..7b7330c
--- /dev/null
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/util/Finder.java
@@ -0,0 +1,92 @@
+/*
+ * Copyright 2016 dkirrane.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.dkirrane.maven.plugins.ggitflow.util;
+
+import java.io.IOException;
+import java.nio.file.FileSystems;
+import java.nio.file.FileVisitResult;
+import static java.nio.file.FileVisitResult.CONTINUE;
+import java.nio.file.Path;
+import java.nio.file.PathMatcher;
+import java.nio.file.SimpleFileVisitor;
+import java.nio.file.attribute.BasicFileAttributes;
+import java.util.ArrayList;
+import java.util.List;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ * A {@code java.nio.file.FileVisitor} that finds all files that match the
+ * specified pattern.
+ *
+ * @author dkirrane
+ */
+public class Finder extends SimpleFileVisitor<Path> {
+
+    private static final Logger LOG = LoggerFactory.getLogger(Finder.class.getName());
+
+    public enum Syntax {
+        glob, regex;
+    }
+
+    private final PathMatcher matcher;
+    private List<Path> files = new ArrayList<Path>();
+
+    /**
+     *
+     * @param syntax "glob" and "regex" syntax
+     * @param pattern pattern to match
+     */
+    public Finder(Syntax syntax, String pattern) {
+        matcher = FileSystems.getDefault().getPathMatcher(syntax.name() + ':' + pattern);
+    }
+
+    public void find(Path file) {
+        Path name = file.getFileName();
+        if (name != null && matcher.matches(name)) {
+            LOG.debug("Found file " + file);
+            files.add(file);
+        }
+    }
+
+    /**
+     * Get files matching provided pattern
+     *
+     * @return empty list if no files found
+     */
+    public List<Path> getPaths() {
+        return files;
+    }
+
+    @Override
+    public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) {
+        find(file);
+        return CONTINUE;
+    }
+
+    @Override
+    public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) {
+        find(dir);
+        return CONTINUE;
+    }
+
+    @Override
+    public FileVisitResult visitFileFailed(Path file, IOException exc) {
+        System.err.println(exc);
+        return CONTINUE;
+    }
+
+}

commit 77e1a2312de6f8a809ad74e82ab87a2aad9e4b54
Author: dkirrane <dkirrane@avaya.com>
Date:   Fri Jul 15 17:54:10 2016 +0100

    reset hard setVersion

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
index 5aa0cb5..8a9798b 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
@@ -31,258 +31,258 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  * Merges a hotfix branch back into the develop and master branch and then
  * creates a tag for the hotfix on master.
  */
 @Mojo(name = "hotfix-finish", aggregator = true)
 public class HotfixFinishMojo extends AbstractHotfixMojo {
 
     protected String hotfixName;
 
     /**
      * If <code>true</code>, the hotfix finish merge to develop & master and
      * created tag will get pushed to the remote repository
      *
      * @since 1.6
      */
     @Parameter(property = "pushHotfixFinish", defaultValue = "false", required = false)
     protected boolean pushHotfixFinish;
 
     /**
      * If <code>true</code>, the hotfix can still finish even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private boolean allowSnapshots;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "true", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any calls to <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipDeploy", defaultValue = "true", required = false)
     private Boolean skipDeploy;
 
     /**
      * Skips any tests during <code>mvn install</code> and
      * <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipTests", defaultValue = "true", required = false)
     private Boolean skipTests;
 
     /**
      * Whether to use the release profile that adds sources and javadoc to the
      * released artifact, if appropriate. If set to true, the hotfix-finish will
      * set the property "performRelease" to true, which activates the profile
      * "release-profile", which is inherited from the super pom.
      *
      * @since 1.2
      */
     @Parameter(property = "useReleaseProfile", defaultValue = "true", required = false)
     private Boolean useReleaseProfile;
 
     /**
      * Comma separated profiles to enable on deployment, in addition to active
      * profiles for project execution.
      *
      * @since 1.2
      */
     @Parameter(property = "releaseProfiles", defaultValue = "", required = false)
     private String releaseProfiles;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the hotfix feature branch will not be deleted after
      * the merge.
      *
      * @since 1.6
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keepLocal;
 
     /**
      * If <code>true</code>, the hotfix feature branch will not be deleted after
      * the merge.
      *
      * @since 1.6
      */
     @Parameter(property = "keep", defaultValue = "true", required = false)
     private Boolean keepRemote;
 
     /**
      * If <code>true</code>, the hotfix tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().debug("Finishing hotfix");
 
         /* Get hotfix branch name */
         List<String> hotfixBranches = getGitflowInit().gitLocalHotfixBranches();
         if (hotfixBranches.isEmpty()) {
             throw new MojoFailureException("Could not find hotfix branch!");
         } else if (hotfixBranches.size() == 1) {
             hotfixName = hotfixBranches.get(0);
         } else {
             hotfixName = promptForExistingHotfixName(hotfixBranches, hotfixName);
         }
 
         getLog().info("Finishing hotfix '" + hotfixName + "'");
 
         /* Switch to develop branch and get its current version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         getLog().debug("develop version = " + developVersion);
 
         /* Switch to hotfix branch and set poms to hotfix version */
         getGitflowInit().executeLocal("git checkout " + hotfixName);
         reloadReactorProjects();
         String hotfixVersion = project.getVersion();
         getLog().debug("hotfix snapshot version = " + hotfixVersion);
         String hotfixReleaseVersion = getReleaseVersion(hotfixVersion);
         getLog().debug("hotfix release version = " + hotfixReleaseVersion);
 
         boolean setVersion = setVersion(hotfixReleaseVersion, pushHotfixFinish, hotfixName);
 
         if (!allowSnapshots) {
             reloadReactorProjects();
             try {
                 checkForSnapshotDependencies();
             } catch (MojoExecutionException mee) {
                 // reset setVersion commit and allow user fix & push SNAPSHOT dependencies
                 // but can only reset if the commit has not been pushed */
                 if (!pushHotfixFinish && setVersion) {
-                    getGitflowInit().executeLocal("git reset HEAD~1");
+                    getGitflowInit().executeLocal("git reset --hard HEAD~1");
                 }
                 throw mee;
             }
         }
 
         /* finish hotfix */
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
         gitflowHotfix.setPush(pushHotfixBranch);
         gitflowHotfix.setSquash(squash);
         gitflowHotfix.setKeepLocal(keepLocal);
         gitflowHotfix.setKeepRemote(keepRemote);
         gitflowHotfix.setSign(sign);
         gitflowHotfix.setSigningkey(signingkey);
 
         /* 1. merge to master */
         try {
             gitflowHotfix.finishToMaster(hotfixName, pushHotfixFinish);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
 
         /* 2. make versions in hotfix and develop branches match to avoid conflicts */
         getGitflowInit().executeLocal("git checkout " + hotfixName);
         reloadReactorProjects();
         setVersion(developVersion, pushHotfixFinish, hotfixName);
 
         /* 3. merge to develop */
         try {
             gitflowHotfix.finishToDevelop(hotfixName, pushHotfixFinish);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
         /* Switch to hotfix tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + hotfixReleaseVersion);
         reloadReactorProjects();
         String tagVersion = project.getVersion();
         getLog().debug("tag version = " + tagVersion);
 
         /* install or deploy */
         if (skipDeploy == false) {
             String goals = "clean deploy";
             if (project.getDistributionManagement() != null
                     && project.getDistributionManagement().getSite() != null) {
                 goals += " site-deploy";
             }
 
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             if (useReleaseProfile) {
                 additionalArgs.add("-DperformRelease=true");
             }
             if (StringUtils.isNotBlank(releaseProfiles)) {
                 Iterable<String> profiles = PROFILES_SPLITTER.split(releaseProfiles);
                 additionalArgs.add("-P " + PROFILES_JOINER.join(profiles));
             }
             runGoals(goals, additionalArgs.build());
         } else if (skipBuild == false) {
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             runGoals("clean install", additionalArgs.build());
         } else {
             getLog().debug("Skipping both install and deploy for hotfix tag " + hotfixName);
         }
 
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingHotfixName(List<String> hotfixBranches, String defaultHotfixName) throws MojoFailureException {
         String message = "Please select a hotfix branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, hotfixBranches, defaultHotfixName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading hotfix name from command line " + e.getMessage());
         }
 
         return name;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index 128e882..ef16670 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -33,319 +33,319 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  * Merges a release branch back into the develop and master branch and then
  * creates a tag for the release on master.
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
 
     /**
      * If <code>true</code>, the release finish merge to develop & master and
      * the created tag will get pushed to the remote repository
      *
      * @since 1.6
      */
     @Parameter(property = "pushReleaseFinish", defaultValue = "false", required = false)
     protected boolean pushReleaseFinish;
 
     /**
      * If <code>true</code>, the release can still finish even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private Boolean allowSnapshots;
 
     /**
      * If the project has a parent with a release version it will be replaced
      * with the next <code>-SNAPSHOT</code> version (if it has been deployed).
      * This action is performed on the develop branch after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "updateParent", defaultValue = "false", required = false)
     private Boolean updateParent;
 
     /**
      * On the release branch before finish is called any dependencies with a
      * <code>-SNAPSHOT</code> version are replaced with the corresponding
      * release version (if it has been released).
      *
      * On the develop branch after the merge any dependencies with a release
      * version are replaced with the next <code>-SNAPSHOT</code> version (if it
      * has been deployed).
      *
      * @since 1.2
      */
     @Parameter(property = "updateDependencies", defaultValue = "false", required = false)
     private Boolean updateDependencies;
 
     /**
      * If <code>updateDependencies</code> is set, then this should contain a
      * comma separated list of artifact patterns to include. Follows the pattern <code>groupId:artifactId:type:classifier:version<code>
      *
      * @since 1.5
      */
     @Parameter(property = "includes", defaultValue = "", required = false)
     private String includes;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "true", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any calls to <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipDeploy", defaultValue = "true", required = false)
     private Boolean skipDeploy;
 
     /**
      * Skips any tests during <code>mvn install</code> and
      * <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipTests", defaultValue = "true", required = false)
     private Boolean skipTests;
 
     /**
      * Whether to use the release profile that adds sources and javadoc to the
      * released artifact, if appropriate. If set to true, the release-finish
      * will set the property "performRelease" to true, which activates the
      * profile "release-profile", which is inherited from the super pom.
      *
      * @since 1.2
      */
     @Parameter(property = "useReleaseProfile", defaultValue = "true", required = false)
     private Boolean useReleaseProfile;
 
     /**
      * Comma separated profiles to enable on deployment, in addition to active
      * profiles for project execution.
      *
      * @since 1.2
      */
     @Parameter(property = "releaseProfiles", defaultValue = "", required = false)
     private String releaseProfiles;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the local release branch will not be deleted after
      * the merge.
      *
      * @since 1.6
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keepLocal;
 
     /**
      * If <code>true</code>, the remote release branch will not be deleted after
      * the merge.
      *
      * @since 1.6
      */
     @Parameter(property = "keep", defaultValue = "true", required = false)
     private Boolean keepRemote;
 
     /**
      * If <code>true</code>, the release tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().debug("Finishing release");
 
         /* Get release branch name */
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
         if (releaseBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         } else if (releaseBranches.size() == 1) {
             releaseName = releaseBranches.get(0);
         } else {
             releaseName = promptForExistingReleaseName(releaseBranches, releaseName);
         }
 
         getLog().info("Finishing release '" + releaseName + "'");
 
         /* Switch to develop branch and get its current version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         getLog().debug("develop version = " + developVersion);
 
         /* Switch to release branch and set poms to release version */
         getGitflowInit().executeLocal("git checkout " + releaseName);
         reloadReactorProjects();
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(project.getVersion());
         String releaseVersion;
         if ("SNAPSHOT".equals(artifactVersion.getBuildSpecifier())) {
             releaseVersion = getReleaseVersion(project.getVersion());
         } else {
             releaseVersion = project.getVersion();
         }
         getLog().debug("release version = " + releaseVersion);
 
         boolean setVersion = setVersion(releaseVersion, pushReleaseFinish, releaseName);
 
         /* Update release branch dependencies to release version */
         boolean setNextVersions = false;
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions = setNextVersions(false, updateParent, includes);
         }
 
         if (!allowSnapshots) {
             reloadReactorProjects();
             try {
                 checkForSnapshotDependencies();
             } catch (MojoExecutionException mee) {
                 // reset setNextVersions and/or setVersion commits to allow user fix & push SNAPSHOT dependencies
                 // but can only reset if it the commits have not been pushed */
                 if (!pushReleaseFinish) {
                     if (setNextVersions) {
-                        getGitflowInit().executeLocal("git reset HEAD~1");
+                        getGitflowInit().executeLocal("git reset --hard HEAD~1");
                     }
                     if (setVersion) {
-                        getGitflowInit().executeLocal("git reset HEAD~1");
+                        getGitflowInit().executeLocal("git reset --hard HEAD~1");
                     }
                 }
                 throw mee;
             }
         }
 
         /* finish release */
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setPush(pushReleaseBranch);
         gitflowRelease.setSquash(squash);
         gitflowRelease.setKeepLocal(keepLocal);
         gitflowRelease.setKeepRemote(keepRemote);
         gitflowRelease.setSign(sign);
         gitflowRelease.setSigningkey(signingkey);
 
         /* 1. merge to master */
         try {
             gitflowRelease.finishToMaster(releaseName, pushReleaseFinish);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
 
         /* 2. make versions in release and develop branches match to avoid conflicts */
         getGitflowInit().executeLocal("git checkout " + releaseName);
         reloadReactorProjects();
         setVersion(developVersion, pushReleaseFinish, releaseName);
 
         /* 3. merge to develop */
         try {
             gitflowRelease.finishToDevelop(releaseName, pushReleaseFinish);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
         /* Update develop branch dependencies to next snapshot version (if deployed) */
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions(true, updateParent, includes);
         }
 
         /* Switch to release tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);
         reloadReactorProjects();
         String tagVersion = project.getVersion();
         getLog().debug("tag version = " + tagVersion);
 
         /* install or deploy */
         if (skipDeploy == false) {
             String goals = "clean deploy";
             if (project.getDistributionManagement() != null
                     && project.getDistributionManagement().getSite() != null) {
                 goals += " site-deploy";
             }
 
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             if (useReleaseProfile) {
                 additionalArgs.add("-DperformRelease=true");
             }
             if (StringUtils.isNotBlank(releaseProfiles)) {
                 Iterable<String> profiles = PROFILES_SPLITTER.split(releaseProfiles);
                 additionalArgs.add("-P " + PROFILES_JOINER.join(profiles));
             }
             runGoals(goals, additionalArgs.build());
         } else if (skipBuild == false) {
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             runGoals("clean install", additionalArgs.build());
         } else {
             getLog().debug("Skipping both install and deploy for release tag " + releaseName);
         }
 
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingReleaseName(List<String> releaseBranches, String defaultReleaseName) throws MojoFailureException {
         String message = "Please select a release branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, releaseBranches, defaultReleaseName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading release name from command line " + e.getMessage());
         }
 
         return name;
     }
 }

commit 8f26215d3fa0fb7b78c8d920563cbf25fb143531
Author: dkirrane <dkirrane@avaya.com>
Date:   Fri Jul 15 17:37:07 2016 +0100

    Fixes
    - revert setVersion if snapshot dependencies
    - prompt user to push

diff --git a/ggitflow-maven-archetype/pom.xml b/ggitflow-maven-archetype/pom.xml
index 459ed6d..479cd2d 100644
--- a/ggitflow-maven-archetype/pom.xml
+++ b/ggitflow-maven-archetype/pom.xml
@@ -1,45 +1,45 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
-        <version>1.7</version>
+        <version>1.8-SNAPSHOT</version>
     </parent>
 
     <groupId>com.dkirrane.maven.archetype</groupId>
     <artifactId>ggitflow-maven-archetype</artifactId>
-    <version>1.7</version>
+    <version>1.8-SNAPSHOT</version>
     <packaging>maven-archetype</packaging>
     <name>ggitflow-maven-archetype</name>
 
     <build>
         <extensions>
             <extension>
                 <groupId>org.apache.maven.archetype</groupId>
                 <artifactId>archetype-packaging</artifactId>
                 <version>2.2</version>
             </extension>
         </extensions>
 
         <pluginManagement>
             <plugins>
                 <plugin>
                     <artifactId>maven-archetype-plugin</artifactId>
                     <version>2.2</version>
                 </plugin>
             </plugins>
         </pluginManagement>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <skip>true</skip>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index e815f7e..73bc1aa 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,170 +1,170 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
-        <version>1.7</version>
+        <version>1.8-SNAPSHOT</version>
     </parent>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
-    <version>1.7</version>
+    <version>1.8-SNAPSHOT</version>
     <packaging>maven-plugin</packaging>
     <name>ggitflow-maven-plugin</name>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
-            <version>2.2</version>
+            <version>2.3-SNAPSHOT</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>3.2</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>3.0.8</version>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-interactivity-api</artifactId>
             <version>1.0-alpha-5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>2.4</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-project</artifactId>
             <version>2.2.1</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-clean-plugin</artifactId>
             <version>2.5</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-install-plugin</artifactId>
             <version>2.5.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-deploy-plugin</artifactId>
             <version>2.8.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-artifact</artifactId>
             <version>2.2.1</version>
         </dependency>
         <dependency>
             <groupId>com.google.guava</groupId>
             <artifactId>guava</artifactId>
             <version>16.0.1</version>
         </dependency>
 
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-api</artifactId>
             <version>1.7.21</version>
         </dependency>
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-simple</artifactId>
             <version>1.7.21</version>
         </dependency>
 
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
     </dependencies>
 
     <build>
         <resources>
             <resource>
                 <directory>src/it</directory>
                 <includes>
                     <include>**/**</include>
                 </includes>
             </resource>
         </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>3.2</version>
                 <configuration>
                     <goalPrefix>ggitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>com.github.github</groupId>
                 <artifactId>site-maven-plugin</artifactId>
                 <version>0.9</version>
                 <configuration>
                     <message>Creating site for ${project.version}</message>
                     <server>github</server>
                     <merge>true</merge>
                 </configuration>
                 <executions>
                     <execution>
                         <goals>
                             <goal>site</goal>
                         </goals>
                         <phase>site</phase>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <reportPlugins>
                         <plugin>
                             <groupId>org.apache.maven.plugins</groupId>
                             <artifactId>maven-plugin-plugin</artifactId>
                             <version>3.2</version>
                         </plugin>
                     </reportPlugins>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index 5302fc6..f5a4d22 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -24,2 +24,6 @@ import com.google.common.collect.ImmutableList;
 import java.io.File;
+import java.io.IOException;
+import java.io.PipedInputStream;
+import java.io.PipedOutputStream;
+import java.io.PrintStream;
 import java.util.ArrayList;
@@ -37,2 +41,3 @@ import org.apache.maven.model.Dependency;
 import org.apache.maven.model.DependencyManagement;
+import org.apache.maven.model.Plugin;
 import org.apache.maven.model.building.ModelBuildingRequest;
@@ -72,481 +77,522 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 public class AbstractGitflowMojo extends AbstractMojo {
 
     public final Pattern matchSnapshotRegex = Pattern.compile("-SNAPSHOT");
 
     public static final ImmutableList<String> DEFAULT_INSTALL_ARGS = ImmutableList.of(
             "-DinstallAtEnd=false");
 
     public static final ImmutableList<String> DEFAULT_DEPLOY_ARGS = ImmutableList.of(
             "-DdeployAtEnd=false",
             "-DretryFailedDeploymentCount=2");
 
     public static final Splitter PROFILES_SPLITTER = Splitter.on(',').trimResults().omitEmptyStrings();
     public static final Joiner PROFILES_JOINER = Joiner.on(',').skipNulls();
 
     /**
      * Gitflow branches and prefixes to use.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
     /**
      * Message prefix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgPrefix", defaultValue = "", required = false)
     protected String msgPrefix;
 
     /**
      * Message suffix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgSuffix", defaultValue = "", required = false)
     protected String msgSuffix;
 
     /**
      * Component used to prompt for input.
      */
     @Component
     protected Prompter prompter;
 
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
     @Component
     protected ArtifactResolver artifactResolver;
 
     /**
      * @parameter default-value="${project.artifacts}"
      * @required
      * @readonly
      */
     protected Collection artifacts;
 
     /**
      * @parameter expression="${localRepository}"
      */
     protected ArtifactRepository localRepository;
 
     /**
      * @parameter expression="${project.remoteArtifactRepositories}"
      */
     protected List remoteArtifactRepositories;
 
 //    @Component
 //    protected MavenProjectBuilder projectBuilder;
 //    @Component
 //    protected DefaultProjectBuilder projectBuilder;
 //    /**
 //     * @parameter property="plugin"
 //     * @required
 //     */
 //    @Component
 //    protected PluginDescriptor pluginDescriptor;
 //
     /**
      * The projects in the reactor.
      */
     @Parameter(defaultValue = "${reactorProjects}", readonly = true, required = true)
     protected List<MavenProject> reactorProjects;
 
     /**
      * The project builder
      */
     @Component
     private ProjectBuilder projectBuilder;
 
     /**
      * The project currently being build.
      *
      * @parameter expression="${project}"
      * @required
      * @readonly
      */
     @Component
     protected MavenProject project;
 
     /**
      * The current Maven session.
      *
      * @parameter expression="${session}"
      * @required
      * @readonly
      */
     @Component
     protected MavenSession session;
 
     /**
      * The Maven BuildPluginManager component.
      *
      * @component
      * @required
      */
     @Component
     protected BuildPluginManager pluginManager;
 
 //    @Parameter(defaultValue = "${basedir}", readonly = true, required = true)
 //    protected File basedir;
 //    @Component
 //    protected Settings settings;
     private GitflowInit init;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     public void execute() throws MojoExecutionException, MojoFailureException {
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             getLog().debug("Gitflow pom  '" + project.getBasedir() + "'");
         }
 
         GitflowInit gitflowInit = getGitflowInit();
 
         gitflowInit.requireGitRepo();
 
         if (!gitflowInit.gitflowIsInitialized()) {
             try {
                 gitflowInit.cmdDefault();
             } catch (GitflowException ex) {
                 throw new MojoExecutionException("Failed to inintialise Gitflow " + ex.getMessage(), ex);
             }
         }
 
         gitflowInit.requireCleanWorkingTree();
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     protected final GitflowInit getGitflowInit() {
         if (null == init) {
             getLog().info("Initialising Gitflow");
             init = new GitflowInit();
             File basedir = getProject().getBasedir();
             getLog().debug("Setting base directory " + basedir);
             init.setRepoDir(basedir);
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
 
             /* root Git directory may not be the pom directory */
-            String gitRootPath = init.executeLocal("git rev-parse --show-toplevel"); 
+            String gitRootPath = init.executeLocal("git rev-parse --show-toplevel");
             getLog().debug("Git repo top level " + gitRootPath);
             File baseGitDir = new File(gitRootPath);
             if (baseGitDir.isDirectory()) {
                 getLog().debug("Setting git base directory " + baseGitDir);
                 init.setRepoDir(baseGitDir);
             }
         }
         return init;
     }
 
-    protected final void setVersion(String version, Boolean push) throws MojoExecutionException, MojoFailureException {
-        getLog().debug("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
+    protected final boolean setVersion(String version, Boolean push, String branch) throws MojoExecutionException, MojoFailureException {
+        getLog().debug("START org.codehaus.mojo:versions-maven-plugin:2.2:set '" + version + "'");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
 
-        for (MavenProject mavenProject : reactorProjects) {
-            getLog().debug("Calling versions-maven-plugin:set on " + mavenProject.getArtifactId());
-            session.setCurrentProject(mavenProject);
+//        session.getRequest().setLoggingLevel(MavenExecutionRequest.LOGGING_LEVEL_WARN);
+//        System.setProperty("org.slf4j.simpleLogger.defaultLogLevel", "error");
+//        System.setProperty("maven.logging.root.level", "error");
+        Plugin versionsPlugin = plugin(
+                groupId("org.codehaus.mojo"),
+                artifactId("versions-maven-plugin"),
+                version("2.2")
+        );
+
+        String goal = goal("set");
+
+        MavenProject topLevelProject = session.getTopLevelProject();
+        getLog().info("");
+        getLog().info("--- " + versionsPlugin.getArtifactId() + ':' + versionsPlugin.getVersion() + ':' + goal + " " + topLevelProject.getArtifactId() + " to " + version + " (" + branch + ") ---");
+        session.setCurrentProject(topLevelProject);
+        PrintStream stdout = System.out;
+        try {
+
+            /* Capture System.out */
+            PipedOutputStream pipeOut;
+            PipedInputStream pipeIn;
+            PrintStream printOut;
             try {
-                executeMojo(
-                        plugin(
-                                groupId("org.codehaus.mojo"),
-                                artifactId("versions-maven-plugin"),
-                                version("2.1")
-                        ),
-                        goal("set"),
-                        configuration(
-                                element(name("generateBackupPoms"), "false"),
-                                element(name("newVersion"), version)
-                        ),
-                        executionEnvironment(
-                                mavenProject,
-                                session,
-                                pluginManager
-                        )
-                );
-            } catch (MojoExecutionException mee) {
-                String rootCauseMessage = ExceptionUtils.getRootCauseMessage(mee);
-                if (rootCauseMessage.contains("Project version is inherited from parent")) {
-                    getLog().warn("Skipping versions-maven-plugin:set for project " + mavenProject.getArtifactId() + ". Project version is inherited from parent.");
-                } else {
-                    getLog().error("Cannot set "+mavenProject.getArtifactId()+" to version '"+version+ "'", mee);
-                    throw mee;
-                }
+                pipeOut = new PipedOutputStream();
+                pipeIn = new PipedInputStream(pipeOut);
+                printOut = new PrintStream(pipeOut);
+                System.setOut(printOut);
+            } catch (IOException ioe) {
+                throw new MojoExecutionException("Failed to capture System.out", ioe);
+            }
+
+            /* Execute versions:set */
+            executeMojo(
+                    versionsPlugin,
+                    goal,
+                    configuration(
+                            element(name("generateBackupPoms"), "false"),
+                            element(name("newVersion"), version)
+                    ),
+                    executionEnvironment(
+                            topLevelProject,
+                            session,
+                            pluginManager
+                    )
+            );
+
+            /* Reset System.out */
+            try {
+                System.setOut(stdout);
+                printOut.close();
+                pipeIn.close();
+                printOut.close();
+            } catch (IOException ex) {
+            }
+
+        } catch (MojoExecutionException mee) {
+            /* Reset System.out */
+            System.setOut(stdout);
+            String rootCauseMessage = ExceptionUtils.getRootCauseMessage(mee);
+            if (rootCauseMessage.contains("Project version is inherited from parent")) {
+                getLog().debug("Skipping versions-maven-plugin:set for project " + topLevelProject.getArtifactId() + ". Project version is inherited from parent.");
+            } else {
+                getLog().error("Cannot set " + topLevelProject.getArtifactId() + " to version '" + version + "'", mee);
+                throw mee;
             }
         }
-        getLog().debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
+        getLog().info("------------------------------------------------------------------------");
 
+        boolean commitMade = false;
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (push && getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change " + version + " to origin. ExitCode:" + exitCode);
                 }
             }
+            commitMade = true;
         }
         /* We don't want to fail maybe the version was manually set correctly */
 //        else {
 //            throw new MojoFailureException("Failed to update poms to version " + version);
 //        }
+        return commitMade;
     }
 
-    protected final void setNextVersions(Boolean allowSnapshots, Boolean updateParent, String includes) throws MojoExecutionException, MojoFailureException {
+    protected final boolean setNextVersions(Boolean allowSnapshots, Boolean updateParent, String includes) throws MojoExecutionException, MojoFailureException {
         getLog().debug("setNextVersions");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
 
         if (updateParent) {
-            getLog().debug("START org.codehaus.mojo:versions-maven-plugin:2.1:update-parent updateParent=" + updateParent);
+            getLog().debug("START org.codehaus.mojo:versions-maven-plugin:2.2:update-parent updateParent=" + updateParent);
             executeMojo(
                     plugin(
                             groupId("org.codehaus.mojo"),
                             artifactId("versions-maven-plugin"),
-                            version("2.1")
+                            version("2.2")
                     ),
                     goal("update-parent"),
                     configuration(
                             element(name("generateBackupPoms"), "false"),
                             element(name("allowSnapshots"), allowSnapshots.toString())
                     ),
                     executionEnvironment(
                             rootProject,
                             session,
                             pluginManager
                     )
             );
-            getLog().debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:update-parent");
+            getLog().debug("DONE org.codehaus.mojo:versions-maven-plugin:2.2:update-parent");
         }
 
         if (!StringUtils.isBlank(includes)) {
-            getLog().debug("START org.codehaus.mojo:versions-maven-plugin:2.1:use-next-versions allowSnapshots=" + allowSnapshots);
+            getLog().debug("START org.codehaus.mojo:versions-maven-plugin:2.2:use-next-versions allowSnapshots=" + allowSnapshots);
             for (MavenProject mavenProject : reactorProjects) {
                 getLog().debug("Calling use-next-versions on " + mavenProject.getArtifactId());
                 session.setCurrentProject(mavenProject);
                 executeMojo(
                         plugin(
                                 groupId("org.codehaus.mojo"),
                                 artifactId("versions-maven-plugin"),
-                                version("2.1")
+                                version("2.2")
                         ),
                         goal("use-next-versions"),
                         configuration(
                                 element(name("generateBackupPoms"), "false"),
                                 element(name("allowSnapshots"), allowSnapshots.toString()),
                                 element(name("includesList"), includes)
                         ),
                         executionEnvironment(
                                 mavenProject,
                                 session,
                                 pluginManager
                         )
                 );
             }
-            getLog().debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:use-next-versions");
+            getLog().debug("DONE org.codehaus.mojo:versions-maven-plugin:2.2:use-next-versions");
         } else {
             getLog().warn("Parameter <includes> is not set. Skipping dependency updates");
         }
 
+        boolean commitMade = false;
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg;
             if (allowSnapshots) {
                 msg = getMsgPrefix() + "Replaces any release versions with the next snapshot version (if it has been deployed)." + getMsgSuffix();
             } else {
                 msg = getMsgPrefix() + "Replaces snapshot versions with the corresponding release version" + getMsgSuffix();
             }
 
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change to origin. ExitCode:" + exitCode);
                 }
             }
+            commitMade = true;
         }
+        return commitMade;
     }
 
     protected final void runGoals(String goals, List<String> additionalArgs) throws MojoExecutionException, MojoFailureException {
         getLog().debug("START executing " + goals + " with args " + additionalArgs);
 
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         File basedir = rootProject.getBasedir();
 
         ReleaseResult result = new ReleaseResult();
         ReleaseEnvironment env = new DefaultReleaseEnvironment();
         env.setSettings(session.getSettings());
         MavenExecutor mavenExecutor = mavenExecutors.get(env.getMavenExecutorId());
 
         Joiner joiner = Joiner.on(" ").skipNulls();
         String additionalArguments = joiner.join(additionalArgs);
         getLog().debug("additionalArguments " + additionalArguments);
 
         try {
             mavenExecutor.executeGoals(basedir, goals, env, false, additionalArguments, result);
         } catch (MavenExecutorException ex) {
             throw new MojoExecutionException(result.getOutput(), ex);
         }
         getLog().debug("DONE executing " + goals);
     }
 
     protected final String getReleaseVersion(String version) throws MojoFailureException {
         getLog().debug("Current Develop version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
             getLog().debug("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
     protected final void checkForSnapshotDependencies() throws MojoExecutionException {
         getLog().info("Checking for SNAPSHOT dependencies");
         Boolean hasDepSnapshots = false;
         Boolean hasParentSnapshot = false;
         for (MavenProject mavenProject : reactorProjects) {
             String artifactId = mavenProject.getArtifactId();
 
             /* Check <parent> */
             Artifact parentArtifact = mavenProject.getParentArtifact();
             if (parentArtifact != null && parentArtifact.isSnapshot()) {
                 getLog().error("Parent of project " + artifactId + " is a SNAPSHOT " + parentArtifact.getId());
                 hasParentSnapshot = true;
             }
 
             /* Check <dependencyManagement> */
             DependencyManagement dependencyManagement = mavenProject.getDependencyManagement();
             if (null != dependencyManagement) {
                 if (checkForSnapshot(artifactId, dependencyManagement.getDependencies())) {
                     hasDepSnapshots = true;
                 }
             }
 
             /* Check <dependencies> */
             if (checkForSnapshot(artifactId, mavenProject.getDependencies())) {
                 hasDepSnapshots = true;
             }
         }
         if (hasParentSnapshot || hasDepSnapshots) {
             throw new MojoExecutionException("Cannot release because SNAPSHOT dependencies exist");
         }
     }
 
     private boolean checkForSnapshot(String artifactId, List<Dependency> dependencies) throws MojoExecutionException {
         Boolean hasSnapshotDependency = false;
         for (Dependency dependency : dependencies) {
             String version = dependency.getVersion();
             Matcher versionMatcher = matchSnapshotRegex.matcher(version);
             if (versionMatcher.find() && versionMatcher.end() == version.length()) {
                 getLog().error("Project " + artifactId + " contains SNAPSHOT dependency: " + dependency.getGroupId() + ":" + dependency.getArtifactId() + ":" + version);
                 hasSnapshotDependency = true;
             }
         }
         return hasSnapshotDependency;
     }
 
     protected final void reloadReactorProjects() throws MojoExecutionException {
         getLog().debug("Reloading poms...");
 
         List<MavenProject> newReactorProjects;
         try {
             newReactorProjects = buildReactorProjects();
         } catch (ProjectBuildingException e) {
             getLog().error("Re-parse aborted due to malformed pom.xml file(s)", e);
             throw new MojoExecutionException("Re-parse aborted due to malformed pom.xml file(s)", e);
         } catch (CycleDetectedException e) {
             getLog().error("Re-parse aborted due to dependency cycle in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to dependency cycle in project model", e);
         } catch (DuplicateProjectException e) {
             getLog().error("Re-parse aborted due to duplicate projects in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to duplicate projects in project model", e);
         } catch (Exception e) {
             getLog().error("Re-parse aborted due a problem that prevented sorting the project model", e);
             throw new MojoExecutionException("Re-parse aborted due a problem that prevented sorting the project model", e);
         }
         MavenProject newProject = findProject(newReactorProjects, this.project);
         if (newProject == null) {
             throw new MojoExecutionException("A pom.xml change appears to have removed " + this.project.getId() + " from the build plan.");
         }
 
         this.project = newProject;
         this.reactorProjects = newReactorProjects;
 
         getLog().debug("Reloading poms complete...");
     }
 
     private List<MavenProject> buildReactorProjects() throws Exception {
 
         List<MavenProject> projects = new ArrayList<MavenProject>();
         for (MavenProject p : reactorProjects) {
             ProjectBuildingRequest request = new DefaultProjectBuildingRequest();
 
             request.setProcessPlugins(false);
             request.setProfiles(request.getProfiles());
             request.setActiveProfileIds(session.getRequest().getActiveProfiles());
             request.setInactiveProfileIds(session.getRequest().getInactiveProfiles());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setSystemProperties(session.getSystemProperties());
             request.setUserProperties(session.getUserProperties());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setPluginArtifactRepositories(session.getRequest().getPluginArtifactRepositories());
             request.setRepositorySession(session.getRepositorySession());
             request.setLocalRepository(localRepository);
             request.setBuildStartTime(session.getRequest().getStartTime());
             request.setResolveDependencies(false);
             request.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_STRICT);
             projects.add(projectBuilder.build(p.getFile(), request).getProject());
         }
         return new ProjectSorter(projects).getSortedProjects();
     }
 
     private MavenProject findProject(List<MavenProject> newReactorProjects, MavenProject oldProject) {
         for (MavenProject newProject : newReactorProjects) {
             if (oldProject.getGroupId().equals(newProject.getGroupId())
                     && oldProject.getArtifactId().equals(newProject.getArtifactId())) {
                 return newProject;
             }
         }
         return null;
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/DebuggingMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/DebuggingMojo.java
index ad5c02d..fbee5bc 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/DebuggingMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/DebuggingMojo.java
@@ -21,17 +21,17 @@ import org.apache.maven.plugin.MojoFailureException;
 /**
  * Mojo used for Testing
  */
 //@Mojo(name = "debug-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class DebuggingMojo extends AbstractGitflowMojo {
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         reloadReactorProjects();
 
-        setVersion("1.4", false);
+        setVersion("1.4", false, "someBranchName");
 
         runGoals("clean deploy", DEFAULT_DEPLOY_ARGS);
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
index 794db40..138232e 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
@@ -30,169 +30,169 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  * Merges a feature branch back into the develop.
  */
 @Mojo(name = "feature-finish", aggregator = true)
 public class FeatureFinishMojo extends AbstractFeatureMojo {
 
     /**
      * If <code>true</code>, the feature finish merge to develop will get pushed
      * to the remote repository
      *
      * @since 1.6
      */
     @Parameter(property = "pushFeatureFinish", defaultValue = "false", required = false)
     protected boolean pushFeatureFinish;
 
     /**
      * If <code>true</code>, the feature branch will be rebased onto develop,
      * then finish will fast-forward merge the feature branch back onto develop.
      *
      * @since 1.2
      */
     @Parameter(property = "isRebase", defaultValue = "false", required = false)
     private boolean isRebase;
 
 //    No good way to handle Interactive rebase from a Maven plugin
 //    /**
 //     * If <code>true</code>, and <code>isRebase</code> is true, then an interactive rebase is
 //     * performed for the feature branch.
 //     *
 //     * @since 1.2
 //     */
 //    @Parameter(property = "isInteractive", defaultValue = "false", required = false)
     private final boolean isInteractive = false;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "true", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any tests during <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipTests", defaultValue = "true", required = false)
     private Boolean skipTests;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the local feature branch will not be deleted after
      * the merge.
      *
      * @since 1.6
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keepLocal;
 
     /**
      * If <code>true</code>, the remote feature branch will not be deleted after
      * the merge.
      *
      * @since 1.6
      */
     @Parameter(property = "keep", defaultValue = "true", required = false)
     private Boolean keepRemote;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().debug("Finishing feature");
 
         String prefix = getFeatureBranchPrefix();
         List<String> featureBranches = getGitflowInit().gitLocalFeatureBranches();
 
         if (null == featureBranches || featureBranches.isEmpty()) {
             throw new MojoFailureException("No local feature branches exist!");
         }
 
         if (StringUtils.isBlank(featureName)) {
             String defaultFeatureBranch;
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (currentBranch.startsWith(prefix)) {
                 defaultFeatureBranch = currentBranch;
             } else {
                 defaultFeatureBranch = featureBranches.get(0);
             }
             String featureBranch = promptForExistingFeatureBranch(featureBranches, defaultFeatureBranch);
             featureName = trimFeatureName(featureBranch);
         } else {
             featureName = trimFeatureName(featureName);
             if (!getGitflowInit().gitLocalBranchExists(prefix + featureName)) {
                 throw new MojoFailureException("No local feature branch named '" + prefix + featureName + "' exists!");
             }
         }
 
         getLog().info("Finishing feature '" + featureName + "'");
 
         if (enableFeatureVersions) {
             /* Switch to develop branch and get its current version */
             getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
             reloadReactorProjects();
             String developVersion = project.getVersion();
             getLog().debug("develop version = " + developVersion);
 
             /* Switch to feature branch and get its current version */
             getGitflowInit().executeLocal("git checkout " + prefix + featureName);
             reloadReactorProjects();
             String featureVersion = project.getVersion();
             getLog().debug("feature version = " + featureVersion);
 
-            setVersion(developVersion, pushFeatureFinish);
+            setVersion(developVersion, pushFeatureFinish, prefix + featureName);
         }
 
         if (skipBuild == false) {
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_INSTALL_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             runGoals("clean install", additionalArgs.build());
         } else {
             getLog().debug("Skipping mvn install for feature " + featureName);
         }
 
         GitflowFeature gitflowFeature = new GitflowFeature();
         gitflowFeature.setInit(getGitflowInit());
         gitflowFeature.setMsgPrefix(getMsgPrefix());
         gitflowFeature.setMsgSuffix(getMsgSuffix());
         gitflowFeature.setPush(pushFeatureBranch);
         gitflowFeature.setSquash(squash);
         gitflowFeature.setKeepLocal(keepLocal);
         gitflowFeature.setKeepRemote(keepRemote);
         gitflowFeature.setIsRebase(isRebase);
         gitflowFeature.setIsInteractive(isInteractive);
 
         try {
             gitflowFeature.finish(featureName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
     }
 
     private String promptForExistingFeatureBranch(List<String> featureBranches, String defaultFeatureBranch) throws MojoFailureException {
         String message = "Please select a feature branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, featureBranches, defaultFeatureBranch);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading feature name from command line " + e.getMessage());
         }
 
         return name.trim();
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
index 1affa64..368579d 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
@@ -29,68 +29,68 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  * Creates a new feature branch off of the develop branch.
  */
 @Mojo(name = "feature-start", aggregator = true)
 public class FeatureStartMojo extends AbstractFeatureMojo {
 
     /**
      * The commit to start the feature branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     protected String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         String prefix = getFeatureBranchPrefix();
         if (StringUtils.isBlank(featureName)) {
             String message = "What is the feature branch name? " + prefix;
             try {
                 featureName = prompter.prompt(message);
                 if (StringUtils.isBlank(featureName)) {
                     throw new MojoFailureException("Parameter <featureName> cannot be null or empty.");
                 }
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading feature name from command line " + ex.getMessage(), ex);
             }
         }
         featureName = trimFeatureName(featureName);
 
         getLog().info("Starting feature '" + featureName + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowFeature gitflowFeature = new GitflowFeature();
         gitflowFeature.setInit(getGitflowInit());
         gitflowFeature.setMsgPrefix(getMsgPrefix());
         gitflowFeature.setMsgSuffix(getMsgSuffix());
         gitflowFeature.setPush(pushFeatureBranch);
         gitflowFeature.setStartCommit(startCommit);
 
         try {
             gitflowFeature.start(featureName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         if (enableFeatureVersions) {
             /* Already on feature branch so just get its current version */
             Model model = MavenUtil.readPom(reactorProjects);
             String currentVersion = model.getVersion();
 
             String featureVersion = getFeatureVersion(currentVersion, featureName);
-            setVersion(featureVersion, pushFeatureBranch);
+            setVersion(featureVersion, pushFeatureBranch, prefix + featureName);
 
             if (getGitflowInit().gitRemoteBranchExists(prefix + featureName)) {
                 getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + featureName);
             }
 
             /* print feature version */
             reloadReactorProjects();
             getLog().debug("project = " + project.getVersion());
         }
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
index adc59ac..5aa0cb5 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
@@ -31,249 +31,258 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  * Merges a hotfix branch back into the develop and master branch and then
  * creates a tag for the hotfix on master.
  */
 @Mojo(name = "hotfix-finish", aggregator = true)
 public class HotfixFinishMojo extends AbstractHotfixMojo {
 
     protected String hotfixName;
 
     /**
      * If <code>true</code>, the hotfix finish merge to develop & master and
      * created tag will get pushed to the remote repository
      *
      * @since 1.6
      */
     @Parameter(property = "pushHotfixFinish", defaultValue = "false", required = false)
     protected boolean pushHotfixFinish;
 
     /**
      * If <code>true</code>, the hotfix can still finish even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private boolean allowSnapshots;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "true", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any calls to <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipDeploy", defaultValue = "true", required = false)
     private Boolean skipDeploy;
 
     /**
      * Skips any tests during <code>mvn install</code> and
      * <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipTests", defaultValue = "true", required = false)
     private Boolean skipTests;
 
     /**
      * Whether to use the release profile that adds sources and javadoc to the
      * released artifact, if appropriate. If set to true, the hotfix-finish will
      * set the property "performRelease" to true, which activates the profile
      * "release-profile", which is inherited from the super pom.
      *
      * @since 1.2
      */
     @Parameter(property = "useReleaseProfile", defaultValue = "true", required = false)
     private Boolean useReleaseProfile;
 
     /**
      * Comma separated profiles to enable on deployment, in addition to active
      * profiles for project execution.
      *
      * @since 1.2
      */
     @Parameter(property = "releaseProfiles", defaultValue = "", required = false)
     private String releaseProfiles;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the hotfix feature branch will not be deleted after
      * the merge.
      *
      * @since 1.6
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keepLocal;
 
     /**
      * If <code>true</code>, the hotfix feature branch will not be deleted after
      * the merge.
      *
      * @since 1.6
      */
     @Parameter(property = "keep", defaultValue = "true", required = false)
     private Boolean keepRemote;
 
     /**
      * If <code>true</code>, the hotfix tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().debug("Finishing hotfix");
 
         /* Get hotfix branch name */
         List<String> hotfixBranches = getGitflowInit().gitLocalHotfixBranches();
         if (hotfixBranches.isEmpty()) {
             throw new MojoFailureException("Could not find hotfix branch!");
         } else if (hotfixBranches.size() == 1) {
             hotfixName = hotfixBranches.get(0);
         } else {
             hotfixName = promptForExistingHotfixName(hotfixBranches, hotfixName);
         }
 
         getLog().info("Finishing hotfix '" + hotfixName + "'");
 
         /* Switch to develop branch and get its current version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         getLog().debug("develop version = " + developVersion);
 
         /* Switch to hotfix branch and set poms to hotfix version */
         getGitflowInit().executeLocal("git checkout " + hotfixName);
         reloadReactorProjects();
         String hotfixVersion = project.getVersion();
         getLog().debug("hotfix snapshot version = " + hotfixVersion);
         String hotfixReleaseVersion = getReleaseVersion(hotfixVersion);
         getLog().debug("hotfix release version = " + hotfixReleaseVersion);
 
-        setVersion(hotfixReleaseVersion, pushHotfixFinish);
+        boolean setVersion = setVersion(hotfixReleaseVersion, pushHotfixFinish, hotfixName);
 
         if (!allowSnapshots) {
             reloadReactorProjects();
-            checkForSnapshotDependencies();
+            try {
+                checkForSnapshotDependencies();
+            } catch (MojoExecutionException mee) {
+                // reset setVersion commit and allow user fix & push SNAPSHOT dependencies
+                // but can only reset if the commit has not been pushed */
+                if (!pushHotfixFinish && setVersion) {
+                    getGitflowInit().executeLocal("git reset HEAD~1");
+                }
+                throw mee;
+            }
         }
 
         /* finish hotfix */
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
         gitflowHotfix.setPush(pushHotfixBranch);
         gitflowHotfix.setSquash(squash);
         gitflowHotfix.setKeepLocal(keepLocal);
         gitflowHotfix.setKeepRemote(keepRemote);
         gitflowHotfix.setSign(sign);
         gitflowHotfix.setSigningkey(signingkey);
 
         /* 1. merge to master */
         try {
             gitflowHotfix.finishToMaster(hotfixName, pushHotfixFinish);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
 
         /* 2. make versions in hotfix and develop branches match to avoid conflicts */
         getGitflowInit().executeLocal("git checkout " + hotfixName);
         reloadReactorProjects();
-        setVersion(developVersion, pushHotfixFinish);
+        setVersion(developVersion, pushHotfixFinish, hotfixName);
 
         /* 3. merge to develop */
         try {
             gitflowHotfix.finishToDevelop(hotfixName, pushHotfixFinish);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
         /* Switch to hotfix tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + hotfixReleaseVersion);
         reloadReactorProjects();
         String tagVersion = project.getVersion();
         getLog().debug("tag version = " + tagVersion);
 
         /* install or deploy */
         if (skipDeploy == false) {
             String goals = "clean deploy";
             if (project.getDistributionManagement() != null
                     && project.getDistributionManagement().getSite() != null) {
                 goals += " site-deploy";
             }
 
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             if (useReleaseProfile) {
                 additionalArgs.add("-DperformRelease=true");
             }
             if (StringUtils.isNotBlank(releaseProfiles)) {
                 Iterable<String> profiles = PROFILES_SPLITTER.split(releaseProfiles);
                 additionalArgs.add("-P " + PROFILES_JOINER.join(profiles));
             }
             runGoals(goals, additionalArgs.build());
         } else if (skipBuild == false) {
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             runGoals("clean install", additionalArgs.build());
         } else {
             getLog().debug("Skipping both install and deploy for hotfix tag " + hotfixName);
         }
 
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingHotfixName(List<String> hotfixBranches, String defaultHotfixName) throws MojoFailureException {
         String message = "Please select a hotfix branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, hotfixBranches, defaultHotfixName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading hotfix name from command line " + e.getMessage());
         }
 
         return name;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
index 824bacc..e3cbc87 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
@@ -27,74 +27,75 @@ import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
 /**
  * Creates a new hotfix branch off of the master branch.
  */
 @Mojo(name = "hotfix-start", aggregator = true)
 public class HotfixStartMojo extends AbstractHotfixMojo {
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         /* Switch to master branch and get current version i.e. lastest tag */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getMasterBrnName());
         reloadReactorProjects();
         String masterVersion = project.getVersion();
         getLog().debug("master version = " + masterVersion);
 
         String hotfixVersion = getHotfixVersion(masterVersion);
         String hotfixSnapshotVersion = getHotfixSnapshotVersion(masterVersion);
 
         getLog().info("Starting hotfix '" + hotfixVersion + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
         gitflowHotfix.setPush(pushHotfixBranch);
 
         try {
             gitflowHotfix.start(hotfixVersion);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
-        setVersion(hotfixSnapshotVersion, pushHotfixBranch);
-
         String prefix = getGitflowInit().getHotfixBranchPrefix();
+
+        setVersion(hotfixSnapshotVersion, pushHotfixBranch, prefix + hotfixVersion);
+
         if (getGitflowInit().gitRemoteBranchExists(prefix + hotfixVersion)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + hotfixVersion);
         }
     }
 
     private String getHotfixVersion(String currentVersion) throws MojoFailureException {
         getLog().debug("getHotfixVersion from '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         final StringBuilder result = new StringBuilder(30);
         if (artifactVersion.getPrimaryNumberCount() < 3) {
             String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
             String annotationAsString = artifactVersion.getAnnotationAsString();
             result.append(primaryNumbersAsString).append('.').append('1');
             result.append(annotationAsString);
         } else {
             artifactVersion.upgradeLeastSignificantNumber();
             result.append(artifactVersion.toString());
         }
         return result.toString();
     }
 
     private String getHotfixSnapshotVersion(String currentVersion) throws MojoFailureException {
         getLog().debug("getHotfixSnapshotVersion from '" + currentVersion + "'");
 
         final StringBuilder result = new StringBuilder(30);
 
         String hotfixVersion = getHotfixVersion(currentVersion);
         result.append(hotfixVersion);
 
         result.append(DEFAULT_VERSION_COMPONENT_SEPARATOR).append(SNAPSHOT_QUALIFIER);
 
         return result.toString();
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index b8ad612..128e882 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -33,304 +33,319 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  * Merges a release branch back into the develop and master branch and then
  * creates a tag for the release on master.
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
 
     /**
      * If <code>true</code>, the release finish merge to develop & master and
      * the created tag will get pushed to the remote repository
      *
      * @since 1.6
      */
     @Parameter(property = "pushReleaseFinish", defaultValue = "false", required = false)
     protected boolean pushReleaseFinish;
 
     /**
      * If <code>true</code>, the release can still finish even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private Boolean allowSnapshots;
 
     /**
      * If the project has a parent with a release version it will be replaced
      * with the next <code>-SNAPSHOT</code> version (if it has been deployed).
      * This action is performed on the develop branch after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "updateParent", defaultValue = "false", required = false)
     private Boolean updateParent;
 
     /**
      * On the release branch before finish is called any dependencies with a
      * <code>-SNAPSHOT</code> version are replaced with the corresponding
      * release version (if it has been released).
      *
      * On the develop branch after the merge any dependencies with a release
      * version are replaced with the next <code>-SNAPSHOT</code> version (if it
      * has been deployed).
      *
      * @since 1.2
      */
     @Parameter(property = "updateDependencies", defaultValue = "false", required = false)
     private Boolean updateDependencies;
 
     /**
      * If <code>updateDependencies</code> is set, then this should contain a
      * comma separated list of artifact patterns to include. Follows the pattern <code>groupId:artifactId:type:classifier:version<code>
      *
      * @since 1.5
      */
     @Parameter(property = "includes", defaultValue = "", required = false)
     private String includes;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "true", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any calls to <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipDeploy", defaultValue = "true", required = false)
     private Boolean skipDeploy;
 
     /**
      * Skips any tests during <code>mvn install</code> and
      * <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipTests", defaultValue = "true", required = false)
     private Boolean skipTests;
 
     /**
      * Whether to use the release profile that adds sources and javadoc to the
      * released artifact, if appropriate. If set to true, the release-finish
      * will set the property "performRelease" to true, which activates the
      * profile "release-profile", which is inherited from the super pom.
      *
      * @since 1.2
      */
     @Parameter(property = "useReleaseProfile", defaultValue = "true", required = false)
     private Boolean useReleaseProfile;
 
     /**
      * Comma separated profiles to enable on deployment, in addition to active
      * profiles for project execution.
      *
      * @since 1.2
      */
     @Parameter(property = "releaseProfiles", defaultValue = "", required = false)
     private String releaseProfiles;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the local release branch will not be deleted after
      * the merge.
      *
      * @since 1.6
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keepLocal;
 
     /**
      * If <code>true</code>, the remote release branch will not be deleted after
      * the merge.
      *
      * @since 1.6
      */
     @Parameter(property = "keep", defaultValue = "true", required = false)
     private Boolean keepRemote;
 
     /**
      * If <code>true</code>, the release tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().debug("Finishing release");
 
         /* Get release branch name */
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
         if (releaseBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         } else if (releaseBranches.size() == 1) {
             releaseName = releaseBranches.get(0);
         } else {
             releaseName = promptForExistingReleaseName(releaseBranches, releaseName);
         }
 
         getLog().info("Finishing release '" + releaseName + "'");
 
         /* Switch to develop branch and get its current version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         getLog().debug("develop version = " + developVersion);
 
         /* Switch to release branch and set poms to release version */
         getGitflowInit().executeLocal("git checkout " + releaseName);
         reloadReactorProjects();
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(project.getVersion());
         String releaseVersion;
         if ("SNAPSHOT".equals(artifactVersion.getBuildSpecifier())) {
             releaseVersion = getReleaseVersion(project.getVersion());
         } else {
             releaseVersion = project.getVersion();
         }
         getLog().debug("release version = " + releaseVersion);
 
-        setVersion(releaseVersion, pushReleaseFinish);
+        boolean setVersion = setVersion(releaseVersion, pushReleaseFinish, releaseName);
 
         /* Update release branch dependencies to release version */
+        boolean setNextVersions = false;
         if (updateDependencies) {
             reloadReactorProjects();
-            setNextVersions(false, updateParent, includes);
+            setNextVersions = setNextVersions(false, updateParent, includes);
         }
 
         if (!allowSnapshots) {
             reloadReactorProjects();
-            checkForSnapshotDependencies();
+            try {
+                checkForSnapshotDependencies();
+            } catch (MojoExecutionException mee) {
+                // reset setNextVersions and/or setVersion commits to allow user fix & push SNAPSHOT dependencies
+                // but can only reset if it the commits have not been pushed */
+                if (!pushReleaseFinish) {
+                    if (setNextVersions) {
+                        getGitflowInit().executeLocal("git reset HEAD~1");
+                    }
+                    if (setVersion) {
+                        getGitflowInit().executeLocal("git reset HEAD~1");
+                    }
+                }
+                throw mee;
+            }
         }
 
         /* finish release */
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setPush(pushReleaseBranch);
         gitflowRelease.setSquash(squash);
         gitflowRelease.setKeepLocal(keepLocal);
         gitflowRelease.setKeepRemote(keepRemote);
         gitflowRelease.setSign(sign);
         gitflowRelease.setSigningkey(signingkey);
 
         /* 1. merge to master */
         try {
             gitflowRelease.finishToMaster(releaseName, pushReleaseFinish);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
 
         /* 2. make versions in release and develop branches match to avoid conflicts */
         getGitflowInit().executeLocal("git checkout " + releaseName);
         reloadReactorProjects();
-        setVersion(developVersion, pushReleaseFinish);
+        setVersion(developVersion, pushReleaseFinish, releaseName);
 
         /* 3. merge to develop */
         try {
             gitflowRelease.finishToDevelop(releaseName, pushReleaseFinish);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
         /* Update develop branch dependencies to next snapshot version (if deployed) */
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions(true, updateParent, includes);
         }
 
         /* Switch to release tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);
         reloadReactorProjects();
         String tagVersion = project.getVersion();
         getLog().debug("tag version = " + tagVersion);
 
         /* install or deploy */
         if (skipDeploy == false) {
             String goals = "clean deploy";
             if (project.getDistributionManagement() != null
                     && project.getDistributionManagement().getSite() != null) {
                 goals += " site-deploy";
             }
 
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             if (useReleaseProfile) {
                 additionalArgs.add("-DperformRelease=true");
             }
             if (StringUtils.isNotBlank(releaseProfiles)) {
                 Iterable<String> profiles = PROFILES_SPLITTER.split(releaseProfiles);
                 additionalArgs.add("-P " + PROFILES_JOINER.join(profiles));
             }
             runGoals(goals, additionalArgs.build());
         } else if (skipBuild == false) {
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             runGoals("clean install", additionalArgs.build());
         } else {
             getLog().debug("Skipping both install and deploy for release tag " + releaseName);
         }
 
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingReleaseName(List<String> releaseBranches, String defaultReleaseName) throws MojoFailureException {
         String message = "Please select a release branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, releaseBranches, defaultReleaseName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading release name from command line " + e.getMessage());
         }
 
         return name;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
index d152bed..41b1608 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
@@ -29,161 +29,161 @@ import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
 /**
  * Creates a new release branch off of the develop branch.
  */
 @Mojo(name = "release-start", aggregator = true)
 public class ReleaseStartMojo extends AbstractReleaseMojo {
 
     /**
      * Whether to run the plugin in interactive mode or not. The default is to
      * run without interaction when possible.
      *
      * @since 1.2
      */
     @Parameter(property = "interactive", defaultValue = "true", required = false)
     protected boolean interactive;
 
     /**
      * If the project has a parent with a <code>-SNAPSHOT</code> version it will
      * be replaced with the corresponding release version (if it has been
      * released). This action is performed on the release branch after it is
      * created.
      *
      * @since 1.2
      */
     @Parameter(property = "updateParent", defaultValue = "false", required = false)
     private boolean updateParent;
 
     /**
      * Any dependencies with a <code>-SNAPSHOT</code> version are replaced with
      * the corresponding release version (if it has been released). This action
      * is performed on the release branch after it is created.
      *
      * @since 1.2
      */
     @Parameter(property = "updateDependencies", defaultValue = "false", required = false)
     private boolean updateDependencies;
 
     /**
      * If <code>updateDependencies</code> is set, then this should contain a
      * comma separated list of artifact patterns to include. Follows the pattern <code>groupId:artifactId:type:classifier:version<code>
      *
      * @since 1.5
      */
     @Parameter(property = "includes", defaultValue = "", required = false)
     private String includes;
 
     /**
      * The commit to start the release branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     private String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         /* Switch to develop branch and get its current version */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
         reloadReactorProjects();
 
         String developVersion = project.getVersion();
         getLog().info("Current develop version = " + developVersion);
 
         /* Get next development version */
         String nextDevelopVersion = getNextDevelopVersion(developVersion);
         if (interactive) {
             String message = "What is the next development version? ";
             try {
                 nextDevelopVersion = prompter.prompt(message, nextDevelopVersion);
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading next development version from command line " + ex.getMessage(), ex);
             }
         }
         getLog().debug("Next development version = " + developVersion);
 
         /* Get suggested release version */
         String releaseVersion = getReleaseVersion(developVersion);
         getLog().debug("release version = " + releaseVersion);
 
         /* create release branch */
         String prefix = getReleaseBranchPrefix();
         if (!StringUtils.isBlank(releaseName)) {
             getLog().debug("Using releaseName passed  '" + releaseName + "'");
         } else if (interactive) {
             String message = "What is the release branch name? " + prefix;
             try {
                 releaseName = prompter.prompt(message, releaseVersion);
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading release name from command line " + ex.getMessage(), ex);
             }
         } else {
             releaseName = releaseVersion;
         }
 
         if (StringUtils.isBlank(releaseName)) {
             throw new MojoFailureException("Parameter <releaseName> cannot be null or empty.");
         }
 
         GenericArtifactVersion releaseArtifactVersion;
         try {
             releaseArtifactVersion = new GenericArtifactVersion(releaseName);
             if (SNAPSHOT_QUALIFIER.equals(releaseArtifactVersion.getBuildSpecifier())) {
                 throw new IllegalArgumentException("Parameter <releaseName> is not a release version as it contains SNAPSHOT build specifier");
             }
         } catch (IllegalArgumentException e) {
             throw new MojoExecutionException("Parameter <releaseName> value '" + releaseName + "' is not a valid Maven release version.");
         }
 
         getLog().info("Starting release '" + releaseName + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setPush(pushReleaseBranch);
         gitflowRelease.setStartCommit(startCommit);
 
         try {
             gitflowRelease.start(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         // current branch should be the release branch
         String releaseBranch = getGitflowInit().gitCurrentBranch();
         if (!releaseBranch.startsWith(prefix)) {
             throw new MojoFailureException("Failed to create release version.");
         }
 
         /* Update release branch dependencies to release version */
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions(false, updateParent, includes);
         }
 
         // checkout develop branch and update it's version
         String developBranch = (String) getGitflowInit().getDevelopBrnName();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
-        setVersion(nextDevelopVersion, pushReleaseBranch);
+        setVersion(nextDevelopVersion, pushReleaseBranch, developBranch);
 
         // checkout release branch again and update it's version to required release version
         getGitflowInit().executeLocal("git checkout " + releaseBranch);
         reloadReactorProjects();
-        setVersion(releaseArtifactVersion.setBuildSpecifier(SNAPSHOT_QUALIFIER).toString(), pushReleaseBranch);
+        setVersion(releaseArtifactVersion.setBuildSpecifier(SNAPSHOT_QUALIFIER).toString(), pushReleaseBranch, releaseBranch);
     }
 
     public String getReleaseName() {
         return releaseName;
     }
 
     private String getNextDevelopVersion(String developVersion) {
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(developVersion);
         artifactVersion.upgradeLeastSignificantPrimaryNumber();
 
         return artifactVersion.toString();
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
index 856d81c..e8423b2 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
@@ -30,124 +30,124 @@ import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
 /**
  * Creates a new support branch from a specific commit on the master branch.
  */
 @Mojo(name = "support-start", aggregator = true)
 public class SupportStartMojo extends AbstractGitflowMojo {
 
     /**
      * If <code>true</code>, the support branch is pushed to the remote
      * repository.
      *
      * @since 1.2
      */
     @Parameter(property = "pushSupportBranch", defaultValue = "true", required = false)
     protected boolean pushSupportBranch;
 
     /**
      * The commit to start the support branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     protected String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         String prefix = getGitflowInit().getSupportBranchPrefix();
 
         List<String> tags = getGitflowInit().gitAllTags();
         if (tags.isEmpty()) {
             throw new MojoFailureException("Could not find any tags to create support branch from!");
         }
 
         String baseName = promptForExistingTagName(tags, tags.get(tags.size() - 1));
 
         getGitflowInit().executeLocal("git checkout " + baseName);
         reloadReactorProjects();
         String supportVersion = getSupportVersion(project.getVersion());
         String supportSnapshotVersion = getSupportSnapshotVersion(project.getVersion());
 
         getLog().info("Starting support branch '" + supportVersion + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowSupport gitflowSupport = new GitflowSupport();
         gitflowSupport.setInit(getGitflowInit());
         gitflowSupport.setMsgPrefix(getMsgPrefix());
         gitflowSupport.setMsgSuffix(getMsgSuffix());
         gitflowSupport.setPush(pushSupportBranch);
         gitflowSupport.setStartCommit(startCommit);
 
         try {
             gitflowSupport.start(supportVersion);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
-        setVersion(supportSnapshotVersion, pushSupportBranch);
+        setVersion(supportSnapshotVersion, pushSupportBranch, prefix + supportVersion);
 
         if (getGitflowInit().gitRemoteBranchExists(prefix + supportVersion)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + supportVersion);
         }
     }
 
     private String promptForExistingTagName(List<String> branches, String defaultBrnName) throws MojoFailureException {
         String message = "Create a support branch from tag:";
 
         String name = "";
         try {
             name = prompter.prompt(message, branches, defaultBrnName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading selected Tag name from command line " + e.getMessage());
         }
 
         return name;
     }
 
     private String getSupportVersion(String currentVersion) throws MojoFailureException {
         getLog().debug("getSupportVersion from '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         StringBuilder sb = new StringBuilder(10);
         int pCount = artifactVersion.getPrimaryNumberCount();
         if (pCount < 3) {
             // Support versions should be like 1.0.x e.g. 1.0.1, 1.0.2 etc
             sb.append(artifactVersion.getPrimaryNumbersAsString()).append('.').append('x');
             sb.append(artifactVersion.getAnnotationAsString()).append(artifactVersion.getBuildSpecifierAsString());
         } else {
             // Support versions should be like 1.0.0-xx e.g. 1.0.0-01, 1.0.0-02 etc
             if (null != artifactVersion.getAnnotation()) {
                 throw new MojoFailureException("Cannot start Support branch. Primary number " + artifactVersion.getPrimaryNumbersAsString() + " and annotations are already set " + artifactVersion.getAnnotation());
             }
             sb.append(artifactVersion.getPrimaryNumbersAsString()).append('-').append("xx");
         }
 
         return sb.toString();
     }
 
     private String getSupportSnapshotVersion(String currentVersion) throws MojoFailureException {
         getLog().debug("getSupportSnapshotVersion from '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         StringBuilder sb = new StringBuilder(10);
         int pCount = artifactVersion.getPrimaryNumberCount();
         if (pCount < 3) {
             // Support versions should be like 1.0.x e.g. 1.0.1, 1.0.2 etc
             sb.append(artifactVersion.getPrimaryNumbersAsString()).append('.').append('1');
             sb.append(artifactVersion.getAnnotationAsString());
         } else {
             // Support versions should be like 1.0.0-xx e.g. 1.0.0-01, 1.0.0-02 etc
             if (null != artifactVersion.getAnnotation()) {
                 throw new MojoFailureException("Cannot start Support branch. Primary number " + artifactVersion.getPrimaryNumbersAsString() + " and annotations are already set " + artifactVersion.getAnnotation());
             }
             sb.append(artifactVersion.getPrimaryNumbersAsString()).append('-').append("01");
         }
 
         sb.append(DEFAULT_VERSION_COMPONENT_SEPARATOR).append(SNAPSHOT_QUALIFIER);
 
         return sb.toString();
     }
 }
diff --git a/nbactions.xml b/nbactions.xml
index 005d07c..c9167e4 100644
--- a/nbactions.xml
+++ b/nbactions.xml
@@ -1,43 +1,45 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <actions>
     <action>
         <actionName>CUSTOM-versions:set</actionName>
         <displayName>versions:set</displayName>
         <goals>
-            <goal>versions:set</goal>
+            <goal>org.codehaus.mojo:versions-maven-plugin:2.2:set</goal>
         </goals>
         <properties>
             <generateBackupPoms>false</generateBackupPoms>
+            <versions.logOutput>false</versions.logOutput>
+            
         </properties>
     </action>
     <action>
         <actionName>CUSTOM-site</actionName>
         <displayName>site</displayName>
         <goals>
             <goal>site</goal>
         </goals>
     </action>
     <action>
         <actionName>CUSTOM-clean deploy</actionName>
         <displayName>clean deploy</displayName>
         <goals>
             <goal>clean</goal>
             <goal>deploy</goal>
         </goals>
         <properties>
 
             <skipTests>true</skipTests>
         </properties>
     </action>
     <action>
         <actionName>CUSTOM-clean deploy sign</actionName>
         <displayName>clean deploy sign</displayName>
         <goals>
             <goal>clean</goal>
             <goal>deploy</goal>
         </goals>
         <activatedProfiles>
             <activatedProfile>release-sign-artifacts</activatedProfile>
         </activatedProfiles>
     </action>
 </actions>
diff --git a/pom.xml b/pom.xml
index 937cb28..6c5fd89 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,175 +1,175 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven</artifactId>    
-    <version>1.7</version>
+    <version>1.8-SNAPSHOT</version>
     <name>ggitflow-maven</name>
     <packaging>pom</packaging>
 
     <modules>
         <module>ggitflow-maven-plugin</module>
         <module>ggitflow-maven-archetype</module>
     </modules>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
     </properties>
 
     <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
 
     <scm>
         <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
         <connection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</connection>
         <developerConnection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</developerConnection>
     </scm>
 
     <description>Maven Archetype for the Gitflow Maven Plugin</description>
     <developers>
         <developer>
             <id>dkirrane</id>
             <name>Desmond Kirrane</name>
             <email>desmond.kirrane@gmail.com</email>
         </developer>
     </developers>
     <licenses>
         <license>
             <name>Apache License Version 2.0, January 2004</name>
             <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
             <distribution>repo</distribution>
         </license>
     </licenses>
 
     <build>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <version>2.3.2</version>
                 <configuration>
                     <source>1.5</source>
                     <target>1.5</target>
                 </configuration>
             </plugin>          
         </plugins>
     </build>
 
     <profiles>
         <!-- For Release versions the Sonatype Nexus Stage rules require artifacts to be signed -->
         <!-- http://blog.sonatype.com/2010/01/how-to-generate-pgp-signatures-with-maven -->
         <!-- 1. Setup gpg, @see https://github.com/dkirrane/ggitflow/blob/develop/gradle.properties.sample -->
         <!-- 2. Run Maven deploy sign: mvn clean deploy -Prelease-sign-artifacts -->
         <!-- 3. Login to Nexus to release from the Stage: https://oss.sonatype.org | Login | Staging Repositories | Search for: com.dkirrane | Release -->
         <profile>
             <id>release-sign-artifacts</id>
             <activation>
                 <activeByDefault>false</activeByDefault>
             </activation>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-gpg-plugin</artifactId>
                         <version>1.6</version>
                         <executions>
                             <execution>
                                 <id>sign-artifacts</id>
                                 <phase>verify</phase>
                                 <goals>
                                     <goal>sign</goal>
                                 </goals>
                                 <configuration>
                                     <useAgent>false</useAgent>
                                 </configuration>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
             </build>
         </profile>
         <profile>
             <id>run-its</id>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-invoker-plugin</artifactId>
                         <version>1.8</version>
                         <configuration>
                             <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
                             <settingsFile>src/it/settings.xml</settingsFile>
                             <debug>true</debug>
                             <showErrors>true</showErrors>
                             <detail>true</detail>
                             <streamLogs>true</streamLogs>
                             <projectsDirectory>src/it/projects</projectsDirectory>
                             <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
                             <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
                             <addTestClassPath>true</addTestClassPath>
                             <preBuildHookScript>setup</preBuildHookScript>
                             <postBuildHookScript>verify</postBuildHookScript>
                             <pomIncludes>
                                 <pomInclude>*/pom.xml</pomInclude>
                             </pomIncludes>
                             <goals>
                                 <goal>clean</goal>
                                 <goal>test-compile</goal>
                             </goals>
                         </configuration>
                         <executions>
                             <execution>
                                 <id>integration-test</id>
                                 <goals>
                                     <goal>install</goal>
                                     <goal>integration-test</goal>
                                     <goal>verify</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
 
             </build>
         </profile>
     </profiles>
 
     <!--
         Sonatype upload details:
         http://central.sonatype.org/pages/ossrh-guide.html
         http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
         https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
         https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
         https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
 
             - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
             - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
             - Promote staged artifacts into repository 'Releases'
             - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
             - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
     -->
 
     <distributionManagement>
         <snapshotRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
         </snapshotRepository>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
         </repository>
     </distributionManagement>
     <repositories>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
             <snapshots>
                 <enabled>true</enabled>
             </snapshots>
         </repository>
     </repositories>
 </project>

commit e8e63def776b636fb4c03f36a52b072b34564442
Author: dkirrane <dkirrane@avaya.com>
Date:   Fri Jul 15 17:37:07 2016 +0100

    Fixes
    - revert setVersion if snapshot dependencies
    - prompt user to push

diff --git a/ggitflow-maven-archetype/pom.xml b/ggitflow-maven-archetype/pom.xml
index 459ed6d..479cd2d 100644
--- a/ggitflow-maven-archetype/pom.xml
+++ b/ggitflow-maven-archetype/pom.xml
@@ -1,45 +1,45 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
-        <version>1.7</version>
+        <version>1.8-SNAPSHOT</version>
     </parent>
 
     <groupId>com.dkirrane.maven.archetype</groupId>
     <artifactId>ggitflow-maven-archetype</artifactId>
-    <version>1.7</version>
+    <version>1.8-SNAPSHOT</version>
     <packaging>maven-archetype</packaging>
     <name>ggitflow-maven-archetype</name>
 
     <build>
         <extensions>
             <extension>
                 <groupId>org.apache.maven.archetype</groupId>
                 <artifactId>archetype-packaging</artifactId>
                 <version>2.2</version>
             </extension>
         </extensions>
 
         <pluginManagement>
             <plugins>
                 <plugin>
                     <artifactId>maven-archetype-plugin</artifactId>
                     <version>2.2</version>
                 </plugin>
             </plugins>
         </pluginManagement>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <skip>true</skip>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index e815f7e..73bc1aa 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,170 +1,170 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
-        <version>1.7</version>
+        <version>1.8-SNAPSHOT</version>
     </parent>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
-    <version>1.7</version>
+    <version>1.8-SNAPSHOT</version>
     <packaging>maven-plugin</packaging>
     <name>ggitflow-maven-plugin</name>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
-            <version>2.2</version>
+            <version>2.3-SNAPSHOT</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>3.2</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>3.0.8</version>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-interactivity-api</artifactId>
             <version>1.0-alpha-5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>2.4</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-project</artifactId>
             <version>2.2.1</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-clean-plugin</artifactId>
             <version>2.5</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-install-plugin</artifactId>
             <version>2.5.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-deploy-plugin</artifactId>
             <version>2.8.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-artifact</artifactId>
             <version>2.2.1</version>
         </dependency>
         <dependency>
             <groupId>com.google.guava</groupId>
             <artifactId>guava</artifactId>
             <version>16.0.1</version>
         </dependency>
 
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-api</artifactId>
             <version>1.7.21</version>
         </dependency>
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-simple</artifactId>
             <version>1.7.21</version>
         </dependency>
 
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
     </dependencies>
 
     <build>
         <resources>
             <resource>
                 <directory>src/it</directory>
                 <includes>
                     <include>**/**</include>
                 </includes>
             </resource>
         </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>3.2</version>
                 <configuration>
                     <goalPrefix>ggitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>com.github.github</groupId>
                 <artifactId>site-maven-plugin</artifactId>
                 <version>0.9</version>
                 <configuration>
                     <message>Creating site for ${project.version}</message>
                     <server>github</server>
                     <merge>true</merge>
                 </configuration>
                 <executions>
                     <execution>
                         <goals>
                             <goal>site</goal>
                         </goals>
                         <phase>site</phase>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <reportPlugins>
                         <plugin>
                             <groupId>org.apache.maven.plugins</groupId>
                             <artifactId>maven-plugin-plugin</artifactId>
                             <version>3.2</version>
                         </plugin>
                     </reportPlugins>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index 5302fc6..f5a4d22 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -24,2 +24,6 @@ import com.google.common.collect.ImmutableList;
 import java.io.File;
+import java.io.IOException;
+import java.io.PipedInputStream;
+import java.io.PipedOutputStream;
+import java.io.PrintStream;
 import java.util.ArrayList;
@@ -37,2 +41,3 @@ import org.apache.maven.model.Dependency;
 import org.apache.maven.model.DependencyManagement;
+import org.apache.maven.model.Plugin;
 import org.apache.maven.model.building.ModelBuildingRequest;
@@ -72,481 +77,522 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 public class AbstractGitflowMojo extends AbstractMojo {
 
     public final Pattern matchSnapshotRegex = Pattern.compile("-SNAPSHOT");
 
     public static final ImmutableList<String> DEFAULT_INSTALL_ARGS = ImmutableList.of(
             "-DinstallAtEnd=false");
 
     public static final ImmutableList<String> DEFAULT_DEPLOY_ARGS = ImmutableList.of(
             "-DdeployAtEnd=false",
             "-DretryFailedDeploymentCount=2");
 
     public static final Splitter PROFILES_SPLITTER = Splitter.on(',').trimResults().omitEmptyStrings();
     public static final Joiner PROFILES_JOINER = Joiner.on(',').skipNulls();
 
     /**
      * Gitflow branches and prefixes to use.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
     /**
      * Message prefix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgPrefix", defaultValue = "", required = false)
     protected String msgPrefix;
 
     /**
      * Message suffix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgSuffix", defaultValue = "", required = false)
     protected String msgSuffix;
 
     /**
      * Component used to prompt for input.
      */
     @Component
     protected Prompter prompter;
 
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
     @Component
     protected ArtifactResolver artifactResolver;
 
     /**
      * @parameter default-value="${project.artifacts}"
      * @required
      * @readonly
      */
     protected Collection artifacts;
 
     /**
      * @parameter expression="${localRepository}"
      */
     protected ArtifactRepository localRepository;
 
     /**
      * @parameter expression="${project.remoteArtifactRepositories}"
      */
     protected List remoteArtifactRepositories;
 
 //    @Component
 //    protected MavenProjectBuilder projectBuilder;
 //    @Component
 //    protected DefaultProjectBuilder projectBuilder;
 //    /**
 //     * @parameter property="plugin"
 //     * @required
 //     */
 //    @Component
 //    protected PluginDescriptor pluginDescriptor;
 //
     /**
      * The projects in the reactor.
      */
     @Parameter(defaultValue = "${reactorProjects}", readonly = true, required = true)
     protected List<MavenProject> reactorProjects;
 
     /**
      * The project builder
      */
     @Component
     private ProjectBuilder projectBuilder;
 
     /**
      * The project currently being build.
      *
      * @parameter expression="${project}"
      * @required
      * @readonly
      */
     @Component
     protected MavenProject project;
 
     /**
      * The current Maven session.
      *
      * @parameter expression="${session}"
      * @required
      * @readonly
      */
     @Component
     protected MavenSession session;
 
     /**
      * The Maven BuildPluginManager component.
      *
      * @component
      * @required
      */
     @Component
     protected BuildPluginManager pluginManager;
 
 //    @Parameter(defaultValue = "${basedir}", readonly = true, required = true)
 //    protected File basedir;
 //    @Component
 //    protected Settings settings;
     private GitflowInit init;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     public void execute() throws MojoExecutionException, MojoFailureException {
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             getLog().debug("Gitflow pom  '" + project.getBasedir() + "'");
         }
 
         GitflowInit gitflowInit = getGitflowInit();
 
         gitflowInit.requireGitRepo();
 
         if (!gitflowInit.gitflowIsInitialized()) {
             try {
                 gitflowInit.cmdDefault();
             } catch (GitflowException ex) {
                 throw new MojoExecutionException("Failed to inintialise Gitflow " + ex.getMessage(), ex);
             }
         }
 
         gitflowInit.requireCleanWorkingTree();
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     protected final GitflowInit getGitflowInit() {
         if (null == init) {
             getLog().info("Initialising Gitflow");
             init = new GitflowInit();
             File basedir = getProject().getBasedir();
             getLog().debug("Setting base directory " + basedir);
             init.setRepoDir(basedir);
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
 
             /* root Git directory may not be the pom directory */
-            String gitRootPath = init.executeLocal("git rev-parse --show-toplevel"); 
+            String gitRootPath = init.executeLocal("git rev-parse --show-toplevel");
             getLog().debug("Git repo top level " + gitRootPath);
             File baseGitDir = new File(gitRootPath);
             if (baseGitDir.isDirectory()) {
                 getLog().debug("Setting git base directory " + baseGitDir);
                 init.setRepoDir(baseGitDir);
             }
         }
         return init;
     }
 
-    protected final void setVersion(String version, Boolean push) throws MojoExecutionException, MojoFailureException {
-        getLog().debug("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
+    protected final boolean setVersion(String version, Boolean push, String branch) throws MojoExecutionException, MojoFailureException {
+        getLog().debug("START org.codehaus.mojo:versions-maven-plugin:2.2:set '" + version + "'");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
 
-        for (MavenProject mavenProject : reactorProjects) {
-            getLog().debug("Calling versions-maven-plugin:set on " + mavenProject.getArtifactId());
-            session.setCurrentProject(mavenProject);
+//        session.getRequest().setLoggingLevel(MavenExecutionRequest.LOGGING_LEVEL_WARN);
+//        System.setProperty("org.slf4j.simpleLogger.defaultLogLevel", "error");
+//        System.setProperty("maven.logging.root.level", "error");
+        Plugin versionsPlugin = plugin(
+                groupId("org.codehaus.mojo"),
+                artifactId("versions-maven-plugin"),
+                version("2.2")
+        );
+
+        String goal = goal("set");
+
+        MavenProject topLevelProject = session.getTopLevelProject();
+        getLog().info("");
+        getLog().info("--- " + versionsPlugin.getArtifactId() + ':' + versionsPlugin.getVersion() + ':' + goal + " " + topLevelProject.getArtifactId() + " to " + version + " (" + branch + ") ---");
+        session.setCurrentProject(topLevelProject);
+        PrintStream stdout = System.out;
+        try {
+
+            /* Capture System.out */
+            PipedOutputStream pipeOut;
+            PipedInputStream pipeIn;
+            PrintStream printOut;
             try {
-                executeMojo(
-                        plugin(
-                                groupId("org.codehaus.mojo"),
-                                artifactId("versions-maven-plugin"),
-                                version("2.1")
-                        ),
-                        goal("set"),
-                        configuration(
-                                element(name("generateBackupPoms"), "false"),
-                                element(name("newVersion"), version)
-                        ),
-                        executionEnvironment(
-                                mavenProject,
-                                session,
-                                pluginManager
-                        )
-                );
-            } catch (MojoExecutionException mee) {
-                String rootCauseMessage = ExceptionUtils.getRootCauseMessage(mee);
-                if (rootCauseMessage.contains("Project version is inherited from parent")) {
-                    getLog().warn("Skipping versions-maven-plugin:set for project " + mavenProject.getArtifactId() + ". Project version is inherited from parent.");
-                } else {
-                    getLog().error("Cannot set "+mavenProject.getArtifactId()+" to version '"+version+ "'", mee);
-                    throw mee;
-                }
+                pipeOut = new PipedOutputStream();
+                pipeIn = new PipedInputStream(pipeOut);
+                printOut = new PrintStream(pipeOut);
+                System.setOut(printOut);
+            } catch (IOException ioe) {
+                throw new MojoExecutionException("Failed to capture System.out", ioe);
+            }
+
+            /* Execute versions:set */
+            executeMojo(
+                    versionsPlugin,
+                    goal,
+                    configuration(
+                            element(name("generateBackupPoms"), "false"),
+                            element(name("newVersion"), version)
+                    ),
+                    executionEnvironment(
+                            topLevelProject,
+                            session,
+                            pluginManager
+                    )
+            );
+
+            /* Reset System.out */
+            try {
+                System.setOut(stdout);
+                printOut.close();
+                pipeIn.close();
+                printOut.close();
+            } catch (IOException ex) {
+            }
+
+        } catch (MojoExecutionException mee) {
+            /* Reset System.out */
+            System.setOut(stdout);
+            String rootCauseMessage = ExceptionUtils.getRootCauseMessage(mee);
+            if (rootCauseMessage.contains("Project version is inherited from parent")) {
+                getLog().debug("Skipping versions-maven-plugin:set for project " + topLevelProject.getArtifactId() + ". Project version is inherited from parent.");
+            } else {
+                getLog().error("Cannot set " + topLevelProject.getArtifactId() + " to version '" + version + "'", mee);
+                throw mee;
             }
         }
-        getLog().debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
+        getLog().info("------------------------------------------------------------------------");
 
+        boolean commitMade = false;
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (push && getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change " + version + " to origin. ExitCode:" + exitCode);
                 }
             }
+            commitMade = true;
         }
         /* We don't want to fail maybe the version was manually set correctly */
 //        else {
 //            throw new MojoFailureException("Failed to update poms to version " + version);
 //        }
+        return commitMade;
     }
 
-    protected final void setNextVersions(Boolean allowSnapshots, Boolean updateParent, String includes) throws MojoExecutionException, MojoFailureException {
+    protected final boolean setNextVersions(Boolean allowSnapshots, Boolean updateParent, String includes) throws MojoExecutionException, MojoFailureException {
         getLog().debug("setNextVersions");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
 
         if (updateParent) {
-            getLog().debug("START org.codehaus.mojo:versions-maven-plugin:2.1:update-parent updateParent=" + updateParent);
+            getLog().debug("START org.codehaus.mojo:versions-maven-plugin:2.2:update-parent updateParent=" + updateParent);
             executeMojo(
                     plugin(
                             groupId("org.codehaus.mojo"),
                             artifactId("versions-maven-plugin"),
-                            version("2.1")
+                            version("2.2")
                     ),
                     goal("update-parent"),
                     configuration(
                             element(name("generateBackupPoms"), "false"),
                             element(name("allowSnapshots"), allowSnapshots.toString())
                     ),
                     executionEnvironment(
                             rootProject,
                             session,
                             pluginManager
                     )
             );
-            getLog().debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:update-parent");
+            getLog().debug("DONE org.codehaus.mojo:versions-maven-plugin:2.2:update-parent");
         }
 
         if (!StringUtils.isBlank(includes)) {
-            getLog().debug("START org.codehaus.mojo:versions-maven-plugin:2.1:use-next-versions allowSnapshots=" + allowSnapshots);
+            getLog().debug("START org.codehaus.mojo:versions-maven-plugin:2.2:use-next-versions allowSnapshots=" + allowSnapshots);
             for (MavenProject mavenProject : reactorProjects) {
                 getLog().debug("Calling use-next-versions on " + mavenProject.getArtifactId());
                 session.setCurrentProject(mavenProject);
                 executeMojo(
                         plugin(
                                 groupId("org.codehaus.mojo"),
                                 artifactId("versions-maven-plugin"),
-                                version("2.1")
+                                version("2.2")
                         ),
                         goal("use-next-versions"),
                         configuration(
                                 element(name("generateBackupPoms"), "false"),
                                 element(name("allowSnapshots"), allowSnapshots.toString()),
                                 element(name("includesList"), includes)
                         ),
                         executionEnvironment(
                                 mavenProject,
                                 session,
                                 pluginManager
                         )
                 );
             }
-            getLog().debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:use-next-versions");
+            getLog().debug("DONE org.codehaus.mojo:versions-maven-plugin:2.2:use-next-versions");
         } else {
             getLog().warn("Parameter <includes> is not set. Skipping dependency updates");
         }
 
+        boolean commitMade = false;
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg;
             if (allowSnapshots) {
                 msg = getMsgPrefix() + "Replaces any release versions with the next snapshot version (if it has been deployed)." + getMsgSuffix();
             } else {
                 msg = getMsgPrefix() + "Replaces snapshot versions with the corresponding release version" + getMsgSuffix();
             }
 
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change to origin. ExitCode:" + exitCode);
                 }
             }
+            commitMade = true;
         }
+        return commitMade;
     }
 
     protected final void runGoals(String goals, List<String> additionalArgs) throws MojoExecutionException, MojoFailureException {
         getLog().debug("START executing " + goals + " with args " + additionalArgs);
 
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         File basedir = rootProject.getBasedir();
 
         ReleaseResult result = new ReleaseResult();
         ReleaseEnvironment env = new DefaultReleaseEnvironment();
         env.setSettings(session.getSettings());
         MavenExecutor mavenExecutor = mavenExecutors.get(env.getMavenExecutorId());
 
         Joiner joiner = Joiner.on(" ").skipNulls();
         String additionalArguments = joiner.join(additionalArgs);
         getLog().debug("additionalArguments " + additionalArguments);
 
         try {
             mavenExecutor.executeGoals(basedir, goals, env, false, additionalArguments, result);
         } catch (MavenExecutorException ex) {
             throw new MojoExecutionException(result.getOutput(), ex);
         }
         getLog().debug("DONE executing " + goals);
     }
 
     protected final String getReleaseVersion(String version) throws MojoFailureException {
         getLog().debug("Current Develop version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
             getLog().debug("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
     protected final void checkForSnapshotDependencies() throws MojoExecutionException {
         getLog().info("Checking for SNAPSHOT dependencies");
         Boolean hasDepSnapshots = false;
         Boolean hasParentSnapshot = false;
         for (MavenProject mavenProject : reactorProjects) {
             String artifactId = mavenProject.getArtifactId();
 
             /* Check <parent> */
             Artifact parentArtifact = mavenProject.getParentArtifact();
             if (parentArtifact != null && parentArtifact.isSnapshot()) {
                 getLog().error("Parent of project " + artifactId + " is a SNAPSHOT " + parentArtifact.getId());
                 hasParentSnapshot = true;
             }
 
             /* Check <dependencyManagement> */
             DependencyManagement dependencyManagement = mavenProject.getDependencyManagement();
             if (null != dependencyManagement) {
                 if (checkForSnapshot(artifactId, dependencyManagement.getDependencies())) {
                     hasDepSnapshots = true;
                 }
             }
 
             /* Check <dependencies> */
             if (checkForSnapshot(artifactId, mavenProject.getDependencies())) {
                 hasDepSnapshots = true;
             }
         }
         if (hasParentSnapshot || hasDepSnapshots) {
             throw new MojoExecutionException("Cannot release because SNAPSHOT dependencies exist");
         }
     }
 
     private boolean checkForSnapshot(String artifactId, List<Dependency> dependencies) throws MojoExecutionException {
         Boolean hasSnapshotDependency = false;
         for (Dependency dependency : dependencies) {
             String version = dependency.getVersion();
             Matcher versionMatcher = matchSnapshotRegex.matcher(version);
             if (versionMatcher.find() && versionMatcher.end() == version.length()) {
                 getLog().error("Project " + artifactId + " contains SNAPSHOT dependency: " + dependency.getGroupId() + ":" + dependency.getArtifactId() + ":" + version);
                 hasSnapshotDependency = true;
             }
         }
         return hasSnapshotDependency;
     }
 
     protected final void reloadReactorProjects() throws MojoExecutionException {
         getLog().debug("Reloading poms...");
 
         List<MavenProject> newReactorProjects;
         try {
             newReactorProjects = buildReactorProjects();
         } catch (ProjectBuildingException e) {
             getLog().error("Re-parse aborted due to malformed pom.xml file(s)", e);
             throw new MojoExecutionException("Re-parse aborted due to malformed pom.xml file(s)", e);
         } catch (CycleDetectedException e) {
             getLog().error("Re-parse aborted due to dependency cycle in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to dependency cycle in project model", e);
         } catch (DuplicateProjectException e) {
             getLog().error("Re-parse aborted due to duplicate projects in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to duplicate projects in project model", e);
         } catch (Exception e) {
             getLog().error("Re-parse aborted due a problem that prevented sorting the project model", e);
             throw new MojoExecutionException("Re-parse aborted due a problem that prevented sorting the project model", e);
         }
         MavenProject newProject = findProject(newReactorProjects, this.project);
         if (newProject == null) {
             throw new MojoExecutionException("A pom.xml change appears to have removed " + this.project.getId() + " from the build plan.");
         }
 
         this.project = newProject;
         this.reactorProjects = newReactorProjects;
 
         getLog().debug("Reloading poms complete...");
     }
 
     private List<MavenProject> buildReactorProjects() throws Exception {
 
         List<MavenProject> projects = new ArrayList<MavenProject>();
         for (MavenProject p : reactorProjects) {
             ProjectBuildingRequest request = new DefaultProjectBuildingRequest();
 
             request.setProcessPlugins(false);
             request.setProfiles(request.getProfiles());
             request.setActiveProfileIds(session.getRequest().getActiveProfiles());
             request.setInactiveProfileIds(session.getRequest().getInactiveProfiles());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setSystemProperties(session.getSystemProperties());
             request.setUserProperties(session.getUserProperties());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setPluginArtifactRepositories(session.getRequest().getPluginArtifactRepositories());
             request.setRepositorySession(session.getRepositorySession());
             request.setLocalRepository(localRepository);
             request.setBuildStartTime(session.getRequest().getStartTime());
             request.setResolveDependencies(false);
             request.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_STRICT);
             projects.add(projectBuilder.build(p.getFile(), request).getProject());
         }
         return new ProjectSorter(projects).getSortedProjects();
     }
 
     private MavenProject findProject(List<MavenProject> newReactorProjects, MavenProject oldProject) {
         for (MavenProject newProject : newReactorProjects) {
             if (oldProject.getGroupId().equals(newProject.getGroupId())
                     && oldProject.getArtifactId().equals(newProject.getArtifactId())) {
                 return newProject;
             }
         }
         return null;
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/DebuggingMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/DebuggingMojo.java
index ad5c02d..fbee5bc 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/DebuggingMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/DebuggingMojo.java
@@ -21,17 +21,17 @@ import org.apache.maven.plugin.MojoFailureException;
 /**
  * Mojo used for Testing
  */
 //@Mojo(name = "debug-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class DebuggingMojo extends AbstractGitflowMojo {
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         reloadReactorProjects();
 
-        setVersion("1.4", false);
+        setVersion("1.4", false, "someBranchName");
 
         runGoals("clean deploy", DEFAULT_DEPLOY_ARGS);
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
index 794db40..138232e 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
@@ -30,169 +30,169 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  * Merges a feature branch back into the develop.
  */
 @Mojo(name = "feature-finish", aggregator = true)
 public class FeatureFinishMojo extends AbstractFeatureMojo {
 
     /**
      * If <code>true</code>, the feature finish merge to develop will get pushed
      * to the remote repository
      *
      * @since 1.6
      */
     @Parameter(property = "pushFeatureFinish", defaultValue = "false", required = false)
     protected boolean pushFeatureFinish;
 
     /**
      * If <code>true</code>, the feature branch will be rebased onto develop,
      * then finish will fast-forward merge the feature branch back onto develop.
      *
      * @since 1.2
      */
     @Parameter(property = "isRebase", defaultValue = "false", required = false)
     private boolean isRebase;
 
 //    No good way to handle Interactive rebase from a Maven plugin
 //    /**
 //     * If <code>true</code>, and <code>isRebase</code> is true, then an interactive rebase is
 //     * performed for the feature branch.
 //     *
 //     * @since 1.2
 //     */
 //    @Parameter(property = "isInteractive", defaultValue = "false", required = false)
     private final boolean isInteractive = false;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "true", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any tests during <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipTests", defaultValue = "true", required = false)
     private Boolean skipTests;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the local feature branch will not be deleted after
      * the merge.
      *
      * @since 1.6
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keepLocal;
 
     /**
      * If <code>true</code>, the remote feature branch will not be deleted after
      * the merge.
      *
      * @since 1.6
      */
     @Parameter(property = "keep", defaultValue = "true", required = false)
     private Boolean keepRemote;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().debug("Finishing feature");
 
         String prefix = getFeatureBranchPrefix();
         List<String> featureBranches = getGitflowInit().gitLocalFeatureBranches();
 
         if (null == featureBranches || featureBranches.isEmpty()) {
             throw new MojoFailureException("No local feature branches exist!");
         }
 
         if (StringUtils.isBlank(featureName)) {
             String defaultFeatureBranch;
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (currentBranch.startsWith(prefix)) {
                 defaultFeatureBranch = currentBranch;
             } else {
                 defaultFeatureBranch = featureBranches.get(0);
             }
             String featureBranch = promptForExistingFeatureBranch(featureBranches, defaultFeatureBranch);
             featureName = trimFeatureName(featureBranch);
         } else {
             featureName = trimFeatureName(featureName);
             if (!getGitflowInit().gitLocalBranchExists(prefix + featureName)) {
                 throw new MojoFailureException("No local feature branch named '" + prefix + featureName + "' exists!");
             }
         }
 
         getLog().info("Finishing feature '" + featureName + "'");
 
         if (enableFeatureVersions) {
             /* Switch to develop branch and get its current version */
             getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
             reloadReactorProjects();
             String developVersion = project.getVersion();
             getLog().debug("develop version = " + developVersion);
 
             /* Switch to feature branch and get its current version */
             getGitflowInit().executeLocal("git checkout " + prefix + featureName);
             reloadReactorProjects();
             String featureVersion = project.getVersion();
             getLog().debug("feature version = " + featureVersion);
 
-            setVersion(developVersion, pushFeatureFinish);
+            setVersion(developVersion, pushFeatureFinish, prefix + featureName);
         }
 
         if (skipBuild == false) {
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_INSTALL_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             runGoals("clean install", additionalArgs.build());
         } else {
             getLog().debug("Skipping mvn install for feature " + featureName);
         }
 
         GitflowFeature gitflowFeature = new GitflowFeature();
         gitflowFeature.setInit(getGitflowInit());
         gitflowFeature.setMsgPrefix(getMsgPrefix());
         gitflowFeature.setMsgSuffix(getMsgSuffix());
         gitflowFeature.setPush(pushFeatureBranch);
         gitflowFeature.setSquash(squash);
         gitflowFeature.setKeepLocal(keepLocal);
         gitflowFeature.setKeepRemote(keepRemote);
         gitflowFeature.setIsRebase(isRebase);
         gitflowFeature.setIsInteractive(isInteractive);
 
         try {
             gitflowFeature.finish(featureName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
     }
 
     private String promptForExistingFeatureBranch(List<String> featureBranches, String defaultFeatureBranch) throws MojoFailureException {
         String message = "Please select a feature branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, featureBranches, defaultFeatureBranch);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading feature name from command line " + e.getMessage());
         }
 
         return name.trim();
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
index 1affa64..368579d 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
@@ -29,68 +29,68 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  * Creates a new feature branch off of the develop branch.
  */
 @Mojo(name = "feature-start", aggregator = true)
 public class FeatureStartMojo extends AbstractFeatureMojo {
 
     /**
      * The commit to start the feature branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     protected String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         String prefix = getFeatureBranchPrefix();
         if (StringUtils.isBlank(featureName)) {
             String message = "What is the feature branch name? " + prefix;
             try {
                 featureName = prompter.prompt(message);
                 if (StringUtils.isBlank(featureName)) {
                     throw new MojoFailureException("Parameter <featureName> cannot be null or empty.");
                 }
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading feature name from command line " + ex.getMessage(), ex);
             }
         }
         featureName = trimFeatureName(featureName);
 
         getLog().info("Starting feature '" + featureName + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowFeature gitflowFeature = new GitflowFeature();
         gitflowFeature.setInit(getGitflowInit());
         gitflowFeature.setMsgPrefix(getMsgPrefix());
         gitflowFeature.setMsgSuffix(getMsgSuffix());
         gitflowFeature.setPush(pushFeatureBranch);
         gitflowFeature.setStartCommit(startCommit);
 
         try {
             gitflowFeature.start(featureName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         if (enableFeatureVersions) {
             /* Already on feature branch so just get its current version */
             Model model = MavenUtil.readPom(reactorProjects);
             String currentVersion = model.getVersion();
 
             String featureVersion = getFeatureVersion(currentVersion, featureName);
-            setVersion(featureVersion, pushFeatureBranch);
+            setVersion(featureVersion, pushFeatureBranch, prefix + featureName);
 
             if (getGitflowInit().gitRemoteBranchExists(prefix + featureName)) {
                 getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + featureName);
             }
 
             /* print feature version */
             reloadReactorProjects();
             getLog().debug("project = " + project.getVersion());
         }
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
index adc59ac..5aa0cb5 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
@@ -31,249 +31,258 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  * Merges a hotfix branch back into the develop and master branch and then
  * creates a tag for the hotfix on master.
  */
 @Mojo(name = "hotfix-finish", aggregator = true)
 public class HotfixFinishMojo extends AbstractHotfixMojo {
 
     protected String hotfixName;
 
     /**
      * If <code>true</code>, the hotfix finish merge to develop & master and
      * created tag will get pushed to the remote repository
      *
      * @since 1.6
      */
     @Parameter(property = "pushHotfixFinish", defaultValue = "false", required = false)
     protected boolean pushHotfixFinish;
 
     /**
      * If <code>true</code>, the hotfix can still finish even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private boolean allowSnapshots;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "true", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any calls to <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipDeploy", defaultValue = "true", required = false)
     private Boolean skipDeploy;
 
     /**
      * Skips any tests during <code>mvn install</code> and
      * <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipTests", defaultValue = "true", required = false)
     private Boolean skipTests;
 
     /**
      * Whether to use the release profile that adds sources and javadoc to the
      * released artifact, if appropriate. If set to true, the hotfix-finish will
      * set the property "performRelease" to true, which activates the profile
      * "release-profile", which is inherited from the super pom.
      *
      * @since 1.2
      */
     @Parameter(property = "useReleaseProfile", defaultValue = "true", required = false)
     private Boolean useReleaseProfile;
 
     /**
      * Comma separated profiles to enable on deployment, in addition to active
      * profiles for project execution.
      *
      * @since 1.2
      */
     @Parameter(property = "releaseProfiles", defaultValue = "", required = false)
     private String releaseProfiles;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the hotfix feature branch will not be deleted after
      * the merge.
      *
      * @since 1.6
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keepLocal;
 
     /**
      * If <code>true</code>, the hotfix feature branch will not be deleted after
      * the merge.
      *
      * @since 1.6
      */
     @Parameter(property = "keep", defaultValue = "true", required = false)
     private Boolean keepRemote;
 
     /**
      * If <code>true</code>, the hotfix tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().debug("Finishing hotfix");
 
         /* Get hotfix branch name */
         List<String> hotfixBranches = getGitflowInit().gitLocalHotfixBranches();
         if (hotfixBranches.isEmpty()) {
             throw new MojoFailureException("Could not find hotfix branch!");
         } else if (hotfixBranches.size() == 1) {
             hotfixName = hotfixBranches.get(0);
         } else {
             hotfixName = promptForExistingHotfixName(hotfixBranches, hotfixName);
         }
 
         getLog().info("Finishing hotfix '" + hotfixName + "'");
 
         /* Switch to develop branch and get its current version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         getLog().debug("develop version = " + developVersion);
 
         /* Switch to hotfix branch and set poms to hotfix version */
         getGitflowInit().executeLocal("git checkout " + hotfixName);
         reloadReactorProjects();
         String hotfixVersion = project.getVersion();
         getLog().debug("hotfix snapshot version = " + hotfixVersion);
         String hotfixReleaseVersion = getReleaseVersion(hotfixVersion);
         getLog().debug("hotfix release version = " + hotfixReleaseVersion);
 
-        setVersion(hotfixReleaseVersion, pushHotfixFinish);
+        boolean setVersion = setVersion(hotfixReleaseVersion, pushHotfixFinish, hotfixName);
 
         if (!allowSnapshots) {
             reloadReactorProjects();
-            checkForSnapshotDependencies();
+            try {
+                checkForSnapshotDependencies();
+            } catch (MojoExecutionException mee) {
+                // reset setVersion commit and allow user fix & push SNAPSHOT dependencies
+                // but can only reset if the commit has not been pushed */
+                if (!pushHotfixFinish && setVersion) {
+                    getGitflowInit().executeLocal("git reset HEAD~1");
+                }
+                throw mee;
+            }
         }
 
         /* finish hotfix */
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
         gitflowHotfix.setPush(pushHotfixBranch);
         gitflowHotfix.setSquash(squash);
         gitflowHotfix.setKeepLocal(keepLocal);
         gitflowHotfix.setKeepRemote(keepRemote);
         gitflowHotfix.setSign(sign);
         gitflowHotfix.setSigningkey(signingkey);
 
         /* 1. merge to master */
         try {
             gitflowHotfix.finishToMaster(hotfixName, pushHotfixFinish);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
 
         /* 2. make versions in hotfix and develop branches match to avoid conflicts */
         getGitflowInit().executeLocal("git checkout " + hotfixName);
         reloadReactorProjects();
-        setVersion(developVersion, pushHotfixFinish);
+        setVersion(developVersion, pushHotfixFinish, hotfixName);
 
         /* 3. merge to develop */
         try {
             gitflowHotfix.finishToDevelop(hotfixName, pushHotfixFinish);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
         /* Switch to hotfix tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + hotfixReleaseVersion);
         reloadReactorProjects();
         String tagVersion = project.getVersion();
         getLog().debug("tag version = " + tagVersion);
 
         /* install or deploy */
         if (skipDeploy == false) {
             String goals = "clean deploy";
             if (project.getDistributionManagement() != null
                     && project.getDistributionManagement().getSite() != null) {
                 goals += " site-deploy";
             }
 
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             if (useReleaseProfile) {
                 additionalArgs.add("-DperformRelease=true");
             }
             if (StringUtils.isNotBlank(releaseProfiles)) {
                 Iterable<String> profiles = PROFILES_SPLITTER.split(releaseProfiles);
                 additionalArgs.add("-P " + PROFILES_JOINER.join(profiles));
             }
             runGoals(goals, additionalArgs.build());
         } else if (skipBuild == false) {
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             runGoals("clean install", additionalArgs.build());
         } else {
             getLog().debug("Skipping both install and deploy for hotfix tag " + hotfixName);
         }
 
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingHotfixName(List<String> hotfixBranches, String defaultHotfixName) throws MojoFailureException {
         String message = "Please select a hotfix branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, hotfixBranches, defaultHotfixName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading hotfix name from command line " + e.getMessage());
         }
 
         return name;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
index 824bacc..e3cbc87 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
@@ -27,74 +27,75 @@ import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
 /**
  * Creates a new hotfix branch off of the master branch.
  */
 @Mojo(name = "hotfix-start", aggregator = true)
 public class HotfixStartMojo extends AbstractHotfixMojo {
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         /* Switch to master branch and get current version i.e. lastest tag */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getMasterBrnName());
         reloadReactorProjects();
         String masterVersion = project.getVersion();
         getLog().debug("master version = " + masterVersion);
 
         String hotfixVersion = getHotfixVersion(masterVersion);
         String hotfixSnapshotVersion = getHotfixSnapshotVersion(masterVersion);
 
         getLog().info("Starting hotfix '" + hotfixVersion + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
         gitflowHotfix.setPush(pushHotfixBranch);
 
         try {
             gitflowHotfix.start(hotfixVersion);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
-        setVersion(hotfixSnapshotVersion, pushHotfixBranch);
-
         String prefix = getGitflowInit().getHotfixBranchPrefix();
+
+        setVersion(hotfixSnapshotVersion, pushHotfixBranch, prefix + hotfixVersion);
+
         if (getGitflowInit().gitRemoteBranchExists(prefix + hotfixVersion)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + hotfixVersion);
         }
     }
 
     private String getHotfixVersion(String currentVersion) throws MojoFailureException {
         getLog().debug("getHotfixVersion from '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         final StringBuilder result = new StringBuilder(30);
         if (artifactVersion.getPrimaryNumberCount() < 3) {
             String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
             String annotationAsString = artifactVersion.getAnnotationAsString();
             result.append(primaryNumbersAsString).append('.').append('1');
             result.append(annotationAsString);
         } else {
             artifactVersion.upgradeLeastSignificantNumber();
             result.append(artifactVersion.toString());
         }
         return result.toString();
     }
 
     private String getHotfixSnapshotVersion(String currentVersion) throws MojoFailureException {
         getLog().debug("getHotfixSnapshotVersion from '" + currentVersion + "'");
 
         final StringBuilder result = new StringBuilder(30);
 
         String hotfixVersion = getHotfixVersion(currentVersion);
         result.append(hotfixVersion);
 
         result.append(DEFAULT_VERSION_COMPONENT_SEPARATOR).append(SNAPSHOT_QUALIFIER);
 
         return result.toString();
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index b8ad612..128e882 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -33,304 +33,319 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  * Merges a release branch back into the develop and master branch and then
  * creates a tag for the release on master.
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
 
     /**
      * If <code>true</code>, the release finish merge to develop & master and
      * the created tag will get pushed to the remote repository
      *
      * @since 1.6
      */
     @Parameter(property = "pushReleaseFinish", defaultValue = "false", required = false)
     protected boolean pushReleaseFinish;
 
     /**
      * If <code>true</code>, the release can still finish even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private Boolean allowSnapshots;
 
     /**
      * If the project has a parent with a release version it will be replaced
      * with the next <code>-SNAPSHOT</code> version (if it has been deployed).
      * This action is performed on the develop branch after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "updateParent", defaultValue = "false", required = false)
     private Boolean updateParent;
 
     /**
      * On the release branch before finish is called any dependencies with a
      * <code>-SNAPSHOT</code> version are replaced with the corresponding
      * release version (if it has been released).
      *
      * On the develop branch after the merge any dependencies with a release
      * version are replaced with the next <code>-SNAPSHOT</code> version (if it
      * has been deployed).
      *
      * @since 1.2
      */
     @Parameter(property = "updateDependencies", defaultValue = "false", required = false)
     private Boolean updateDependencies;
 
     /**
      * If <code>updateDependencies</code> is set, then this should contain a
      * comma separated list of artifact patterns to include. Follows the pattern <code>groupId:artifactId:type:classifier:version<code>
      *
      * @since 1.5
      */
     @Parameter(property = "includes", defaultValue = "", required = false)
     private String includes;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "true", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any calls to <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipDeploy", defaultValue = "true", required = false)
     private Boolean skipDeploy;
 
     /**
      * Skips any tests during <code>mvn install</code> and
      * <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipTests", defaultValue = "true", required = false)
     private Boolean skipTests;
 
     /**
      * Whether to use the release profile that adds sources and javadoc to the
      * released artifact, if appropriate. If set to true, the release-finish
      * will set the property "performRelease" to true, which activates the
      * profile "release-profile", which is inherited from the super pom.
      *
      * @since 1.2
      */
     @Parameter(property = "useReleaseProfile", defaultValue = "true", required = false)
     private Boolean useReleaseProfile;
 
     /**
      * Comma separated profiles to enable on deployment, in addition to active
      * profiles for project execution.
      *
      * @since 1.2
      */
     @Parameter(property = "releaseProfiles", defaultValue = "", required = false)
     private String releaseProfiles;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the local release branch will not be deleted after
      * the merge.
      *
      * @since 1.6
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keepLocal;
 
     /**
      * If <code>true</code>, the remote release branch will not be deleted after
      * the merge.
      *
      * @since 1.6
      */
     @Parameter(property = "keep", defaultValue = "true", required = false)
     private Boolean keepRemote;
 
     /**
      * If <code>true</code>, the release tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().debug("Finishing release");
 
         /* Get release branch name */
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
         if (releaseBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         } else if (releaseBranches.size() == 1) {
             releaseName = releaseBranches.get(0);
         } else {
             releaseName = promptForExistingReleaseName(releaseBranches, releaseName);
         }
 
         getLog().info("Finishing release '" + releaseName + "'");
 
         /* Switch to develop branch and get its current version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         getLog().debug("develop version = " + developVersion);
 
         /* Switch to release branch and set poms to release version */
         getGitflowInit().executeLocal("git checkout " + releaseName);
         reloadReactorProjects();
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(project.getVersion());
         String releaseVersion;
         if ("SNAPSHOT".equals(artifactVersion.getBuildSpecifier())) {
             releaseVersion = getReleaseVersion(project.getVersion());
         } else {
             releaseVersion = project.getVersion();
         }
         getLog().debug("release version = " + releaseVersion);
 
-        setVersion(releaseVersion, pushReleaseFinish);
+        boolean setVersion = setVersion(releaseVersion, pushReleaseFinish, releaseName);
 
         /* Update release branch dependencies to release version */
+        boolean setNextVersions = false;
         if (updateDependencies) {
             reloadReactorProjects();
-            setNextVersions(false, updateParent, includes);
+            setNextVersions = setNextVersions(false, updateParent, includes);
         }
 
         if (!allowSnapshots) {
             reloadReactorProjects();
-            checkForSnapshotDependencies();
+            try {
+                checkForSnapshotDependencies();
+            } catch (MojoExecutionException mee) {
+                // reset setNextVersions and/or setVersion commits to allow user fix & push SNAPSHOT dependencies
+                // but can only reset if it the commits have not been pushed */
+                if (!pushReleaseFinish) {
+                    if (setNextVersions) {
+                        getGitflowInit().executeLocal("git reset HEAD~1");
+                    }
+                    if (setVersion) {
+                        getGitflowInit().executeLocal("git reset HEAD~1");
+                    }
+                }
+                throw mee;
+            }
         }
 
         /* finish release */
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setPush(pushReleaseBranch);
         gitflowRelease.setSquash(squash);
         gitflowRelease.setKeepLocal(keepLocal);
         gitflowRelease.setKeepRemote(keepRemote);
         gitflowRelease.setSign(sign);
         gitflowRelease.setSigningkey(signingkey);
 
         /* 1. merge to master */
         try {
             gitflowRelease.finishToMaster(releaseName, pushReleaseFinish);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
 
         /* 2. make versions in release and develop branches match to avoid conflicts */
         getGitflowInit().executeLocal("git checkout " + releaseName);
         reloadReactorProjects();
-        setVersion(developVersion, pushReleaseFinish);
+        setVersion(developVersion, pushReleaseFinish, releaseName);
 
         /* 3. merge to develop */
         try {
             gitflowRelease.finishToDevelop(releaseName, pushReleaseFinish);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
         /* Update develop branch dependencies to next snapshot version (if deployed) */
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions(true, updateParent, includes);
         }
 
         /* Switch to release tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);
         reloadReactorProjects();
         String tagVersion = project.getVersion();
         getLog().debug("tag version = " + tagVersion);
 
         /* install or deploy */
         if (skipDeploy == false) {
             String goals = "clean deploy";
             if (project.getDistributionManagement() != null
                     && project.getDistributionManagement().getSite() != null) {
                 goals += " site-deploy";
             }
 
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             if (useReleaseProfile) {
                 additionalArgs.add("-DperformRelease=true");
             }
             if (StringUtils.isNotBlank(releaseProfiles)) {
                 Iterable<String> profiles = PROFILES_SPLITTER.split(releaseProfiles);
                 additionalArgs.add("-P " + PROFILES_JOINER.join(profiles));
             }
             runGoals(goals, additionalArgs.build());
         } else if (skipBuild == false) {
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             runGoals("clean install", additionalArgs.build());
         } else {
             getLog().debug("Skipping both install and deploy for release tag " + releaseName);
         }
 
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingReleaseName(List<String> releaseBranches, String defaultReleaseName) throws MojoFailureException {
         String message = "Please select a release branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, releaseBranches, defaultReleaseName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading release name from command line " + e.getMessage());
         }
 
         return name;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
index d152bed..41b1608 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
@@ -29,161 +29,161 @@ import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
 /**
  * Creates a new release branch off of the develop branch.
  */
 @Mojo(name = "release-start", aggregator = true)
 public class ReleaseStartMojo extends AbstractReleaseMojo {
 
     /**
      * Whether to run the plugin in interactive mode or not. The default is to
      * run without interaction when possible.
      *
      * @since 1.2
      */
     @Parameter(property = "interactive", defaultValue = "true", required = false)
     protected boolean interactive;
 
     /**
      * If the project has a parent with a <code>-SNAPSHOT</code> version it will
      * be replaced with the corresponding release version (if it has been
      * released). This action is performed on the release branch after it is
      * created.
      *
      * @since 1.2
      */
     @Parameter(property = "updateParent", defaultValue = "false", required = false)
     private boolean updateParent;
 
     /**
      * Any dependencies with a <code>-SNAPSHOT</code> version are replaced with
      * the corresponding release version (if it has been released). This action
      * is performed on the release branch after it is created.
      *
      * @since 1.2
      */
     @Parameter(property = "updateDependencies", defaultValue = "false", required = false)
     private boolean updateDependencies;
 
     /**
      * If <code>updateDependencies</code> is set, then this should contain a
      * comma separated list of artifact patterns to include. Follows the pattern <code>groupId:artifactId:type:classifier:version<code>
      *
      * @since 1.5
      */
     @Parameter(property = "includes", defaultValue = "", required = false)
     private String includes;
 
     /**
      * The commit to start the release branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     private String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         /* Switch to develop branch and get its current version */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
         reloadReactorProjects();
 
         String developVersion = project.getVersion();
         getLog().info("Current develop version = " + developVersion);
 
         /* Get next development version */
         String nextDevelopVersion = getNextDevelopVersion(developVersion);
         if (interactive) {
             String message = "What is the next development version? ";
             try {
                 nextDevelopVersion = prompter.prompt(message, nextDevelopVersion);
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading next development version from command line " + ex.getMessage(), ex);
             }
         }
         getLog().debug("Next development version = " + developVersion);
 
         /* Get suggested release version */
         String releaseVersion = getReleaseVersion(developVersion);
         getLog().debug("release version = " + releaseVersion);
 
         /* create release branch */
         String prefix = getReleaseBranchPrefix();
         if (!StringUtils.isBlank(releaseName)) {
             getLog().debug("Using releaseName passed  '" + releaseName + "'");
         } else if (interactive) {
             String message = "What is the release branch name? " + prefix;
             try {
                 releaseName = prompter.prompt(message, releaseVersion);
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading release name from command line " + ex.getMessage(), ex);
             }
         } else {
             releaseName = releaseVersion;
         }
 
         if (StringUtils.isBlank(releaseName)) {
             throw new MojoFailureException("Parameter <releaseName> cannot be null or empty.");
         }
 
         GenericArtifactVersion releaseArtifactVersion;
         try {
             releaseArtifactVersion = new GenericArtifactVersion(releaseName);
             if (SNAPSHOT_QUALIFIER.equals(releaseArtifactVersion.getBuildSpecifier())) {
                 throw new IllegalArgumentException("Parameter <releaseName> is not a release version as it contains SNAPSHOT build specifier");
             }
         } catch (IllegalArgumentException e) {
             throw new MojoExecutionException("Parameter <releaseName> value '" + releaseName + "' is not a valid Maven release version.");
         }
 
         getLog().info("Starting release '" + releaseName + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setPush(pushReleaseBranch);
         gitflowRelease.setStartCommit(startCommit);
 
         try {
             gitflowRelease.start(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         // current branch should be the release branch
         String releaseBranch = getGitflowInit().gitCurrentBranch();
         if (!releaseBranch.startsWith(prefix)) {
             throw new MojoFailureException("Failed to create release version.");
         }
 
         /* Update release branch dependencies to release version */
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions(false, updateParent, includes);
         }
 
         // checkout develop branch and update it's version
         String developBranch = (String) getGitflowInit().getDevelopBrnName();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
-        setVersion(nextDevelopVersion, pushReleaseBranch);
+        setVersion(nextDevelopVersion, pushReleaseBranch, developBranch);
 
         // checkout release branch again and update it's version to required release version
         getGitflowInit().executeLocal("git checkout " + releaseBranch);
         reloadReactorProjects();
-        setVersion(releaseArtifactVersion.setBuildSpecifier(SNAPSHOT_QUALIFIER).toString(), pushReleaseBranch);
+        setVersion(releaseArtifactVersion.setBuildSpecifier(SNAPSHOT_QUALIFIER).toString(), pushReleaseBranch, releaseBranch);
     }
 
     public String getReleaseName() {
         return releaseName;
     }
 
     private String getNextDevelopVersion(String developVersion) {
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(developVersion);
         artifactVersion.upgradeLeastSignificantPrimaryNumber();
 
         return artifactVersion.toString();
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
index 856d81c..e8423b2 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
@@ -30,124 +30,124 @@ import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
 /**
  * Creates a new support branch from a specific commit on the master branch.
  */
 @Mojo(name = "support-start", aggregator = true)
 public class SupportStartMojo extends AbstractGitflowMojo {
 
     /**
      * If <code>true</code>, the support branch is pushed to the remote
      * repository.
      *
      * @since 1.2
      */
     @Parameter(property = "pushSupportBranch", defaultValue = "true", required = false)
     protected boolean pushSupportBranch;
 
     /**
      * The commit to start the support branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     protected String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         String prefix = getGitflowInit().getSupportBranchPrefix();
 
         List<String> tags = getGitflowInit().gitAllTags();
         if (tags.isEmpty()) {
             throw new MojoFailureException("Could not find any tags to create support branch from!");
         }
 
         String baseName = promptForExistingTagName(tags, tags.get(tags.size() - 1));
 
         getGitflowInit().executeLocal("git checkout " + baseName);
         reloadReactorProjects();
         String supportVersion = getSupportVersion(project.getVersion());
         String supportSnapshotVersion = getSupportSnapshotVersion(project.getVersion());
 
         getLog().info("Starting support branch '" + supportVersion + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowSupport gitflowSupport = new GitflowSupport();
         gitflowSupport.setInit(getGitflowInit());
         gitflowSupport.setMsgPrefix(getMsgPrefix());
         gitflowSupport.setMsgSuffix(getMsgSuffix());
         gitflowSupport.setPush(pushSupportBranch);
         gitflowSupport.setStartCommit(startCommit);
 
         try {
             gitflowSupport.start(supportVersion);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
-        setVersion(supportSnapshotVersion, pushSupportBranch);
+        setVersion(supportSnapshotVersion, pushSupportBranch, prefix + supportVersion);
 
         if (getGitflowInit().gitRemoteBranchExists(prefix + supportVersion)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + supportVersion);
         }
     }
 
     private String promptForExistingTagName(List<String> branches, String defaultBrnName) throws MojoFailureException {
         String message = "Create a support branch from tag:";
 
         String name = "";
         try {
             name = prompter.prompt(message, branches, defaultBrnName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading selected Tag name from command line " + e.getMessage());
         }
 
         return name;
     }
 
     private String getSupportVersion(String currentVersion) throws MojoFailureException {
         getLog().debug("getSupportVersion from '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         StringBuilder sb = new StringBuilder(10);
         int pCount = artifactVersion.getPrimaryNumberCount();
         if (pCount < 3) {
             // Support versions should be like 1.0.x e.g. 1.0.1, 1.0.2 etc
             sb.append(artifactVersion.getPrimaryNumbersAsString()).append('.').append('x');
             sb.append(artifactVersion.getAnnotationAsString()).append(artifactVersion.getBuildSpecifierAsString());
         } else {
             // Support versions should be like 1.0.0-xx e.g. 1.0.0-01, 1.0.0-02 etc
             if (null != artifactVersion.getAnnotation()) {
                 throw new MojoFailureException("Cannot start Support branch. Primary number " + artifactVersion.getPrimaryNumbersAsString() + " and annotations are already set " + artifactVersion.getAnnotation());
             }
             sb.append(artifactVersion.getPrimaryNumbersAsString()).append('-').append("xx");
         }
 
         return sb.toString();
     }
 
     private String getSupportSnapshotVersion(String currentVersion) throws MojoFailureException {
         getLog().debug("getSupportSnapshotVersion from '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         StringBuilder sb = new StringBuilder(10);
         int pCount = artifactVersion.getPrimaryNumberCount();
         if (pCount < 3) {
             // Support versions should be like 1.0.x e.g. 1.0.1, 1.0.2 etc
             sb.append(artifactVersion.getPrimaryNumbersAsString()).append('.').append('1');
             sb.append(artifactVersion.getAnnotationAsString());
         } else {
             // Support versions should be like 1.0.0-xx e.g. 1.0.0-01, 1.0.0-02 etc
             if (null != artifactVersion.getAnnotation()) {
                 throw new MojoFailureException("Cannot start Support branch. Primary number " + artifactVersion.getPrimaryNumbersAsString() + " and annotations are already set " + artifactVersion.getAnnotation());
             }
             sb.append(artifactVersion.getPrimaryNumbersAsString()).append('-').append("01");
         }
 
         sb.append(DEFAULT_VERSION_COMPONENT_SEPARATOR).append(SNAPSHOT_QUALIFIER);
 
         return sb.toString();
     }
 }
diff --git a/nbactions.xml b/nbactions.xml
index 005d07c..c9167e4 100644
--- a/nbactions.xml
+++ b/nbactions.xml
@@ -1,43 +1,45 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <actions>
     <action>
         <actionName>CUSTOM-versions:set</actionName>
         <displayName>versions:set</displayName>
         <goals>
-            <goal>versions:set</goal>
+            <goal>org.codehaus.mojo:versions-maven-plugin:2.2:set</goal>
         </goals>
         <properties>
             <generateBackupPoms>false</generateBackupPoms>
+            <versions.logOutput>false</versions.logOutput>
+            
         </properties>
     </action>
     <action>
         <actionName>CUSTOM-site</actionName>
         <displayName>site</displayName>
         <goals>
             <goal>site</goal>
         </goals>
     </action>
     <action>
         <actionName>CUSTOM-clean deploy</actionName>
         <displayName>clean deploy</displayName>
         <goals>
             <goal>clean</goal>
             <goal>deploy</goal>
         </goals>
         <properties>
 
             <skipTests>true</skipTests>
         </properties>
     </action>
     <action>
         <actionName>CUSTOM-clean deploy sign</actionName>
         <displayName>clean deploy sign</displayName>
         <goals>
             <goal>clean</goal>
             <goal>deploy</goal>
         </goals>
         <activatedProfiles>
             <activatedProfile>release-sign-artifacts</activatedProfile>
         </activatedProfiles>
     </action>
 </actions>
diff --git a/pom.xml b/pom.xml
index 937cb28..6c5fd89 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,175 +1,175 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven</artifactId>    
-    <version>1.7</version>
+    <version>1.8-SNAPSHOT</version>
     <name>ggitflow-maven</name>
     <packaging>pom</packaging>
 
     <modules>
         <module>ggitflow-maven-plugin</module>
         <module>ggitflow-maven-archetype</module>
     </modules>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
     </properties>
 
     <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
 
     <scm>
         <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
         <connection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</connection>
         <developerConnection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</developerConnection>
     </scm>
 
     <description>Maven Archetype for the Gitflow Maven Plugin</description>
     <developers>
         <developer>
             <id>dkirrane</id>
             <name>Desmond Kirrane</name>
             <email>desmond.kirrane@gmail.com</email>
         </developer>
     </developers>
     <licenses>
         <license>
             <name>Apache License Version 2.0, January 2004</name>
             <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
             <distribution>repo</distribution>
         </license>
     </licenses>
 
     <build>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <version>2.3.2</version>
                 <configuration>
                     <source>1.5</source>
                     <target>1.5</target>
                 </configuration>
             </plugin>          
         </plugins>
     </build>
 
     <profiles>
         <!-- For Release versions the Sonatype Nexus Stage rules require artifacts to be signed -->
         <!-- http://blog.sonatype.com/2010/01/how-to-generate-pgp-signatures-with-maven -->
         <!-- 1. Setup gpg, @see https://github.com/dkirrane/ggitflow/blob/develop/gradle.properties.sample -->
         <!-- 2. Run Maven deploy sign: mvn clean deploy -Prelease-sign-artifacts -->
         <!-- 3. Login to Nexus to release from the Stage: https://oss.sonatype.org | Login | Staging Repositories | Search for: com.dkirrane | Release -->
         <profile>
             <id>release-sign-artifacts</id>
             <activation>
                 <activeByDefault>false</activeByDefault>
             </activation>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-gpg-plugin</artifactId>
                         <version>1.6</version>
                         <executions>
                             <execution>
                                 <id>sign-artifacts</id>
                                 <phase>verify</phase>
                                 <goals>
                                     <goal>sign</goal>
                                 </goals>
                                 <configuration>
                                     <useAgent>false</useAgent>
                                 </configuration>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
             </build>
         </profile>
         <profile>
             <id>run-its</id>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-invoker-plugin</artifactId>
                         <version>1.8</version>
                         <configuration>
                             <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
                             <settingsFile>src/it/settings.xml</settingsFile>
                             <debug>true</debug>
                             <showErrors>true</showErrors>
                             <detail>true</detail>
                             <streamLogs>true</streamLogs>
                             <projectsDirectory>src/it/projects</projectsDirectory>
                             <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
                             <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
                             <addTestClassPath>true</addTestClassPath>
                             <preBuildHookScript>setup</preBuildHookScript>
                             <postBuildHookScript>verify</postBuildHookScript>
                             <pomIncludes>
                                 <pomInclude>*/pom.xml</pomInclude>
                             </pomIncludes>
                             <goals>
                                 <goal>clean</goal>
                                 <goal>test-compile</goal>
                             </goals>
                         </configuration>
                         <executions>
                             <execution>
                                 <id>integration-test</id>
                                 <goals>
                                     <goal>install</goal>
                                     <goal>integration-test</goal>
                                     <goal>verify</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
 
             </build>
         </profile>
     </profiles>
 
     <!--
         Sonatype upload details:
         http://central.sonatype.org/pages/ossrh-guide.html
         http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
         https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
         https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
         https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
 
             - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
             - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
             - Promote staged artifacts into repository 'Releases'
             - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
             - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
     -->
 
     <distributionManagement>
         <snapshotRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
         </snapshotRepository>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
         </repository>
     </distributionManagement>
     <repositories>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
             <snapshots>
                 <enabled>true</enabled>
             </snapshots>
         </repository>
     </repositories>
 </project>

commit 21d064b0f2825ba612923c6c071d813d52f0a707
Merge: ae0bb92 2e4c585
Author: dkirrane <dkirrane@avaya.com>
Date:   Fri May 20 18:06:09 2016 +0100

    Merge branch 'release/1.7'

commit 2e4c585286897056e3b3619ad23810d70567a113
Author: dkirrane <dkirrane@avaya.com>
Date:   Fri May 20 18:05:40 2016 +0100

    Releasgin 1.7

diff --git a/ggitflow-maven-archetype/README.md b/ggitflow-maven-archetype/README.md
index 8105cc7..e4ac923 100644
--- a/ggitflow-maven-archetype/README.md
+++ b/ggitflow-maven-archetype/README.md
@@ -7,5 +7,5 @@
 # Manually download the plugin
 mvn org.apache.maven.plugins:maven-dependency-plugin:get \
     -DrepoUrl=https://oss.sonatype.org/content/groups/public \
-    -Dartifact=com.dkirrane.maven.plugins:ggitflow-maven-plugin:1.6
+    -Dartifact=com.dkirrane.maven.plugins:ggitflow-maven-plugin:1.7
 
@@ -19,26 +19,26 @@ with ggitflow-maven-plugin configured:
 # Interactive mode
 mvn archetype:generate \
     -DinteractiveMode=true \
     -DarchetypeGroupId=com.dkirrane.maven.archetype \
     -DarchetypeArtifactId=ggitflow-maven-archetype \
-    -DarchetypeVersion=1.6 \
+    -DarchetypeVersion=1.7 \
     -DarchetypeRepository=https://oss.sonatype.org/content/repositories/snapshots
 
 
 # Batch mode
 mvn archetype:generate \
     -DinteractiveMode=false \
     -DarchetypeGroupId=com.dkirrane.maven.archetype \
     -DarchetypeArtifactId=ggitflow-maven-archetype \
-    -DarchetypeVersion=1.6 \
+    -DarchetypeVersion=1.7 \
     -DarchetypeRepository=https://oss.sonatype.org/content/repositories/snapshots \
     -DgroupId=com.mycompany -DartifactId=my-proj -Dversion=1.0-SNAPSHOT
 
 
 ########################################
 # Using Staged version for verification
 ########################################
 #   1. Deploy to stage https://oss.sonatype.org/index.html#stagingRepositories
 #   2. Close stage to make it available in the Staging repo
 #   3. Run below command & test
 #   4. If happy Release otherwise Drop and redeploy to test fixes
@@ -47,7 +47,7 @@ rm -Rf C:\.m2\com\dkirrane
 mvn -U archetype:generate \
     -DinteractiveMode=false \
     -DarchetypeGroupId=com.dkirrane.maven.archetype \
     -DarchetypeArtifactId=ggitflow-maven-archetype \
-    -DarchetypeVersion=1.6 \
+    -DarchetypeVersion=1.7 \
     -DarchetypeRepository=https://oss.sonatype.org/content/groups/staging \
     -DgroupId=com.mycompany -DartifactId=my-proj -Dversion=1.0-SNAPSHOT
\ No newline at end of file
diff --git a/ggitflow-maven-archetype/pom.xml b/ggitflow-maven-archetype/pom.xml
index 8a2400f..459ed6d 100644
--- a/ggitflow-maven-archetype/pom.xml
+++ b/ggitflow-maven-archetype/pom.xml
@@ -1,45 +1,45 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
-        <version>1.6</version>
+        <version>1.7</version>
     </parent>
 
     <groupId>com.dkirrane.maven.archetype</groupId>
     <artifactId>ggitflow-maven-archetype</artifactId>
-    <version>1.6</version>
+    <version>1.7</version>
     <packaging>maven-archetype</packaging>
     <name>ggitflow-maven-archetype</name>
 
     <build>
         <extensions>
             <extension>
                 <groupId>org.apache.maven.archetype</groupId>
                 <artifactId>archetype-packaging</artifactId>
                 <version>2.2</version>
             </extension>
         </extensions>
 
         <pluginManagement>
             <plugins>
                 <plugin>
                     <artifactId>maven-archetype-plugin</artifactId>
                     <version>2.2</version>
                 </plugin>
             </plugins>
         </pluginManagement>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <skip>true</skip>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/README.md b/ggitflow-maven-archetype/src/main/resources/archetype-resources/README.md
index 19b259d..5938be8 100644
--- a/ggitflow-maven-archetype/src/main/resources/archetype-resources/README.md
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/README.md
@@ -1,11 +1,20 @@
 # Setup
+
+mvn org.apache.maven.plugins:maven-dependency-plugin:get \
+    -DrepoUrl=https://oss.sonatype.org/content/groups/public \
+    -Dartifact=com.dkirrane.maven.plugins:ggitflow-maven-plugin:1.7
+
 # Add the following to your Maven settings.xml
 
-<pluginGroups>
-   <pluginGroup>com.dkirrane.maven.plugins</pluginGroup>
-</pluginGroups>
+        <pluginGroups>
+           <pluginGroup>com.dkirrane.maven.plugins</pluginGroup>
+        </pluginGroups>
+
+    otherwise use full path
+
+        mvn com.dkirrane.maven.plugins:ggitflow-maven-plugin:1.7:<goal>
 
-# Initialise Git repo
-git init . && git add . && git commit --allow-empty -m "Initial commit"
+# Initialise clean Git repo
+./clear-git-history.sh
 
 # Feature
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/pom.xml b/ggitflow-maven-archetype/src/main/resources/archetype-resources/pom.xml
index 564f09f..aabb2f1 100644
--- a/ggitflow-maven-archetype/src/main/resources/archetype-resources/pom.xml
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/pom.xml
@@ -1,31 +1,34 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>${groupId}</groupId>
     <artifactId>${artifactId}</artifactId>
     <version>${version}</version>
     <packaging>pom</packaging>
     <name>${artifactId}</name>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     </properties>
 
     <build>
         <plugins>
             <plugin>
                 <groupId>com.dkirrane.maven.plugins</groupId>
                 <artifactId>ggitflow-maven-plugin</artifactId>
-                <version>1.6</version>
+                <version>1.7</version>
+                <configuration>
+                    <msgPrefix>[ggitflow-maven-plugin]</msgPrefix>
+                </configuration>
             </plugin>
         </plugins>
     </build>
 
     <pluginRepositories>
         <pluginRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
         </pluginRepository>
     </pluginRepositories>
 </project>
diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index aa7d633..e815f7e 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,170 +1,170 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
-        <version>1.6</version>
+        <version>1.7</version>
     </parent>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
-    <version>1.6</version>
+    <version>1.7</version>
     <packaging>maven-plugin</packaging>
     <name>ggitflow-maven-plugin</name>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
-            <version>2.2-SNAPSHOT</version>
+            <version>2.2</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>3.2</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>3.0.8</version>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-interactivity-api</artifactId>
             <version>1.0-alpha-5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>2.4</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-project</artifactId>
             <version>2.2.1</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-clean-plugin</artifactId>
             <version>2.5</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-install-plugin</artifactId>
             <version>2.5.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-deploy-plugin</artifactId>
             <version>2.8.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-artifact</artifactId>
             <version>2.2.1</version>
         </dependency>
         <dependency>
             <groupId>com.google.guava</groupId>
             <artifactId>guava</artifactId>
             <version>16.0.1</version>
         </dependency>
 
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-api</artifactId>
             <version>1.7.21</version>
         </dependency>
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-simple</artifactId>
             <version>1.7.21</version>
         </dependency>
 
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
     </dependencies>
 
     <build>
         <resources>
             <resource>
                 <directory>src/it</directory>
                 <includes>
                     <include>**/**</include>
                 </includes>
             </resource>
         </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>3.2</version>
                 <configuration>
                     <goalPrefix>ggitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>com.github.github</groupId>
                 <artifactId>site-maven-plugin</artifactId>
                 <version>0.9</version>
                 <configuration>
                     <message>Creating site for ${project.version}</message>
                     <server>github</server>
                     <merge>true</merge>
                 </configuration>
                 <executions>
                     <execution>
                         <goals>
                             <goal>site</goal>
                         </goals>
                         <phase>site</phase>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <reportPlugins>
                         <plugin>
                             <groupId>org.apache.maven.plugins</groupId>
                             <artifactId>maven-plugin-plugin</artifactId>
                             <version>3.2</version>
                         </plugin>
                     </reportPlugins>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/pom.xml b/pom.xml
index bb715f0..937cb28 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,175 +1,175 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven</artifactId>    
-    <version>1.6</version>
+    <version>1.7</version>
     <name>ggitflow-maven</name>
     <packaging>pom</packaging>
 
     <modules>
         <module>ggitflow-maven-plugin</module>
         <module>ggitflow-maven-archetype</module>
     </modules>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
     </properties>
 
     <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
 
     <scm>
         <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
         <connection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</connection>
         <developerConnection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</developerConnection>
     </scm>
 
     <description>Maven Archetype for the Gitflow Maven Plugin</description>
     <developers>
         <developer>
             <id>dkirrane</id>
             <name>Desmond Kirrane</name>
             <email>desmond.kirrane@gmail.com</email>
         </developer>
     </developers>
     <licenses>
         <license>
             <name>Apache License Version 2.0, January 2004</name>
             <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
             <distribution>repo</distribution>
         </license>
     </licenses>
 
     <build>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <version>2.3.2</version>
                 <configuration>
                     <source>1.5</source>
                     <target>1.5</target>
                 </configuration>
             </plugin>          
         </plugins>
     </build>
 
     <profiles>
         <!-- For Release versions the Sonatype Nexus Stage rules require artifacts to be signed -->
         <!-- http://blog.sonatype.com/2010/01/how-to-generate-pgp-signatures-with-maven -->
         <!-- 1. Setup gpg, @see https://github.com/dkirrane/ggitflow/blob/develop/gradle.properties.sample -->
         <!-- 2. Run Maven deploy sign: mvn clean deploy -Prelease-sign-artifacts -->
         <!-- 3. Login to Nexus to release from the Stage: https://oss.sonatype.org | Login | Staging Repositories | Search for: com.dkirrane | Release -->
         <profile>
             <id>release-sign-artifacts</id>
             <activation>
                 <activeByDefault>false</activeByDefault>
             </activation>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-gpg-plugin</artifactId>
                         <version>1.6</version>
                         <executions>
                             <execution>
                                 <id>sign-artifacts</id>
                                 <phase>verify</phase>
                                 <goals>
                                     <goal>sign</goal>
                                 </goals>
                                 <configuration>
                                     <useAgent>false</useAgent>
                                 </configuration>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
             </build>
         </profile>
         <profile>
             <id>run-its</id>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-invoker-plugin</artifactId>
                         <version>1.8</version>
                         <configuration>
                             <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
                             <settingsFile>src/it/settings.xml</settingsFile>
                             <debug>true</debug>
                             <showErrors>true</showErrors>
                             <detail>true</detail>
                             <streamLogs>true</streamLogs>
                             <projectsDirectory>src/it/projects</projectsDirectory>
                             <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
                             <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
                             <addTestClassPath>true</addTestClassPath>
                             <preBuildHookScript>setup</preBuildHookScript>
                             <postBuildHookScript>verify</postBuildHookScript>
                             <pomIncludes>
                                 <pomInclude>*/pom.xml</pomInclude>
                             </pomIncludes>
                             <goals>
                                 <goal>clean</goal>
                                 <goal>test-compile</goal>
                             </goals>
                         </configuration>
                         <executions>
                             <execution>
                                 <id>integration-test</id>
                                 <goals>
                                     <goal>install</goal>
                                     <goal>integration-test</goal>
                                     <goal>verify</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
 
             </build>
         </profile>
     </profiles>
 
     <!--
         Sonatype upload details:
         http://central.sonatype.org/pages/ossrh-guide.html
         http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
         https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
         https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
         https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
 
             - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
             - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
             - Promote staged artifacts into repository 'Releases'
             - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
             - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
     -->
 
     <distributionManagement>
         <snapshotRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
         </snapshotRepository>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
         </repository>
     </distributionManagement>
     <repositories>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
             <snapshots>
                 <enabled>true</enabled>
             </snapshots>
         </repository>
     </repositories>
 </project>

commit 66da23ccb87da48855842d684e15ddaaf249f894
Author: dkirrane <dkirrane@avaya.com>
Date:   Fri May 20 15:55:16 2016 +0100

    signing fix

diff --git a/pom.xml b/pom.xml
index 53750ea..bb715f0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,169 +1,175 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven</artifactId>    
     <version>1.6</version>
     <name>ggitflow-maven</name>
     <packaging>pom</packaging>
 
     <modules>
         <module>ggitflow-maven-plugin</module>
         <module>ggitflow-maven-archetype</module>
     </modules>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
     </properties>
 
     <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
 
     <scm>
         <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
         <connection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</connection>
         <developerConnection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</developerConnection>
     </scm>
 
     <description>Maven Archetype for the Gitflow Maven Plugin</description>
     <developers>
         <developer>
             <id>dkirrane</id>
             <name>Desmond Kirrane</name>
             <email>desmond.kirrane@gmail.com</email>
         </developer>
     </developers>
     <licenses>
         <license>
             <name>Apache License Version 2.0, January 2004</name>
             <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
             <distribution>repo</distribution>
         </license>
     </licenses>
 
     <build>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <version>2.3.2</version>
                 <configuration>
                     <source>1.5</source>
                     <target>1.5</target>
                 </configuration>
             </plugin>          
         </plugins>
     </build>
 
     <profiles>
-        <!-- Deploy to https://oss.sonatype.org/index.html -->
-        <!-- mvn clean deploy -Prelease-sign-artifacts -->
+        <!-- For Release versions the Sonatype Nexus Stage rules require artifacts to be signed -->
+        <!-- http://blog.sonatype.com/2010/01/how-to-generate-pgp-signatures-with-maven -->
+        <!-- 1. Setup gpg, @see https://github.com/dkirrane/ggitflow/blob/develop/gradle.properties.sample -->
+        <!-- 2. Run Maven deploy sign: mvn clean deploy -Prelease-sign-artifacts -->
+        <!-- 3. Login to Nexus to release from the Stage: https://oss.sonatype.org | Login | Staging Repositories | Search for: com.dkirrane | Release -->
         <profile>
             <id>release-sign-artifacts</id>
             <activation>
                 <activeByDefault>false</activeByDefault>
             </activation>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-gpg-plugin</artifactId>
                         <version>1.6</version>
                         <executions>
                             <execution>
                                 <id>sign-artifacts</id>
                                 <phase>verify</phase>
                                 <goals>
                                     <goal>sign</goal>
                                 </goals>
+                                <configuration>
+                                    <useAgent>false</useAgent>
+                                </configuration>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
             </build>
         </profile>
         <profile>
             <id>run-its</id>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-invoker-plugin</artifactId>
                         <version>1.8</version>
                         <configuration>
                             <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
                             <settingsFile>src/it/settings.xml</settingsFile>
                             <debug>true</debug>
                             <showErrors>true</showErrors>
                             <detail>true</detail>
                             <streamLogs>true</streamLogs>
                             <projectsDirectory>src/it/projects</projectsDirectory>
                             <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
                             <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
                             <addTestClassPath>true</addTestClassPath>
                             <preBuildHookScript>setup</preBuildHookScript>
                             <postBuildHookScript>verify</postBuildHookScript>
                             <pomIncludes>
                                 <pomInclude>*/pom.xml</pomInclude>
                             </pomIncludes>
                             <goals>
                                 <goal>clean</goal>
                                 <goal>test-compile</goal>
                             </goals>
                         </configuration>
                         <executions>
                             <execution>
                                 <id>integration-test</id>
                                 <goals>
                                     <goal>install</goal>
                                     <goal>integration-test</goal>
                                     <goal>verify</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
 
             </build>
         </profile>
     </profiles>
 
     <!--
         Sonatype upload details:
         http://central.sonatype.org/pages/ossrh-guide.html
         http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
         https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
         https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
         https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
 
             - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
             - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
             - Promote staged artifacts into repository 'Releases'
             - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
             - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
     -->
 
     <distributionManagement>
         <snapshotRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
         </snapshotRepository>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
         </repository>
     </distributionManagement>
     <repositories>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
             <snapshots>
                 <enabled>true</enabled>
             </snapshots>
         </repository>
     </repositories>
 </project>

commit bd5cfddd830a6ae1567205d79fc249de33aaf4f6
Author: dkirrane <dkirrane@avaya.com>
Date:   Fri May 20 15:42:51 2016 +0100

    Branch deletion improvement

diff --git a/ggitflow-maven-archetype/README.md b/ggitflow-maven-archetype/README.md
index 723b747..8105cc7 100644
--- a/ggitflow-maven-archetype/README.md
+++ b/ggitflow-maven-archetype/README.md
@@ -7,5 +7,5 @@
 # Manually download the plugin
 mvn org.apache.maven.plugins:maven-dependency-plugin:get \
     -DrepoUrl=https://oss.sonatype.org/content/groups/public \
-    -Dartifact=com.dkirrane.maven.plugins:ggitflow-maven-plugin:1.6-SNAPSHOT
+    -Dartifact=com.dkirrane.maven.plugins:ggitflow-maven-plugin:1.6
 
@@ -19,26 +19,26 @@ with ggitflow-maven-plugin configured:
 # Interactive mode
 mvn archetype:generate \
     -DinteractiveMode=true \
     -DarchetypeGroupId=com.dkirrane.maven.archetype \
     -DarchetypeArtifactId=ggitflow-maven-archetype \
-    -DarchetypeVersion=1.6-SNAPSHOT \
+    -DarchetypeVersion=1.6 \
     -DarchetypeRepository=https://oss.sonatype.org/content/repositories/snapshots
 
 
 # Batch mode
 mvn archetype:generate \
     -DinteractiveMode=false \
     -DarchetypeGroupId=com.dkirrane.maven.archetype \
     -DarchetypeArtifactId=ggitflow-maven-archetype \
-    -DarchetypeVersion=1.6-SNAPSHOT \
+    -DarchetypeVersion=1.6 \
     -DarchetypeRepository=https://oss.sonatype.org/content/repositories/snapshots \
     -DgroupId=com.mycompany -DartifactId=my-proj -Dversion=1.0-SNAPSHOT
 
 
 ########################################
 # Using Staged version for verification
 ########################################
 #   1. Deploy to stage https://oss.sonatype.org/index.html#stagingRepositories
 #   2. Close stage to make it available in the Staging repo
 #   3. Run below command & test
 #   4. If happy Release otherwise Drop and redeploy to test fixes
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/pom.xml b/ggitflow-maven-archetype/src/main/resources/archetype-resources/pom.xml
index 47816c1..564f09f 100644
--- a/ggitflow-maven-archetype/src/main/resources/archetype-resources/pom.xml
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/pom.xml
@@ -1,31 +1,31 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>${groupId}</groupId>
     <artifactId>${artifactId}</artifactId>
     <version>${version}</version>
     <packaging>pom</packaging>
     <name>${artifactId}</name>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     </properties>
 
     <build>
         <plugins>
             <plugin>
                 <groupId>com.dkirrane.maven.plugins</groupId>
                 <artifactId>ggitflow-maven-plugin</artifactId>
-                <version>1.6-SNAPSHOT</version>
+                <version>1.6</version>
             </plugin>
         </plugins>
     </build>
 
     <pluginRepositories>
         <pluginRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
         </pluginRepository>
     </pluginRepositories>
 </project>
diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index 97e2261..aa7d633 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,170 +1,170 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
         <version>1.6</version>
     </parent>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
     <version>1.6</version>
     <packaging>maven-plugin</packaging>
     <name>ggitflow-maven-plugin</name>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
-            <version>2.1</version>
+            <version>2.2-SNAPSHOT</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>3.2</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>3.0.8</version>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-interactivity-api</artifactId>
             <version>1.0-alpha-5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>2.4</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-project</artifactId>
             <version>2.2.1</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-clean-plugin</artifactId>
             <version>2.5</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-install-plugin</artifactId>
             <version>2.5.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-deploy-plugin</artifactId>
             <version>2.8.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-artifact</artifactId>
             <version>2.2.1</version>
         </dependency>
         <dependency>
             <groupId>com.google.guava</groupId>
             <artifactId>guava</artifactId>
             <version>16.0.1</version>
         </dependency>
 
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-api</artifactId>
             <version>1.7.21</version>
         </dependency>
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-simple</artifactId>
             <version>1.7.21</version>
         </dependency>
 
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
     </dependencies>
 
     <build>
         <resources>
             <resource>
                 <directory>src/it</directory>
                 <includes>
                     <include>**/**</include>
                 </includes>
             </resource>
         </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>3.2</version>
                 <configuration>
                     <goalPrefix>ggitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>com.github.github</groupId>
                 <artifactId>site-maven-plugin</artifactId>
                 <version>0.9</version>
                 <configuration>
                     <message>Creating site for ${project.version}</message>
                     <server>github</server>
                     <merge>true</merge>
                 </configuration>
                 <executions>
                     <execution>
                         <goals>
                             <goal>site</goal>
                         </goals>
                         <phase>site</phase>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <reportPlugins>
                         <plugin>
                             <groupId>org.apache.maven.plugins</groupId>
                             <artifactId>maven-plugin-plugin</artifactId>
                             <version>3.2</version>
                         </plugin>
                     </reportPlugins>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
index 5b6edaf..794db40 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
@@ -30,158 +30,169 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  * Merges a feature branch back into the develop.
  */
 @Mojo(name = "feature-finish", aggregator = true)
 public class FeatureFinishMojo extends AbstractFeatureMojo {
 
     /**
      * If <code>true</code>, the feature finish merge to develop will get pushed
      * to the remote repository
      *
      * @since 1.6
      */
     @Parameter(property = "pushFeatureFinish", defaultValue = "false", required = false)
     protected boolean pushFeatureFinish;
 
     /**
      * If <code>true</code>, the feature branch will be rebased onto develop,
      * then finish will fast-forward merge the feature branch back onto develop.
      *
      * @since 1.2
      */
     @Parameter(property = "isRebase", defaultValue = "false", required = false)
     private boolean isRebase;
 
 //    No good way to handle Interactive rebase from a Maven plugin
 //    /**
 //     * If <code>true</code>, and <code>isRebase</code> is true, then an interactive rebase is
 //     * performed for the feature branch.
 //     *
 //     * @since 1.2
 //     */
 //    @Parameter(property = "isInteractive", defaultValue = "false", required = false)
     private final boolean isInteractive = false;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "true", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any tests during <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipTests", defaultValue = "true", required = false)
     private Boolean skipTests;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
-     * If <code>true</code>, the branch will not be deleted after the merge.
+     * If <code>true</code>, the local feature branch will not be deleted after
+     * the merge.
      *
-     * @since 1.2
+     * @since 1.6
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
-    private Boolean keep;
+    private Boolean keepLocal;
+
+    /**
+     * If <code>true</code>, the remote feature branch will not be deleted after
+     * the merge.
+     *
+     * @since 1.6
+     */
+    @Parameter(property = "keep", defaultValue = "true", required = false)
+    private Boolean keepRemote;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().debug("Finishing feature");
 
         String prefix = getFeatureBranchPrefix();
         List<String> featureBranches = getGitflowInit().gitLocalFeatureBranches();
 
         if (null == featureBranches || featureBranches.isEmpty()) {
             throw new MojoFailureException("No local feature branches exist!");
         }
 
         if (StringUtils.isBlank(featureName)) {
             String defaultFeatureBranch;
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (currentBranch.startsWith(prefix)) {
                 defaultFeatureBranch = currentBranch;
             } else {
                 defaultFeatureBranch = featureBranches.get(0);
             }
             String featureBranch = promptForExistingFeatureBranch(featureBranches, defaultFeatureBranch);
             featureName = trimFeatureName(featureBranch);
         } else {
             featureName = trimFeatureName(featureName);
-            if(!getGitflowInit().gitLocalBranchExists(prefix + featureName)){
+            if (!getGitflowInit().gitLocalBranchExists(prefix + featureName)) {
                 throw new MojoFailureException("No local feature branch named '" + prefix + featureName + "' exists!");
-            }            
+            }
         }
 
         getLog().info("Finishing feature '" + featureName + "'");
 
         if (enableFeatureVersions) {
             /* Switch to develop branch and get its current version */
             getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
             reloadReactorProjects();
             String developVersion = project.getVersion();
             getLog().debug("develop version = " + developVersion);
 
             /* Switch to feature branch and get its current version */
             getGitflowInit().executeLocal("git checkout " + prefix + featureName);
             reloadReactorProjects();
             String featureVersion = project.getVersion();
             getLog().debug("feature version = " + featureVersion);
 
             setVersion(developVersion, pushFeatureFinish);
         }
 
         if (skipBuild == false) {
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_INSTALL_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             runGoals("clean install", additionalArgs.build());
         } else {
             getLog().debug("Skipping mvn install for feature " + featureName);
         }
 
         GitflowFeature gitflowFeature = new GitflowFeature();
         gitflowFeature.setInit(getGitflowInit());
         gitflowFeature.setMsgPrefix(getMsgPrefix());
         gitflowFeature.setMsgSuffix(getMsgSuffix());
         gitflowFeature.setPush(pushFeatureBranch);
         gitflowFeature.setSquash(squash);
-        gitflowFeature.setKeep(keep);
+        gitflowFeature.setKeepLocal(keepLocal);
+        gitflowFeature.setKeepRemote(keepRemote);
         gitflowFeature.setIsRebase(isRebase);
         gitflowFeature.setIsInteractive(isInteractive);
 
         try {
             gitflowFeature.finish(featureName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
     }
 
     private String promptForExistingFeatureBranch(List<String> featureBranches, String defaultFeatureBranch) throws MojoFailureException {
         String message = "Please select a feature branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, featureBranches, defaultFeatureBranch);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading feature name from command line " + e.getMessage());
         }
 
         return name.trim();
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
index 7d4f6b4..adc59ac 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
@@ -31,238 +31,249 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  * Merges a hotfix branch back into the develop and master branch and then
  * creates a tag for the hotfix on master.
  */
 @Mojo(name = "hotfix-finish", aggregator = true)
 public class HotfixFinishMojo extends AbstractHotfixMojo {
 
     protected String hotfixName;
 
     /**
      * If <code>true</code>, the hotfix finish merge to develop & master and
      * created tag will get pushed to the remote repository
      *
      * @since 1.6
      */
     @Parameter(property = "pushHotfixFinish", defaultValue = "false", required = false)
     protected boolean pushHotfixFinish;
 
     /**
      * If <code>true</code>, the hotfix can still finish even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private boolean allowSnapshots;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "true", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any calls to <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipDeploy", defaultValue = "true", required = false)
     private Boolean skipDeploy;
 
     /**
      * Skips any tests during <code>mvn install</code> and
      * <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipTests", defaultValue = "true", required = false)
     private Boolean skipTests;
 
     /**
      * Whether to use the release profile that adds sources and javadoc to the
      * released artifact, if appropriate. If set to true, the hotfix-finish will
      * set the property "performRelease" to true, which activates the profile
      * "release-profile", which is inherited from the super pom.
      *
      * @since 1.2
      */
     @Parameter(property = "useReleaseProfile", defaultValue = "true", required = false)
     private Boolean useReleaseProfile;
 
     /**
      * Comma separated profiles to enable on deployment, in addition to active
      * profiles for project execution.
      *
      * @since 1.2
      */
     @Parameter(property = "releaseProfiles", defaultValue = "", required = false)
     private String releaseProfiles;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
-     * If <code>true</code>, the branch will not be deleted after the merge.
+     * If <code>true</code>, the hotfix feature branch will not be deleted after
+     * the merge.
      *
-     * @since 1.2
+     * @since 1.6
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
-    private Boolean keep;
+    private Boolean keepLocal;
+
+    /**
+     * If <code>true</code>, the hotfix feature branch will not be deleted after
+     * the merge.
+     *
+     * @since 1.6
+     */
+    @Parameter(property = "keep", defaultValue = "true", required = false)
+    private Boolean keepRemote;
 
     /**
      * If <code>true</code>, the hotfix tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().debug("Finishing hotfix");
 
         /* Get hotfix branch name */
         List<String> hotfixBranches = getGitflowInit().gitLocalHotfixBranches();
         if (hotfixBranches.isEmpty()) {
             throw new MojoFailureException("Could not find hotfix branch!");
         } else if (hotfixBranches.size() == 1) {
             hotfixName = hotfixBranches.get(0);
         } else {
             hotfixName = promptForExistingHotfixName(hotfixBranches, hotfixName);
         }
 
         getLog().info("Finishing hotfix '" + hotfixName + "'");
 
         /* Switch to develop branch and get its current version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         getLog().debug("develop version = " + developVersion);
 
         /* Switch to hotfix branch and set poms to hotfix version */
         getGitflowInit().executeLocal("git checkout " + hotfixName);
         reloadReactorProjects();
         String hotfixVersion = project.getVersion();
         getLog().debug("hotfix snapshot version = " + hotfixVersion);
         String hotfixReleaseVersion = getReleaseVersion(hotfixVersion);
         getLog().debug("hotfix release version = " + hotfixReleaseVersion);
 
         setVersion(hotfixReleaseVersion, pushHotfixFinish);
 
         if (!allowSnapshots) {
             reloadReactorProjects();
             checkForSnapshotDependencies();
         }
 
         /* finish hotfix */
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
         gitflowHotfix.setPush(pushHotfixBranch);
         gitflowHotfix.setSquash(squash);
-        gitflowHotfix.setKeep(keep);
+        gitflowHotfix.setKeepLocal(keepLocal);
+        gitflowHotfix.setKeepRemote(keepRemote);
         gitflowHotfix.setSign(sign);
         gitflowHotfix.setSigningkey(signingkey);
 
         /* 1. merge to master */
         try {
             gitflowHotfix.finishToMaster(hotfixName, pushHotfixFinish);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
 
         /* 2. make versions in hotfix and develop branches match to avoid conflicts */
         getGitflowInit().executeLocal("git checkout " + hotfixName);
         reloadReactorProjects();
         setVersion(developVersion, pushHotfixFinish);
 
         /* 3. merge to develop */
         try {
             gitflowHotfix.finishToDevelop(hotfixName, pushHotfixFinish);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
         /* Switch to hotfix tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + hotfixReleaseVersion);
         reloadReactorProjects();
         String tagVersion = project.getVersion();
         getLog().debug("tag version = " + tagVersion);
 
         /* install or deploy */
         if (skipDeploy == false) {
             String goals = "clean deploy";
             if (project.getDistributionManagement() != null
                     && project.getDistributionManagement().getSite() != null) {
                 goals += " site-deploy";
             }
 
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             if (useReleaseProfile) {
                 additionalArgs.add("-DperformRelease=true");
             }
             if (StringUtils.isNotBlank(releaseProfiles)) {
                 Iterable<String> profiles = PROFILES_SPLITTER.split(releaseProfiles);
                 additionalArgs.add("-P " + PROFILES_JOINER.join(profiles));
             }
             runGoals(goals, additionalArgs.build());
         } else if (skipBuild == false) {
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             runGoals("clean install", additionalArgs.build());
         } else {
             getLog().debug("Skipping both install and deploy for hotfix tag " + hotfixName);
         }
 
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingHotfixName(List<String> hotfixBranches, String defaultHotfixName) throws MojoFailureException {
         String message = "Please select a hotfix branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, hotfixBranches, defaultHotfixName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading hotfix name from command line " + e.getMessage());
         }
 
         return name;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index 68fa872..b8ad612 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -33,293 +33,304 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  * Merges a release branch back into the develop and master branch and then
  * creates a tag for the release on master.
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
 
     /**
      * If <code>true</code>, the release finish merge to develop & master and
      * the created tag will get pushed to the remote repository
      *
      * @since 1.6
      */
     @Parameter(property = "pushReleaseFinish", defaultValue = "false", required = false)
     protected boolean pushReleaseFinish;
 
     /**
      * If <code>true</code>, the release can still finish even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private Boolean allowSnapshots;
 
     /**
      * If the project has a parent with a release version it will be replaced
      * with the next <code>-SNAPSHOT</code> version (if it has been deployed).
      * This action is performed on the develop branch after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "updateParent", defaultValue = "false", required = false)
     private Boolean updateParent;
 
     /**
      * On the release branch before finish is called any dependencies with a
      * <code>-SNAPSHOT</code> version are replaced with the corresponding
      * release version (if it has been released).
      *
      * On the develop branch after the merge any dependencies with a release
      * version are replaced with the next <code>-SNAPSHOT</code> version (if it
      * has been deployed).
      *
      * @since 1.2
      */
     @Parameter(property = "updateDependencies", defaultValue = "false", required = false)
     private Boolean updateDependencies;
 
     /**
      * If <code>updateDependencies</code> is set, then this should contain a
      * comma separated list of artifact patterns to include. Follows the pattern <code>groupId:artifactId:type:classifier:version<code>
      *
      * @since 1.5
      */
     @Parameter(property = "includes", defaultValue = "", required = false)
     private String includes;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "true", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any calls to <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipDeploy", defaultValue = "true", required = false)
     private Boolean skipDeploy;
 
     /**
      * Skips any tests during <code>mvn install</code> and
      * <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipTests", defaultValue = "true", required = false)
     private Boolean skipTests;
 
     /**
      * Whether to use the release profile that adds sources and javadoc to the
      * released artifact, if appropriate. If set to true, the release-finish
      * will set the property "performRelease" to true, which activates the
      * profile "release-profile", which is inherited from the super pom.
      *
      * @since 1.2
      */
     @Parameter(property = "useReleaseProfile", defaultValue = "true", required = false)
     private Boolean useReleaseProfile;
 
     /**
      * Comma separated profiles to enable on deployment, in addition to active
      * profiles for project execution.
      *
      * @since 1.2
      */
     @Parameter(property = "releaseProfiles", defaultValue = "", required = false)
     private String releaseProfiles;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
-     * If <code>true</code>, the branch will not be deleted after the merge.
+     * If <code>true</code>, the local release branch will not be deleted after
+     * the merge.
      *
-     * @since 1.2
+     * @since 1.6
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
-    private Boolean keep;
+    private Boolean keepLocal;
+
+    /**
+     * If <code>true</code>, the remote release branch will not be deleted after
+     * the merge.
+     *
+     * @since 1.6
+     */
+    @Parameter(property = "keep", defaultValue = "true", required = false)
+    private Boolean keepRemote;
 
     /**
      * If <code>true</code>, the release tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().debug("Finishing release");
 
         /* Get release branch name */
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
         if (releaseBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         } else if (releaseBranches.size() == 1) {
             releaseName = releaseBranches.get(0);
         } else {
             releaseName = promptForExistingReleaseName(releaseBranches, releaseName);
         }
 
         getLog().info("Finishing release '" + releaseName + "'");
 
         /* Switch to develop branch and get its current version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         getLog().debug("develop version = " + developVersion);
 
         /* Switch to release branch and set poms to release version */
         getGitflowInit().executeLocal("git checkout " + releaseName);
         reloadReactorProjects();
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(project.getVersion());
         String releaseVersion;
         if ("SNAPSHOT".equals(artifactVersion.getBuildSpecifier())) {
             releaseVersion = getReleaseVersion(project.getVersion());
         } else {
             releaseVersion = project.getVersion();
         }
         getLog().debug("release version = " + releaseVersion);
 
         setVersion(releaseVersion, pushReleaseFinish);
 
         /* Update release branch dependencies to release version */
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions(false, updateParent, includes);
         }
 
         if (!allowSnapshots) {
             reloadReactorProjects();
             checkForSnapshotDependencies();
         }
 
         /* finish release */
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setPush(pushReleaseBranch);
         gitflowRelease.setSquash(squash);
-        gitflowRelease.setKeep(keep);
+        gitflowRelease.setKeepLocal(keepLocal);
+        gitflowRelease.setKeepRemote(keepRemote);
         gitflowRelease.setSign(sign);
         gitflowRelease.setSigningkey(signingkey);
 
         /* 1. merge to master */
         try {
             gitflowRelease.finishToMaster(releaseName, pushReleaseFinish);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
 
         /* 2. make versions in release and develop branches match to avoid conflicts */
         getGitflowInit().executeLocal("git checkout " + releaseName);
         reloadReactorProjects();
         setVersion(developVersion, pushReleaseFinish);
 
         /* 3. merge to develop */
         try {
             gitflowRelease.finishToDevelop(releaseName, pushReleaseFinish);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
         /* Update develop branch dependencies to next snapshot version (if deployed) */
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions(true, updateParent, includes);
         }
 
         /* Switch to release tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);
         reloadReactorProjects();
         String tagVersion = project.getVersion();
         getLog().debug("tag version = " + tagVersion);
 
         /* install or deploy */
         if (skipDeploy == false) {
             String goals = "clean deploy";
             if (project.getDistributionManagement() != null
                     && project.getDistributionManagement().getSite() != null) {
                 goals += " site-deploy";
             }
 
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             if (useReleaseProfile) {
                 additionalArgs.add("-DperformRelease=true");
             }
             if (StringUtils.isNotBlank(releaseProfiles)) {
                 Iterable<String> profiles = PROFILES_SPLITTER.split(releaseProfiles);
                 additionalArgs.add("-P " + PROFILES_JOINER.join(profiles));
             }
             runGoals(goals, additionalArgs.build());
         } else if (skipBuild == false) {
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             runGoals("clean install", additionalArgs.build());
         } else {
             getLog().debug("Skipping both install and deploy for release tag " + releaseName);
         }
 
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingReleaseName(List<String> releaseBranches, String defaultReleaseName) throws MojoFailureException {
         String message = "Please select a release branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, releaseBranches, defaultReleaseName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading release name from command line " + e.getMessage());
         }
 
         return name;
     }
 }
diff --git a/nbactions.xml b/nbactions.xml
index d2a8b9f..005d07c 100644
--- a/nbactions.xml
+++ b/nbactions.xml
@@ -1,32 +1,43 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <actions>
     <action>
         <actionName>CUSTOM-versions:set</actionName>
         <displayName>versions:set</displayName>
         <goals>
             <goal>versions:set</goal>
         </goals>
         <properties>
             <generateBackupPoms>false</generateBackupPoms>
         </properties>
     </action>
     <action>
         <actionName>CUSTOM-site</actionName>
         <displayName>site</displayName>
         <goals>
             <goal>site</goal>
         </goals>
     </action>
     <action>
-            <actionName>CUSTOM-clean deploy</actionName>
-            <displayName>clean deploy</displayName>
-            <goals>
-                <goal>clean</goal>
-                <goal>deploy</goal>
-            </goals>
-            <properties>
-                
-                <skipTests>true</skipTests>
-            </properties>
-        </action>
+        <actionName>CUSTOM-clean deploy</actionName>
+        <displayName>clean deploy</displayName>
+        <goals>
+            <goal>clean</goal>
+            <goal>deploy</goal>
+        </goals>
+        <properties>
+
+            <skipTests>true</skipTests>
+        </properties>
+    </action>
+    <action>
+        <actionName>CUSTOM-clean deploy sign</actionName>
+        <displayName>clean deploy sign</displayName>
+        <goals>
+            <goal>clean</goal>
+            <goal>deploy</goal>
+        </goals>
+        <activatedProfiles>
+            <activatedProfile>release-sign-artifacts</activatedProfile>
+        </activatedProfiles>
+    </action>
 </actions>
diff --git a/pom.xml b/pom.xml
index 0375be6..53750ea 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,171 +1,169 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven</artifactId>    
     <version>1.6</version>
     <name>ggitflow-maven</name>
     <packaging>pom</packaging>
 
     <modules>
         <module>ggitflow-maven-plugin</module>
         <module>ggitflow-maven-archetype</module>
     </modules>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
     </properties>
 
     <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
 
     <scm>
         <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
         <connection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</connection>
         <developerConnection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</developerConnection>
     </scm>
 
     <description>Maven Archetype for the Gitflow Maven Plugin</description>
     <developers>
         <developer>
             <id>dkirrane</id>
             <name>Desmond Kirrane</name>
             <email>desmond.kirrane@gmail.com</email>
         </developer>
     </developers>
     <licenses>
         <license>
             <name>Apache License Version 2.0, January 2004</name>
             <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
             <distribution>repo</distribution>
         </license>
     </licenses>
 
     <build>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <version>2.3.2</version>
                 <configuration>
                     <source>1.5</source>
                     <target>1.5</target>
                 </configuration>
             </plugin>          
         </plugins>
     </build>
 
     <profiles>
         <!-- Deploy to https://oss.sonatype.org/index.html -->
         <!-- mvn clean deploy -Prelease-sign-artifacts -->
         <profile>
             <id>release-sign-artifacts</id>
             <activation>
-                <property>
-                    <name>performRelease</name>
-                    <value>true</value>
-                </property>
+                <activeByDefault>false</activeByDefault>
             </activation>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-gpg-plugin</artifactId>
+                        <version>1.6</version>
                         <executions>
                             <execution>
                                 <id>sign-artifacts</id>
                                 <phase>verify</phase>
                                 <goals>
                                     <goal>sign</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
             </build>
         </profile>
         <profile>
             <id>run-its</id>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-invoker-plugin</artifactId>
                         <version>1.8</version>
                         <configuration>
                             <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
                             <settingsFile>src/it/settings.xml</settingsFile>
                             <debug>true</debug>
                             <showErrors>true</showErrors>
                             <detail>true</detail>
                             <streamLogs>true</streamLogs>
                             <projectsDirectory>src/it/projects</projectsDirectory>
                             <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
                             <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
                             <addTestClassPath>true</addTestClassPath>
                             <preBuildHookScript>setup</preBuildHookScript>
                             <postBuildHookScript>verify</postBuildHookScript>
                             <pomIncludes>
                                 <pomInclude>*/pom.xml</pomInclude>
                             </pomIncludes>
                             <goals>
                                 <goal>clean</goal>
                                 <goal>test-compile</goal>
                             </goals>
                         </configuration>
                         <executions>
                             <execution>
                                 <id>integration-test</id>
                                 <goals>
                                     <goal>install</goal>
                                     <goal>integration-test</goal>
                                     <goal>verify</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
 
             </build>
         </profile>
     </profiles>
 
     <!--
         Sonatype upload details:
         http://central.sonatype.org/pages/ossrh-guide.html
         http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
         https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
         https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
         https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
 
             - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
             - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
             - Promote staged artifacts into repository 'Releases'
             - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
             - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
     -->
 
     <distributionManagement>
         <snapshotRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
         </snapshotRepository>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
         </repository>
     </distributionManagement>
     <repositories>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
             <snapshots>
                 <enabled>true</enabled>
             </snapshots>
         </repository>
     </repositories>
 </project>

commit a45e19c3fa3e00143ded86aac9e624cfdc80b3e8
Merge: c42284a f6d17ff
Author: dkirrane <dkirrane@avaya.com>
Date:   Thu May 19 15:08:26 2016 +0100

    Merge branch 'release/1.6' into develop

commit ae0bb92e4c8ef3af309dbd3c75fd4562325373c0
Merge: d5b48c1 f6d17ff
Author: dkirrane <dkirrane@avaya.com>
Date:   Thu May 19 15:08:25 2016 +0100

    Merge branch 'release/1.6'

commit f6d17ff1a0580678828ce57af1fe8af3aeee9120
Author: dkirrane <dkirrane@avaya.com>
Date:   Thu May 19 15:08:11 2016 +0100

    1.6 release

diff --git a/ggitflow-maven-archetype/pom.xml b/ggitflow-maven-archetype/pom.xml
index 027fba9..8a2400f 100644
--- a/ggitflow-maven-archetype/pom.xml
+++ b/ggitflow-maven-archetype/pom.xml
@@ -1,45 +1,45 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
-        <version>1.6-SNAPSHOT</version>
+        <version>1.6</version>
     </parent>
 
     <groupId>com.dkirrane.maven.archetype</groupId>
     <artifactId>ggitflow-maven-archetype</artifactId>
-    <version>1.6-SNAPSHOT</version>
+    <version>1.6</version>
     <packaging>maven-archetype</packaging>
     <name>ggitflow-maven-archetype</name>
 
     <build>
         <extensions>
             <extension>
                 <groupId>org.apache.maven.archetype</groupId>
                 <artifactId>archetype-packaging</artifactId>
                 <version>2.2</version>
             </extension>
         </extensions>
 
         <pluginManagement>
             <plugins>
                 <plugin>
                     <artifactId>maven-archetype-plugin</artifactId>
                     <version>2.2</version>
                 </plugin>
             </plugins>
         </pluginManagement>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <skip>true</skip>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index ba8abc4..97e2261 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,170 +1,170 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
-        <version>1.6-SNAPSHOT</version>
+        <version>1.6</version>
     </parent>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
-    <version>1.6-SNAPSHOT</version>
+    <version>1.6</version>
     <packaging>maven-plugin</packaging>
     <name>ggitflow-maven-plugin</name>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
             <version>2.1</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>3.2</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>3.0.8</version>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-interactivity-api</artifactId>
             <version>1.0-alpha-5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>2.4</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-project</artifactId>
             <version>2.2.1</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-clean-plugin</artifactId>
             <version>2.5</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-install-plugin</artifactId>
             <version>2.5.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-deploy-plugin</artifactId>
             <version>2.8.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-artifact</artifactId>
             <version>2.2.1</version>
         </dependency>
         <dependency>
             <groupId>com.google.guava</groupId>
             <artifactId>guava</artifactId>
             <version>16.0.1</version>
         </dependency>
 
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-api</artifactId>
             <version>1.7.21</version>
         </dependency>
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-simple</artifactId>
             <version>1.7.21</version>
         </dependency>
 
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
     </dependencies>
 
     <build>
         <resources>
             <resource>
                 <directory>src/it</directory>
                 <includes>
                     <include>**/**</include>
                 </includes>
             </resource>
         </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>3.2</version>
                 <configuration>
                     <goalPrefix>ggitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>com.github.github</groupId>
                 <artifactId>site-maven-plugin</artifactId>
                 <version>0.9</version>
                 <configuration>
                     <message>Creating site for ${project.version}</message>
                     <server>github</server>
                     <merge>true</merge>
                 </configuration>
                 <executions>
                     <execution>
                         <goals>
                             <goal>site</goal>
                         </goals>
                         <phase>site</phase>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <reportPlugins>
                         <plugin>
                             <groupId>org.apache.maven.plugins</groupId>
                             <artifactId>maven-plugin-plugin</artifactId>
                             <version>3.2</version>
                         </plugin>
                     </reportPlugins>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/pom.xml b/pom.xml
index a01c99a..0375be6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,171 +1,171 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven</artifactId>    
-    <version>1.6-SNAPSHOT</version>
+    <version>1.6</version>
     <name>ggitflow-maven</name>
     <packaging>pom</packaging>
 
     <modules>
         <module>ggitflow-maven-plugin</module>
         <module>ggitflow-maven-archetype</module>
     </modules>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
     </properties>
 
     <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
 
     <scm>
         <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
         <connection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</connection>
         <developerConnection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</developerConnection>
     </scm>
 
     <description>Maven Archetype for the Gitflow Maven Plugin</description>
     <developers>
         <developer>
             <id>dkirrane</id>
             <name>Desmond Kirrane</name>
             <email>desmond.kirrane@gmail.com</email>
         </developer>
     </developers>
     <licenses>
         <license>
             <name>Apache License Version 2.0, January 2004</name>
             <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
             <distribution>repo</distribution>
         </license>
     </licenses>
 
     <build>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <version>2.3.2</version>
                 <configuration>
                     <source>1.5</source>
                     <target>1.5</target>
                 </configuration>
             </plugin>          
         </plugins>
     </build>
 
     <profiles>
         <!-- Deploy to https://oss.sonatype.org/index.html -->
         <!-- mvn clean deploy -Prelease-sign-artifacts -->
         <profile>
             <id>release-sign-artifacts</id>
             <activation>
                 <property>
                     <name>performRelease</name>
                     <value>true</value>
                 </property>
             </activation>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-gpg-plugin</artifactId>
                         <executions>
                             <execution>
                                 <id>sign-artifacts</id>
                                 <phase>verify</phase>
                                 <goals>
                                     <goal>sign</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
             </build>
         </profile>
         <profile>
             <id>run-its</id>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-invoker-plugin</artifactId>
                         <version>1.8</version>
                         <configuration>
                             <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
                             <settingsFile>src/it/settings.xml</settingsFile>
                             <debug>true</debug>
                             <showErrors>true</showErrors>
                             <detail>true</detail>
                             <streamLogs>true</streamLogs>
                             <projectsDirectory>src/it/projects</projectsDirectory>
                             <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
                             <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
                             <addTestClassPath>true</addTestClassPath>
                             <preBuildHookScript>setup</preBuildHookScript>
                             <postBuildHookScript>verify</postBuildHookScript>
                             <pomIncludes>
                                 <pomInclude>*/pom.xml</pomInclude>
                             </pomIncludes>
                             <goals>
                                 <goal>clean</goal>
                                 <goal>test-compile</goal>
                             </goals>
                         </configuration>
                         <executions>
                             <execution>
                                 <id>integration-test</id>
                                 <goals>
                                     <goal>install</goal>
                                     <goal>integration-test</goal>
                                     <goal>verify</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
 
             </build>
         </profile>
     </profiles>
 
     <!--
         Sonatype upload details:
         http://central.sonatype.org/pages/ossrh-guide.html
         http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
         https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
         https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
         https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
 
             - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
             - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
             - Promote staged artifacts into repository 'Releases'
             - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
             - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
     -->
 
     <distributionManagement>
         <snapshotRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
         </snapshotRepository>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
         </repository>
     </distributionManagement>
     <repositories>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
             <snapshots>
                 <enabled>true</enabled>
             </snapshots>
         </repository>
     </repositories>
 </project>

commit c42284abf8fbd82e0fe4c9d346b7d21af8770c00
Merge: 71a046e fefa845
Author: dkirrane <dkirrane@avaya.com>
Date:   Thu May 19 15:06:51 2016 +0100

    Merge branch 'feature/1.6' into develop

commit fefa845f7c9db83fb56dd8a7d61f54d9474a9c24
Author: dkirrane <dkirrane@avaya.com>
Date:   Thu May 19 15:00:28 2016 +0100

    Releasing 1.6

diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index 3238ddb..ba8abc4 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,170 +1,170 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
         <version>1.6-SNAPSHOT</version>
     </parent>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
     <version>1.6-SNAPSHOT</version>
     <packaging>maven-plugin</packaging>
     <name>ggitflow-maven-plugin</name>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
-            <version>2.1-SNAPSHOT</version>
+            <version>2.1</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>3.2</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>3.0.8</version>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-interactivity-api</artifactId>
             <version>1.0-alpha-5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>2.4</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-project</artifactId>
             <version>2.2.1</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-clean-plugin</artifactId>
             <version>2.5</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-install-plugin</artifactId>
             <version>2.5.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-deploy-plugin</artifactId>
             <version>2.8.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-artifact</artifactId>
             <version>2.2.1</version>
         </dependency>
         <dependency>
             <groupId>com.google.guava</groupId>
             <artifactId>guava</artifactId>
             <version>16.0.1</version>
         </dependency>
 
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-api</artifactId>
             <version>1.7.21</version>
         </dependency>
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-simple</artifactId>
             <version>1.7.21</version>
         </dependency>
 
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
     </dependencies>
 
     <build>
         <resources>
             <resource>
                 <directory>src/it</directory>
                 <includes>
                     <include>**/**</include>
                 </includes>
             </resource>
         </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>3.2</version>
                 <configuration>
                     <goalPrefix>ggitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>com.github.github</groupId>
                 <artifactId>site-maven-plugin</artifactId>
                 <version>0.9</version>
                 <configuration>
                     <message>Creating site for ${project.version}</message>
                     <server>github</server>
                     <merge>true</merge>
                 </configuration>
                 <executions>
                     <execution>
                         <goals>
                             <goal>site</goal>
                         </goals>
                         <phase>site</phase>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <reportPlugins>
                         <plugin>
                             <groupId>org.apache.maven.plugins</groupId>
                             <artifactId>maven-plugin-plugin</artifactId>
                             <version>3.2</version>
                         </plugin>
                     </reportPlugins>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>

commit a36ea6fa9ac935e00aaefc1d5ffbd75783120ef7
Author: dkirrane <dkirrane@avaya.com>
Date:   Thu May 19 14:50:13 2016 +0100

    cleanup

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
index 4faf991..0736566 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
@@ -24,128 +24,93 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  *
  */
 public class AbstractFeatureMojo extends AbstractGitflowMojo {
 
     /**
      * The name for the feature branch
      *
      * @since 1.2
      */
     @Parameter(property = "featureName", required = false)
     protected String featureName;
 
     /**
      * If <code>true</code>, the feature branch name is added to the pom
      * versions
      *
      * @since 1.2
      */
     @Parameter(property = "enableFeatureVersions", defaultValue = "true", required = false)
     protected boolean enableFeatureVersions;
 
     /**
      * If <code>true</code>, the feature branch is pushed to the remote
      * repository
      *
      * @since 1.2
      */
     @Parameter(property = "pushFeatureBranch", defaultValue = "false", required = false)
     protected boolean pushFeatureBranch;
 
     public String getFeatureBranchPrefix() {
         String prefix = getGitflowInit().getFeatureBranchPrefix();
         if (StringUtils.isBlank(prefix)) {
             prefix = DEFAULT_FEATURE_BRN_PREFIX;
         }
         return prefix;
     }
 
     public String trimFeatureName(String featureLabel) throws MojoFailureException {
         if (StringUtils.isBlank(featureLabel)) {
             throw new MojoFailureException("Missing argument <featureName>");
         }  
         
         // remove whitespace
         featureLabel = featureLabel.replaceAll("\\s+", "");
 
         // trim off starting any leading 'feature/' prefix
         String featureBranchPrefix = getFeatureBranchPrefix();
-        if (!featureLabel.startsWith(featureBranchPrefix)) {
+        if (featureLabel.startsWith(featureBranchPrefix)) {
             featureLabel = featureLabel.substring(featureBranchPrefix.length());
         }            
         
         return featureLabel;
     }
 
     public String getFeatureVersion(String currentVersion, String featureLabel) throws MojoFailureException {
         getLog().debug("getFeatureVersion from '" + currentVersion + "'");
         featureLabel = getValidFeatureVersionAnnotation(featureLabel);
         getLog().debug("Feature version annotation '" + featureLabel + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         Character annotationSeparator = artifactVersion.getAnnotationRevisionSeparator();
         String buildSpecifier = artifactVersion.getBuildSpecifier();
         Character buildSpecifierSeparator = artifactVersion.getBuildSpecifierSeparator();
 
         getLog().debug("Parsed version = " + artifactVersion.toString());
         if (!StringUtils.isBlank(annotationAsString)) {
             throw new MojoFailureException("Cannot add feature name to version. An annotation " + annotationAsString + " already exists");
         }
 
         final StringBuilder result = new StringBuilder(30);
 
         result.append(primaryNumbersAsString).append(annotationSeparator).append(featureLabel);
 
         if (buildSpecifier != null) {
             if (buildSpecifierSeparator != null) {
                 result.append(buildSpecifierSeparator);
             }
             result.append(buildSpecifier);
         }
 
         return result.toString();
     }
 
-    public String getNonFeatureVersion(String version, String featureLabel) {
-        getLog().debug("getNonFeatureVersion from '" + version + "'");
-        featureLabel = getValidFeatureVersionAnnotation(featureLabel);
-        getLog().debug("Feature version annotation '" + featureLabel + "'");
-
-        GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
-        String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
-        String annotationAsString = artifactVersion.getAnnotationAsString();
-        String buildSpecifier = artifactVersion.getBuildSpecifier();
-        Character buildSpecifierSeparator = artifactVersion.getBuildSpecifierSeparator();
-
-        getLog().debug("Parsed version = " + artifactVersion.toString());
-        if (StringUtils.isBlank(annotationAsString)) {
-            getLog().warn("Cannot remove feature name from pom version. The version annotation does not exists");
-            return version;
-        }
-
-        if (('-' + featureLabel).equals(annotationAsString)) {
-            final StringBuilder result = new StringBuilder(30);
-            result.append(primaryNumbersAsString);
-
-            if (buildSpecifier != null) {
-                if (buildSpecifierSeparator != null) {
-                    result.append(buildSpecifierSeparator);
-                }
-                result.append(buildSpecifier);
-            }
-
-            return result.toString();
-        } else {
-            getLog().warn("Cannot remove feature name from pom version. The version annotation [" + annotationAsString + "] does not match the feature label [" + featureLabel + "]");
-            return version;
-        }
-    }
-
     private String getValidFeatureVersionAnnotation(String featureLabel) {
         featureLabel = featureLabel.trim().replaceAll("\\s+", "_");
         featureLabel = featureLabel.trim().replaceAll("-+", "_");
         return featureLabel;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
index 5db20c5..5b6edaf 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
@@ -30,157 +30,158 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  * Merges a feature branch back into the develop.
  */
 @Mojo(name = "feature-finish", aggregator = true)
 public class FeatureFinishMojo extends AbstractFeatureMojo {
 
     /**
      * If <code>true</code>, the feature finish merge to develop will get pushed
      * to the remote repository
      *
      * @since 1.6
      */
     @Parameter(property = "pushFeatureFinish", defaultValue = "false", required = false)
     protected boolean pushFeatureFinish;
 
     /**
      * If <code>true</code>, the feature branch will be rebased onto develop,
      * then finish will fast-forward merge the feature branch back onto develop.
      *
      * @since 1.2
      */
     @Parameter(property = "isRebase", defaultValue = "false", required = false)
     private boolean isRebase;
 
 //    No good way to handle Interactive rebase from a Maven plugin
 //    /**
 //     * If <code>true</code>, and <code>isRebase</code> is true, then an interactive rebase is
 //     * performed for the feature branch.
 //     *
 //     * @since 1.2
 //     */
 //    @Parameter(property = "isInteractive", defaultValue = "false", required = false)
     private final boolean isInteractive = false;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "true", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any tests during <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipTests", defaultValue = "true", required = false)
     private Boolean skipTests;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the branch will not be deleted after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keep;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().debug("Finishing feature");
 
+        String prefix = getFeatureBranchPrefix();
         List<String> featureBranches = getGitflowInit().gitLocalFeatureBranches();
 
         if (null == featureBranches || featureBranches.isEmpty()) {
             throw new MojoFailureException("No local feature branches exist!");
         }
 
         if (StringUtils.isBlank(featureName)) {
             String defaultFeatureBranch;
             String currentBranch = getGitflowInit().gitCurrentBranch();
-            if (currentBranch.startsWith(getFeatureBranchPrefix())) {
+            if (currentBranch.startsWith(prefix)) {
                 defaultFeatureBranch = currentBranch;
             } else {
                 defaultFeatureBranch = featureBranches.get(0);
             }
             String featureBranch = promptForExistingFeatureBranch(featureBranches, defaultFeatureBranch);
             featureName = trimFeatureName(featureBranch);
         } else {
             featureName = trimFeatureName(featureName);
-            if(!getGitflowInit().gitLocalBranchExists(getFeatureBranchPrefix() + featureName)){
-                throw new MojoFailureException("No local feature branch named '" + featureName + "' exists!");
+            if(!getGitflowInit().gitLocalBranchExists(prefix + featureName)){
+                throw new MojoFailureException("No local feature branch named '" + prefix + featureName + "' exists!");
             }            
         }
 
         getLog().info("Finishing feature '" + featureName + "'");
 
         if (enableFeatureVersions) {
             /* Switch to develop branch and get its current version */
             getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
             reloadReactorProjects();
             String developVersion = project.getVersion();
             getLog().debug("develop version = " + developVersion);
 
             /* Switch to feature branch and get its current version */
-            getGitflowInit().executeLocal("git checkout " + getFeatureBranchPrefix() + featureName);
+            getGitflowInit().executeLocal("git checkout " + prefix + featureName);
             reloadReactorProjects();
             String featureVersion = project.getVersion();
             getLog().debug("feature version = " + featureVersion);
 
             setVersion(developVersion, pushFeatureFinish);
         }
 
         if (skipBuild == false) {
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_INSTALL_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             runGoals("clean install", additionalArgs.build());
         } else {
             getLog().debug("Skipping mvn install for feature " + featureName);
         }
 
         GitflowFeature gitflowFeature = new GitflowFeature();
         gitflowFeature.setInit(getGitflowInit());
         gitflowFeature.setMsgPrefix(getMsgPrefix());
         gitflowFeature.setMsgSuffix(getMsgSuffix());
         gitflowFeature.setPush(pushFeatureBranch);
         gitflowFeature.setSquash(squash);
         gitflowFeature.setKeep(keep);
         gitflowFeature.setIsRebase(isRebase);
         gitflowFeature.setIsInteractive(isInteractive);
 
         try {
             gitflowFeature.finish(featureName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
     }
 
     private String promptForExistingFeatureBranch(List<String> featureBranches, String defaultFeatureBranch) throws MojoFailureException {
         String message = "Please select a feature branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, featureBranches, defaultFeatureBranch);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading feature name from command line " + e.getMessage());
         }
 
         return name.trim();
     }
 
 }

commit 6f14fe12c3b9dd7ecbe6003a56c9ba6a5d611371
Author: dkirrane <dkirrane@avaya.com>
Date:   Thu May 19 14:38:05 2016 +0100

    fix feature name

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
index a00d624..4faf991 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
@@ -24,121 +24,128 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  *
  */
 public class AbstractFeatureMojo extends AbstractGitflowMojo {
 
     /**
      * The name for the feature branch
      *
      * @since 1.2
      */
     @Parameter(property = "featureName", required = false)
     protected String featureName;
 
     /**
      * If <code>true</code>, the feature branch name is added to the pom
      * versions
      *
      * @since 1.2
      */
     @Parameter(property = "enableFeatureVersions", defaultValue = "true", required = false)
     protected boolean enableFeatureVersions;
 
     /**
      * If <code>true</code>, the feature branch is pushed to the remote
      * repository
      *
      * @since 1.2
      */
     @Parameter(property = "pushFeatureBranch", defaultValue = "false", required = false)
     protected boolean pushFeatureBranch;
 
     public String getFeatureBranchPrefix() {
         String prefix = getGitflowInit().getFeatureBranchPrefix();
         if (StringUtils.isBlank(prefix)) {
             prefix = DEFAULT_FEATURE_BRN_PREFIX;
         }
         return prefix;
     }
 
-    public String getFeatureName(String featureLabel) throws MojoFailureException {
+    public String trimFeatureName(String featureLabel) throws MojoFailureException {
         if (StringUtils.isBlank(featureLabel)) {
             throw new MojoFailureException("Missing argument <featureName>");
-        }
-
+        }  
+        
+        // remove whitespace
         featureLabel = featureLabel.replaceAll("\\s+", "");
-//        featureLabel = featureLabel.replaceAll("-+", "_");
+
+        // trim off starting any leading 'feature/' prefix
+        String featureBranchPrefix = getFeatureBranchPrefix();
+        if (!featureLabel.startsWith(featureBranchPrefix)) {
+            featureLabel = featureLabel.substring(featureBranchPrefix.length());
+        }            
+        
         return featureLabel;
     }
 
     public String getFeatureVersion(String currentVersion, String featureLabel) throws MojoFailureException {
         getLog().debug("getFeatureVersion from '" + currentVersion + "'");
         featureLabel = getValidFeatureVersionAnnotation(featureLabel);
         getLog().debug("Feature version annotation '" + featureLabel + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         Character annotationSeparator = artifactVersion.getAnnotationRevisionSeparator();
         String buildSpecifier = artifactVersion.getBuildSpecifier();
         Character buildSpecifierSeparator = artifactVersion.getBuildSpecifierSeparator();
 
         getLog().debug("Parsed version = " + artifactVersion.toString());
         if (!StringUtils.isBlank(annotationAsString)) {
             throw new MojoFailureException("Cannot add feature name to version. An annotation " + annotationAsString + " already exists");
         }
 
         final StringBuilder result = new StringBuilder(30);
 
         result.append(primaryNumbersAsString).append(annotationSeparator).append(featureLabel);
 
         if (buildSpecifier != null) {
             if (buildSpecifierSeparator != null) {
                 result.append(buildSpecifierSeparator);
             }
             result.append(buildSpecifier);
         }
 
         return result.toString();
     }
 
     public String getNonFeatureVersion(String version, String featureLabel) {
         getLog().debug("getNonFeatureVersion from '" + version + "'");
         featureLabel = getValidFeatureVersionAnnotation(featureLabel);
         getLog().debug("Feature version annotation '" + featureLabel + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifier = artifactVersion.getBuildSpecifier();
         Character buildSpecifierSeparator = artifactVersion.getBuildSpecifierSeparator();
 
         getLog().debug("Parsed version = " + artifactVersion.toString());
         if (StringUtils.isBlank(annotationAsString)) {
             getLog().warn("Cannot remove feature name from pom version. The version annotation does not exists");
             return version;
         }
 
         if (('-' + featureLabel).equals(annotationAsString)) {
             final StringBuilder result = new StringBuilder(30);
             result.append(primaryNumbersAsString);
 
             if (buildSpecifier != null) {
                 if (buildSpecifierSeparator != null) {
                     result.append(buildSpecifierSeparator);
                 }
                 result.append(buildSpecifier);
             }
 
             return result.toString();
         } else {
             getLog().warn("Cannot remove feature name from pom version. The version annotation [" + annotationAsString + "] does not match the feature label [" + featureLabel + "]");
             return version;
         }
     }
 
     private String getValidFeatureVersionAnnotation(String featureLabel) {
         featureLabel = featureLabel.trim().replaceAll("\\s+", "_");
         featureLabel = featureLabel.trim().replaceAll("-+", "_");
         return featureLabel;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
index 89b5935..5db20c5 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
@@ -30,160 +30,157 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  * Merges a feature branch back into the develop.
  */
 @Mojo(name = "feature-finish", aggregator = true)
 public class FeatureFinishMojo extends AbstractFeatureMojo {
 
     /**
      * If <code>true</code>, the feature finish merge to develop will get pushed
      * to the remote repository
      *
      * @since 1.6
      */
     @Parameter(property = "pushFeatureFinish", defaultValue = "false", required = false)
     protected boolean pushFeatureFinish;
 
     /**
      * If <code>true</code>, the feature branch will be rebased onto develop,
      * then finish will fast-forward merge the feature branch back onto develop.
      *
      * @since 1.2
      */
     @Parameter(property = "isRebase", defaultValue = "false", required = false)
     private boolean isRebase;
 
 //    No good way to handle Interactive rebase from a Maven plugin
 //    /**
 //     * If <code>true</code>, and <code>isRebase</code> is true, then an interactive rebase is
 //     * performed for the feature branch.
 //     *
 //     * @since 1.2
 //     */
 //    @Parameter(property = "isInteractive", defaultValue = "false", required = false)
     private final boolean isInteractive = false;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "true", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any tests during <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipTests", defaultValue = "true", required = false)
     private Boolean skipTests;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the branch will not be deleted after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keep;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().debug("Finishing feature");
 
         List<String> featureBranches = getGitflowInit().gitLocalFeatureBranches();
 
         if (null == featureBranches || featureBranches.isEmpty()) {
             throw new MojoFailureException("No local feature branches exist!");
         }
 
-        String featureBranchPrefix = getFeatureBranchPrefix();
         if (StringUtils.isBlank(featureName)) {
+            String defaultFeatureBranch;
             String currentBranch = getGitflowInit().gitCurrentBranch();
-            if (currentBranch.startsWith(featureBranchPrefix)) {
-                featureName = currentBranch;
+            if (currentBranch.startsWith(getFeatureBranchPrefix())) {
+                defaultFeatureBranch = currentBranch;
             } else {
-                featureName = featureBranches.get(0);
+                defaultFeatureBranch = featureBranches.get(0);
             }
+            String featureBranch = promptForExistingFeatureBranch(featureBranches, defaultFeatureBranch);
+            featureName = trimFeatureName(featureBranch);
         } else {
-            featureName = getFeatureName(featureName);
-            if (!featureName.startsWith(featureBranchPrefix)) {
-                featureName = featureBranchPrefix + featureName;
-            }
-            if(!getGitflowInit().gitLocalBranchExists(featureName)){
+            featureName = trimFeatureName(featureName);
+            if(!getGitflowInit().gitLocalBranchExists(getFeatureBranchPrefix() + featureName)){
                 throw new MojoFailureException("No local feature branch named '" + featureName + "' exists!");
             }            
         }
 
-        featureName = promptForExistingFeatureName(featureBranches, featureName);
-
         getLog().info("Finishing feature '" + featureName + "'");
 
         if (enableFeatureVersions) {
             /* Switch to develop branch and get its current version */
             getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
             reloadReactorProjects();
             String developVersion = project.getVersion();
             getLog().debug("develop version = " + developVersion);
 
             /* Switch to feature branch and get its current version */
-            getGitflowInit().executeLocal("git checkout " + featureName);
+            getGitflowInit().executeLocal("git checkout " + getFeatureBranchPrefix() + featureName);
             reloadReactorProjects();
             String featureVersion = project.getVersion();
             getLog().debug("feature version = " + featureVersion);
 
             setVersion(developVersion, pushFeatureFinish);
         }
 
         if (skipBuild == false) {
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_INSTALL_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             runGoals("clean install", additionalArgs.build());
         } else {
             getLog().debug("Skipping mvn install for feature " + featureName);
         }
 
         GitflowFeature gitflowFeature = new GitflowFeature();
         gitflowFeature.setInit(getGitflowInit());
         gitflowFeature.setMsgPrefix(getMsgPrefix());
         gitflowFeature.setMsgSuffix(getMsgSuffix());
         gitflowFeature.setPush(pushFeatureBranch);
         gitflowFeature.setSquash(squash);
         gitflowFeature.setKeep(keep);
         gitflowFeature.setIsRebase(isRebase);
         gitflowFeature.setIsInteractive(isInteractive);
 
         try {
             gitflowFeature.finish(featureName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
     }
 
-    private String promptForExistingFeatureName(List<String> featureBranches, String defaultFeatureName) throws MojoFailureException {
+    private String promptForExistingFeatureBranch(List<String> featureBranches, String defaultFeatureBranch) throws MojoFailureException {
         String message = "Please select a feature branch to finish?";
 
         String name = "";
         try {
-            name = prompter.prompt(message, featureBranches, defaultFeatureName);
+            name = prompter.prompt(message, featureBranches, defaultFeatureBranch);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading feature name from command line " + e.getMessage());
         }
 
         return name.trim();
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
index 5f82d26..1affa64 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
@@ -29,72 +29,68 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  * Creates a new feature branch off of the develop branch.
  */
 @Mojo(name = "feature-start", aggregator = true)
 public class FeatureStartMojo extends AbstractFeatureMojo {
 
     /**
      * The commit to start the feature branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     protected String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         String prefix = getFeatureBranchPrefix();
         if (StringUtils.isBlank(featureName)) {
             String message = "What is the feature branch name? " + prefix;
             try {
                 featureName = prompter.prompt(message);
                 if (StringUtils.isBlank(featureName)) {
                     throw new MojoFailureException("Parameter <featureName> cannot be null or empty.");
                 }
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading feature name from command line " + ex.getMessage(), ex);
             }
         }
-        featureName = getFeatureName(featureName);
+        featureName = trimFeatureName(featureName);
 
         getLog().info("Starting feature '" + featureName + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowFeature gitflowFeature = new GitflowFeature();
         gitflowFeature.setInit(getGitflowInit());
         gitflowFeature.setMsgPrefix(getMsgPrefix());
         gitflowFeature.setMsgSuffix(getMsgSuffix());
         gitflowFeature.setPush(pushFeatureBranch);
         gitflowFeature.setStartCommit(startCommit);
 
         try {
             gitflowFeature.start(featureName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         if (enableFeatureVersions) {
             /* Already on feature branch so just get its current version */
             Model model = MavenUtil.readPom(reactorProjects);
             String currentVersion = model.getVersion();
 
             String featureVersion = getFeatureVersion(currentVersion, featureName);
             setVersion(featureVersion, pushFeatureBranch);
 
             if (getGitflowInit().gitRemoteBranchExists(prefix + featureName)) {
                 getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + featureName);
             }
 
             /* print feature version */
             reloadReactorProjects();
             getLog().debug("project = " + project.getVersion());
         }
     }
 
-    public String getFeatureName() {
-        return featureName;
-    }
-
 }

commit 3ca925879c8e6d6c8ca4e7808869b998c885538a
Author: dkirrane <dkirrane@avaya.com>
Date:   Thu May 19 13:55:55 2016 +0100

    fixes

diff --git a/ggitflow-maven-archetype/README.md b/ggitflow-maven-archetype/README.md
index 2bc1349..723b747 100644
--- a/ggitflow-maven-archetype/README.md
+++ b/ggitflow-maven-archetype/README.md
@@ -1,2 +1,11 @@
-Maven Archetype that will get you started with the ggitflow-maven-plugin
+################################################################################
+#
+# Maven Archetype that will get you started with the ggitflow-maven-plugin
+#
+################################################################################
+
+# Manually download the plugin
+mvn org.apache.maven.plugins:maven-dependency-plugin:get \
+    -DrepoUrl=https://oss.sonatype.org/content/groups/public \
+    -Dartifact=com.dkirrane.maven.plugins:ggitflow-maven-plugin:1.6-SNAPSHOT
 
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/git-log.sh b/ggitflow-maven-archetype/src/main/resources/archetype-resources/git-log.sh
new file mode 100644
index 0000000..3338e88
--- /dev/null
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/git-log.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+git log --branches --remotes --tags --graph --oneline --decorate
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-feature-finish.sh b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-feature-finish.sh
new file mode 100644
index 0000000..3f54016
--- /dev/null
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-feature-finish.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+function runCmd {
+    echo "\$ $@" ; "$@" ;
+    local status=$?
+    if [ $status -ne 0 ]; then
+        echo "Failed to run with $1" >&2
+        exit
+    fi
+    return $status
+}
+
+# Feature Finish
+runCmd mvn ggitflow:feature-finish
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-feature-start.sh b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-feature-start.sh
new file mode 100644
index 0000000..7d51b8b
--- /dev/null
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-feature-start.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+function runCmd {
+    echo "\$ $@" ; "$@" ;
+    local status=$?
+    if [ $status -ne 0 ]; then
+        echo "Failed to run with $1" >&2
+        exit
+    fi
+    return $status
+}
+
+# Feature Start
+runCmd mvn ggitflow:feature-start -DfeatureName=JIRA-1-Feature
+
+runCmd git commit --allow-empty -m "JIRA-1 feature commit"
+runCmd git commit --allow-empty -m "JIRA-2 feature commit"
+
+echo -e "\n\n"
+echo -e "Feature branch 1 created with some dummy commits"
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-feature.sh b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-feature.sh
deleted file mode 100644
index d3bcb00..0000000
--- a/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-feature.sh
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/bin/bash
-
-function runCmd {
-    echo "\$ $@" ; "$@" ;
-    local status=$?
-    if [ $status -ne 0 ]; then
-        echo "Failed to run with $1" >&2
-        exit
-    fi
-    return $status
-}
-
-# Feature 1
-runCmd mvn ggitflow:feature-start -DfeatureName=JIRA-1-Feature1
-
-runCmd git commit --allow-empty -m "JIRA-1 feature1 commit"
-runCmd git commit --allow-empty -m "JIRA-2 feature1 commit"
-
-echo -e "\n\n"
-echo -e "Feature branch 1 created with some dummy commits"
-read -p "Press [Enter] key to finish the feature..."
-
-runCmd mvn ggitflow:feature-finish -DfeatureName=feature/JIRA-1-Feature1
-
-read -p "Feature 1 finished. Please verify and then manually push the merge to remote develop..."
-
-read -r -p "Do you want to create another Feature branch? [Y/n]" choice
-if [[ $choice =~ ^([nN][oO]|[nN])$ ]]; then
-    exit 1
-fi
-
-# Feature 2
-runCmd mvn ggitflow:feature-start -DfeatureName=JIRA-2-Feature2
-
-runCmd git commit --allow-empty -m "JIRA-3 feature2 commit"
-runCmd git commit --allow-empty -m "JIRA-4 feature2 commit"
-
-echo -e "\n\n"
-echo -e "Feature branch 2 created with some dummy commits"
-read -p "Press [Enter] key to finish the feature..."
-
-runCmd mvn ggitflow:feature-finish -DfeatureName=feature/JIRA-2-Feature2
-
-read -p "Feature 1 finished. Please verify and then manually push the merge to remote develop..."
\ No newline at end of file
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-hotfix.sh b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-hotfix.sh
deleted file mode 100644
index 5922c51..0000000
--- a/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-hotfix.sh
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/bash
-
-function runCmd {
-    echo "\$ $@" ; "$@" ;
-    local status=$?
-    if [ $status -ne 0 ]; then
-        echo "Failed to run with $1" >&2
-        exit
-    fi
-    return $status
-}
-
- # Hotfix/Patch 3.0.0.0 - Hotfix/Patch version = 3.0.0.1-SNAPSHOT
-runCmd mvn ggitflow:hotfix-start
-
-runCmd git commit --allow-empty -m "JIRA-7 hotfix commit"
-runCmd git commit --allow-empty -m "JIRA-8 hotfix commit"
-
-echo -e "\n\n"
-git log --branches --remotes --tags --graph --oneline --decorate
-echo -e "\n\n"
-echo -e "Hotfix branch created with some dummy commits"
-read -p "Press [Enter] key to finish the hotfix..."
-
-runCmd mvn ggitflow:hotfix-finish
-
-echo -e "\n\n"
-git log --branches --remotes --tags --graph --oneline --decorate
-
-echo -e "\n\n"
-read -p "Hotfix finished. Please verify and then manually push the merge to remote develop and master..."
\ No newline at end of file
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-init.sh b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-init.sh
index fbc8c50..c3f940d 100644
--- a/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-init.sh
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-init.sh
@@ -3,14 +3,12 @@
 function runCmd {
     echo "\$ $@" ; "$@" ;
     local status=$?
     if [ $status -ne 0 ]; then
         echo "Failed to run with $1" >&2
         exit
     fi
     return $status
 }
 
-# Init
+# Gitflow Init
 runCmd mvn ggitflow:init
-
-git log --branches --remotes --tags --graph --oneline --decorate
\ No newline at end of file
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-support.sh b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-support.sh
index ff8315b..a4401a0 100644
--- a/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-support.sh
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-support.sh
@@ -3,14 +3,12 @@
 function runCmd {
     echo "\$ $@" ; "$@" ;
     local status=$?
     if [ $status -ne 0 ]; then
         echo "Failed to run with $1" >&2
         exit
     fi
     return $status
 }
 
-# Support/ServicePack 3.0.0.0 - Support/ServicePack version = 3.0.1.0-SNAPSHOT
+# Support Start (ServicePack) - e.g. release version 3.0.0.0 becomes support version 3.0.1.0-SNAPSHOT
 runCmd mvn ggitflow:support-start
-
-git log --branches --remotes --tags --graph --oneline --decorate
\ No newline at end of file
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-hotfix-finish.sh b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-hotfix-finish.sh
new file mode 100644
index 0000000..3d8dcfa
--- /dev/null
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-hotfix-finish.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+function runCmd {
+    echo "\$ $@" ; "$@" ;
+    local status=$?
+    if [ $status -ne 0 ]; then
+        echo "Failed to run with $1" >&2
+        exit
+    fi
+    return $status
+}
+
+ # Hotfix Finish
+runCmd mvn ggitflow:hotfix-finish
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-hotfix-start.sh b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-hotfix-start.sh
new file mode 100644
index 0000000..982c48e
--- /dev/null
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-hotfix-start.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+function runCmd {
+    echo "\$ $@" ; "$@" ;
+    local status=$?
+    if [ $status -ne 0 ]; then
+        echo "Failed to run with $1" >&2
+        exit
+    fi
+    return $status
+}
+
+ # Hotfix Start - e.g. a release version 3.0.0.0 becomes hotfix version 3.0.0.1-SNAPSHOT
+runCmd mvn ggitflow:hotfix-start
+
+runCmd git commit --allow-empty -m "JIRA-7 hotfix commit"
+runCmd git commit --allow-empty -m "JIRA-8 hotfix commit"
+
+echo -e "Hotfix branch created with some dummy commits"
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-release-finish.sh b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-release-finish.sh
new file mode 100644
index 0000000..be55674
--- /dev/null
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-release-finish.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+function runCmd {
+    echo "\$ $@" ; "$@" ;
+    local status=$?
+    if [ $status -ne 0 ]; then
+        echo "Failed to run with $1" >&2
+        exit
+    fi
+    return $status
+}
+
+# Release Finish
+runCmd mvn ggitflow:release-finish
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-release.sh b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-release-start.sh
similarity index 52%
rename from ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-release.sh
rename to ggitflow-maven-archetype/src/main/resources/archetype-resources/test-release-start.sh
index 75de6e0..429cf4f 100644
--- a/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-release.sh
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-release-start.sh
@@ -3,12 +3,12 @@
 function runCmd {
     echo "\$ $@" ; "$@" ;
     local status=$?
     if [ $status -ne 0 ]; then
         echo "Failed to run with $1" >&2
         exit
     fi
     return $status
 }
 
-# Release
+# Release Start
 runCmd mvn ggitflow:release-start
@@ -18,14 +18,3 @@ runCmd git commit --allow-empty -m "JIRA-6 release fix commit"
 
-echo -e "\n\n"
-git log --branches --remotes --tags --graph --oneline --decorate
 echo -e "\n\n"
 echo -e "Release branch created with some dummy commits"
-read -p "Press [Enter] key to finish the release..."
-
-runCmd mvn ggitflow:release-finish
-
-echo -e "\n\n"
-git log --branches --remotes --tags --graph --oneline --decorate
-
-echo -e "\n\n"
-read -p "Release finished. Please verify and then manually push the merge to remote develop and master..."
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
index 9cfc5aa..a00d624 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
@@ -24,121 +24,121 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  *
  */
 public class AbstractFeatureMojo extends AbstractGitflowMojo {
 
     /**
      * The name for the feature branch
      *
      * @since 1.2
      */
     @Parameter(property = "featureName", required = false)
     protected String featureName;
 
     /**
      * If <code>true</code>, the feature branch name is added to the pom
      * versions
      *
      * @since 1.2
      */
-    @Parameter(property = "enableFeatureVersions", defaultValue = "false", required = false)
+    @Parameter(property = "enableFeatureVersions", defaultValue = "true", required = false)
     protected boolean enableFeatureVersions;
 
     /**
      * If <code>true</code>, the feature branch is pushed to the remote
      * repository
      *
      * @since 1.2
      */
     @Parameter(property = "pushFeatureBranch", defaultValue = "false", required = false)
     protected boolean pushFeatureBranch;
 
     public String getFeatureBranchPrefix() {
         String prefix = getGitflowInit().getFeatureBranchPrefix();
         if (StringUtils.isBlank(prefix)) {
             prefix = DEFAULT_FEATURE_BRN_PREFIX;
         }
         return prefix;
     }
 
     public String getFeatureName(String featureLabel) throws MojoFailureException {
         if (StringUtils.isBlank(featureLabel)) {
             throw new MojoFailureException("Missing argument <featureName>");
         }
 
         featureLabel = featureLabel.replaceAll("\\s+", "");
 //        featureLabel = featureLabel.replaceAll("-+", "_");
         return featureLabel;
     }
 
     public String getFeatureVersion(String currentVersion, String featureLabel) throws MojoFailureException {
         getLog().debug("getFeatureVersion from '" + currentVersion + "'");
         featureLabel = getValidFeatureVersionAnnotation(featureLabel);
         getLog().debug("Feature version annotation '" + featureLabel + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         Character annotationSeparator = artifactVersion.getAnnotationRevisionSeparator();
         String buildSpecifier = artifactVersion.getBuildSpecifier();
         Character buildSpecifierSeparator = artifactVersion.getBuildSpecifierSeparator();
 
         getLog().debug("Parsed version = " + artifactVersion.toString());
         if (!StringUtils.isBlank(annotationAsString)) {
             throw new MojoFailureException("Cannot add feature name to version. An annotation " + annotationAsString + " already exists");
         }
 
         final StringBuilder result = new StringBuilder(30);
 
         result.append(primaryNumbersAsString).append(annotationSeparator).append(featureLabel);
 
         if (buildSpecifier != null) {
             if (buildSpecifierSeparator != null) {
                 result.append(buildSpecifierSeparator);
             }
             result.append(buildSpecifier);
         }
 
         return result.toString();
     }
 
     public String getNonFeatureVersion(String version, String featureLabel) {
         getLog().debug("getNonFeatureVersion from '" + version + "'");
         featureLabel = getValidFeatureVersionAnnotation(featureLabel);
         getLog().debug("Feature version annotation '" + featureLabel + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifier = artifactVersion.getBuildSpecifier();
         Character buildSpecifierSeparator = artifactVersion.getBuildSpecifierSeparator();
 
         getLog().debug("Parsed version = " + artifactVersion.toString());
         if (StringUtils.isBlank(annotationAsString)) {
             getLog().warn("Cannot remove feature name from pom version. The version annotation does not exists");
             return version;
         }
 
         if (('-' + featureLabel).equals(annotationAsString)) {
             final StringBuilder result = new StringBuilder(30);
             result.append(primaryNumbersAsString);
 
             if (buildSpecifier != null) {
                 if (buildSpecifierSeparator != null) {
                     result.append(buildSpecifierSeparator);
                 }
                 result.append(buildSpecifier);
             }
 
             return result.toString();
         } else {
             getLog().warn("Cannot remove feature name from pom version. The version annotation [" + annotationAsString + "] does not match the feature label [" + featureLabel + "]");
             return version;
         }
     }
 
     private String getValidFeatureVersionAnnotation(String featureLabel) {
         featureLabel = featureLabel.trim().replaceAll("\\s+", "_");
         featureLabel = featureLabel.trim().replaceAll("-+", "_");
         return featureLabel;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
index b58f06b..89b5935 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
@@ -30,154 +30,160 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  * Merges a feature branch back into the develop.
  */
 @Mojo(name = "feature-finish", aggregator = true)
 public class FeatureFinishMojo extends AbstractFeatureMojo {
 
     /**
      * If <code>true</code>, the feature finish merge to develop will get pushed
      * to the remote repository
      *
      * @since 1.6
      */
     @Parameter(property = "pushFeatureFinish", defaultValue = "false", required = false)
     protected boolean pushFeatureFinish;
 
     /**
      * If <code>true</code>, the feature branch will be rebased onto develop,
      * then finish will fast-forward merge the feature branch back onto develop.
      *
      * @since 1.2
      */
     @Parameter(property = "isRebase", defaultValue = "false", required = false)
     private boolean isRebase;
 
 //    No good way to handle Interactive rebase from a Maven plugin
 //    /**
 //     * If <code>true</code>, and <code>isRebase</code> is true, then an interactive rebase is
 //     * performed for the feature branch.
 //     *
 //     * @since 1.2
 //     */
 //    @Parameter(property = "isInteractive", defaultValue = "false", required = false)
     private final boolean isInteractive = false;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "true", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any tests during <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipTests", defaultValue = "true", required = false)
     private Boolean skipTests;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the branch will not be deleted after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keep;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().debug("Finishing feature");
 
         List<String> featureBranches = getGitflowInit().gitLocalFeatureBranches();
 
         if (null == featureBranches || featureBranches.isEmpty()) {
-            throw new MojoFailureException("No local feature branches exit!");
+            throw new MojoFailureException("No local feature branches exist!");
         }
 
         String featureBranchPrefix = getFeatureBranchPrefix();
         if (StringUtils.isBlank(featureName)) {
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (currentBranch.startsWith(featureBranchPrefix)) {
                 featureName = currentBranch;
             } else {
                 featureName = featureBranches.get(0);
             }
         } else {
             featureName = getFeatureName(featureName);
+            if (!featureName.startsWith(featureBranchPrefix)) {
+                featureName = featureBranchPrefix + featureName;
+            }
+            if(!getGitflowInit().gitLocalBranchExists(featureName)){
+                throw new MojoFailureException("No local feature branch named '" + featureName + "' exists!");
+            }            
         }
 
         featureName = promptForExistingFeatureName(featureBranches, featureName);
 
         getLog().info("Finishing feature '" + featureName + "'");
 
         if (enableFeatureVersions) {
             /* Switch to develop branch and get its current version */
             getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
             reloadReactorProjects();
             String developVersion = project.getVersion();
             getLog().debug("develop version = " + developVersion);
 
             /* Switch to feature branch and get its current version */
             getGitflowInit().executeLocal("git checkout " + featureName);
             reloadReactorProjects();
             String featureVersion = project.getVersion();
             getLog().debug("feature version = " + featureVersion);
 
             setVersion(developVersion, pushFeatureFinish);
         }
 
         if (skipBuild == false) {
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_INSTALL_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             runGoals("clean install", additionalArgs.build());
         } else {
             getLog().debug("Skipping mvn install for feature " + featureName);
         }
 
         GitflowFeature gitflowFeature = new GitflowFeature();
         gitflowFeature.setInit(getGitflowInit());
         gitflowFeature.setMsgPrefix(getMsgPrefix());
         gitflowFeature.setMsgSuffix(getMsgSuffix());
         gitflowFeature.setPush(pushFeatureBranch);
         gitflowFeature.setSquash(squash);
         gitflowFeature.setKeep(keep);
         gitflowFeature.setIsRebase(isRebase);
         gitflowFeature.setIsInteractive(isInteractive);
 
         try {
             gitflowFeature.finish(featureName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
     }
 
     private String promptForExistingFeatureName(List<String> featureBranches, String defaultFeatureName) throws MojoFailureException {
         String message = "Please select a feature branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, featureBranches, defaultFeatureName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading feature name from command line " + e.getMessage());
         }
 
         return name.trim();
     }
 
 }

commit 9d50666a3db90e700cfb1ebf98b53e97529142e9
Author: dkirrane <dkirrane@avaya.com>
Date:   Thu May 19 12:27:29 2016 +0100

    deployAtEnd doesn't seem to work

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index f839fb0..5302fc6 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -72,481 +72,481 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 public class AbstractGitflowMojo extends AbstractMojo {
 
     public final Pattern matchSnapshotRegex = Pattern.compile("-SNAPSHOT");
 
     public static final ImmutableList<String> DEFAULT_INSTALL_ARGS = ImmutableList.of(
-            "-DinstallAtEnd=true");
+            "-DinstallAtEnd=false");
 
     public static final ImmutableList<String> DEFAULT_DEPLOY_ARGS = ImmutableList.of(
-            "-DdeployAtEnd=true",
+            "-DdeployAtEnd=false",
             "-DretryFailedDeploymentCount=2");
 
     public static final Splitter PROFILES_SPLITTER = Splitter.on(',').trimResults().omitEmptyStrings();
     public static final Joiner PROFILES_JOINER = Joiner.on(',').skipNulls();
 
     /**
      * Gitflow branches and prefixes to use.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
     /**
      * Message prefix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgPrefix", defaultValue = "", required = false)
     protected String msgPrefix;
 
     /**
      * Message suffix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgSuffix", defaultValue = "", required = false)
     protected String msgSuffix;
 
     /**
      * Component used to prompt for input.
      */
     @Component
     protected Prompter prompter;
 
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
     @Component
     protected ArtifactResolver artifactResolver;
 
     /**
      * @parameter default-value="${project.artifacts}"
      * @required
      * @readonly
      */
     protected Collection artifacts;
 
     /**
      * @parameter expression="${localRepository}"
      */
     protected ArtifactRepository localRepository;
 
     /**
      * @parameter expression="${project.remoteArtifactRepositories}"
      */
     protected List remoteArtifactRepositories;
 
 //    @Component
 //    protected MavenProjectBuilder projectBuilder;
 //    @Component
 //    protected DefaultProjectBuilder projectBuilder;
 //    /**
 //     * @parameter property="plugin"
 //     * @required
 //     */
 //    @Component
 //    protected PluginDescriptor pluginDescriptor;
 //
     /**
      * The projects in the reactor.
      */
     @Parameter(defaultValue = "${reactorProjects}", readonly = true, required = true)
     protected List<MavenProject> reactorProjects;
 
     /**
      * The project builder
      */
     @Component
     private ProjectBuilder projectBuilder;
 
     /**
      * The project currently being build.
      *
      * @parameter expression="${project}"
      * @required
      * @readonly
      */
     @Component
     protected MavenProject project;
 
     /**
      * The current Maven session.
      *
      * @parameter expression="${session}"
      * @required
      * @readonly
      */
     @Component
     protected MavenSession session;
 
     /**
      * The Maven BuildPluginManager component.
      *
      * @component
      * @required
      */
     @Component
     protected BuildPluginManager pluginManager;
 
 //    @Parameter(defaultValue = "${basedir}", readonly = true, required = true)
 //    protected File basedir;
 //    @Component
 //    protected Settings settings;
     private GitflowInit init;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     public void execute() throws MojoExecutionException, MojoFailureException {
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             getLog().debug("Gitflow pom  '" + project.getBasedir() + "'");
         }
 
         GitflowInit gitflowInit = getGitflowInit();
 
         gitflowInit.requireGitRepo();
 
         if (!gitflowInit.gitflowIsInitialized()) {
             try {
                 gitflowInit.cmdDefault();
             } catch (GitflowException ex) {
                 throw new MojoExecutionException("Failed to inintialise Gitflow " + ex.getMessage(), ex);
             }
         }
 
         gitflowInit.requireCleanWorkingTree();
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     protected final GitflowInit getGitflowInit() {
         if (null == init) {
             getLog().info("Initialising Gitflow");
             init = new GitflowInit();
             File basedir = getProject().getBasedir();
             getLog().debug("Setting base directory " + basedir);
             init.setRepoDir(basedir);
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
 
             /* root Git directory may not be the pom directory */
             String gitRootPath = init.executeLocal("git rev-parse --show-toplevel"); 
             getLog().debug("Git repo top level " + gitRootPath);
             File baseGitDir = new File(gitRootPath);
             if (baseGitDir.isDirectory()) {
                 getLog().debug("Setting git base directory " + baseGitDir);
                 init.setRepoDir(baseGitDir);
             }
         }
         return init;
     }
 
     protected final void setVersion(String version, Boolean push) throws MojoExecutionException, MojoFailureException {
         getLog().debug("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
 
         for (MavenProject mavenProject : reactorProjects) {
             getLog().debug("Calling versions-maven-plugin:set on " + mavenProject.getArtifactId());
             session.setCurrentProject(mavenProject);
             try {
                 executeMojo(
                         plugin(
                                 groupId("org.codehaus.mojo"),
                                 artifactId("versions-maven-plugin"),
                                 version("2.1")
                         ),
                         goal("set"),
                         configuration(
                                 element(name("generateBackupPoms"), "false"),
                                 element(name("newVersion"), version)
                         ),
                         executionEnvironment(
                                 mavenProject,
                                 session,
                                 pluginManager
                         )
                 );
             } catch (MojoExecutionException mee) {
                 String rootCauseMessage = ExceptionUtils.getRootCauseMessage(mee);
                 if (rootCauseMessage.contains("Project version is inherited from parent")) {
                     getLog().warn("Skipping versions-maven-plugin:set for project " + mavenProject.getArtifactId() + ". Project version is inherited from parent.");
                 } else {
                     getLog().error("Cannot set "+mavenProject.getArtifactId()+" to version '"+version+ "'", mee);
                     throw mee;
                 }
             }
         }
         getLog().debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (push && getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change " + version + " to origin. ExitCode:" + exitCode);
                 }
             }
         }
         /* We don't want to fail maybe the version was manually set correctly */
 //        else {
 //            throw new MojoFailureException("Failed to update poms to version " + version);
 //        }
     }
 
     protected final void setNextVersions(Boolean allowSnapshots, Boolean updateParent, String includes) throws MojoExecutionException, MojoFailureException {
         getLog().debug("setNextVersions");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
 
         if (updateParent) {
             getLog().debug("START org.codehaus.mojo:versions-maven-plugin:2.1:update-parent updateParent=" + updateParent);
             executeMojo(
                     plugin(
                             groupId("org.codehaus.mojo"),
                             artifactId("versions-maven-plugin"),
                             version("2.1")
                     ),
                     goal("update-parent"),
                     configuration(
                             element(name("generateBackupPoms"), "false"),
                             element(name("allowSnapshots"), allowSnapshots.toString())
                     ),
                     executionEnvironment(
                             rootProject,
                             session,
                             pluginManager
                     )
             );
             getLog().debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:update-parent");
         }
 
         if (!StringUtils.isBlank(includes)) {
             getLog().debug("START org.codehaus.mojo:versions-maven-plugin:2.1:use-next-versions allowSnapshots=" + allowSnapshots);
             for (MavenProject mavenProject : reactorProjects) {
                 getLog().debug("Calling use-next-versions on " + mavenProject.getArtifactId());
                 session.setCurrentProject(mavenProject);
                 executeMojo(
                         plugin(
                                 groupId("org.codehaus.mojo"),
                                 artifactId("versions-maven-plugin"),
                                 version("2.1")
                         ),
                         goal("use-next-versions"),
                         configuration(
                                 element(name("generateBackupPoms"), "false"),
                                 element(name("allowSnapshots"), allowSnapshots.toString()),
                                 element(name("includesList"), includes)
                         ),
                         executionEnvironment(
                                 mavenProject,
                                 session,
                                 pluginManager
                         )
                 );
             }
             getLog().debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:use-next-versions");
         } else {
             getLog().warn("Parameter <includes> is not set. Skipping dependency updates");
         }
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg;
             if (allowSnapshots) {
                 msg = getMsgPrefix() + "Replaces any release versions with the next snapshot version (if it has been deployed)." + getMsgSuffix();
             } else {
                 msg = getMsgPrefix() + "Replaces snapshot versions with the corresponding release version" + getMsgSuffix();
             }
 
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change to origin. ExitCode:" + exitCode);
                 }
             }
         }
     }
 
     protected final void runGoals(String goals, List<String> additionalArgs) throws MojoExecutionException, MojoFailureException {
         getLog().debug("START executing " + goals + " with args " + additionalArgs);
 
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         File basedir = rootProject.getBasedir();
 
         ReleaseResult result = new ReleaseResult();
         ReleaseEnvironment env = new DefaultReleaseEnvironment();
         env.setSettings(session.getSettings());
         MavenExecutor mavenExecutor = mavenExecutors.get(env.getMavenExecutorId());
 
         Joiner joiner = Joiner.on(" ").skipNulls();
         String additionalArguments = joiner.join(additionalArgs);
         getLog().debug("additionalArguments " + additionalArguments);
 
         try {
             mavenExecutor.executeGoals(basedir, goals, env, false, additionalArguments, result);
         } catch (MavenExecutorException ex) {
             throw new MojoExecutionException(result.getOutput(), ex);
         }
         getLog().debug("DONE executing " + goals);
     }
 
     protected final String getReleaseVersion(String version) throws MojoFailureException {
         getLog().debug("Current Develop version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
             getLog().debug("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
     protected final void checkForSnapshotDependencies() throws MojoExecutionException {
         getLog().info("Checking for SNAPSHOT dependencies");
         Boolean hasDepSnapshots = false;
         Boolean hasParentSnapshot = false;
         for (MavenProject mavenProject : reactorProjects) {
             String artifactId = mavenProject.getArtifactId();
 
             /* Check <parent> */
             Artifact parentArtifact = mavenProject.getParentArtifact();
             if (parentArtifact != null && parentArtifact.isSnapshot()) {
                 getLog().error("Parent of project " + artifactId + " is a SNAPSHOT " + parentArtifact.getId());
                 hasParentSnapshot = true;
             }
 
             /* Check <dependencyManagement> */
             DependencyManagement dependencyManagement = mavenProject.getDependencyManagement();
             if (null != dependencyManagement) {
                 if (checkForSnapshot(artifactId, dependencyManagement.getDependencies())) {
                     hasDepSnapshots = true;
                 }
             }
 
             /* Check <dependencies> */
             if (checkForSnapshot(artifactId, mavenProject.getDependencies())) {
                 hasDepSnapshots = true;
             }
         }
         if (hasParentSnapshot || hasDepSnapshots) {
             throw new MojoExecutionException("Cannot release because SNAPSHOT dependencies exist");
         }
     }
 
     private boolean checkForSnapshot(String artifactId, List<Dependency> dependencies) throws MojoExecutionException {
         Boolean hasSnapshotDependency = false;
         for (Dependency dependency : dependencies) {
             String version = dependency.getVersion();
             Matcher versionMatcher = matchSnapshotRegex.matcher(version);
             if (versionMatcher.find() && versionMatcher.end() == version.length()) {
                 getLog().error("Project " + artifactId + " contains SNAPSHOT dependency: " + dependency.getGroupId() + ":" + dependency.getArtifactId() + ":" + version);
                 hasSnapshotDependency = true;
             }
         }
         return hasSnapshotDependency;
     }
 
     protected final void reloadReactorProjects() throws MojoExecutionException {
         getLog().debug("Reloading poms...");
 
         List<MavenProject> newReactorProjects;
         try {
             newReactorProjects = buildReactorProjects();
         } catch (ProjectBuildingException e) {
             getLog().error("Re-parse aborted due to malformed pom.xml file(s)", e);
             throw new MojoExecutionException("Re-parse aborted due to malformed pom.xml file(s)", e);
         } catch (CycleDetectedException e) {
             getLog().error("Re-parse aborted due to dependency cycle in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to dependency cycle in project model", e);
         } catch (DuplicateProjectException e) {
             getLog().error("Re-parse aborted due to duplicate projects in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to duplicate projects in project model", e);
         } catch (Exception e) {
             getLog().error("Re-parse aborted due a problem that prevented sorting the project model", e);
             throw new MojoExecutionException("Re-parse aborted due a problem that prevented sorting the project model", e);
         }
         MavenProject newProject = findProject(newReactorProjects, this.project);
         if (newProject == null) {
             throw new MojoExecutionException("A pom.xml change appears to have removed " + this.project.getId() + " from the build plan.");
         }
 
         this.project = newProject;
         this.reactorProjects = newReactorProjects;
 
         getLog().debug("Reloading poms complete...");
     }
 
     private List<MavenProject> buildReactorProjects() throws Exception {
 
         List<MavenProject> projects = new ArrayList<MavenProject>();
         for (MavenProject p : reactorProjects) {
             ProjectBuildingRequest request = new DefaultProjectBuildingRequest();
 
             request.setProcessPlugins(false);
             request.setProfiles(request.getProfiles());
             request.setActiveProfileIds(session.getRequest().getActiveProfiles());
             request.setInactiveProfileIds(session.getRequest().getInactiveProfiles());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setSystemProperties(session.getSystemProperties());
             request.setUserProperties(session.getUserProperties());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setPluginArtifactRepositories(session.getRequest().getPluginArtifactRepositories());
             request.setRepositorySession(session.getRepositorySession());
             request.setLocalRepository(localRepository);
             request.setBuildStartTime(session.getRequest().getStartTime());
             request.setResolveDependencies(false);
             request.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_STRICT);
             projects.add(projectBuilder.build(p.getFile(), request).getProject());
         }
         return new ProjectSorter(projects).getSortedProjects();
     }
 
     private MavenProject findProject(List<MavenProject> newReactorProjects, MavenProject oldProject) {
         for (MavenProject newProject : newReactorProjects) {
             if (oldProject.getGroupId().equals(newProject.getGroupId())
                     && oldProject.getArtifactId().equals(newProject.getArtifactId())) {
                 return newProject;
             }
         }
         return null;
     }
 
 }
diff --git a/nbactions.xml b/nbactions.xml
index de01342..d2a8b9f 100644
--- a/nbactions.xml
+++ b/nbactions.xml
@@ -1,32 +1,32 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <actions>
     <action>
         <actionName>CUSTOM-versions:set</actionName>
         <displayName>versions:set</displayName>
         <goals>
             <goal>versions:set</goal>
         </goals>
         <properties>
             <generateBackupPoms>false</generateBackupPoms>
         </properties>
     </action>
     <action>
         <actionName>CUSTOM-site</actionName>
         <displayName>site</displayName>
         <goals>
             <goal>site</goal>
         </goals>
     </action>
     <action>
             <actionName>CUSTOM-clean deploy</actionName>
             <displayName>clean deploy</displayName>
             <goals>
                 <goal>clean</goal>
                 <goal>deploy</goal>
             </goals>
             <properties>
-                <deployAtEnd>true</deployAtEnd>
+                
                 <skipTests>true</skipTests>
             </properties>
         </action>
 </actions>

commit d899a2bd83b84631a0621334026826be7f40bcec
Author: dkirrane <dkirrane@avaya.com>
Date:   Thu May 19 12:24:00 2016 +0100

    logging fixes

diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-feature.sh b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-feature.sh
index d740ca2..d3bcb00 100644
--- a/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-feature.sh
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-feature.sh
@@ -14,17 +14,31 @@ function runCmd {
 runCmd mvn ggitflow:feature-start -DfeatureName=JIRA-1-Feature1
+
 runCmd git commit --allow-empty -m "JIRA-1 feature1 commit"
 runCmd git commit --allow-empty -m "JIRA-2 feature1 commit"
+
+echo -e "\n\n"
+echo -e "Feature branch 1 created with some dummy commits"
+read -p "Press [Enter] key to finish the feature..."
+
 runCmd mvn ggitflow:feature-finish -DfeatureName=feature/JIRA-1-Feature1
 
-git log --branches --remotes --tags --graph --oneline --decorate
+read -p "Feature 1 finished. Please verify and then manually push the merge to remote develop..."
 
-# need to push merged 'Feature 1' in order to start 'Feature 2'
-runCmd git push origin develop
+read -r -p "Do you want to create another Feature branch? [Y/n]" choice
+if [[ $choice =~ ^([nN][oO]|[nN])$ ]]; then
+    exit 1
+fi
 
 # Feature 2
 runCmd mvn ggitflow:feature-start -DfeatureName=JIRA-2-Feature2
+
 runCmd git commit --allow-empty -m "JIRA-3 feature2 commit"
 runCmd git commit --allow-empty -m "JIRA-4 feature2 commit"
+
+echo -e "\n\n"
+echo -e "Feature branch 2 created with some dummy commits"
+read -p "Press [Enter] key to finish the feature..."
+
 runCmd mvn ggitflow:feature-finish -DfeatureName=feature/JIRA-2-Feature2
 
-git log --branches --remotes --tags --graph --oneline --decorate
\ No newline at end of file
+read -p "Feature 1 finished. Please verify and then manually push the merge to remote develop..."
\ No newline at end of file
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-hotfix.sh b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-hotfix.sh
index f654465..5922c51 100644
--- a/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-hotfix.sh
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-hotfix.sh
@@ -3,17 +3,29 @@
 function runCmd {
     echo "\$ $@" ; "$@" ;
     local status=$?
     if [ $status -ne 0 ]; then
         echo "Failed to run with $1" >&2
         exit
     fi
     return $status
 }
 
-# Hotfix/Patch 3.0.0.0 - Hotfix/Patch version = 3.0.0.1-SNAPSHOT
+ # Hotfix/Patch 3.0.0.0 - Hotfix/Patch version = 3.0.0.1-SNAPSHOT
 runCmd mvn ggitflow:hotfix-start
+
 runCmd git commit --allow-empty -m "JIRA-7 hotfix commit"
 runCmd git commit --allow-empty -m "JIRA-8 hotfix commit"
+
+echo -e "\n\n"
+git log --branches --remotes --tags --graph --oneline --decorate
+echo -e "\n\n"
+echo -e "Hotfix branch created with some dummy commits"
+read -p "Press [Enter] key to finish the hotfix..."
+
 runCmd mvn ggitflow:hotfix-finish
 
-git log --branches --remotes --tags --graph --oneline --decorate
\ No newline at end of file
+echo -e "\n\n"
+git log --branches --remotes --tags --graph --oneline --decorate
+
+echo -e "\n\n"
+read -p "Hotfix finished. Please verify and then manually push the merge to remote develop and master..."
\ No newline at end of file
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-release.sh b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-release.sh
index c3969ea..75de6e0 100644
--- a/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-release.sh
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-release.sh
@@ -14,6 +14,18 @@ function runCmd {
 runCmd mvn ggitflow:release-start
+
 runCmd git commit --allow-empty -m "JIRA-5 release fix commit"
 runCmd git commit --allow-empty -m "JIRA-6 release fix commit"
+
+echo -e "\n\n"
+git log --branches --remotes --tags --graph --oneline --decorate
+echo -e "\n\n"
+echo -e "Release branch created with some dummy commits"
+read -p "Press [Enter] key to finish the release..."
+
 runCmd mvn ggitflow:release-finish
 
+echo -e "\n\n"
 git log --branches --remotes --tags --graph --oneline --decorate
+
+echo -e "\n\n"
+read -p "Release finished. Please verify and then manually push the merge to remote develop and master..."
diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index ba315bc..3238ddb 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,169 +1,170 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
         <version>1.6-SNAPSHOT</version>
     </parent>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
     <version>1.6-SNAPSHOT</version>
     <packaging>maven-plugin</packaging>
     <name>ggitflow-maven-plugin</name>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
             <version>2.1-SNAPSHOT</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
-        <dependency>
-            <groupId>jline</groupId>
-            <artifactId>jline</artifactId>
-            <version>2.11</version>
-            <type>jar</type>
-        </dependency>
-        <dependency>
-            <groupId>com.jcabi</groupId>
-            <artifactId>jcabi-maven-slf4j</artifactId>
-            <version>0.8</version>
-        </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>3.2</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>3.0.8</version>
         </dependency>
-        <dependency>
-            <groupId>junit</groupId>
-            <artifactId>junit</artifactId>
-            <version>4.11</version>
-            <scope>test</scope>
-        </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-interactivity-api</artifactId>
             <version>1.0-alpha-5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>2.4</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-project</artifactId>
             <version>2.2.1</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-clean-plugin</artifactId>
             <version>2.5</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-install-plugin</artifactId>
             <version>2.5.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-deploy-plugin</artifactId>
             <version>2.8.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-artifact</artifactId>
             <version>2.2.1</version>
         </dependency>
         <dependency>
             <groupId>com.google.guava</groupId>
             <artifactId>guava</artifactId>
             <version>16.0.1</version>
         </dependency>
+
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>slf4j-api</artifactId>
+            <version>1.7.21</version>
+        </dependency>
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>slf4j-simple</artifactId>
+            <version>1.7.21</version>
+        </dependency>
+
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <version>4.11</version>
+            <scope>test</scope>
+        </dependency>
     </dependencies>
 
     <build>
         <resources>
             <resource>
                 <directory>src/it</directory>
                 <includes>
                     <include>**/**</include>
                 </includes>
             </resource>
         </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>3.2</version>
                 <configuration>
                     <goalPrefix>ggitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>com.github.github</groupId>
                 <artifactId>site-maven-plugin</artifactId>
                 <version>0.9</version>
                 <configuration>
                     <message>Creating site for ${project.version}</message>
                     <server>github</server>
                     <merge>true</merge>
                 </configuration>
                 <executions>
                     <execution>
                         <goals>
                             <goal>site</goal>
                         </goals>
                         <phase>site</phase>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <reportPlugins>
                         <plugin>
                             <groupId>org.apache.maven.plugins</groupId>
                             <artifactId>maven-plugin-plugin</artifactId>
                             <version>3.2</version>
                         </plugin>
                     </reportPlugins>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
index c77a4a2..9cfc5aa 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
@@ -22,127 +22,123 @@ import org.codehaus.plexus.util.StringUtils;
 import org.jfrog.hudson.util.GenericArtifactVersion;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
 
 /**
  *
  */
 public class AbstractFeatureMojo extends AbstractGitflowMojo {
 
-    private static final Logger LOG = LoggerFactory.getLogger(AbstractFeatureMojo.class.getName());
-
     /**
      * The name for the feature branch
      *
      * @since 1.2
      */
     @Parameter(property = "featureName", required = false)
     protected String featureName;
 
     /**
      * If <code>true</code>, the feature branch name is added to the pom
      * versions
      *
      * @since 1.2
      */
     @Parameter(property = "enableFeatureVersions", defaultValue = "false", required = false)
     protected boolean enableFeatureVersions;
 
     /**
      * If <code>true</code>, the feature branch is pushed to the remote
      * repository
      *
      * @since 1.2
      */
     @Parameter(property = "pushFeatureBranch", defaultValue = "false", required = false)
     protected boolean pushFeatureBranch;
 
     public String getFeatureBranchPrefix() {
         String prefix = getGitflowInit().getFeatureBranchPrefix();
         if (StringUtils.isBlank(prefix)) {
             prefix = DEFAULT_FEATURE_BRN_PREFIX;
         }
         return prefix;
     }
 
     public String getFeatureName(String featureLabel) throws MojoFailureException {
         if (StringUtils.isBlank(featureLabel)) {
             throw new MojoFailureException("Missing argument <featureName>");
         }
 
         featureLabel = featureLabel.replaceAll("\\s+", "");
 //        featureLabel = featureLabel.replaceAll("-+", "_");
         return featureLabel;
     }
 
     public String getFeatureVersion(String currentVersion, String featureLabel) throws MojoFailureException {
-        LOG.debug("getFeatureVersion from '" + currentVersion + "'");
+        getLog().debug("getFeatureVersion from '" + currentVersion + "'");
         featureLabel = getValidFeatureVersionAnnotation(featureLabel);
-        LOG.debug("Feature version annotation '" + featureLabel + "'");
+        getLog().debug("Feature version annotation '" + featureLabel + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         Character annotationSeparator = artifactVersion.getAnnotationRevisionSeparator();
         String buildSpecifier = artifactVersion.getBuildSpecifier();
         Character buildSpecifierSeparator = artifactVersion.getBuildSpecifierSeparator();
 
-        LOG.debug("Parsed version = " + artifactVersion.toString());
+        getLog().debug("Parsed version = " + artifactVersion.toString());
         if (!StringUtils.isBlank(annotationAsString)) {
             throw new MojoFailureException("Cannot add feature name to version. An annotation " + annotationAsString + " already exists");
         }
 
         final StringBuilder result = new StringBuilder(30);
 
         result.append(primaryNumbersAsString).append(annotationSeparator).append(featureLabel);
 
         if (buildSpecifier != null) {
             if (buildSpecifierSeparator != null) {
                 result.append(buildSpecifierSeparator);
             }
             result.append(buildSpecifier);
         }
 
         return result.toString();
     }
 
     public String getNonFeatureVersion(String version, String featureLabel) {
-        LOG.debug("getNonFeatureVersion from '" + version + "'");
+        getLog().debug("getNonFeatureVersion from '" + version + "'");
         featureLabel = getValidFeatureVersionAnnotation(featureLabel);
-        LOG.debug("Feature version annotation '" + featureLabel + "'");
+        getLog().debug("Feature version annotation '" + featureLabel + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifier = artifactVersion.getBuildSpecifier();
         Character buildSpecifierSeparator = artifactVersion.getBuildSpecifierSeparator();
 
-        LOG.debug("Parsed version = " + artifactVersion.toString());
+        getLog().debug("Parsed version = " + artifactVersion.toString());
         if (StringUtils.isBlank(annotationAsString)) {
-            LOG.warn("Cannot remove feature name from pom version. The version annotation does not exists");
+            getLog().warn("Cannot remove feature name from pom version. The version annotation does not exists");
             return version;
         }
 
         if (('-' + featureLabel).equals(annotationAsString)) {
             final StringBuilder result = new StringBuilder(30);
             result.append(primaryNumbersAsString);
 
             if (buildSpecifier != null) {
                 if (buildSpecifierSeparator != null) {
                     result.append(buildSpecifierSeparator);
                 }
                 result.append(buildSpecifier);
             }
 
             return result.toString();
         } else {
-            LOG.warn("Cannot remove feature name from pom version. The version annotation [" + annotationAsString + "] does not match the feature label [" + featureLabel + "]");
+            getLog().warn("Cannot remove feature name from pom version. The version annotation [" + annotationAsString + "] does not match the feature label [" + featureLabel + "]");
             return version;
         }
     }
 
     private String getValidFeatureVersionAnnotation(String featureLabel) {
         featureLabel = featureLabel.trim().replaceAll("\\s+", "_");
         featureLabel = featureLabel.trim().replaceAll("-+", "_");
         return featureLabel;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index 362e9d7..f839fb0 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -17,13 +17,8 @@ package com.dkirrane.maven.plugins.ggitflow;
 
-import static org.twdata.maven.mojoexecutor.MojoExecutor.artifactId;
-import static org.twdata.maven.mojoexecutor.MojoExecutor.configuration;
-import static org.twdata.maven.mojoexecutor.MojoExecutor.element;
-import static org.twdata.maven.mojoexecutor.MojoExecutor.executeMojo;
-import static org.twdata.maven.mojoexecutor.MojoExecutor.executionEnvironment;
-import static org.twdata.maven.mojoexecutor.MojoExecutor.goal;
-import static org.twdata.maven.mojoexecutor.MojoExecutor.groupId;
-import static org.twdata.maven.mojoexecutor.MojoExecutor.name;
-import static org.twdata.maven.mojoexecutor.MojoExecutor.plugin;
-import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
-
+import com.dkirrane.gitflow.groovy.GitflowInit;
+import com.dkirrane.gitflow.groovy.ex.GitflowException;
+import com.dkirrane.maven.plugins.ggitflow.util.MavenUtil;
+import com.google.common.base.Joiner;
+import com.google.common.base.Splitter;
+import com.google.common.collect.ImmutableList;
 import java.io.File;
@@ -35,3 +30,2 @@ import java.util.regex.Matcher;
 import java.util.regex.Pattern;
-
 import org.apache.commons.lang.exception.ExceptionUtils;
@@ -66,496 +60,493 @@ import org.codehaus.plexus.util.dag.CycleDetectedException;
 import org.jfrog.hudson.util.GenericArtifactVersion;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.slf4j.impl.StaticLoggerBinder;
-
-import com.dkirrane.gitflow.groovy.GitflowInit;
-import com.dkirrane.gitflow.groovy.ex.GitflowException;
-import com.dkirrane.maven.plugins.ggitflow.util.MavenUtil;
-import com.google.common.base.Joiner;
-import com.google.common.base.Splitter;
-import com.google.common.collect.ImmutableList;
+import static org.twdata.maven.mojoexecutor.MojoExecutor.artifactId;
+import static org.twdata.maven.mojoexecutor.MojoExecutor.configuration;
+import static org.twdata.maven.mojoexecutor.MojoExecutor.element;
+import static org.twdata.maven.mojoexecutor.MojoExecutor.executeMojo;
+import static org.twdata.maven.mojoexecutor.MojoExecutor.executionEnvironment;
+import static org.twdata.maven.mojoexecutor.MojoExecutor.goal;
+import static org.twdata.maven.mojoexecutor.MojoExecutor.groupId;
+import static org.twdata.maven.mojoexecutor.MojoExecutor.name;
+import static org.twdata.maven.mojoexecutor.MojoExecutor.plugin;
+import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 
 public class AbstractGitflowMojo extends AbstractMojo {
 
-    private static final Logger LOG = LoggerFactory.getLogger(AbstractGitflowMojo.class.getName());
-
     public final Pattern matchSnapshotRegex = Pattern.compile("-SNAPSHOT");
 
     public static final ImmutableList<String> DEFAULT_INSTALL_ARGS = ImmutableList.of(
             "-DinstallAtEnd=true");
 
     public static final ImmutableList<String> DEFAULT_DEPLOY_ARGS = ImmutableList.of(
             "-DdeployAtEnd=true",
             "-DretryFailedDeploymentCount=2");
 
     public static final Splitter PROFILES_SPLITTER = Splitter.on(',').trimResults().omitEmptyStrings();
     public static final Joiner PROFILES_JOINER = Joiner.on(',').skipNulls();
 
     /**
      * Gitflow branches and prefixes to use.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
     /**
      * Message prefix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgPrefix", defaultValue = "", required = false)
     protected String msgPrefix;
 
     /**
      * Message suffix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgSuffix", defaultValue = "", required = false)
     protected String msgSuffix;
 
     /**
      * Component used to prompt for input.
      */
     @Component
     protected Prompter prompter;
 
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
     @Component
     protected ArtifactResolver artifactResolver;
 
     /**
      * @parameter default-value="${project.artifacts}"
      * @required
      * @readonly
      */
     protected Collection artifacts;
 
     /**
      * @parameter expression="${localRepository}"
      */
     protected ArtifactRepository localRepository;
 
     /**
      * @parameter expression="${project.remoteArtifactRepositories}"
      */
     protected List remoteArtifactRepositories;
 
 //    @Component
 //    protected MavenProjectBuilder projectBuilder;
 //    @Component
 //    protected DefaultProjectBuilder projectBuilder;
 //    /**
 //     * @parameter property="plugin"
 //     * @required
 //     */
 //    @Component
 //    protected PluginDescriptor pluginDescriptor;
 //
     /**
      * The projects in the reactor.
      */
     @Parameter(defaultValue = "${reactorProjects}", readonly = true, required = true)
     protected List<MavenProject> reactorProjects;
 
     /**
      * The project builder
      */
     @Component
     private ProjectBuilder projectBuilder;
 
     /**
      * The project currently being build.
      *
      * @parameter expression="${project}"
      * @required
      * @readonly
      */
     @Component
     protected MavenProject project;
 
     /**
      * The current Maven session.
      *
      * @parameter expression="${session}"
      * @required
      * @readonly
      */
     @Component
     protected MavenSession session;
 
     /**
      * The Maven BuildPluginManager component.
      *
      * @component
      * @required
      */
     @Component
     protected BuildPluginManager pluginManager;
 
 //    @Parameter(defaultValue = "${basedir}", readonly = true, required = true)
 //    protected File basedir;
 //    @Component
 //    protected Settings settings;
     private GitflowInit init;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     public void execute() throws MojoExecutionException, MojoFailureException {
-        StaticLoggerBinder.getSingleton().setMavenLog(this.getLog());
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
-            LOG.debug("Gitflow pom  '" + project.getBasedir() + "'");
+            getLog().debug("Gitflow pom  '" + project.getBasedir() + "'");
         }
 
         GitflowInit gitflowInit = getGitflowInit();
 
         gitflowInit.requireGitRepo();
 
         if (!gitflowInit.gitflowIsInitialized()) {
             try {
                 gitflowInit.cmdDefault();
             } catch (GitflowException ex) {
                 throw new MojoExecutionException("Failed to inintialise Gitflow " + ex.getMessage(), ex);
             }
         }
 
         gitflowInit.requireCleanWorkingTree();
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     protected final GitflowInit getGitflowInit() {
         if (null == init) {
-            LOG.info("Initialising Gitflow");
+            getLog().info("Initialising Gitflow");
             init = new GitflowInit();
             File basedir = getProject().getBasedir();
-            LOG.debug("Setting base directory " + basedir);
+            getLog().debug("Setting base directory " + basedir);
             init.setRepoDir(basedir);
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
 
             /* root Git directory may not be the pom directory */
             String gitRootPath = init.executeLocal("git rev-parse --show-toplevel"); 
-            LOG.debug("Git repo top level " + gitRootPath);
+            getLog().debug("Git repo top level " + gitRootPath);
             File baseGitDir = new File(gitRootPath);
             if (baseGitDir.isDirectory()) {
-                LOG.debug("Setting git base directory " + baseGitDir);
+                getLog().debug("Setting git base directory " + baseGitDir);
                 init.setRepoDir(baseGitDir);
             }
         }
         return init;
     }
 
-    protected final void setVersion(String version) throws MojoExecutionException, MojoFailureException {
-        LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
+    protected final void setVersion(String version, Boolean push) throws MojoExecutionException, MojoFailureException {
+        getLog().debug("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
 
         for (MavenProject mavenProject : reactorProjects) {
-            LOG.debug("Calling versions-maven-plugin:set on " + mavenProject.getArtifactId());
+            getLog().debug("Calling versions-maven-plugin:set on " + mavenProject.getArtifactId());
             session.setCurrentProject(mavenProject);
             try {
                 executeMojo(
                         plugin(
                                 groupId("org.codehaus.mojo"),
                                 artifactId("versions-maven-plugin"),
                                 version("2.1")
                         ),
                         goal("set"),
                         configuration(
                                 element(name("generateBackupPoms"), "false"),
                                 element(name("newVersion"), version)
                         ),
                         executionEnvironment(
                                 mavenProject,
                                 session,
                                 pluginManager
                         )
                 );
             } catch (MojoExecutionException mee) {
                 String rootCauseMessage = ExceptionUtils.getRootCauseMessage(mee);
                 if (rootCauseMessage.contains("Project version is inherited from parent")) {
-                    LOG.warn("Skipping versions-maven-plugin:set for project " + mavenProject.getArtifactId() + ". Project version is inherited from parent.");
+                    getLog().warn("Skipping versions-maven-plugin:set for project " + mavenProject.getArtifactId() + ". Project version is inherited from parent.");
                 } else {
-                    LOG.error("Cannot set {} to version '{}'", mavenProject.getArtifactId(), version, mee);
+                    getLog().error("Cannot set "+mavenProject.getArtifactId()+" to version '"+version+ "'", mee);
                     throw mee;
                 }
             }
         }
-        LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
+        getLog().debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
-            if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
+            if (push && getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change " + version + " to origin. ExitCode:" + exitCode);
                 }
             }
         }
         /* We don't want to fail maybe the version was manually set correctly */
 //        else {
 //            throw new MojoFailureException("Failed to update poms to version " + version);
 //        }
     }
 
     protected final void setNextVersions(Boolean allowSnapshots, Boolean updateParent, String includes) throws MojoExecutionException, MojoFailureException {
-        LOG.debug("setNextVersions");
+        getLog().debug("setNextVersions");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
 
         if (updateParent) {
-            LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:update-parent updateParent={}", updateParent);
+            getLog().debug("START org.codehaus.mojo:versions-maven-plugin:2.1:update-parent updateParent=" + updateParent);
             executeMojo(
                     plugin(
                             groupId("org.codehaus.mojo"),
                             artifactId("versions-maven-plugin"),
                             version("2.1")
                     ),
                     goal("update-parent"),
                     configuration(
                             element(name("generateBackupPoms"), "false"),
                             element(name("allowSnapshots"), allowSnapshots.toString())
                     ),
                     executionEnvironment(
                             rootProject,
                             session,
                             pluginManager
                     )
             );
-            LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:update-parent");
+            getLog().debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:update-parent");
         }
 
         if (!StringUtils.isBlank(includes)) {
-            LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:use-next-versions allowSnapshots={}", allowSnapshots);
+            getLog().debug("START org.codehaus.mojo:versions-maven-plugin:2.1:use-next-versions allowSnapshots=" + allowSnapshots);
             for (MavenProject mavenProject : reactorProjects) {
-                LOG.debug("Calling use-next-versions on " + mavenProject.getArtifactId());
+                getLog().debug("Calling use-next-versions on " + mavenProject.getArtifactId());
                 session.setCurrentProject(mavenProject);
                 executeMojo(
                         plugin(
                                 groupId("org.codehaus.mojo"),
                                 artifactId("versions-maven-plugin"),
                                 version("2.1")
                         ),
                         goal("use-next-versions"),
                         configuration(
                                 element(name("generateBackupPoms"), "false"),
                                 element(name("allowSnapshots"), allowSnapshots.toString()),
                                 element(name("includesList"), includes)
                         ),
                         executionEnvironment(
                                 mavenProject,
                                 session,
                                 pluginManager
                         )
                 );
             }
-            LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:use-next-versions");
+            getLog().debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:use-next-versions");
         } else {
-            LOG.warn("Parameter <includes> is not set. Skipping dependency updates");
+            getLog().warn("Parameter <includes> is not set. Skipping dependency updates");
         }
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg;
             if (allowSnapshots) {
                 msg = getMsgPrefix() + "Replaces any release versions with the next snapshot version (if it has been deployed)." + getMsgSuffix();
             } else {
                 msg = getMsgPrefix() + "Replaces snapshot versions with the corresponding release version" + getMsgSuffix();
             }
 
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change to origin. ExitCode:" + exitCode);
                 }
             }
         }
     }
 
     protected final void runGoals(String goals, List<String> additionalArgs) throws MojoExecutionException, MojoFailureException {
-        LOG.debug("START executing " + goals + " with args " + additionalArgs);
+        getLog().debug("START executing " + goals + " with args " + additionalArgs);
 
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         File basedir = rootProject.getBasedir();
 
         ReleaseResult result = new ReleaseResult();
         ReleaseEnvironment env = new DefaultReleaseEnvironment();
         env.setSettings(session.getSettings());
         MavenExecutor mavenExecutor = mavenExecutors.get(env.getMavenExecutorId());
 
         Joiner joiner = Joiner.on(" ").skipNulls();
         String additionalArguments = joiner.join(additionalArgs);
-        LOG.debug("additionalArguments " + additionalArguments);
+        getLog().debug("additionalArguments " + additionalArguments);
 
         try {
             mavenExecutor.executeGoals(basedir, goals, env, false, additionalArguments, result);
         } catch (MavenExecutorException ex) {
             throw new MojoExecutionException(result.getOutput(), ex);
         }
-        LOG.debug("DONE executing " + goals);
+        getLog().debug("DONE executing " + goals);
     }
 
     protected final String getReleaseVersion(String version) throws MojoFailureException {
-        LOG.debug("Current Develop version '" + version + "'");
+        getLog().debug("Current Develop version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
-            LOG.debug("Removing build specifier " + buildSpecifierAsString + " from version " + version);
+            getLog().debug("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
     protected final void checkForSnapshotDependencies() throws MojoExecutionException {
-        LOG.info("Checking for SNAPSHOT dependencies");
+        getLog().info("Checking for SNAPSHOT dependencies");
         Boolean hasDepSnapshots = false;
         Boolean hasParentSnapshot = false;
         for (MavenProject mavenProject : reactorProjects) {
             String artifactId = mavenProject.getArtifactId();
 
             /* Check <parent> */
             Artifact parentArtifact = mavenProject.getParentArtifact();
             if (parentArtifact != null && parentArtifact.isSnapshot()) {
-                LOG.error("Parent of project " + artifactId + " is a SNAPSHOT " + parentArtifact.getId());
+                getLog().error("Parent of project " + artifactId + " is a SNAPSHOT " + parentArtifact.getId());
                 hasParentSnapshot = true;
             }
 
             /* Check <dependencyManagement> */
             DependencyManagement dependencyManagement = mavenProject.getDependencyManagement();
             if (null != dependencyManagement) {
                 if (checkForSnapshot(artifactId, dependencyManagement.getDependencies())) {
                     hasDepSnapshots = true;
                 }
             }
 
             /* Check <dependencies> */
             if (checkForSnapshot(artifactId, mavenProject.getDependencies())) {
                 hasDepSnapshots = true;
             }
         }
         if (hasParentSnapshot || hasDepSnapshots) {
             throw new MojoExecutionException("Cannot release because SNAPSHOT dependencies exist");
         }
     }
 
     private boolean checkForSnapshot(String artifactId, List<Dependency> dependencies) throws MojoExecutionException {
         Boolean hasSnapshotDependency = false;
         for (Dependency dependency : dependencies) {
             String version = dependency.getVersion();
             Matcher versionMatcher = matchSnapshotRegex.matcher(version);
             if (versionMatcher.find() && versionMatcher.end() == version.length()) {
-                LOG.error("Project " + artifactId + " contains SNAPSHOT dependency: " + dependency.getGroupId() + ":" + dependency.getArtifactId() + ":" + version);
+                getLog().error("Project " + artifactId + " contains SNAPSHOT dependency: " + dependency.getGroupId() + ":" + dependency.getArtifactId() + ":" + version);
                 hasSnapshotDependency = true;
             }
         }
         return hasSnapshotDependency;
     }
 
     protected final void reloadReactorProjects() throws MojoExecutionException {
-        LOG.debug("Reloading poms...");
+        getLog().debug("Reloading poms...");
 
         List<MavenProject> newReactorProjects;
         try {
             newReactorProjects = buildReactorProjects();
         } catch (ProjectBuildingException e) {
-            LOG.error("Re-parse aborted due to malformed pom.xml file(s)", e);
+            getLog().error("Re-parse aborted due to malformed pom.xml file(s)", e);
             throw new MojoExecutionException("Re-parse aborted due to malformed pom.xml file(s)", e);
         } catch (CycleDetectedException e) {
-            LOG.error("Re-parse aborted due to dependency cycle in project model", e);
+            getLog().error("Re-parse aborted due to dependency cycle in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to dependency cycle in project model", e);
         } catch (DuplicateProjectException e) {
-            LOG.error("Re-parse aborted due to duplicate projects in project model", e);
+            getLog().error("Re-parse aborted due to duplicate projects in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to duplicate projects in project model", e);
         } catch (Exception e) {
-            LOG.error("Re-parse aborted due a problem that prevented sorting the project model", e);
+            getLog().error("Re-parse aborted due a problem that prevented sorting the project model", e);
             throw new MojoExecutionException("Re-parse aborted due a problem that prevented sorting the project model", e);
         }
         MavenProject newProject = findProject(newReactorProjects, this.project);
         if (newProject == null) {
             throw new MojoExecutionException("A pom.xml change appears to have removed " + this.project.getId() + " from the build plan.");
         }
 
         this.project = newProject;
         this.reactorProjects = newReactorProjects;
 
-        LOG.debug("Reloading poms complete...");
+        getLog().debug("Reloading poms complete...");
     }
 
     private List<MavenProject> buildReactorProjects() throws Exception {
 
         List<MavenProject> projects = new ArrayList<MavenProject>();
         for (MavenProject p : reactorProjects) {
             ProjectBuildingRequest request = new DefaultProjectBuildingRequest();
 
             request.setProcessPlugins(false);
             request.setProfiles(request.getProfiles());
             request.setActiveProfileIds(session.getRequest().getActiveProfiles());
             request.setInactiveProfileIds(session.getRequest().getInactiveProfiles());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setSystemProperties(session.getSystemProperties());
             request.setUserProperties(session.getUserProperties());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setPluginArtifactRepositories(session.getRequest().getPluginArtifactRepositories());
             request.setRepositorySession(session.getRepositorySession());
             request.setLocalRepository(localRepository);
             request.setBuildStartTime(session.getRequest().getStartTime());
             request.setResolveDependencies(false);
             request.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_STRICT);
             projects.add(projectBuilder.build(p.getFile(), request).getProject());
         }
         return new ProjectSorter(projects).getSortedProjects();
     }
 
     private MavenProject findProject(List<MavenProject> newReactorProjects, MavenProject oldProject) {
         for (MavenProject newProject : newReactorProjects) {
             if (oldProject.getGroupId().equals(newProject.getGroupId())
                     && oldProject.getArtifactId().equals(newProject.getArtifactId())) {
                 return newProject;
             }
         }
         return null;
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractHotfixMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractHotfixMojo.java
index 96fc333..d4877e0 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractHotfixMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractHotfixMojo.java
@@ -20,12 +20,12 @@ import org.apache.maven.plugins.annotations.Parameter;
 public class AbstractHotfixMojo extends AbstractGitflowMojo {
 
     /**
      * If <code>true</code>, the hotfix branch is pushed to the remote
      * repository
      *
      * @since 1.6
      */
-    @Parameter(property = "pushHotfixBranch", defaultValue = "false", required = false)
+    @Parameter(property = "pushHotfixBranch", defaultValue = "true", required = false)
     protected boolean pushHotfixBranch;
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java
index 704619b..303bbd0 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java
@@ -22,43 +22,39 @@ import org.codehaus.plexus.util.StringUtils;
 import org.jfrog.hudson.util.GenericArtifactVersion;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
 
 public class AbstractReleaseMojo extends AbstractGitflowMojo {
 
-    private static final Logger LOG = LoggerFactory.getLogger(AbstractReleaseMojo.class.getName());
-
     /**
      * The name for the release branch.
      *
      * @since 1.2
      */
     @Parameter(property = "releaseName", required = false)
     protected String releaseName;
 
     /**
      * If <code>true</code>, the release branch is pushed to the remote
      * repository.
      *
      * @since 1.6
      */
-    @Parameter(property = "pushReleaseBranch", defaultValue = "false", required = false)
+    @Parameter(property = "pushReleaseBranch", defaultValue = "true", required = false)
     protected boolean pushReleaseBranch;
 
     public String getReleaseBranchPrefix() {
         String prefix = getGitflowInit().getReleaseBranchPrefix();
         if (StringUtils.isBlank(prefix)) {
             prefix = DEFAULT_RELEASE_BRN_PREFIX;
         }
         return prefix;
     }
 
     public String getNextDevelopmentVersion(String version) throws MojoFailureException {
-        LOG.debug("Project version '" + version + "'");
+        getLog().debug("Project version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
         GenericArtifactVersion nextDevelopVersion = artifactVersion.upgradeLeastSignificantNumber();
 
-        LOG.debug("Project version '" + nextDevelopVersion + "'");
+        getLog().debug("Project version '" + nextDevelopVersion + "'");
         return nextDevelopVersion.toString();
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/DebuggingMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/DebuggingMojo.java
index b3c129e..ad5c02d 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/DebuggingMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/DebuggingMojo.java
@@ -19,23 +19,19 @@ import org.apache.maven.plugin.MojoExecutionException;
 import org.apache.maven.plugin.MojoFailureException;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
 
 /**
  * Mojo used for Testing
  */
 //@Mojo(name = "debug-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class DebuggingMojo extends AbstractGitflowMojo {
 
-    private static final Logger LOG = LoggerFactory.getLogger(DebuggingMojo.class.getName());
-
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         reloadReactorProjects();
 
-        setVersion("1.4");
+        setVersion("1.4", false);
 
         runGoals("clean deploy", DEFAULT_DEPLOY_ARGS);
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
index ba201d2..b58f06b 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
@@ -28,151 +28,156 @@ import org.codehaus.plexus.components.interactivity.PrompterException;
 import org.codehaus.plexus.util.StringUtils;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
 
 /**
  * Merges a feature branch back into the develop.
  */
 @Mojo(name = "feature-finish", aggregator = true)
 public class FeatureFinishMojo extends AbstractFeatureMojo {
 
-    private static final Logger LOG = LoggerFactory.getLogger(FeatureFinishMojo.class.getName());
+    /**
+     * If <code>true</code>, the feature finish merge to develop will get pushed
+     * to the remote repository
+     *
+     * @since 1.6
+     */
+    @Parameter(property = "pushFeatureFinish", defaultValue = "false", required = false)
+    protected boolean pushFeatureFinish;
 
     /**
      * If <code>true</code>, the feature branch will be rebased onto develop,
      * then finish will fast-forward merge the feature branch back onto develop.
      *
      * @since 1.2
      */
     @Parameter(property = "isRebase", defaultValue = "false", required = false)
     private boolean isRebase;
 
 //    No good way to handle Interactive rebase from a Maven plugin
 //    /**
 //     * If <code>true</code>, and <code>isRebase</code> is true, then an interactive rebase is
 //     * performed for the feature branch.
 //     *
 //     * @since 1.2
 //     */
 //    @Parameter(property = "isInteractive", defaultValue = "false", required = false)
     private final boolean isInteractive = false;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "true", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any tests during <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipTests", defaultValue = "true", required = false)
     private Boolean skipTests;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the branch will not be deleted after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keep;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
-        LOG.debug("Finishing feature");
+        getLog().debug("Finishing feature");
 
         List<String> featureBranches = getGitflowInit().gitLocalFeatureBranches();
 
         if (null == featureBranches || featureBranches.isEmpty()) {
             throw new MojoFailureException("No local feature branches exit!");
         }
 
         String featureBranchPrefix = getFeatureBranchPrefix();
         if (StringUtils.isBlank(featureName)) {
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (currentBranch.startsWith(featureBranchPrefix)) {
                 featureName = currentBranch;
             } else {
                 featureName = featureBranches.get(0);
             }
         } else {
             featureName = getFeatureName(featureName);
         }
 
         featureName = promptForExistingFeatureName(featureBranches, featureName);
 
-        LOG.info("Finishing feature '{}'", featureName);
+        getLog().info("Finishing feature '" + featureName + "'");
 
         if (enableFeatureVersions) {
             /* Switch to develop branch and get its current version */
             getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
             reloadReactorProjects();
             String developVersion = project.getVersion();
-            LOG.debug("develop version = " + developVersion);
+            getLog().debug("develop version = " + developVersion);
 
             /* Switch to feature branch and get its current version */
             getGitflowInit().executeLocal("git checkout " + featureName);
             reloadReactorProjects();
             String featureVersion = project.getVersion();
-            LOG.debug("feature version = " + featureVersion);
+            getLog().debug("feature version = " + featureVersion);
 
-            setVersion(developVersion);
+            setVersion(developVersion, pushFeatureFinish);
         }
 
         if (skipBuild == false) {
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_INSTALL_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             runGoals("clean install", additionalArgs.build());
         } else {
-            LOG.debug("Skipping mvn install for feature " + featureName);
+            getLog().debug("Skipping mvn install for feature " + featureName);
         }
 
         GitflowFeature gitflowFeature = new GitflowFeature();
         gitflowFeature.setInit(getGitflowInit());
         gitflowFeature.setMsgPrefix(getMsgPrefix());
         gitflowFeature.setMsgSuffix(getMsgSuffix());
         gitflowFeature.setPush(pushFeatureBranch);
         gitflowFeature.setSquash(squash);
         gitflowFeature.setKeep(keep);
         gitflowFeature.setIsRebase(isRebase);
         gitflowFeature.setIsInteractive(isInteractive);
 
         try {
             gitflowFeature.finish(featureName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
     }
 
     private String promptForExistingFeatureName(List<String> featureBranches, String defaultFeatureName) throws MojoFailureException {
         String message = "Please select a feature branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, featureBranches, defaultFeatureName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading feature name from command line " + e.getMessage());
         }
 
         return name.trim();
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
index da7063e..5f82d26 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
@@ -27,78 +27,74 @@ import org.codehaus.plexus.components.interactivity.PrompterException;
 import org.codehaus.plexus.util.StringUtils;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
 
 /**
  * Creates a new feature branch off of the develop branch.
  */
 @Mojo(name = "feature-start", aggregator = true)
 public class FeatureStartMojo extends AbstractFeatureMojo {
 
-    private static final Logger LOG = LoggerFactory.getLogger(FeatureStartMojo.class.getName());
-
     /**
      * The commit to start the feature branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     protected String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         String prefix = getFeatureBranchPrefix();
         if (StringUtils.isBlank(featureName)) {
             String message = "What is the feature branch name? " + prefix;
             try {
                 featureName = prompter.prompt(message);
                 if (StringUtils.isBlank(featureName)) {
                     throw new MojoFailureException("Parameter <featureName> cannot be null or empty.");
                 }
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading feature name from command line " + ex.getMessage(), ex);
             }
         }
         featureName = getFeatureName(featureName);
 
-        LOG.info("Starting feature '" + featureName + "'");
-        LOG.debug("msgPrefix '" + getMsgPrefix() + "'");
-        LOG.debug("msgSuffix '" + getMsgSuffix() + "'");
+        getLog().info("Starting feature '" + featureName + "'");
+        getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
+        getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowFeature gitflowFeature = new GitflowFeature();
         gitflowFeature.setInit(getGitflowInit());
         gitflowFeature.setMsgPrefix(getMsgPrefix());
         gitflowFeature.setMsgSuffix(getMsgSuffix());
         gitflowFeature.setPush(pushFeatureBranch);
         gitflowFeature.setStartCommit(startCommit);
 
         try {
             gitflowFeature.start(featureName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         if (enableFeatureVersions) {
             /* Already on feature branch so just get its current version */
             Model model = MavenUtil.readPom(reactorProjects);
             String currentVersion = model.getVersion();
 
             String featureVersion = getFeatureVersion(currentVersion, featureName);
-            setVersion(featureVersion);
+            setVersion(featureVersion, pushFeatureBranch);
 
             if (getGitflowInit().gitRemoteBranchExists(prefix + featureName)) {
                 getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + featureName);
             }
 
             /* print feature version */
             reloadReactorProjects();
-            LOG.debug("project = " + project.getVersion());
+            getLog().debug("project = " + project.getVersion());
         }
     }
 
     public String getFeatureName() {
         return featureName;
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
index 18b4ba7..7d4f6b4 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
@@ -29,252 +29,240 @@ import org.codehaus.plexus.components.interactivity.PrompterException;
 import org.codehaus.plexus.util.StringUtils;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
 
 /**
  * Merges a hotfix branch back into the develop and master branch and then
  * creates a tag for the hotfix on master.
  */
 @Mojo(name = "hotfix-finish", aggregator = true)
 public class HotfixFinishMojo extends AbstractHotfixMojo {
 
-    private static final Logger LOG = LoggerFactory.getLogger(HotfixFinishMojo.class.getName());
-
     protected String hotfixName;
 
     /**
      * If <code>true</code>, the hotfix finish merge to develop & master and
      * created tag will get pushed to the remote repository
      *
      * @since 1.6
      */
     @Parameter(property = "pushHotfixFinish", defaultValue = "false", required = false)
     protected boolean pushHotfixFinish;
 
     /**
      * If <code>true</code>, the hotfix can still finish even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private boolean allowSnapshots;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "true", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any calls to <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipDeploy", defaultValue = "true", required = false)
     private Boolean skipDeploy;
 
     /**
      * Skips any tests during <code>mvn install</code> and
      * <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipTests", defaultValue = "true", required = false)
     private Boolean skipTests;
 
     /**
      * Whether to use the release profile that adds sources and javadoc to the
      * released artifact, if appropriate. If set to true, the hotfix-finish will
      * set the property "performRelease" to true, which activates the profile
      * "release-profile", which is inherited from the super pom.
      *
      * @since 1.2
      */
     @Parameter(property = "useReleaseProfile", defaultValue = "true", required = false)
     private Boolean useReleaseProfile;
 
     /**
      * Comma separated profiles to enable on deployment, in addition to active
      * profiles for project execution.
      *
      * @since 1.2
      */
     @Parameter(property = "releaseProfiles", defaultValue = "", required = false)
     private String releaseProfiles;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the branch will not be deleted after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keep;
 
     /**
      * If <code>true</code>, the hotfix tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
-        LOG.debug("Finishing hotfix");
+        getLog().debug("Finishing hotfix");
 
         /* Get hotfix branch name */
         List<String> hotfixBranches = getGitflowInit().gitLocalHotfixBranches();
         if (hotfixBranches.isEmpty()) {
             throw new MojoFailureException("Could not find hotfix branch!");
         } else if (hotfixBranches.size() == 1) {
             hotfixName = hotfixBranches.get(0);
         } else {
             hotfixName = promptForExistingHotfixName(hotfixBranches, hotfixName);
         }
 
-        LOG.info("Finishing hotfix '{}'", hotfixName);
+        getLog().info("Finishing hotfix '" + hotfixName + "'");
 
         /* Switch to develop branch and get its current version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
-        LOG.debug("develop version = " + developVersion);
+        getLog().debug("develop version = " + developVersion);
 
         /* Switch to hotfix branch and set poms to hotfix version */
         getGitflowInit().executeLocal("git checkout " + hotfixName);
         reloadReactorProjects();
         String hotfixVersion = project.getVersion();
-        LOG.debug("hotfix snapshot version = " + hotfixVersion);
+        getLog().debug("hotfix snapshot version = " + hotfixVersion);
         String hotfixReleaseVersion = getReleaseVersion(hotfixVersion);
-        LOG.debug("hotfix release version = " + hotfixReleaseVersion);
+        getLog().debug("hotfix release version = " + hotfixReleaseVersion);
 
-        setVersion(hotfixReleaseVersion);
+        setVersion(hotfixReleaseVersion, pushHotfixFinish);
 
         if (!allowSnapshots) {
             reloadReactorProjects();
             checkForSnapshotDependencies();
         }
 
         /* finish hotfix */
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
         gitflowHotfix.setPush(pushHotfixBranch);
         gitflowHotfix.setSquash(squash);
         gitflowHotfix.setKeep(keep);
         gitflowHotfix.setSign(sign);
         gitflowHotfix.setSigningkey(signingkey);
 
         /* 1. merge to master */
         try {
             gitflowHotfix.finishToMaster(hotfixName, pushHotfixFinish);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
 
         /* 2. make versions in hotfix and develop branches match to avoid conflicts */
         getGitflowInit().executeLocal("git checkout " + hotfixName);
         reloadReactorProjects();
-        setVersion(developVersion);
+        setVersion(developVersion, pushHotfixFinish);
 
         /* 3. merge to develop */
         try {
             gitflowHotfix.finishToDevelop(hotfixName, pushHotfixFinish);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
-//            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
-//            try {
-//                fixPomMergeConflicts.resolveConflicts2();
-//            } catch (GitflowException ge) {
-//                throw new MojoFailureException(ge.getMessage());
-//            } catch (GitflowMergeConflictException gmce2) {
-//                throw new MojoFailureException(gmce2.getMessage());
-//            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
         /* Switch to hotfix tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + hotfixReleaseVersion);
         reloadReactorProjects();
         String tagVersion = project.getVersion();
-        LOG.debug("tag version = " + tagVersion);
+        getLog().debug("tag version = " + tagVersion);
 
         /* install or deploy */
         if (skipDeploy == false) {
             String goals = "clean deploy";
             if (project.getDistributionManagement() != null
                     && project.getDistributionManagement().getSite() != null) {
                 goals += " site-deploy";
             }
 
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             if (useReleaseProfile) {
                 additionalArgs.add("-DperformRelease=true");
             }
             if (StringUtils.isNotBlank(releaseProfiles)) {
                 Iterable<String> profiles = PROFILES_SPLITTER.split(releaseProfiles);
                 additionalArgs.add("-P " + PROFILES_JOINER.join(profiles));
             }
             runGoals(goals, additionalArgs.build());
         } else if (skipBuild == false) {
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             runGoals("clean install", additionalArgs.build());
         } else {
-            LOG.debug("Skipping both install and deploy for hotfix tag " + hotfixName);
+            getLog().debug("Skipping both install and deploy for hotfix tag " + hotfixName);
         }
 
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingHotfixName(List<String> hotfixBranches, String defaultHotfixName) throws MojoFailureException {
         String message = "Please select a hotfix branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, hotfixBranches, defaultHotfixName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading hotfix name from command line " + e.getMessage());
         }
 
         return name;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
index 0303f43..824bacc 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
@@ -25,80 +25,76 @@ import static org.jfrog.hudson.util.GenericArtifactVersion.DEFAULT_VERSION_COMPO
 import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
 
 /**
  * Creates a new hotfix branch off of the master branch.
  */
 @Mojo(name = "hotfix-start", aggregator = true)
 public class HotfixStartMojo extends AbstractHotfixMojo {
 
-    private static final Logger LOG = LoggerFactory.getLogger(HotfixStartMojo.class.getName());
-
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         /* Switch to master branch and get current version i.e. lastest tag */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getMasterBrnName());
         reloadReactorProjects();
         String masterVersion = project.getVersion();
-        LOG.debug("master version = " + masterVersion);
+        getLog().debug("master version = " + masterVersion);
 
         String hotfixVersion = getHotfixVersion(masterVersion);
         String hotfixSnapshotVersion = getHotfixSnapshotVersion(masterVersion);
 
-        LOG.info("Starting hotfix '" + hotfixVersion + "'");
-        LOG.debug("msgPrefix '" + getMsgPrefix() + "'");
-        LOG.debug("msgSuffix '" + getMsgSuffix() + "'");
+        getLog().info("Starting hotfix '" + hotfixVersion + "'");
+        getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
+        getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
         gitflowHotfix.setPush(pushHotfixBranch);
 
         try {
             gitflowHotfix.start(hotfixVersion);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
-        setVersion(hotfixSnapshotVersion);
+        setVersion(hotfixSnapshotVersion, pushHotfixBranch);
 
         String prefix = getGitflowInit().getHotfixBranchPrefix();
         if (getGitflowInit().gitRemoteBranchExists(prefix + hotfixVersion)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + hotfixVersion);
         }
     }
 
     private String getHotfixVersion(String currentVersion) throws MojoFailureException {
-        LOG.debug("getHotfixVersion from '" + currentVersion + "'");
+        getLog().debug("getHotfixVersion from '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         final StringBuilder result = new StringBuilder(30);
         if (artifactVersion.getPrimaryNumberCount() < 3) {
             String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
             String annotationAsString = artifactVersion.getAnnotationAsString();
             result.append(primaryNumbersAsString).append('.').append('1');
             result.append(annotationAsString);
         } else {
             artifactVersion.upgradeLeastSignificantNumber();
             result.append(artifactVersion.toString());
         }
         return result.toString();
     }
 
     private String getHotfixSnapshotVersion(String currentVersion) throws MojoFailureException {
-        LOG.debug("getHotfixSnapshotVersion from '" + currentVersion + "'");
+        getLog().debug("getHotfixSnapshotVersion from '" + currentVersion + "'");
 
         final StringBuilder result = new StringBuilder(30);
 
         String hotfixVersion = getHotfixVersion(currentVersion);
         result.append(hotfixVersion);
 
         result.append(DEFAULT_VERSION_COMPONENT_SEPARATOR).append(SNAPSHOT_QUALIFIER);
 
         return result.toString();
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index 25ca144..68fa872 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -17,7 +17,9 @@ package com.dkirrane.maven.plugins.ggitflow;
 
+import com.dkirrane.gitflow.groovy.GitflowRelease;
+import com.dkirrane.gitflow.groovy.ex.GitflowException;
+import com.dkirrane.gitflow.groovy.ex.GitflowMergeConflictException;
 import static com.dkirrane.maven.plugins.ggitflow.AbstractGitflowMojo.DEFAULT_DEPLOY_ARGS;
 import static com.dkirrane.maven.plugins.ggitflow.AbstractGitflowMojo.PROFILES_SPLITTER;
-
+import com.google.common.collect.ImmutableList;
 import java.util.List;
-
 import org.apache.maven.plugin.MojoExecutionException;
@@ -29,304 +31,295 @@ import org.codehaus.plexus.util.StringUtils;
 import org.jfrog.hudson.util.GenericArtifactVersion;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-import com.dkirrane.gitflow.groovy.GitflowRelease;
-import com.dkirrane.gitflow.groovy.ex.GitflowException;
-import com.dkirrane.gitflow.groovy.ex.GitflowMergeConflictException;
-import com.google.common.collect.ImmutableList;
 
 /**
  * Merges a release branch back into the develop and master branch and then
  * creates a tag for the release on master.
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
 
-    private static final Logger LOG = LoggerFactory.getLogger(ReleaseFinishMojo.class.getName());
-
     /**
      * If <code>true</code>, the release finish merge to develop & master and
      * the created tag will get pushed to the remote repository
      *
      * @since 1.6
      */
     @Parameter(property = "pushReleaseFinish", defaultValue = "false", required = false)
     protected boolean pushReleaseFinish;
 
     /**
      * If <code>true</code>, the release can still finish even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private Boolean allowSnapshots;
 
     /**
      * If the project has a parent with a release version it will be replaced
      * with the next <code>-SNAPSHOT</code> version (if it has been deployed).
      * This action is performed on the develop branch after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "updateParent", defaultValue = "false", required = false)
     private Boolean updateParent;
 
     /**
      * On the release branch before finish is called any dependencies with a
      * <code>-SNAPSHOT</code> version are replaced with the corresponding
      * release version (if it has been released).
      *
      * On the develop branch after the merge any dependencies with a release
      * version are replaced with the next <code>-SNAPSHOT</code> version (if it
      * has been deployed).
      *
      * @since 1.2
      */
     @Parameter(property = "updateDependencies", defaultValue = "false", required = false)
     private Boolean updateDependencies;
 
     /**
      * If <code>updateDependencies</code> is set, then this should contain a
      * comma separated list of artifact patterns to include. Follows the pattern <code>groupId:artifactId:type:classifier:version<code>
      *
      * @since 1.5
      */
     @Parameter(property = "includes", defaultValue = "", required = false)
     private String includes;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "true", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any calls to <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipDeploy", defaultValue = "true", required = false)
     private Boolean skipDeploy;
 
     /**
      * Skips any tests during <code>mvn install</code> and
      * <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipTests", defaultValue = "true", required = false)
     private Boolean skipTests;
 
     /**
      * Whether to use the release profile that adds sources and javadoc to the
      * released artifact, if appropriate. If set to true, the release-finish
      * will set the property "performRelease" to true, which activates the
      * profile "release-profile", which is inherited from the super pom.
      *
      * @since 1.2
      */
     @Parameter(property = "useReleaseProfile", defaultValue = "true", required = false)
     private Boolean useReleaseProfile;
 
     /**
      * Comma separated profiles to enable on deployment, in addition to active
      * profiles for project execution.
      *
      * @since 1.2
      */
     @Parameter(property = "releaseProfiles", defaultValue = "", required = false)
     private String releaseProfiles;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the branch will not be deleted after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keep;
 
     /**
      * If <code>true</code>, the release tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
-        LOG.debug("Finishing release");
+        getLog().debug("Finishing release");
 
         /* Get release branch name */
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
         if (releaseBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         } else if (releaseBranches.size() == 1) {
             releaseName = releaseBranches.get(0);
         } else {
             releaseName = promptForExistingReleaseName(releaseBranches, releaseName);
         }
 
-        LOG.info("Finishing release '{}'", releaseName);
+        getLog().info("Finishing release '" + releaseName + "'");
 
         /* Switch to develop branch and get its current version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
-        LOG.debug("develop version = " + developVersion);
+        getLog().debug("develop version = " + developVersion);
 
         /* Switch to release branch and set poms to release version */
         getGitflowInit().executeLocal("git checkout " + releaseName);
         reloadReactorProjects();
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(project.getVersion());
         String releaseVersion;
         if ("SNAPSHOT".equals(artifactVersion.getBuildSpecifier())) {
             releaseVersion = getReleaseVersion(project.getVersion());
         } else {
             releaseVersion = project.getVersion();
         }
-        LOG.debug("release version = " + releaseVersion);
+        getLog().debug("release version = " + releaseVersion);
 
-        setVersion(releaseVersion);
+        setVersion(releaseVersion, pushReleaseFinish);
 
         /* Update release branch dependencies to release version */
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions(false, updateParent, includes);
         }
 
         if (!allowSnapshots) {
             reloadReactorProjects();
             checkForSnapshotDependencies();
         }
 
         /* finish release */
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setPush(pushReleaseBranch);
         gitflowRelease.setSquash(squash);
         gitflowRelease.setKeep(keep);
         gitflowRelease.setSign(sign);
         gitflowRelease.setSigningkey(signingkey);
 
         /* 1. merge to master */
         try {
             gitflowRelease.finishToMaster(releaseName, pushReleaseFinish);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
 
         /* 2. make versions in release and develop branches match to avoid conflicts */
         getGitflowInit().executeLocal("git checkout " + releaseName);
         reloadReactorProjects();
-        setVersion(developVersion);
+        setVersion(developVersion, pushReleaseFinish);
 
         /* 3. merge to develop */
         try {
             gitflowRelease.finishToDevelop(releaseName, pushReleaseFinish);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
         /* Update develop branch dependencies to next snapshot version (if deployed) */
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions(true, updateParent, includes);
         }
 
         /* Switch to release tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);
         reloadReactorProjects();
         String tagVersion = project.getVersion();
-        LOG.debug("tag version = " + tagVersion);
+        getLog().debug("tag version = " + tagVersion);
 
         /* install or deploy */
         if (skipDeploy == false) {
             String goals = "clean deploy";
             if (project.getDistributionManagement() != null
                     && project.getDistributionManagement().getSite() != null) {
                 goals += " site-deploy";
             }
 
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             if (useReleaseProfile) {
                 additionalArgs.add("-DperformRelease=true");
             }
             if (StringUtils.isNotBlank(releaseProfiles)) {
                 Iterable<String> profiles = PROFILES_SPLITTER.split(releaseProfiles);
                 additionalArgs.add("-P " + PROFILES_JOINER.join(profiles));
             }
             runGoals(goals, additionalArgs.build());
         } else if (skipBuild == false) {
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             runGoals("clean install", additionalArgs.build());
         } else {
-            LOG.debug("Skipping both install and deploy for release tag " + releaseName);
+            getLog().debug("Skipping both install and deploy for release tag " + releaseName);
         }
 
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingReleaseName(List<String> releaseBranches, String defaultReleaseName) throws MojoFailureException {
         String message = "Please select a release branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, releaseBranches, defaultReleaseName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading release name from command line " + e.getMessage());
         }
 
         return name;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
index 9339300..d152bed 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
@@ -27,167 +27,163 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
 
 /**
  * Creates a new release branch off of the develop branch.
  */
 @Mojo(name = "release-start", aggregator = true)
 public class ReleaseStartMojo extends AbstractReleaseMojo {
 
-    private static final Logger LOG = LoggerFactory.getLogger(ReleaseStartMojo.class.getName());
-
     /**
      * Whether to run the plugin in interactive mode or not. The default is to
      * run without interaction when possible.
      *
      * @since 1.2
      */
     @Parameter(property = "interactive", defaultValue = "true", required = false)
     protected boolean interactive;
 
     /**
      * If the project has a parent with a <code>-SNAPSHOT</code> version it will
      * be replaced with the corresponding release version (if it has been
      * released). This action is performed on the release branch after it is
      * created.
      *
      * @since 1.2
      */
     @Parameter(property = "updateParent", defaultValue = "false", required = false)
     private boolean updateParent;
 
     /**
      * Any dependencies with a <code>-SNAPSHOT</code> version are replaced with
      * the corresponding release version (if it has been released). This action
      * is performed on the release branch after it is created.
      *
      * @since 1.2
      */
     @Parameter(property = "updateDependencies", defaultValue = "false", required = false)
     private boolean updateDependencies;
 
     /**
      * If <code>updateDependencies</code> is set, then this should contain a
      * comma separated list of artifact patterns to include. Follows the pattern <code>groupId:artifactId:type:classifier:version<code>
      *
      * @since 1.5
      */
     @Parameter(property = "includes", defaultValue = "", required = false)
     private String includes;
 
     /**
      * The commit to start the release branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     private String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         /* Switch to develop branch and get its current version */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
         reloadReactorProjects();
 
         String developVersion = project.getVersion();
-        LOG.info("Current develop version = " + developVersion);
+        getLog().info("Current develop version = " + developVersion);
 
         /* Get next development version */
         String nextDevelopVersion = getNextDevelopVersion(developVersion);
         if (interactive) {
             String message = "What is the next development version? ";
             try {
                 nextDevelopVersion = prompter.prompt(message, nextDevelopVersion);
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading next development version from command line " + ex.getMessage(), ex);
             }
         }
-        LOG.debug("Next development version = " + developVersion);
+        getLog().debug("Next development version = " + developVersion);
 
         /* Get suggested release version */
         String releaseVersion = getReleaseVersion(developVersion);
-        LOG.debug("release version = " + releaseVersion);
+        getLog().debug("release version = " + releaseVersion);
 
         /* create release branch */
         String prefix = getReleaseBranchPrefix();
         if (!StringUtils.isBlank(releaseName)) {
-            LOG.debug("Using releaseName passed  '" + releaseName + "'");
+            getLog().debug("Using releaseName passed  '" + releaseName + "'");
         } else if (interactive) {
             String message = "What is the release branch name? " + prefix;
             try {
                 releaseName = prompter.prompt(message, releaseVersion);
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading release name from command line " + ex.getMessage(), ex);
             }
         } else {
             releaseName = releaseVersion;
         }
 
         if (StringUtils.isBlank(releaseName)) {
             throw new MojoFailureException("Parameter <releaseName> cannot be null or empty.");
         }
 
         GenericArtifactVersion releaseArtifactVersion;
         try {
             releaseArtifactVersion = new GenericArtifactVersion(releaseName);
             if (SNAPSHOT_QUALIFIER.equals(releaseArtifactVersion.getBuildSpecifier())) {
                 throw new IllegalArgumentException("Parameter <releaseName> is not a release version as it contains SNAPSHOT build specifier");
             }
         } catch (IllegalArgumentException e) {
             throw new MojoExecutionException("Parameter <releaseName> value '" + releaseName + "' is not a valid Maven release version.");
         }
 
-        LOG.info("Starting release '" + releaseName + "'");
-        LOG.debug("msgPrefix '" + getMsgPrefix() + "'");
-        LOG.debug("msgSuffix '" + getMsgSuffix() + "'");
+        getLog().info("Starting release '" + releaseName + "'");
+        getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
+        getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setPush(pushReleaseBranch);
         gitflowRelease.setStartCommit(startCommit);
 
         try {
             gitflowRelease.start(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         // current branch should be the release branch
         String releaseBranch = getGitflowInit().gitCurrentBranch();
         if (!releaseBranch.startsWith(prefix)) {
             throw new MojoFailureException("Failed to create release version.");
         }
 
         /* Update release branch dependencies to release version */
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions(false, updateParent, includes);
         }
 
         // checkout develop branch and update it's version
         String developBranch = (String) getGitflowInit().getDevelopBrnName();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
-        setVersion(nextDevelopVersion);
+        setVersion(nextDevelopVersion, pushReleaseBranch);
 
         // checkout release branch again and update it's version to required release version
         getGitflowInit().executeLocal("git checkout " + releaseBranch);
         reloadReactorProjects();
-        setVersion(releaseArtifactVersion.setBuildSpecifier(SNAPSHOT_QUALIFIER).toString());
+        setVersion(releaseArtifactVersion.setBuildSpecifier(SNAPSHOT_QUALIFIER).toString(), pushReleaseBranch);
     }
 
     public String getReleaseName() {
         return releaseName;
     }
 
     private String getNextDevelopVersion(String developVersion) {
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(developVersion);
         artifactVersion.upgradeLeastSignificantPrimaryNumber();
 
         return artifactVersion.toString();
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
index bcb31a8..856d81c 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
@@ -28,130 +28,126 @@ import static org.jfrog.hudson.util.GenericArtifactVersion.DEFAULT_VERSION_COMPO
 import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
 
 /**
  * Creates a new support branch from a specific commit on the master branch.
  */
 @Mojo(name = "support-start", aggregator = true)
 public class SupportStartMojo extends AbstractGitflowMojo {
 
-    private static final Logger LOG = LoggerFactory.getLogger(SupportStartMojo.class.getName());
-
     /**
      * If <code>true</code>, the support branch is pushed to the remote
      * repository.
      *
      * @since 1.2
      */
-    @Parameter(property = "pushSupportBranch", defaultValue = "false", required = false)
+    @Parameter(property = "pushSupportBranch", defaultValue = "true", required = false)
     protected boolean pushSupportBranch;
 
     /**
      * The commit to start the support branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     protected String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         String prefix = getGitflowInit().getSupportBranchPrefix();
 
         List<String> tags = getGitflowInit().gitAllTags();
         if (tags.isEmpty()) {
             throw new MojoFailureException("Could not find any tags to create support branch from!");
         }
 
         String baseName = promptForExistingTagName(tags, tags.get(tags.size() - 1));
 
         getGitflowInit().executeLocal("git checkout " + baseName);
         reloadReactorProjects();
         String supportVersion = getSupportVersion(project.getVersion());
         String supportSnapshotVersion = getSupportSnapshotVersion(project.getVersion());
 
-        LOG.info("Starting support branch '" + supportVersion + "'");
-        LOG.debug("msgPrefix '" + getMsgPrefix() + "'");
-        LOG.debug("msgSuffix '" + getMsgSuffix() + "'");
+        getLog().info("Starting support branch '" + supportVersion + "'");
+        getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
+        getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowSupport gitflowSupport = new GitflowSupport();
         gitflowSupport.setInit(getGitflowInit());
         gitflowSupport.setMsgPrefix(getMsgPrefix());
         gitflowSupport.setMsgSuffix(getMsgSuffix());
         gitflowSupport.setPush(pushSupportBranch);
         gitflowSupport.setStartCommit(startCommit);
 
         try {
             gitflowSupport.start(supportVersion);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
-        setVersion(supportSnapshotVersion);
+        setVersion(supportSnapshotVersion, pushSupportBranch);
 
         if (getGitflowInit().gitRemoteBranchExists(prefix + supportVersion)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + supportVersion);
         }
     }
 
     private String promptForExistingTagName(List<String> branches, String defaultBrnName) throws MojoFailureException {
         String message = "Create a support branch from tag:";
 
         String name = "";
         try {
             name = prompter.prompt(message, branches, defaultBrnName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading selected Tag name from command line " + e.getMessage());
         }
 
         return name;
     }
 
     private String getSupportVersion(String currentVersion) throws MojoFailureException {
-        LOG.debug("getSupportVersion from '" + currentVersion + "'");
+        getLog().debug("getSupportVersion from '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         StringBuilder sb = new StringBuilder(10);
         int pCount = artifactVersion.getPrimaryNumberCount();
         if (pCount < 3) {
             // Support versions should be like 1.0.x e.g. 1.0.1, 1.0.2 etc
             sb.append(artifactVersion.getPrimaryNumbersAsString()).append('.').append('x');
             sb.append(artifactVersion.getAnnotationAsString()).append(artifactVersion.getBuildSpecifierAsString());
         } else {
             // Support versions should be like 1.0.0-xx e.g. 1.0.0-01, 1.0.0-02 etc
             if (null != artifactVersion.getAnnotation()) {
                 throw new MojoFailureException("Cannot start Support branch. Primary number " + artifactVersion.getPrimaryNumbersAsString() + " and annotations are already set " + artifactVersion.getAnnotation());
             }
             sb.append(artifactVersion.getPrimaryNumbersAsString()).append('-').append("xx");
         }
 
         return sb.toString();
     }
 
     private String getSupportSnapshotVersion(String currentVersion) throws MojoFailureException {
-        LOG.debug("getSupportSnapshotVersion from '" + currentVersion + "'");
+        getLog().debug("getSupportSnapshotVersion from '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         StringBuilder sb = new StringBuilder(10);
         int pCount = artifactVersion.getPrimaryNumberCount();
         if (pCount < 3) {
             // Support versions should be like 1.0.x e.g. 1.0.1, 1.0.2 etc
             sb.append(artifactVersion.getPrimaryNumbersAsString()).append('.').append('1');
             sb.append(artifactVersion.getAnnotationAsString());
         } else {
             // Support versions should be like 1.0.0-xx e.g. 1.0.0-01, 1.0.0-02 etc
             if (null != artifactVersion.getAnnotation()) {
                 throw new MojoFailureException("Cannot start Support branch. Primary number " + artifactVersion.getPrimaryNumbersAsString() + " and annotations are already set " + artifactVersion.getAnnotation());
             }
             sb.append(artifactVersion.getPrimaryNumbersAsString()).append('-').append("01");
         }
 
         sb.append(DEFAULT_VERSION_COMPONENT_SEPARATOR).append(SNAPSHOT_QUALIFIER);
 
         return sb.toString();
     }
 }

commit 251b723e1dc0516b68cfa3e61f3eeb8690e0a9b4
Author: dkirrane <dkirrane@avaya.com>
Date:   Wed May 18 18:48:36 2016 +0100

    test

diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-feature.sh b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-feature.sh
index a4b6017..d740ca2 100644
--- a/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-feature.sh
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-feature.sh
@@ -3,12 +3,12 @@
 function runCmd {
     echo "\$ $@" ; "$@" ;
     local status=$?
     if [ $status -ne 0 ]; then
         echo "Failed to run with $1" >&2
         exit
     fi
     return $status
 }
 
-# Feature
+# Feature 1
 runCmd mvn ggitflow:feature-start -DfeatureName=JIRA-1-Feature1
@@ -19,4 +19,7 @@ runCmd mvn ggitflow:feature-finish -DfeatureName=feature/JIRA-1-Feature1
 git log --branches --remotes --tags --graph --oneline --decorate
 
-# Feature
+# need to push merged 'Feature 1' in order to start 'Feature 2'
+runCmd git push origin develop
+
+# Feature 2
 runCmd mvn ggitflow:feature-start -DfeatureName=JIRA-2-Feature2

commit f0167c9e58646af749e4ecb6ade88d5185c7fb80
Author: dkirrane <dkirrane@avaya.com>
Date:   Wed May 18 18:43:19 2016 +0100

    script improvement

diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-feature.sh b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-feature.sh
index 467c3e3..a4b6017 100644
--- a/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-feature.sh
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-feature.sh
@@ -1,8 +1,18 @@
-#!/bin/sh
+#!/bin/bash
+
+function runCmd {
+    echo "\$ $@" ; "$@" ;
+    local status=$?
+    if [ $status -ne 0 ]; then
+        echo "Failed to run with $1" >&2
+        exit
+    fi
+    return $status
+}
 
 # Feature
-mvn ggitflow:feature-start -DfeatureName=JIRA-1-Feature1
-git commit --allow-empty -m "JIRA-1 feature1 commit"
-git commit --allow-empty -m "JIRA-2 feature1 commit"
-mvn ggitflow:feature-finish -DfeatureName=feature/JIRA-1-Feature1
+runCmd mvn ggitflow:feature-start -DfeatureName=JIRA-1-Feature1
+runCmd git commit --allow-empty -m "JIRA-1 feature1 commit"
+runCmd git commit --allow-empty -m "JIRA-2 feature1 commit"
+runCmd mvn ggitflow:feature-finish -DfeatureName=feature/JIRA-1-Feature1
 
@@ -11,6 +21,6 @@ git log --branches --remotes --tags --graph --oneline --decorate
 # Feature
-mvn ggitflow:feature-start -DfeatureName=JIRA-2-Feature2
-git commit --allow-empty -m "JIRA-3 feature2 commit"
-git commit --allow-empty -m "JIRA-4 feature2 commit"
-mvn ggitflow:feature-finish -DfeatureName=feature/JIRA-2-Feature2
+runCmd mvn ggitflow:feature-start -DfeatureName=JIRA-2-Feature2
+runCmd git commit --allow-empty -m "JIRA-3 feature2 commit"
+runCmd git commit --allow-empty -m "JIRA-4 feature2 commit"
+runCmd mvn ggitflow:feature-finish -DfeatureName=feature/JIRA-2-Feature2
 
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-hotfix.sh b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-hotfix.sh
index 6259698..f654465 100644
--- a/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-hotfix.sh
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-hotfix.sh
@@ -1,8 +1,18 @@
-#!/bin/sh
+#!/bin/bash
+
+function runCmd {
+    echo "\$ $@" ; "$@" ;
+    local status=$?
+    if [ $status -ne 0 ]; then
+        echo "Failed to run with $1" >&2
+        exit
+    fi
+    return $status
+}
 
 # Hotfix/Patch 3.0.0.0 - Hotfix/Patch version = 3.0.0.1-SNAPSHOT
-mvn ggitflow:hotfix-start
-git commit --allow-empty -m "JIRA-7 hotfix commit"
-git commit --allow-empty -m "JIRA-8 hotfix commit"
-mvn ggitflow:hotfix-finish
+runCmd mvn ggitflow:hotfix-start
+runCmd git commit --allow-empty -m "JIRA-7 hotfix commit"
+runCmd git commit --allow-empty -m "JIRA-8 hotfix commit"
+runCmd mvn ggitflow:hotfix-finish
 
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-init.sh b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-init.sh
index 6f738de..fbc8c50 100644
--- a/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-init.sh
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-init.sh
@@ -1,5 +1,15 @@
-#!/bin/sh
+#!/bin/bash
+
+function runCmd {
+    echo "\$ $@" ; "$@" ;
+    local status=$?
+    if [ $status -ne 0 ]; then
+        echo "Failed to run with $1" >&2
+        exit
+    fi
+    return $status
+}
 
 # Init
-mvn ggitflow:init
+runCmd mvn ggitflow:init
 
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-release.sh b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-release.sh
index 58826f9..c3969ea 100644
--- a/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-release.sh
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-release.sh
@@ -1,8 +1,18 @@
-#!/bin/sh
+#!/bin/bash
+
+function runCmd {
+    echo "\$ $@" ; "$@" ;
+    local status=$?
+    if [ $status -ne 0 ]; then
+        echo "Failed to run with $1" >&2
+        exit
+    fi
+    return $status
+}
 
 # Release
-mvn ggitflow:release-start
-git commit --allow-empty -m "JIRA-5 release fix commit"
-git commit --allow-empty -m "JIRA-6 release fix commit"
-mvn ggitflow:release-finish
+runCmd mvn ggitflow:release-start
+runCmd git commit --allow-empty -m "JIRA-5 release fix commit"
+runCmd git commit --allow-empty -m "JIRA-6 release fix commit"
+runCmd mvn ggitflow:release-finish
 
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-support.sh b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-support.sh
index 8814c76..ff8315b 100644
--- a/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-support.sh
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-support.sh
@@ -1,5 +1,15 @@
-#!/bin/sh
+#!/bin/bash
+
+function runCmd {
+    echo "\$ $@" ; "$@" ;
+    local status=$?
+    if [ $status -ne 0 ]; then
+        echo "Failed to run with $1" >&2
+        exit
+    fi
+    return $status
+}
 
 # Support/ServicePack 3.0.0.0 - Support/ServicePack version = 3.0.1.0-SNAPSHOT
-mvn ggitflow:support-start
+runCmd mvn ggitflow:support-start
 

commit 9656928df48aae9d43cbec945052c84f5fe0a4e4
Author: dkirrane <dkirrane@avaya.com>
Date:   Wed May 18 18:39:35 2016 +0100

    git log

diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-feature.sh b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-feature.sh
index 43f6b67..467c3e3 100644
--- a/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-feature.sh
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-feature.sh
@@ -7,3 +7,5 @@ git commit --allow-empty -m "JIRA-2 feature1 commit"
 mvn ggitflow:feature-finish -DfeatureName=feature/JIRA-1-Feature1
 
+git log --branches --remotes --tags --graph --oneline --decorate
+
 # Feature
@@ -12,2 +14,4 @@ git commit --allow-empty -m "JIRA-3 feature2 commit"
 git commit --allow-empty -m "JIRA-4 feature2 commit"
-mvn ggitflow:feature-finish -DfeatureName=feature/JIRA-2-Feature2
\ No newline at end of file
+mvn ggitflow:feature-finish -DfeatureName=feature/JIRA-2-Feature2
+
+git log --branches --remotes --tags --graph --oneline --decorate
\ No newline at end of file
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-hotfix.sh b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-hotfix.sh
index e1262da..6259698 100644
--- a/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-hotfix.sh
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-hotfix.sh
@@ -6,2 +6,4 @@ git commit --allow-empty -m "JIRA-7 hotfix commit"
 git commit --allow-empty -m "JIRA-8 hotfix commit"
-mvn ggitflow:hotfix-finish
\ No newline at end of file
+mvn ggitflow:hotfix-finish
+
+git log --branches --remotes --tags --graph --oneline --decorate
\ No newline at end of file
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-init.sh b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-init.sh
index f4d6263..6f738de 100644
--- a/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-init.sh
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-init.sh
@@ -3,2 +3,4 @@
 # Init
-mvn ggitflow:init
\ No newline at end of file
+mvn ggitflow:init
+
+git log --branches --remotes --tags --graph --oneline --decorate
\ No newline at end of file
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-release.sh b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-release.sh
index 6ef07a3..58826f9 100644
--- a/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-release.sh
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-release.sh
@@ -7 +7,3 @@ git commit --allow-empty -m "JIRA-6 release fix commit"
 mvn ggitflow:release-finish
+
+git log --branches --remotes --tags --graph --oneline --decorate
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-support.sh b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-support.sh
index a10eee3..8814c76 100644
--- a/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-support.sh
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-support.sh
@@ -3,2 +3,4 @@
 # Support/ServicePack 3.0.0.0 - Support/ServicePack version = 3.0.1.0-SNAPSHOT
-mvn ggitflow:support-start
\ No newline at end of file
+mvn ggitflow:support-start
+
+git log --branches --remotes --tags --graph --oneline --decorate
\ No newline at end of file

commit dc3faa2a9602272e0bda50fa271f3e61d8446a1e
Author: dkirrane <dkirrane@avaya.com>
Date:   Wed May 18 18:23:21 2016 +0100

    Fixes

diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/clear-git-history.sh b/ggitflow-maven-archetype/src/main/resources/archetype-resources/clear-git-history.sh
index e6fca87..943351d 100644
--- a/ggitflow-maven-archetype/src/main/resources/archetype-resources/clear-git-history.sh
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/clear-git-history.sh
@@ -1,2 +1,7 @@
 #!/bin/sh
+################################################################################
+# Removes all Git history 
+# Reconstructs the repo with only the current content 
+# Pushes to origin
+################################################################################
 
@@ -4,12 +9,16 @@ PROJ_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
 
-$PROJ_DIR/clear-gitflow-config.sh
-
-
 GIT_BASE_DIR=$( git rev-parse --show-toplevel )
 cd $GIT_BASE_DIR
 
+##
+# Clear gitflow config
+##
+git config --local --remove-section gitflow.branch
+git config --local --remove-section gitflow.prefix
+git config --local -l
+
 ##
 # Removes all Git history 
 # Reconstructs the repo with only the current content 
 # Pushes to origin
 ##
@@ -49,4 +58,3 @@ git fetch --all --prune
 
-cd $PROJ_DIR
-mvn versions:set -DgenerateBackupPoms=false -DnewVersion=1.0-SNAPSHOT
+mvn -f $PROJ_DIR/pom.xml versions:set -DgenerateBackupPoms=false -DnewVersion=1.0-SNAPSHOT
 
@@ -60,4 +68,5 @@ git commit -am "Initial commit. pom version 1.0-SNAPSHOT"
 git remote add origin $ORIGIN
-git push origin master --force
+git push origin master --force --set-upstream
 
-git fetch --all
\ No newline at end of file
+git fetch --all
+git config --local -l
\ No newline at end of file
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/clear-gitflow-config.sh b/ggitflow-maven-archetype/src/main/resources/archetype-resources/clear-gitflow-config.sh
deleted file mode 100644
index 898b8a0..0000000
--- a/ggitflow-maven-archetype/src/main/resources/archetype-resources/clear-gitflow-config.sh
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/sh
-
-git config --unset-all "gitflow.branch.master"
-git config --unset-all "gitflow.branch.develop"
-git config --unset-all "gitflow.prefix.feature"
-git config --unset-all "gitflow.prefix.release"
-git config --unset-all "gitflow.prefix.hotfix"
-git config --unset-all "gitflow.prefix.support"
-git config --unset-all "gitflow.prefix.versiontag"
-
-git config -l
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/create.sh b/ggitflow-maven-archetype/src/main/resources/archetype-resources/create.sh
deleted file mode 100644
index 18dc609..0000000
--- a/ggitflow-maven-archetype/src/main/resources/archetype-resources/create.sh
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/sh
-##
-# Removes all Git history 
-# Reconstructs the repo with only the current content 
-# Pushes to origin
-##
-# Major.Minor.ServicePack.Patch.SprintNumber-SNAPSHOT
-# 3.0.0.0-SNAPSHOT
-
-# Feature
-mvn ggitflow:feature-start -DfeatureName=JIRA-1-Feature
-git commit --allow-empty -m "JIRA-xxx feature commit"
-git commit --allow-empty -m "JIRA-xxx feature commit"
-mvn ggitflow:feature-finish -DfeatureName=feature/JIRA-1-Feature
-
-# Feature
-mvn ggitflow:feature-start -DfeatureName=JIRA-2-Feature
-git commit --allow-empty -m "JIRA-xxx feature commit"
-git commit --allow-empty -m "JIRA-xxx feature commit"
-mvn ggitflow:feature-finish -DfeatureName=feature/JIRA-2-Feature
-
-# Release
-mvn ggitflow:release-start
-git commit --allow-empty -m "JIRA-xxx release fix commit"
-git commit --allow-empty -m "JIRA-xxx release fix commit"
-mvn ggitflow:release-finish
-
-# Hotfix/Patch 3.0.0.0 - Hotfix/Patch version = 3.0.0.1-SNAPSHOT
-mvn ggitflow:hotfix-start
-git commit --allow-empty -m "JIRA-xxx hotfix commit"
-git commit --allow-empty -m "JIRA-xxx hotfix commit"
-mvn ggitflow:hotfix-finish
-
-# Support/ServicePack 3.0.0.0 - Support/ServicePack version = 3.0.1.0-SNAPSHOT
-mvn ggitflow:support-start
\ No newline at end of file
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-feature.sh b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-feature.sh
new file mode 100644
index 0000000..43f6b67
--- /dev/null
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-feature.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+# Feature
+mvn ggitflow:feature-start -DfeatureName=JIRA-1-Feature1
+git commit --allow-empty -m "JIRA-1 feature1 commit"
+git commit --allow-empty -m "JIRA-2 feature1 commit"
+mvn ggitflow:feature-finish -DfeatureName=feature/JIRA-1-Feature1
+
+# Feature
+mvn ggitflow:feature-start -DfeatureName=JIRA-2-Feature2
+git commit --allow-empty -m "JIRA-3 feature2 commit"
+git commit --allow-empty -m "JIRA-4 feature2 commit"
+mvn ggitflow:feature-finish -DfeatureName=feature/JIRA-2-Feature2
\ No newline at end of file
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-hotfix.sh b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-hotfix.sh
new file mode 100644
index 0000000..e1262da
--- /dev/null
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-hotfix.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+# Hotfix/Patch 3.0.0.0 - Hotfix/Patch version = 3.0.0.1-SNAPSHOT
+mvn ggitflow:hotfix-start
+git commit --allow-empty -m "JIRA-7 hotfix commit"
+git commit --allow-empty -m "JIRA-8 hotfix commit"
+mvn ggitflow:hotfix-finish
\ No newline at end of file
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-init.sh b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-init.sh
new file mode 100644
index 0000000..f4d6263
--- /dev/null
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-init.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+# Init
+mvn ggitflow:init
\ No newline at end of file
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-release.sh b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-release.sh
new file mode 100644
index 0000000..6ef07a3
--- /dev/null
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-release.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+# Release
+mvn ggitflow:release-start
+git commit --allow-empty -m "JIRA-5 release fix commit"
+git commit --allow-empty -m "JIRA-6 release fix commit"
+mvn ggitflow:release-finish
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-support.sh b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-support.sh
new file mode 100644
index 0000000..a10eee3
--- /dev/null
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/test-gitflow-support.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+# Support/ServicePack 3.0.0.0 - Support/ServicePack version = 3.0.1.0-SNAPSHOT
+mvn ggitflow:support-start
\ No newline at end of file
diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index 60479ab..ba315bc 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,169 +1,169 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
         <version>1.6-SNAPSHOT</version>
     </parent>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
     <version>1.6-SNAPSHOT</version>
     <packaging>maven-plugin</packaging>
     <name>ggitflow-maven-plugin</name>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
-            <version>2.0</version>
+            <version>2.1-SNAPSHOT</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
         <dependency>
             <groupId>jline</groupId>
             <artifactId>jline</artifactId>
             <version>2.11</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>com.jcabi</groupId>
             <artifactId>jcabi-maven-slf4j</artifactId>
             <version>0.8</version>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>3.2</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>3.0.8</version>
         </dependency>
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-interactivity-api</artifactId>
             <version>1.0-alpha-5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>2.4</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-project</artifactId>
             <version>2.2.1</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-clean-plugin</artifactId>
             <version>2.5</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-install-plugin</artifactId>
             <version>2.5.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-deploy-plugin</artifactId>
             <version>2.8.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-artifact</artifactId>
             <version>2.2.1</version>
         </dependency>
         <dependency>
             <groupId>com.google.guava</groupId>
             <artifactId>guava</artifactId>
             <version>16.0.1</version>
         </dependency>
     </dependencies>
 
     <build>
         <resources>
             <resource>
                 <directory>src/it</directory>
                 <includes>
                     <include>**/**</include>
                 </includes>
             </resource>
         </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>3.2</version>
                 <configuration>
                     <goalPrefix>ggitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>com.github.github</groupId>
                 <artifactId>site-maven-plugin</artifactId>
                 <version>0.9</version>
                 <configuration>
                     <message>Creating site for ${project.version}</message>
                     <server>github</server>
                     <merge>true</merge>
                 </configuration>
                 <executions>
                     <execution>
                         <goals>
                             <goal>site</goal>
                         </goals>
                         <phase>site</phase>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <reportPlugins>
                         <plugin>
                             <groupId>org.apache.maven.plugins</groupId>
                             <artifactId>maven-plugin-plugin</artifactId>
                             <version>3.2</version>
                         </plugin>
                     </reportPlugins>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
index c8d0af6..c77a4a2 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
@@ -26,123 +26,123 @@ import org.slf4j.LoggerFactory;
 /**
  *
  */
 public class AbstractFeatureMojo extends AbstractGitflowMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(AbstractFeatureMojo.class.getName());
 
     /**
      * The name for the feature branch
      *
      * @since 1.2
      */
     @Parameter(property = "featureName", required = false)
     protected String featureName;
 
     /**
      * If <code>true</code>, the feature branch name is added to the pom
      * versions
      *
      * @since 1.2
      */
     @Parameter(property = "enableFeatureVersions", defaultValue = "false", required = false)
     protected boolean enableFeatureVersions;
 
     /**
      * If <code>true</code>, the feature branch is pushed to the remote
      * repository
      *
      * @since 1.2
      */
-    @Parameter(property = "pushFeatures", defaultValue = "false", required = false)
-    protected boolean pushFeatures;
+    @Parameter(property = "pushFeatureBranch", defaultValue = "false", required = false)
+    protected boolean pushFeatureBranch;
 
     public String getFeatureBranchPrefix() {
         String prefix = getGitflowInit().getFeatureBranchPrefix();
         if (StringUtils.isBlank(prefix)) {
             prefix = DEFAULT_FEATURE_BRN_PREFIX;
         }
         return prefix;
     }
 
     public String getFeatureName(String featureLabel) throws MojoFailureException {
         if (StringUtils.isBlank(featureLabel)) {
             throw new MojoFailureException("Missing argument <featureName>");
         }
 
         featureLabel = featureLabel.replaceAll("\\s+", "");
 //        featureLabel = featureLabel.replaceAll("-+", "_");
         return featureLabel;
     }
 
     public String getFeatureVersion(String currentVersion, String featureLabel) throws MojoFailureException {
         LOG.debug("getFeatureVersion from '" + currentVersion + "'");
         featureLabel = getValidFeatureVersionAnnotation(featureLabel);
         LOG.debug("Feature version annotation '" + featureLabel + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         Character annotationSeparator = artifactVersion.getAnnotationRevisionSeparator();
         String buildSpecifier = artifactVersion.getBuildSpecifier();
         Character buildSpecifierSeparator = artifactVersion.getBuildSpecifierSeparator();
 
         LOG.debug("Parsed version = " + artifactVersion.toString());
         if (!StringUtils.isBlank(annotationAsString)) {
             throw new MojoFailureException("Cannot add feature name to version. An annotation " + annotationAsString + " already exists");
         }
 
         final StringBuilder result = new StringBuilder(30);
 
         result.append(primaryNumbersAsString).append(annotationSeparator).append(featureLabel);
 
         if (buildSpecifier != null) {
             if (buildSpecifierSeparator != null) {
                 result.append(buildSpecifierSeparator);
             }
             result.append(buildSpecifier);
         }
 
         return result.toString();
     }
 
     public String getNonFeatureVersion(String version, String featureLabel) {
         LOG.debug("getNonFeatureVersion from '" + version + "'");
         featureLabel = getValidFeatureVersionAnnotation(featureLabel);
         LOG.debug("Feature version annotation '" + featureLabel + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifier = artifactVersion.getBuildSpecifier();
         Character buildSpecifierSeparator = artifactVersion.getBuildSpecifierSeparator();
 
         LOG.debug("Parsed version = " + artifactVersion.toString());
         if (StringUtils.isBlank(annotationAsString)) {
             LOG.warn("Cannot remove feature name from pom version. The version annotation does not exists");
             return version;
         }
 
         if (('-' + featureLabel).equals(annotationAsString)) {
             final StringBuilder result = new StringBuilder(30);
             result.append(primaryNumbersAsString);
 
             if (buildSpecifier != null) {
                 if (buildSpecifierSeparator != null) {
                     result.append(buildSpecifierSeparator);
                 }
                 result.append(buildSpecifier);
             }
 
             return result.toString();
         } else {
             LOG.warn("Cannot remove feature name from pom version. The version annotation [" + annotationAsString + "] does not match the feature label [" + featureLabel + "]");
             return version;
         }
     }
 
     private String getValidFeatureVersionAnnotation(String featureLabel) {
         featureLabel = featureLabel.trim().replaceAll("\\s+", "_");
         featureLabel = featureLabel.trim().replaceAll("-+", "_");
         return featureLabel;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractHotfixMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractHotfixMojo.java
index 7bb7d98..96fc333 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractHotfixMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractHotfixMojo.java
@@ -20,11 +20,12 @@ import org.apache.maven.plugins.annotations.Parameter;
 public class AbstractHotfixMojo extends AbstractGitflowMojo {
 
     /**
      * If <code>true</code>, the hotfix branch is pushed to the remote
      * repository
      *
-     * @since 1.2
+     * @since 1.6
      */
-    @Parameter(property = "pushHotfixes", defaultValue = "false", required = false)
-    protected boolean pushHotfixes;
+    @Parameter(property = "pushHotfixBranch", defaultValue = "false", required = false)
+    protected boolean pushHotfixBranch;
+
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java
index 7a694c8..704619b 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java
@@ -26,39 +26,39 @@ import org.slf4j.LoggerFactory;
 public class AbstractReleaseMojo extends AbstractGitflowMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(AbstractReleaseMojo.class.getName());
 
     /**
      * The name for the release branch.
      *
      * @since 1.2
      */
     @Parameter(property = "releaseName", required = false)
     protected String releaseName;
 
     /**
      * If <code>true</code>, the release branch is pushed to the remote
      * repository.
      *
-     * @since 1.2
+     * @since 1.6
      */
-    @Parameter(property = "pushReleases", defaultValue = "false", required = false)
-    protected boolean pushReleases;
+    @Parameter(property = "pushReleaseBranch", defaultValue = "false", required = false)
+    protected boolean pushReleaseBranch;
 
     public String getReleaseBranchPrefix() {
         String prefix = getGitflowInit().getReleaseBranchPrefix();
         if (StringUtils.isBlank(prefix)) {
             prefix = DEFAULT_RELEASE_BRN_PREFIX;
         }
         return prefix;
     }
 
     public String getNextDevelopmentVersion(String version) throws MojoFailureException {
         LOG.debug("Project version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
         GenericArtifactVersion nextDevelopVersion = artifactVersion.upgradeLeastSignificantNumber();
 
         LOG.debug("Project version '" + nextDevelopVersion + "'");
         return nextDevelopVersion.toString();
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
index d5c46d8..ba201d2 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
@@ -32,147 +32,147 @@ import org.slf4j.LoggerFactory;
 /**
  * Merges a feature branch back into the develop.
  */
 @Mojo(name = "feature-finish", aggregator = true)
 public class FeatureFinishMojo extends AbstractFeatureMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(FeatureFinishMojo.class.getName());
 
     /**
      * If <code>true</code>, the feature branch will be rebased onto develop,
      * then finish will fast-forward merge the feature branch back onto develop.
      *
      * @since 1.2
      */
     @Parameter(property = "isRebase", defaultValue = "false", required = false)
     private boolean isRebase;
 
 //    No good way to handle Interactive rebase from a Maven plugin
 //    /**
 //     * If <code>true</code>, and <code>isRebase</code> is true, then an interactive rebase is
 //     * performed for the feature branch.
 //     *
 //     * @since 1.2
 //     */
 //    @Parameter(property = "isInteractive", defaultValue = "false", required = false)
     private final boolean isInteractive = false;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "true", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any tests during <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipTests", defaultValue = "true", required = false)
     private Boolean skipTests;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the branch will not be deleted after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keep;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         LOG.debug("Finishing feature");
 
         List<String> featureBranches = getGitflowInit().gitLocalFeatureBranches();
 
         if (null == featureBranches || featureBranches.isEmpty()) {
             throw new MojoFailureException("No local feature branches exit!");
         }
 
         String featureBranchPrefix = getFeatureBranchPrefix();
         if (StringUtils.isBlank(featureName)) {
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (currentBranch.startsWith(featureBranchPrefix)) {
                 featureName = currentBranch;
             } else {
                 featureName = featureBranches.get(0);
             }
         } else {
             featureName = getFeatureName(featureName);
         }
 
         featureName = promptForExistingFeatureName(featureBranches, featureName);
 
         LOG.info("Finishing feature '{}'", featureName);
 
         if (enableFeatureVersions) {
             /* Switch to develop branch and get its current version */
             getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
             reloadReactorProjects();
             String developVersion = project.getVersion();
             LOG.debug("develop version = " + developVersion);
 
             /* Switch to feature branch and get its current version */
             getGitflowInit().executeLocal("git checkout " + featureName);
             reloadReactorProjects();
             String featureVersion = project.getVersion();
             LOG.debug("feature version = " + featureVersion);
 
             setVersion(developVersion);
         }
 
         if (skipBuild == false) {
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_INSTALL_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             runGoals("clean install", additionalArgs.build());
         } else {
             LOG.debug("Skipping mvn install for feature " + featureName);
         }
 
         GitflowFeature gitflowFeature = new GitflowFeature();
         gitflowFeature.setInit(getGitflowInit());
         gitflowFeature.setMsgPrefix(getMsgPrefix());
         gitflowFeature.setMsgSuffix(getMsgSuffix());
-        gitflowFeature.setPush(pushFeatures);
+        gitflowFeature.setPush(pushFeatureBranch);
         gitflowFeature.setSquash(squash);
         gitflowFeature.setKeep(keep);
         gitflowFeature.setIsRebase(isRebase);
         gitflowFeature.setIsInteractive(isInteractive);
 
         try {
             gitflowFeature.finish(featureName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
     }
 
     private String promptForExistingFeatureName(List<String> featureBranches, String defaultFeatureName) throws MojoFailureException {
         String message = "Please select a feature branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, featureBranches, defaultFeatureName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading feature name from command line " + e.getMessage());
         }
 
         return name.trim();
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
index c65382c..da7063e 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
@@ -31,74 +31,74 @@ import org.slf4j.LoggerFactory;
 /**
  * Creates a new feature branch off of the develop branch.
  */
 @Mojo(name = "feature-start", aggregator = true)
 public class FeatureStartMojo extends AbstractFeatureMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(FeatureStartMojo.class.getName());
 
     /**
      * The commit to start the feature branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     protected String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         String prefix = getFeatureBranchPrefix();
         if (StringUtils.isBlank(featureName)) {
             String message = "What is the feature branch name? " + prefix;
             try {
                 featureName = prompter.prompt(message);
                 if (StringUtils.isBlank(featureName)) {
                     throw new MojoFailureException("Parameter <featureName> cannot be null or empty.");
                 }
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading feature name from command line " + ex.getMessage(), ex);
             }
         }
         featureName = getFeatureName(featureName);
 
         LOG.info("Starting feature '" + featureName + "'");
         LOG.debug("msgPrefix '" + getMsgPrefix() + "'");
         LOG.debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowFeature gitflowFeature = new GitflowFeature();
         gitflowFeature.setInit(getGitflowInit());
         gitflowFeature.setMsgPrefix(getMsgPrefix());
         gitflowFeature.setMsgSuffix(getMsgSuffix());
-        gitflowFeature.setPush(pushFeatures);
+        gitflowFeature.setPush(pushFeatureBranch);
         gitflowFeature.setStartCommit(startCommit);
 
         try {
             gitflowFeature.start(featureName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         if (enableFeatureVersions) {
             /* Already on feature branch so just get its current version */
             Model model = MavenUtil.readPom(reactorProjects);
             String currentVersion = model.getVersion();
 
             String featureVersion = getFeatureVersion(currentVersion, featureName);
             setVersion(featureVersion);
 
             if (getGitflowInit().gitRemoteBranchExists(prefix + featureName)) {
                 getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + featureName);
             }
 
             /* print feature version */
             reloadReactorProjects();
             LOG.debug("project = " + project.getVersion());
         }
     }
 
     public String getFeatureName() {
         return featureName;
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
index fb81d29..18b4ba7 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
@@ -33,239 +33,248 @@ import org.slf4j.LoggerFactory;
 /**
  * Merges a hotfix branch back into the develop and master branch and then
  * creates a tag for the hotfix on master.
  */
 @Mojo(name = "hotfix-finish", aggregator = true)
 public class HotfixFinishMojo extends AbstractHotfixMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(HotfixFinishMojo.class.getName());
 
     protected String hotfixName;
 
+    /**
+     * If <code>true</code>, the hotfix finish merge to develop & master and
+     * created tag will get pushed to the remote repository
+     *
+     * @since 1.6
+     */
+    @Parameter(property = "pushHotfixFinish", defaultValue = "false", required = false)
+    protected boolean pushHotfixFinish;
+
     /**
      * If <code>true</code>, the hotfix can still finish even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private boolean allowSnapshots;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "true", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any calls to <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipDeploy", defaultValue = "true", required = false)
     private Boolean skipDeploy;
 
     /**
      * Skips any tests during <code>mvn install</code> and
      * <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipTests", defaultValue = "true", required = false)
     private Boolean skipTests;
 
     /**
      * Whether to use the release profile that adds sources and javadoc to the
      * released artifact, if appropriate. If set to true, the hotfix-finish will
      * set the property "performRelease" to true, which activates the profile
      * "release-profile", which is inherited from the super pom.
      *
      * @since 1.2
      */
     @Parameter(property = "useReleaseProfile", defaultValue = "true", required = false)
     private Boolean useReleaseProfile;
 
     /**
      * Comma separated profiles to enable on deployment, in addition to active
      * profiles for project execution.
      *
      * @since 1.2
      */
     @Parameter(property = "releaseProfiles", defaultValue = "", required = false)
     private String releaseProfiles;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the branch will not be deleted after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keep;
 
     /**
      * If <code>true</code>, the hotfix tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         LOG.debug("Finishing hotfix");
 
         /* Get hotfix branch name */
         List<String> hotfixBranches = getGitflowInit().gitLocalHotfixBranches();
         if (hotfixBranches.isEmpty()) {
             throw new MojoFailureException("Could not find hotfix branch!");
         } else if (hotfixBranches.size() == 1) {
             hotfixName = hotfixBranches.get(0);
         } else {
             hotfixName = promptForExistingHotfixName(hotfixBranches, hotfixName);
         }
 
         LOG.info("Finishing hotfix '{}'", hotfixName);
 
         /* Switch to develop branch and get its current version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         LOG.debug("develop version = " + developVersion);
 
         /* Switch to hotfix branch and set poms to hotfix version */
         getGitflowInit().executeLocal("git checkout " + hotfixName);
         reloadReactorProjects();
         String hotfixVersion = project.getVersion();
         LOG.debug("hotfix snapshot version = " + hotfixVersion);
         String hotfixReleaseVersion = getReleaseVersion(hotfixVersion);
         LOG.debug("hotfix release version = " + hotfixReleaseVersion);
 
         setVersion(hotfixReleaseVersion);
 
         if (!allowSnapshots) {
             reloadReactorProjects();
             checkForSnapshotDependencies();
         }
 
         /* finish hotfix */
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
-        gitflowHotfix.setPush(pushHotfixes);
+        gitflowHotfix.setPush(pushHotfixBranch);
         gitflowHotfix.setSquash(squash);
         gitflowHotfix.setKeep(keep);
         gitflowHotfix.setSign(sign);
         gitflowHotfix.setSigningkey(signingkey);
 
         /* 1. merge to master */
         try {
-            gitflowHotfix.finishToMaster(hotfixName);
+            gitflowHotfix.finishToMaster(hotfixName, pushHotfixFinish);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
 
         /* 2. make versions in hotfix and develop branches match to avoid conflicts */
         getGitflowInit().executeLocal("git checkout " + hotfixName);
         reloadReactorProjects();
         setVersion(developVersion);
 
         /* 3. merge to develop */
         try {
-            gitflowHotfix.finishToDevelop(hotfixName);
+            gitflowHotfix.finishToDevelop(hotfixName, pushHotfixFinish);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
         /* Switch to hotfix tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + hotfixReleaseVersion);
         reloadReactorProjects();
         String tagVersion = project.getVersion();
         LOG.debug("tag version = " + tagVersion);
 
         /* install or deploy */
         if (skipDeploy == false) {
             String goals = "clean deploy";
             if (project.getDistributionManagement() != null
                     && project.getDistributionManagement().getSite() != null) {
                 goals += " site-deploy";
             }
 
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             if (useReleaseProfile) {
                 additionalArgs.add("-DperformRelease=true");
             }
             if (StringUtils.isNotBlank(releaseProfiles)) {
                 Iterable<String> profiles = PROFILES_SPLITTER.split(releaseProfiles);
                 additionalArgs.add("-P " + PROFILES_JOINER.join(profiles));
             }
             runGoals(goals, additionalArgs.build());
         } else if (skipBuild == false) {
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             runGoals("clean install", additionalArgs.build());
         } else {
             LOG.debug("Skipping both install and deploy for hotfix tag " + hotfixName);
         }
 
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingHotfixName(List<String> hotfixBranches, String defaultHotfixName) throws MojoFailureException {
         String message = "Please select a hotfix branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, hotfixBranches, defaultHotfixName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading hotfix name from command line " + e.getMessage());
         }
 
         return name;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
index ef6860b..0303f43 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
@@ -29,76 +29,76 @@ import org.slf4j.LoggerFactory;
 /**
  * Creates a new hotfix branch off of the master branch.
  */
 @Mojo(name = "hotfix-start", aggregator = true)
 public class HotfixStartMojo extends AbstractHotfixMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(HotfixStartMojo.class.getName());
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         /* Switch to master branch and get current version i.e. lastest tag */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getMasterBrnName());
         reloadReactorProjects();
         String masterVersion = project.getVersion();
         LOG.debug("master version = " + masterVersion);
 
         String hotfixVersion = getHotfixVersion(masterVersion);
         String hotfixSnapshotVersion = getHotfixSnapshotVersion(masterVersion);
 
         LOG.info("Starting hotfix '" + hotfixVersion + "'");
         LOG.debug("msgPrefix '" + getMsgPrefix() + "'");
         LOG.debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
-        gitflowHotfix.setPush(pushHotfixes);
+        gitflowHotfix.setPush(pushHotfixBranch);
 
         try {
             gitflowHotfix.start(hotfixVersion);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         setVersion(hotfixSnapshotVersion);
 
         String prefix = getGitflowInit().getHotfixBranchPrefix();
         if (getGitflowInit().gitRemoteBranchExists(prefix + hotfixVersion)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + hotfixVersion);
         }
     }
 
     private String getHotfixVersion(String currentVersion) throws MojoFailureException {
         LOG.debug("getHotfixVersion from '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         final StringBuilder result = new StringBuilder(30);
         if (artifactVersion.getPrimaryNumberCount() < 3) {
             String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
             String annotationAsString = artifactVersion.getAnnotationAsString();
             result.append(primaryNumbersAsString).append('.').append('1');
             result.append(annotationAsString);
         } else {
             artifactVersion.upgradeLeastSignificantNumber();
             result.append(artifactVersion.toString());
         }
         return result.toString();
     }
 
     private String getHotfixSnapshotVersion(String currentVersion) throws MojoFailureException {
         LOG.debug("getHotfixSnapshotVersion from '" + currentVersion + "'");
 
         final StringBuilder result = new StringBuilder(30);
 
         String hotfixVersion = getHotfixVersion(currentVersion);
         result.append(hotfixVersion);
 
         result.append(DEFAULT_VERSION_COMPONENT_SEPARATOR).append(SNAPSHOT_QUALIFIER);
 
         return result.toString();
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/InitMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/InitMojo.java
new file mode 100644
index 0000000..b924890
--- /dev/null
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/InitMojo.java
@@ -0,0 +1,33 @@
+/*
+ * Copyright 2014 Desmond Kirrane.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.dkirrane.maven.plugins.ggitflow;
+
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.plugin.MojoFailureException;
+import org.apache.maven.plugins.annotations.LifecyclePhase;
+import org.apache.maven.plugins.annotations.Mojo;
+
+/**
+ * Mojo to initialise Gitflow branches
+ */
+@Mojo(name = "init", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
+public class InitMojo extends AbstractGitflowMojo {
+
+    @Override
+    public void execute() throws MojoExecutionException, MojoFailureException {
+        super.execute();
+    }
+}
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index 3b961c5..25ca144 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -38,286 +38,295 @@ import com.google.common.collect.ImmutableList;
 /**
  * Merges a release branch back into the develop and master branch and then
  * creates a tag for the release on master.
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(ReleaseFinishMojo.class.getName());
 
+    /**
+     * If <code>true</code>, the release finish merge to develop & master and
+     * the created tag will get pushed to the remote repository
+     *
+     * @since 1.6
+     */
+    @Parameter(property = "pushReleaseFinish", defaultValue = "false", required = false)
+    protected boolean pushReleaseFinish;
+
     /**
      * If <code>true</code>, the release can still finish even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private Boolean allowSnapshots;
 
     /**
      * If the project has a parent with a release version it will be replaced
      * with the next <code>-SNAPSHOT</code> version (if it has been deployed).
      * This action is performed on the develop branch after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "updateParent", defaultValue = "false", required = false)
     private Boolean updateParent;
 
     /**
      * On the release branch before finish is called any dependencies with a
      * <code>-SNAPSHOT</code> version are replaced with the corresponding
      * release version (if it has been released).
      *
      * On the develop branch after the merge any dependencies with a release
      * version are replaced with the next <code>-SNAPSHOT</code> version (if it
      * has been deployed).
      *
      * @since 1.2
      */
     @Parameter(property = "updateDependencies", defaultValue = "false", required = false)
     private Boolean updateDependencies;
 
     /**
      * If <code>updateDependencies</code> is set, then this should contain a
      * comma separated list of artifact patterns to include. Follows the pattern <code>groupId:artifactId:type:classifier:version<code>
      *
      * @since 1.5
      */
     @Parameter(property = "includes", defaultValue = "", required = false)
     private String includes;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "true", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any calls to <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipDeploy", defaultValue = "true", required = false)
     private Boolean skipDeploy;
 
     /**
      * Skips any tests during <code>mvn install</code> and
      * <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipTests", defaultValue = "true", required = false)
     private Boolean skipTests;
 
     /**
      * Whether to use the release profile that adds sources and javadoc to the
      * released artifact, if appropriate. If set to true, the release-finish
      * will set the property "performRelease" to true, which activates the
      * profile "release-profile", which is inherited from the super pom.
      *
      * @since 1.2
      */
     @Parameter(property = "useReleaseProfile", defaultValue = "true", required = false)
     private Boolean useReleaseProfile;
 
     /**
      * Comma separated profiles to enable on deployment, in addition to active
      * profiles for project execution.
      *
      * @since 1.2
      */
     @Parameter(property = "releaseProfiles", defaultValue = "", required = false)
     private String releaseProfiles;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the branch will not be deleted after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keep;
 
     /**
      * If <code>true</code>, the release tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         LOG.debug("Finishing release");
 
         /* Get release branch name */
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
         if (releaseBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         } else if (releaseBranches.size() == 1) {
             releaseName = releaseBranches.get(0);
         } else {
             releaseName = promptForExistingReleaseName(releaseBranches, releaseName);
         }
 
         LOG.info("Finishing release '{}'", releaseName);
 
         /* Switch to develop branch and get its current version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         LOG.debug("develop version = " + developVersion);
 
         /* Switch to release branch and set poms to release version */
         getGitflowInit().executeLocal("git checkout " + releaseName);
         reloadReactorProjects();
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(project.getVersion());
         String releaseVersion;
         if ("SNAPSHOT".equals(artifactVersion.getBuildSpecifier())) {
             releaseVersion = getReleaseVersion(project.getVersion());
         } else {
             releaseVersion = project.getVersion();
         }
         LOG.debug("release version = " + releaseVersion);
 
         setVersion(releaseVersion);
 
         /* Update release branch dependencies to release version */
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions(false, updateParent, includes);
         }
 
         if (!allowSnapshots) {
             reloadReactorProjects();
             checkForSnapshotDependencies();
         }
 
         /* finish release */
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
-        gitflowRelease.setPush(pushReleases);
+        gitflowRelease.setPush(pushReleaseBranch);
         gitflowRelease.setSquash(squash);
         gitflowRelease.setKeep(keep);
         gitflowRelease.setSign(sign);
         gitflowRelease.setSigningkey(signingkey);
 
         /* 1. merge to master */
         try {
-            gitflowRelease.finishToMaster(releaseName);
+            gitflowRelease.finishToMaster(releaseName, pushReleaseFinish);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
 
         /* 2. make versions in release and develop branches match to avoid conflicts */
         getGitflowInit().executeLocal("git checkout " + releaseName);
         reloadReactorProjects();
         setVersion(developVersion);
 
         /* 3. merge to develop */
         try {
-            gitflowRelease.finishToDevelop(releaseName);
+            gitflowRelease.finishToDevelop(releaseName, pushReleaseFinish);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
         /* Update develop branch dependencies to next snapshot version (if deployed) */
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions(true, updateParent, includes);
         }
 
         /* Switch to release tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);
         reloadReactorProjects();
         String tagVersion = project.getVersion();
         LOG.debug("tag version = " + tagVersion);
 
         /* install or deploy */
         if (skipDeploy == false) {
             String goals = "clean deploy";
             if (project.getDistributionManagement() != null
                     && project.getDistributionManagement().getSite() != null) {
                 goals += " site-deploy";
             }
 
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             if (useReleaseProfile) {
                 additionalArgs.add("-DperformRelease=true");
             }
             if (StringUtils.isNotBlank(releaseProfiles)) {
                 Iterable<String> profiles = PROFILES_SPLITTER.split(releaseProfiles);
                 additionalArgs.add("-P " + PROFILES_JOINER.join(profiles));
             }
             runGoals(goals, additionalArgs.build());
         } else if (skipBuild == false) {
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             runGoals("clean install", additionalArgs.build());
         } else {
             LOG.debug("Skipping both install and deploy for release tag " + releaseName);
         }
 
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingReleaseName(List<String> releaseBranches, String defaultReleaseName) throws MojoFailureException {
         String message = "Please select a release branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, releaseBranches, defaultReleaseName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading release name from command line " + e.getMessage());
         }
 
         return name;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
index 9cef67c..9339300 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
@@ -31,163 +31,163 @@ import org.slf4j.LoggerFactory;
 /**
  * Creates a new release branch off of the develop branch.
  */
 @Mojo(name = "release-start", aggregator = true)
 public class ReleaseStartMojo extends AbstractReleaseMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(ReleaseStartMojo.class.getName());
 
     /**
      * Whether to run the plugin in interactive mode or not. The default is to
      * run without interaction when possible.
      *
      * @since 1.2
      */
     @Parameter(property = "interactive", defaultValue = "true", required = false)
     protected boolean interactive;
 
     /**
      * If the project has a parent with a <code>-SNAPSHOT</code> version it will
      * be replaced with the corresponding release version (if it has been
      * released). This action is performed on the release branch after it is
      * created.
      *
      * @since 1.2
      */
     @Parameter(property = "updateParent", defaultValue = "false", required = false)
     private boolean updateParent;
 
     /**
      * Any dependencies with a <code>-SNAPSHOT</code> version are replaced with
      * the corresponding release version (if it has been released). This action
      * is performed on the release branch after it is created.
      *
      * @since 1.2
      */
     @Parameter(property = "updateDependencies", defaultValue = "false", required = false)
     private boolean updateDependencies;
 
     /**
      * If <code>updateDependencies</code> is set, then this should contain a
      * comma separated list of artifact patterns to include. Follows the pattern <code>groupId:artifactId:type:classifier:version<code>
      *
      * @since 1.5
      */
     @Parameter(property = "includes", defaultValue = "", required = false)
     private String includes;
 
     /**
      * The commit to start the release branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     private String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         /* Switch to develop branch and get its current version */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
         reloadReactorProjects();
 
         String developVersion = project.getVersion();
         LOG.info("Current develop version = " + developVersion);
 
         /* Get next development version */
         String nextDevelopVersion = getNextDevelopVersion(developVersion);
         if (interactive) {
             String message = "What is the next development version? ";
             try {
                 nextDevelopVersion = prompter.prompt(message, nextDevelopVersion);
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading next development version from command line " + ex.getMessage(), ex);
             }
         }
         LOG.debug("Next development version = " + developVersion);
 
         /* Get suggested release version */
         String releaseVersion = getReleaseVersion(developVersion);
         LOG.debug("release version = " + releaseVersion);
 
         /* create release branch */
         String prefix = getReleaseBranchPrefix();
         if (!StringUtils.isBlank(releaseName)) {
             LOG.debug("Using releaseName passed  '" + releaseName + "'");
         } else if (interactive) {
             String message = "What is the release branch name? " + prefix;
             try {
                 releaseName = prompter.prompt(message, releaseVersion);
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading release name from command line " + ex.getMessage(), ex);
             }
         } else {
             releaseName = releaseVersion;
         }
 
         if (StringUtils.isBlank(releaseName)) {
             throw new MojoFailureException("Parameter <releaseName> cannot be null or empty.");
         }
 
         GenericArtifactVersion releaseArtifactVersion;
         try {
             releaseArtifactVersion = new GenericArtifactVersion(releaseName);
             if (SNAPSHOT_QUALIFIER.equals(releaseArtifactVersion.getBuildSpecifier())) {
                 throw new IllegalArgumentException("Parameter <releaseName> is not a release version as it contains SNAPSHOT build specifier");
             }
         } catch (IllegalArgumentException e) {
             throw new MojoExecutionException("Parameter <releaseName> value '" + releaseName + "' is not a valid Maven release version.");
         }
 
         LOG.info("Starting release '" + releaseName + "'");
         LOG.debug("msgPrefix '" + getMsgPrefix() + "'");
         LOG.debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
-        gitflowRelease.setPush(pushReleases);
+        gitflowRelease.setPush(pushReleaseBranch);
         gitflowRelease.setStartCommit(startCommit);
 
         try {
             gitflowRelease.start(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         // current branch should be the release branch
         String releaseBranch = getGitflowInit().gitCurrentBranch();
         if (!releaseBranch.startsWith(prefix)) {
             throw new MojoFailureException("Failed to create release version.");
         }
 
         /* Update release branch dependencies to release version */
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions(false, updateParent, includes);
         }
 
         // checkout develop branch and update it's version
         String developBranch = (String) getGitflowInit().getDevelopBrnName();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         setVersion(nextDevelopVersion);
 
         // checkout release branch again and update it's version to required release version
         getGitflowInit().executeLocal("git checkout " + releaseBranch);
         reloadReactorProjects();
         setVersion(releaseArtifactVersion.setBuildSpecifier(SNAPSHOT_QUALIFIER).toString());
     }
 
     public String getReleaseName() {
         return releaseName;
     }
 
     private String getNextDevelopVersion(String developVersion) {
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(developVersion);
         artifactVersion.upgradeLeastSignificantPrimaryNumber();
 
         return artifactVersion.toString();
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
index 2640fbb..bcb31a8 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
@@ -32,126 +32,126 @@ import org.slf4j.LoggerFactory;
 /**
  * Creates a new support branch from a specific commit on the master branch.
  */
 @Mojo(name = "support-start", aggregator = true)
 public class SupportStartMojo extends AbstractGitflowMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(SupportStartMojo.class.getName());
 
     /**
      * If <code>true</code>, the support branch is pushed to the remote
      * repository.
      *
      * @since 1.2
      */
-    @Parameter(property = "pushSupport", defaultValue = "false", required = false)
-    protected boolean pushSupport;
+    @Parameter(property = "pushSupportBranch", defaultValue = "false", required = false)
+    protected boolean pushSupportBranch;
 
     /**
      * The commit to start the support branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     protected String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         String prefix = getGitflowInit().getSupportBranchPrefix();
 
         List<String> tags = getGitflowInit().gitAllTags();
         if (tags.isEmpty()) {
             throw new MojoFailureException("Could not find any tags to create support branch from!");
         }
 
         String baseName = promptForExistingTagName(tags, tags.get(tags.size() - 1));
 
         getGitflowInit().executeLocal("git checkout " + baseName);
         reloadReactorProjects();
         String supportVersion = getSupportVersion(project.getVersion());
         String supportSnapshotVersion = getSupportSnapshotVersion(project.getVersion());
 
         LOG.info("Starting support branch '" + supportVersion + "'");
         LOG.debug("msgPrefix '" + getMsgPrefix() + "'");
         LOG.debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowSupport gitflowSupport = new GitflowSupport();
         gitflowSupport.setInit(getGitflowInit());
         gitflowSupport.setMsgPrefix(getMsgPrefix());
         gitflowSupport.setMsgSuffix(getMsgSuffix());
-        gitflowSupport.setPush(pushSupport);
+        gitflowSupport.setPush(pushSupportBranch);
         gitflowSupport.setStartCommit(startCommit);
 
         try {
             gitflowSupport.start(supportVersion);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         setVersion(supportSnapshotVersion);
 
         if (getGitflowInit().gitRemoteBranchExists(prefix + supportVersion)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + supportVersion);
         }
     }
 
     private String promptForExistingTagName(List<String> branches, String defaultBrnName) throws MojoFailureException {
         String message = "Create a support branch from tag:";
 
         String name = "";
         try {
             name = prompter.prompt(message, branches, defaultBrnName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading selected Tag name from command line " + e.getMessage());
         }
 
         return name;
     }
 
     private String getSupportVersion(String currentVersion) throws MojoFailureException {
         LOG.debug("getSupportVersion from '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         StringBuilder sb = new StringBuilder(10);
         int pCount = artifactVersion.getPrimaryNumberCount();
         if (pCount < 3) {
             // Support versions should be like 1.0.x e.g. 1.0.1, 1.0.2 etc
             sb.append(artifactVersion.getPrimaryNumbersAsString()).append('.').append('x');
             sb.append(artifactVersion.getAnnotationAsString()).append(artifactVersion.getBuildSpecifierAsString());
         } else {
             // Support versions should be like 1.0.0-xx e.g. 1.0.0-01, 1.0.0-02 etc
             if (null != artifactVersion.getAnnotation()) {
                 throw new MojoFailureException("Cannot start Support branch. Primary number " + artifactVersion.getPrimaryNumbersAsString() + " and annotations are already set " + artifactVersion.getAnnotation());
             }
             sb.append(artifactVersion.getPrimaryNumbersAsString()).append('-').append("xx");
         }
 
         return sb.toString();
     }
 
     private String getSupportSnapshotVersion(String currentVersion) throws MojoFailureException {
         LOG.debug("getSupportSnapshotVersion from '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         StringBuilder sb = new StringBuilder(10);
         int pCount = artifactVersion.getPrimaryNumberCount();
         if (pCount < 3) {
             // Support versions should be like 1.0.x e.g. 1.0.1, 1.0.2 etc
             sb.append(artifactVersion.getPrimaryNumbersAsString()).append('.').append('1');
             sb.append(artifactVersion.getAnnotationAsString());
         } else {
             // Support versions should be like 1.0.0-xx e.g. 1.0.0-01, 1.0.0-02 etc
             if (null != artifactVersion.getAnnotation()) {
                 throw new MojoFailureException("Cannot start Support branch. Primary number " + artifactVersion.getPrimaryNumbersAsString() + " and annotations are already set " + artifactVersion.getAnnotation());
             }
             sb.append(artifactVersion.getPrimaryNumbersAsString()).append('-').append("01");
         }
 
         sb.append(DEFAULT_VERSION_COMPONENT_SEPARATOR).append(SNAPSHOT_QUALIFIER);
 
         return sb.toString();
     }
 }
diff --git a/nbactions.xml b/nbactions.xml
index 4975122..de01342 100644
--- a/nbactions.xml
+++ b/nbactions.xml
@@ -1,31 +1,32 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <actions>
     <action>
         <actionName>CUSTOM-versions:set</actionName>
         <displayName>versions:set</displayName>
         <goals>
             <goal>versions:set</goal>
         </goals>
         <properties>
             <generateBackupPoms>false</generateBackupPoms>
         </properties>
     </action>
     <action>
         <actionName>CUSTOM-site</actionName>
         <displayName>site</displayName>
         <goals>
             <goal>site</goal>
         </goals>
     </action>
     <action>
             <actionName>CUSTOM-clean deploy</actionName>
             <displayName>clean deploy</displayName>
             <goals>
                 <goal>clean</goal>
                 <goal>deploy</goal>
             </goals>
             <properties>
+                <deployAtEnd>true</deployAtEnd>
                 <skipTests>true</skipTests>
             </properties>
         </action>
 </actions>

commit 01e40d7370c931167b38b9713b05e2a925babe1e
Author: dkirrane <dkirrane@avaya.com>
Date:   Wed May 18 13:52:18 2016 +0100

    include readme

diff --git a/ggitflow-maven-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml b/ggitflow-maven-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
index 271798a..725e3c9 100644
--- a/ggitflow-maven-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
+++ b/ggitflow-maven-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
@@ -1,54 +1,55 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <archetype-descriptor xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0 http://maven.apache.org/xsd/archetype-descriptor-1.0.0.xsd" name="my-app"
                       xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0"
                       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
     <fileSets>
         <fileSet filtered="true" encoding="UTF-8">
             <directory></directory>
             <includes>
                 <include>nbactions.xml</include>
             </includes>
         </fileSet>
         <fileSet encoding="UTF-8">
             <directory></directory>
             <includes>
                 <include>.gitignore</include>
                 <include>*.sh</include>
+                <include>README.*</include>
             </includes>
         </fileSet>
     </fileSets>
     <modules>
         <module id="${rootArtifactId}-module1" dir="__rootArtifactId__-module1" name="${rootArtifactId}-module1">
             <fileSets>
                 <fileSet filtered="true" packaged="true" encoding="UTF-8">
                     <directory>src/main/java</directory>
                     <includes>
                         <include>**/*.java</include>
                     </includes>
                 </fileSet>
                 <fileSet filtered="true" packaged="true" encoding="UTF-8">
                     <directory>src/test/java</directory>
                     <includes>
                         <include>**/*.java</include>
                     </includes>
                 </fileSet>
             </fileSets>
         </module>
         <module id="${rootArtifactId}-module2" dir="__rootArtifactId__-module2" name="${rootArtifactId}-module2">
             <fileSets>
                 <fileSet filtered="true" packaged="true" encoding="UTF-8">
                     <directory>src/main/java</directory>
                     <includes>
                         <include>**/*.java</include>
                     </includes>
                 </fileSet>
                 <fileSet filtered="true" packaged="true" encoding="UTF-8">
                     <directory>src/test/java</directory>
                     <includes>
                         <include>**/*.java</include>
                     </includes>
                 </fileSet>
             </fileSets>
         </module>
     </modules>
 </archetype-descriptor>

commit 5251337d614b562d6dca4f4940ee8e7f9fad1ce8
Author: dkirrane <dkirrane@avaya.com>
Date:   Wed May 18 13:51:01 2016 +0100

    readme

diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/README.md b/ggitflow-maven-archetype/src/main/resources/archetype-resources/README.md
new file mode 100644
index 0000000..19b259d
--- /dev/null
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/README.md
@@ -0,0 +1,24 @@
+# Setup
+# Add the following to your Maven settings.xml
+
+<pluginGroups>
+   <pluginGroup>com.dkirrane.maven.plugins</pluginGroup>
+</pluginGroups>
+
+# Initialise Git repo
+git init . && git add . && git commit --allow-empty -m "Initial commit"
+
+# Feature
+mvn ggitflow:feature-start
+mvn ggitflow:feature-finish
+
+# Release
+mvn ggitflow:release-start
+mvn ggitflow:release-finish
+
+# Hotfix
+mvn ggitflow:hotfix-start
+mvn ggitflow:hotfix-finish
+
+# Support
+mvn ggitflow:support-start

commit b4852f8bf2de5c8d4d7611d3b39270044dd7fa20
Author: dkirrane <dkirrane@avaya.com>
Date:   Wed May 18 13:49:01 2016 +0100

    fixes

diff --git a/ggitflow-maven-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml b/ggitflow-maven-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
index 2c01222..271798a 100644
--- a/ggitflow-maven-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
+++ b/ggitflow-maven-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
@@ -1,54 +1,54 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <archetype-descriptor xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0 http://maven.apache.org/xsd/archetype-descriptor-1.0.0.xsd" name="my-app"
                       xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0"
                       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
     <fileSets>
         <fileSet filtered="true" encoding="UTF-8">
             <directory></directory>
             <includes>
                 <include>nbactions.xml</include>
             </includes>
         </fileSet>
         <fileSet encoding="UTF-8">
             <directory></directory>
             <includes>
                 <include>.gitignore</include>
-                <include>unset-gitlfow-config.sh</include>
+                <include>*.sh</include>
             </includes>
         </fileSet>
     </fileSets>
     <modules>
         <module id="${rootArtifactId}-module1" dir="__rootArtifactId__-module1" name="${rootArtifactId}-module1">
             <fileSets>
                 <fileSet filtered="true" packaged="true" encoding="UTF-8">
                     <directory>src/main/java</directory>
                     <includes>
                         <include>**/*.java</include>
                     </includes>
                 </fileSet>
                 <fileSet filtered="true" packaged="true" encoding="UTF-8">
                     <directory>src/test/java</directory>
                     <includes>
                         <include>**/*.java</include>
                     </includes>
                 </fileSet>
             </fileSets>
         </module>
         <module id="${rootArtifactId}-module2" dir="__rootArtifactId__-module2" name="${rootArtifactId}-module2">
             <fileSets>
                 <fileSet filtered="true" packaged="true" encoding="UTF-8">
                     <directory>src/main/java</directory>
                     <includes>
                         <include>**/*.java</include>
                     </includes>
                 </fileSet>
                 <fileSet filtered="true" packaged="true" encoding="UTF-8">
                     <directory>src/test/java</directory>
                     <includes>
                         <include>**/*.java</include>
                     </includes>
                 </fileSet>
             </fileSets>
         </module>
     </modules>
 </archetype-descriptor>
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/nbactions.xml b/ggitflow-maven-archetype/src/main/resources/archetype-resources/nbactions.xml
index 9953350..038ce5e 100644
--- a/ggitflow-maven-archetype/src/main/resources/archetype-resources/nbactions.xml
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/nbactions.xml
@@ -1,55 +1,52 @@
-#set( $symbol_pound = '#' )
-#set( $symbol_dollar = '$' )
-#set( $symbol_escape = '\' )
 <?xml version="1.0" encoding="UTF-8"?>
 <actions>
     <action>
         <actionName>CUSTOM-ggitflow:feature-start</actionName>
         <displayName>ggitflow:feature-start</displayName>
         <goals>
             <goal>ggitflow:feature-start</goal>
         </goals>
     </action>
     <action>
         <actionName>CUSTOM-ggitflow:feature-finish</actionName>
         <displayName>ggitflow:feature-finish</displayName>
         <goals>
             <goal>ggitflow:feature-finish</goal>
         </goals>
     </action>
     <action>
         <actionName>CUSTOM-ggitflow:release-start</actionName>
         <displayName>ggitflow:release-start</displayName>
         <goals>
             <goal>ggitflow:release-start</goal>
         </goals>
     </action>
     <action>
         <actionName>CUSTOM-ggitflow:release-finish</actionName>
         <displayName>ggitflow:release-finish</displayName>
         <goals>
             <goal>ggitflow:release-finish</goal>
         </goals>
     </action>
     <action>
         <actionName>CUSTOM-ggitflow:hotfix-start</actionName>
         <displayName>ggitflow:hotfix-start</displayName>
         <goals>
             <goal>ggitflow:hotfix-start</goal>
         </goals>
     </action>
     <action>
         <actionName>CUSTOM-ggitflow:hotfix-finish</actionName>
         <displayName>ggitflow:hotfix-finish</displayName>
         <goals>
             <goal>ggitflow:hotfix-finish</goal>
         </goals>
     </action>
     <action>
         <actionName>CUSTOM-ggitflow:support-start</actionName>
         <displayName>ggitflow:support-start</displayName>
         <goals>
             <goal>ggitflow:support-start</goal>
         </goals>
     </action>
 </actions>

commit 8d1f9259626ea4f4b36dc742f9bac0e4cfc66be8
Author: dkirrane <dkirrane@avaya.com>
Date:   Wed May 18 13:46:50 2016 +0100

    README FIX

diff --git a/ggitflow-maven-archetype/README.md b/ggitflow-maven-archetype/README.md
index ffda822..2bc1349 100644
--- a/ggitflow-maven-archetype/README.md
+++ b/ggitflow-maven-archetype/README.md
@@ -5,7 +5,40 @@ with ggitflow-maven-plugin configured:
 
+##############################
+# Using Released version
+##############################
+
+# Interactive mode
 mvn archetype:generate \
     -DinteractiveMode=true \
     -DarchetypeGroupId=com.dkirrane.maven.archetype \
     -DarchetypeArtifactId=ggitflow-maven-archetype \
-    -DarchetypeVersion=1.0-SNAPSHOT \
-    -DarchetypeRepository=https://oss.sonatype.org/content/repositories/snapshots
\ No newline at end of file
+    -DarchetypeVersion=1.6-SNAPSHOT \
+    -DarchetypeRepository=https://oss.sonatype.org/content/repositories/snapshots
+
+
+# Batch mode
+mvn archetype:generate \
+    -DinteractiveMode=false \
+    -DarchetypeGroupId=com.dkirrane.maven.archetype \
+    -DarchetypeArtifactId=ggitflow-maven-archetype \
+    -DarchetypeVersion=1.6-SNAPSHOT \
+    -DarchetypeRepository=https://oss.sonatype.org/content/repositories/snapshots \
+    -DgroupId=com.mycompany -DartifactId=my-proj -Dversion=1.0-SNAPSHOT
+
+
+########################################
+# Using Staged version for verification
+########################################
+#   1. Deploy to stage https://oss.sonatype.org/index.html#stagingRepositories
+#   2. Close stage to make it available in the Staging repo
+#   3. Run below command & test
+#   4. If happy Release otherwise Drop and redeploy to test fixes
+
+rm -Rf C:\.m2\com\dkirrane
+mvn -U archetype:generate \
+    -DinteractiveMode=false \
+    -DarchetypeGroupId=com.dkirrane.maven.archetype \
+    -DarchetypeArtifactId=ggitflow-maven-archetype \
+    -DarchetypeVersion=1.6 \
+    -DarchetypeRepository=https://oss.sonatype.org/content/groups/staging \
+    -DgroupId=com.mycompany -DartifactId=my-proj -Dversion=1.0-SNAPSHOT
\ No newline at end of file

commit 922e6bfb5fd283dfb861fb480f08e7f3451c2071
Author: dkirrane <dkirrane@avaya.com>
Date:   Wed May 18 13:40:33 2016 +0100

    test

diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/clear-git-history.sh b/ggitflow-maven-archetype/src/main/resources/archetype-resources/clear-git-history.sh
index 8af26f3..e6fca87 100644
--- a/ggitflow-maven-archetype/src/main/resources/archetype-resources/clear-git-history.sh
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/clear-git-history.sh
@@ -55,5 +55,5 @@ rm -rf .git
 git init
-git add .
-git commit -m "Initial commit. pom version 1.0-SNAPSHOT"
+git add --all
+git commit -am "Initial commit. pom version 1.0-SNAPSHOT"
 
 # git remote add origin https://github.com/dkirrane/ggitflow-test1.git

commit a938d06bd34a103af158388d3199671ed9d322ec
Author: dkirrane <dkirrane@avaya.com>
Date:   Wed May 18 13:37:57 2016 +0100

    fix

diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/clear-git-history.sh b/ggitflow-maven-archetype/src/main/resources/archetype-resources/clear-git-history.sh
index f1a3caf..8af26f3 100644
--- a/ggitflow-maven-archetype/src/main/resources/archetype-resources/clear-git-history.sh
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/clear-git-history.sh
@@ -2,13 +2,14 @@
 
-SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+PROJ_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
 
-BASE_DIR=$( git rev-parse --show-toplevel )
-cd $BASE_DIR
- 
-$SCRIPT_DIR/clear-gitflow-config.sh
+$PROJ_DIR/clear-gitflow-config.sh
+
+
+GIT_BASE_DIR=$( git rev-parse --show-toplevel )
+cd $GIT_BASE_DIR
 
 ##
 # Removes all Git history 
 # Reconstructs the repo with only the current content 
 # Pushes to origin
 ##
@@ -48,4 +49,6 @@ git fetch --all --prune
 
+cd $PROJ_DIR
 mvn versions:set -DgenerateBackupPoms=false -DnewVersion=1.0-SNAPSHOT
 
+cd $GIT_BASE_DIR
 rm -rf .git

commit 435cad7f04cff56fb9fe41a649c0ebbfa5ec9f71
Author: dkirrane <dkirrane@avaya.com>
Date:   Wed May 18 13:34:56 2016 +0100

    fix scripts

diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/clear-git-history.sh b/ggitflow-maven-archetype/src/main/resources/archetype-resources/clear-git-history.sh
index d5602bc..f1a3caf 100644
--- a/ggitflow-maven-archetype/src/main/resources/archetype-resources/clear-git-history.sh
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/clear-git-history.sh
@@ -1,9 +1,14 @@
 #!/bin/sh
+
+SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+
+BASE_DIR=$( git rev-parse --show-toplevel )
+cd $BASE_DIR
  
-sh ./clear-gitflow-config.sh
+$SCRIPT_DIR/clear-gitflow-config.sh
 
 ##
 # Removes all Git history 
 # Reconstructs the repo with only the current content 
 # Pushes to origin
 ##
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/clear-gitlfow-config.sh b/ggitflow-maven-archetype/src/main/resources/archetype-resources/clear-gitflow-config.sh
similarity index 100%
rename from ggitflow-maven-archetype/src/main/resources/archetype-resources/clear-gitlfow-config.sh
rename to ggitflow-maven-archetype/src/main/resources/archetype-resources/clear-gitflow-config.sh

commit dfb328396c0b4bb3a34c8826519b8c59995586b9
Author: dkirrane <dkirrane@avaya.com>
Date:   Wed May 18 13:24:00 2016 +0100

    test scripts

diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/clear-git-history.sh b/ggitflow-maven-archetype/src/main/resources/archetype-resources/clear-git-history.sh
new file mode 100644
index 0000000..d5602bc
--- /dev/null
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/clear-git-history.sh
@@ -0,0 +1,55 @@
+#!/bin/sh
+ 
+sh ./clear-gitflow-config.sh
+
+##
+# Removes all Git history 
+# Reconstructs the repo with only the current content 
+# Pushes to origin
+##
+
+git checkout develop
+
+git fetch --all
+
+ORIGIN=$(git config --get remote.origin.url)
+echo "Origin URL '$ORIGIN'"
+
+##
+# Delete remote tags
+##
+TAGS=(`git ls-remote --tags --refs --quiet | sed -e 's|.*refs/tags/||g'`)
+echo "Remote Tags '$TAGS'"
+for i in "${TAGS[@]}"
+do
+   echo "Deleting Tag '$i'" 
+   git push --delete origin $i -f
+done
+
+git fetch --all --prune
+
+##
+# Delete remote branches
+##
+REMOTE_BRNS=(`git ls-remote --heads --refs --quiet | sed -e 's|.*refs/heads/||g'`)
+echo "Remote Branches '${REMOTE_BRNS}'"
+for i in "${REMOTE_BRNS[@]}"
+do
+   echo "Deleting '$i'" 
+   git push --delete origin $i -f
+done
+
+git fetch --all --prune
+
+mvn versions:set -DgenerateBackupPoms=false -DnewVersion=1.0-SNAPSHOT
+
+rm -rf .git
+git init
+git add .
+git commit -m "Initial commit. pom version 1.0-SNAPSHOT"
+
+# git remote add origin https://github.com/dkirrane/ggitflow-test1.git
+git remote add origin $ORIGIN
+git push origin master --force
+
+git fetch --all
\ No newline at end of file
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/unset-gitlfow-config.sh b/ggitflow-maven-archetype/src/main/resources/archetype-resources/clear-gitlfow-config.sh
similarity index 100%
rename from ggitflow-maven-archetype/src/main/resources/archetype-resources/unset-gitlfow-config.sh
rename to ggitflow-maven-archetype/src/main/resources/archetype-resources/clear-gitlfow-config.sh
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/create.sh b/ggitflow-maven-archetype/src/main/resources/archetype-resources/create.sh
new file mode 100644
index 0000000..18dc609
--- /dev/null
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/create.sh
@@ -0,0 +1,35 @@
+#!/bin/sh
+##
+# Removes all Git history 
+# Reconstructs the repo with only the current content 
+# Pushes to origin
+##
+# Major.Minor.ServicePack.Patch.SprintNumber-SNAPSHOT
+# 3.0.0.0-SNAPSHOT
+
+# Feature
+mvn ggitflow:feature-start -DfeatureName=JIRA-1-Feature
+git commit --allow-empty -m "JIRA-xxx feature commit"
+git commit --allow-empty -m "JIRA-xxx feature commit"
+mvn ggitflow:feature-finish -DfeatureName=feature/JIRA-1-Feature
+
+# Feature
+mvn ggitflow:feature-start -DfeatureName=JIRA-2-Feature
+git commit --allow-empty -m "JIRA-xxx feature commit"
+git commit --allow-empty -m "JIRA-xxx feature commit"
+mvn ggitflow:feature-finish -DfeatureName=feature/JIRA-2-Feature
+
+# Release
+mvn ggitflow:release-start
+git commit --allow-empty -m "JIRA-xxx release fix commit"
+git commit --allow-empty -m "JIRA-xxx release fix commit"
+mvn ggitflow:release-finish
+
+# Hotfix/Patch 3.0.0.0 - Hotfix/Patch version = 3.0.0.1-SNAPSHOT
+mvn ggitflow:hotfix-start
+git commit --allow-empty -m "JIRA-xxx hotfix commit"
+git commit --allow-empty -m "JIRA-xxx hotfix commit"
+mvn ggitflow:hotfix-finish
+
+# Support/ServicePack 3.0.0.0 - Support/ServicePack version = 3.0.1.0-SNAPSHOT
+mvn ggitflow:support-start
\ No newline at end of file

commit 86a9738005eeb9c572d0bcc0a90bbaca9a33ce5d
Author: dkirrane <dkirrane@avaya.com>
Date:   Wed May 18 13:11:22 2016 +0100

    ARCHTYPE FIX

diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/pom.xml b/ggitflow-maven-archetype/src/main/resources/archetype-resources/pom.xml
index 8034959..47816c1 100644
--- a/ggitflow-maven-archetype/src/main/resources/archetype-resources/pom.xml
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/pom.xml
@@ -1,46 +1,31 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>${groupId}</groupId>
     <artifactId>${artifactId}</artifactId>
     <version>${version}</version>
     <packaging>pom</packaging>
     <name>${artifactId}</name>
-    
+
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     </properties>
 
     <build>
         <plugins>
             <plugin>
                 <groupId>com.dkirrane.maven.plugins</groupId>
                 <artifactId>ggitflow-maven-plugin</artifactId>
-                <version>${version}</version>
-                <configuration>
-                    <prefixes>
-                        <masterBranch>master</masterBranch>
-                        <developBranch>development</developBranch>
-                        <featureBranchPrefix>feature/</featureBranchPrefix>
-                        <releaseBranchPrefix>release/</releaseBranchPrefix>
-                        <hotfixBranchPrefix>hotfix/</hotfixBranchPrefix>
-                        <supportBranchPrefix>support/</supportBranchPrefix>
-                        <versionTagPrefix>v-</versionTagPrefix>
-                    </prefixes>
-                </configuration>
+                <version>1.6-SNAPSHOT</version>
             </plugin>
         </plugins>
     </build>
 
     <pluginRepositories>
         <pluginRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
-            <releases>
-            </releases>
-            <snapshots>
-            </snapshots>
         </pluginRepository>
     </pluginRepositories>
 </project>

commit 18dc446576151c8e019b62a71627f838084c16d6
Author: dkirrane <dkirrane@avaya.com>
Date:   Wed May 18 12:51:33 2016 +0100

    skip build deploy and test by default

diff --git a/ggitflow-maven-archetype/pom.xml b/ggitflow-maven-archetype/pom.xml
index 33206dc..027fba9 100644
--- a/ggitflow-maven-archetype/pom.xml
+++ b/ggitflow-maven-archetype/pom.xml
@@ -1,45 +1,45 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
-        <version>1.5-SNAPSHOT</version>
+        <version>1.6-SNAPSHOT</version>
     </parent>
 
     <groupId>com.dkirrane.maven.archetype</groupId>
     <artifactId>ggitflow-maven-archetype</artifactId>
-    <version>1.5-SNAPSHOT</version>
+    <version>1.6-SNAPSHOT</version>
     <packaging>maven-archetype</packaging>
     <name>ggitflow-maven-archetype</name>
 
     <build>
         <extensions>
             <extension>
                 <groupId>org.apache.maven.archetype</groupId>
                 <artifactId>archetype-packaging</artifactId>
                 <version>2.2</version>
             </extension>
         </extensions>
 
         <pluginManagement>
             <plugins>
                 <plugin>
                     <artifactId>maven-archetype-plugin</artifactId>
                     <version>2.2</version>
                 </plugin>
             </plugins>
         </pluginManagement>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <skip>true</skip>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index d9f1df4..60479ab 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,169 +1,169 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
-        <version>1.5-SNAPSHOT</version>
+        <version>1.6-SNAPSHOT</version>
     </parent>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
-    <version>1.5-SNAPSHOT</version>
+    <version>1.6-SNAPSHOT</version>
     <packaging>maven-plugin</packaging>
     <name>ggitflow-maven-plugin</name>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
-            <version>1.3-SNAPSHOT</version>
+            <version>2.0</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
         <dependency>
             <groupId>jline</groupId>
             <artifactId>jline</artifactId>
             <version>2.11</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>com.jcabi</groupId>
             <artifactId>jcabi-maven-slf4j</artifactId>
             <version>0.8</version>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>3.2</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>3.0.8</version>
         </dependency>
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-interactivity-api</artifactId>
             <version>1.0-alpha-5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>2.4</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-project</artifactId>
             <version>2.2.1</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-clean-plugin</artifactId>
             <version>2.5</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-install-plugin</artifactId>
             <version>2.5.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-deploy-plugin</artifactId>
             <version>2.8.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-artifact</artifactId>
             <version>2.2.1</version>
         </dependency>
         <dependency>
             <groupId>com.google.guava</groupId>
             <artifactId>guava</artifactId>
             <version>16.0.1</version>
         </dependency>
     </dependencies>
 
     <build>
         <resources>
             <resource>
                 <directory>src/it</directory>
                 <includes>
                     <include>**/**</include>
                 </includes>
             </resource>
         </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>3.2</version>
                 <configuration>
                     <goalPrefix>ggitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>com.github.github</groupId>
                 <artifactId>site-maven-plugin</artifactId>
                 <version>0.9</version>
                 <configuration>
                     <message>Creating site for ${project.version}</message>
                     <server>github</server>
                     <merge>true</merge>
                 </configuration>
                 <executions>
                     <execution>
                         <goals>
                             <goal>site</goal>
                         </goals>
                         <phase>site</phase>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <reportPlugins>
                         <plugin>
                             <groupId>org.apache.maven.plugins</groupId>
                             <artifactId>maven-plugin-plugin</artifactId>
                             <version>3.2</version>
                         </plugin>
                     </reportPlugins>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
index d1a53c5..d5c46d8 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
@@ -32,147 +32,147 @@ import org.slf4j.LoggerFactory;
 /**
  * Merges a feature branch back into the develop.
  */
 @Mojo(name = "feature-finish", aggregator = true)
 public class FeatureFinishMojo extends AbstractFeatureMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(FeatureFinishMojo.class.getName());
 
     /**
      * If <code>true</code>, the feature branch will be rebased onto develop,
      * then finish will fast-forward merge the feature branch back onto develop.
      *
      * @since 1.2
      */
     @Parameter(property = "isRebase", defaultValue = "false", required = false)
     private boolean isRebase;
 
 //    No good way to handle Interactive rebase from a Maven plugin
 //    /**
 //     * If <code>true</code>, and <code>isRebase</code> is true, then an interactive rebase is
 //     * performed for the feature branch.
 //     *
 //     * @since 1.2
 //     */
 //    @Parameter(property = "isInteractive", defaultValue = "false", required = false)
     private final boolean isInteractive = false;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
-    @Parameter(property = "skipBuild", defaultValue = "false", required = false)
+    @Parameter(property = "skipBuild", defaultValue = "true", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any tests during <code>mvn install</code>
      *
      * @since 1.2
      */
-    @Parameter(property = "skipTests", defaultValue = "false", required = false)
+    @Parameter(property = "skipTests", defaultValue = "true", required = false)
     private Boolean skipTests;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the branch will not be deleted after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keep;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         LOG.debug("Finishing feature");
 
         List<String> featureBranches = getGitflowInit().gitLocalFeatureBranches();
 
         if (null == featureBranches || featureBranches.isEmpty()) {
             throw new MojoFailureException("No local feature branches exit!");
         }
 
         String featureBranchPrefix = getFeatureBranchPrefix();
         if (StringUtils.isBlank(featureName)) {
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (currentBranch.startsWith(featureBranchPrefix)) {
                 featureName = currentBranch;
             } else {
                 featureName = featureBranches.get(0);
             }
         } else {
             featureName = getFeatureName(featureName);
         }
 
         featureName = promptForExistingFeatureName(featureBranches, featureName);
 
         LOG.info("Finishing feature '{}'", featureName);
 
         if (enableFeatureVersions) {
             /* Switch to develop branch and get its current version */
             getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
             reloadReactorProjects();
             String developVersion = project.getVersion();
             LOG.debug("develop version = " + developVersion);
 
             /* Switch to feature branch and get its current version */
             getGitflowInit().executeLocal("git checkout " + featureName);
             reloadReactorProjects();
             String featureVersion = project.getVersion();
             LOG.debug("feature version = " + featureVersion);
 
             setVersion(developVersion);
         }
 
         if (skipBuild == false) {
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_INSTALL_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             runGoals("clean install", additionalArgs.build());
         } else {
             LOG.debug("Skipping mvn install for feature " + featureName);
         }
 
         GitflowFeature gitflowFeature = new GitflowFeature();
         gitflowFeature.setInit(getGitflowInit());
         gitflowFeature.setMsgPrefix(getMsgPrefix());
         gitflowFeature.setMsgSuffix(getMsgSuffix());
         gitflowFeature.setPush(pushFeatures);
         gitflowFeature.setSquash(squash);
         gitflowFeature.setKeep(keep);
         gitflowFeature.setIsRebase(isRebase);
         gitflowFeature.setIsInteractive(isInteractive);
 
         try {
             gitflowFeature.finish(featureName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
     }
 
     private String promptForExistingFeatureName(List<String> featureBranches, String defaultFeatureName) throws MojoFailureException {
         String message = "Please select a feature branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, featureBranches, defaultFeatureName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading feature name from command line " + e.getMessage());
         }
 
         return name.trim();
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
index 5212e56..fb81d29 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
@@ -33,239 +33,239 @@ import org.slf4j.LoggerFactory;
 /**
  * Merges a hotfix branch back into the develop and master branch and then
  * creates a tag for the hotfix on master.
  */
 @Mojo(name = "hotfix-finish", aggregator = true)
 public class HotfixFinishMojo extends AbstractHotfixMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(HotfixFinishMojo.class.getName());
 
     protected String hotfixName;
 
     /**
      * If <code>true</code>, the hotfix can still finish even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private boolean allowSnapshots;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
-    @Parameter(property = "skipBuild", defaultValue = "false", required = false)
+    @Parameter(property = "skipBuild", defaultValue = "true", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any calls to <code>mvn deploy</code>
      *
      * @since 1.2
      */
-    @Parameter(property = "skipDeploy", defaultValue = "false", required = false)
+    @Parameter(property = "skipDeploy", defaultValue = "true", required = false)
     private Boolean skipDeploy;
 
     /**
      * Skips any tests during <code>mvn install</code> and
      * <code>mvn deploy</code>
      *
      * @since 1.2
      */
-    @Parameter(property = "skipTests", defaultValue = "false", required = false)
+    @Parameter(property = "skipTests", defaultValue = "true", required = false)
     private Boolean skipTests;
 
     /**
      * Whether to use the release profile that adds sources and javadoc to the
      * released artifact, if appropriate. If set to true, the hotfix-finish will
      * set the property "performRelease" to true, which activates the profile
      * "release-profile", which is inherited from the super pom.
      *
      * @since 1.2
      */
     @Parameter(property = "useReleaseProfile", defaultValue = "true", required = false)
     private Boolean useReleaseProfile;
 
     /**
      * Comma separated profiles to enable on deployment, in addition to active
      * profiles for project execution.
      *
      * @since 1.2
      */
     @Parameter(property = "releaseProfiles", defaultValue = "", required = false)
     private String releaseProfiles;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the branch will not be deleted after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keep;
 
     /**
      * If <code>true</code>, the hotfix tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         LOG.debug("Finishing hotfix");
 
         /* Get hotfix branch name */
         List<String> hotfixBranches = getGitflowInit().gitLocalHotfixBranches();
         if (hotfixBranches.isEmpty()) {
             throw new MojoFailureException("Could not find hotfix branch!");
         } else if (hotfixBranches.size() == 1) {
             hotfixName = hotfixBranches.get(0);
         } else {
             hotfixName = promptForExistingHotfixName(hotfixBranches, hotfixName);
         }
 
         LOG.info("Finishing hotfix '{}'", hotfixName);
 
         /* Switch to develop branch and get its current version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         LOG.debug("develop version = " + developVersion);
 
         /* Switch to hotfix branch and set poms to hotfix version */
         getGitflowInit().executeLocal("git checkout " + hotfixName);
         reloadReactorProjects();
         String hotfixVersion = project.getVersion();
         LOG.debug("hotfix snapshot version = " + hotfixVersion);
         String hotfixReleaseVersion = getReleaseVersion(hotfixVersion);
         LOG.debug("hotfix release version = " + hotfixReleaseVersion);
 
         setVersion(hotfixReleaseVersion);
 
         if (!allowSnapshots) {
             reloadReactorProjects();
             checkForSnapshotDependencies();
         }
 
         /* finish hotfix */
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
         gitflowHotfix.setPush(pushHotfixes);
         gitflowHotfix.setSquash(squash);
         gitflowHotfix.setKeep(keep);
         gitflowHotfix.setSign(sign);
         gitflowHotfix.setSigningkey(signingkey);
 
         /* 1. merge to master */
         try {
             gitflowHotfix.finishToMaster(hotfixName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
 
         /* 2. make versions in hotfix and develop branches match to avoid conflicts */
         getGitflowInit().executeLocal("git checkout " + hotfixName);
         reloadReactorProjects();
         setVersion(developVersion);
 
         /* 3. merge to develop */
         try {
             gitflowHotfix.finishToDevelop(hotfixName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
         /* Switch to hotfix tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + hotfixReleaseVersion);
         reloadReactorProjects();
         String tagVersion = project.getVersion();
         LOG.debug("tag version = " + tagVersion);
 
         /* install or deploy */
         if (skipDeploy == false) {
             String goals = "clean deploy";
             if (project.getDistributionManagement() != null
                     && project.getDistributionManagement().getSite() != null) {
                 goals += " site-deploy";
             }
 
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             if (useReleaseProfile) {
                 additionalArgs.add("-DperformRelease=true");
             }
             if (StringUtils.isNotBlank(releaseProfiles)) {
                 Iterable<String> profiles = PROFILES_SPLITTER.split(releaseProfiles);
                 additionalArgs.add("-P " + PROFILES_JOINER.join(profiles));
             }
             runGoals(goals, additionalArgs.build());
         } else if (skipBuild == false) {
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             runGoals("clean install", additionalArgs.build());
         } else {
             LOG.debug("Skipping both install and deploy for hotfix tag " + hotfixName);
         }
 
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingHotfixName(List<String> hotfixBranches, String defaultHotfixName) throws MojoFailureException {
         String message = "Please select a hotfix branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, hotfixBranches, defaultHotfixName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading hotfix name from command line " + e.getMessage());
         }
 
         return name;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index 73123ad..3b961c5 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -38,286 +38,286 @@ import com.google.common.collect.ImmutableList;
 /**
  * Merges a release branch back into the develop and master branch and then
  * creates a tag for the release on master.
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(ReleaseFinishMojo.class.getName());
 
     /**
      * If <code>true</code>, the release can still finish even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private Boolean allowSnapshots;
 
     /**
      * If the project has a parent with a release version it will be replaced
      * with the next <code>-SNAPSHOT</code> version (if it has been deployed).
      * This action is performed on the develop branch after the merge.
      *
      * @since 1.2
      */
-    @Parameter(property = "updateParent", defaultValue = "true", required = false)
+    @Parameter(property = "updateParent", defaultValue = "false", required = false)
     private Boolean updateParent;
 
     /**
      * On the release branch before finish is called any dependencies with a
      * <code>-SNAPSHOT</code> version are replaced with the corresponding
      * release version (if it has been released).
      *
      * On the develop branch after the merge any dependencies with a release
      * version are replaced with the next <code>-SNAPSHOT</code> version (if it
      * has been deployed).
      *
      * @since 1.2
      */
-    @Parameter(property = "updateDependencies", defaultValue = "true", required = false)
+    @Parameter(property = "updateDependencies", defaultValue = "false", required = false)
     private Boolean updateDependencies;
 
     /**
      * If <code>updateDependencies</code> is set, then this should contain a
      * comma separated list of artifact patterns to include. Follows the pattern <code>groupId:artifactId:type:classifier:version<code>
      *
      * @since 1.5
      */
     @Parameter(property = "includes", defaultValue = "", required = false)
     private String includes;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
-    @Parameter(property = "skipBuild", defaultValue = "false", required = false)
+    @Parameter(property = "skipBuild", defaultValue = "true", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any calls to <code>mvn deploy</code>
      *
      * @since 1.2
      */
-    @Parameter(property = "skipDeploy", defaultValue = "false", required = false)
+    @Parameter(property = "skipDeploy", defaultValue = "true", required = false)
     private Boolean skipDeploy;
 
     /**
      * Skips any tests during <code>mvn install</code> and
      * <code>mvn deploy</code>
      *
      * @since 1.2
      */
-    @Parameter(property = "skipTests", defaultValue = "false", required = false)
+    @Parameter(property = "skipTests", defaultValue = "true", required = false)
     private Boolean skipTests;
 
     /**
      * Whether to use the release profile that adds sources and javadoc to the
      * released artifact, if appropriate. If set to true, the release-finish
      * will set the property "performRelease" to true, which activates the
      * profile "release-profile", which is inherited from the super pom.
      *
      * @since 1.2
      */
     @Parameter(property = "useReleaseProfile", defaultValue = "true", required = false)
     private Boolean useReleaseProfile;
 
     /**
      * Comma separated profiles to enable on deployment, in addition to active
      * profiles for project execution.
      *
      * @since 1.2
      */
     @Parameter(property = "releaseProfiles", defaultValue = "", required = false)
     private String releaseProfiles;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the branch will not be deleted after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keep;
 
     /**
      * If <code>true</code>, the release tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         LOG.debug("Finishing release");
 
         /* Get release branch name */
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
         if (releaseBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         } else if (releaseBranches.size() == 1) {
             releaseName = releaseBranches.get(0);
         } else {
             releaseName = promptForExistingReleaseName(releaseBranches, releaseName);
         }
 
         LOG.info("Finishing release '{}'", releaseName);
 
         /* Switch to develop branch and get its current version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         LOG.debug("develop version = " + developVersion);
 
         /* Switch to release branch and set poms to release version */
         getGitflowInit().executeLocal("git checkout " + releaseName);
         reloadReactorProjects();
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(project.getVersion());
         String releaseVersion;
         if ("SNAPSHOT".equals(artifactVersion.getBuildSpecifier())) {
             releaseVersion = getReleaseVersion(project.getVersion());
         } else {
             releaseVersion = project.getVersion();
         }
         LOG.debug("release version = " + releaseVersion);
 
         setVersion(releaseVersion);
 
         /* Update release branch dependencies to release version */
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions(false, updateParent, includes);
         }
 
         if (!allowSnapshots) {
             reloadReactorProjects();
             checkForSnapshotDependencies();
         }
 
         /* finish release */
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setPush(pushReleases);
         gitflowRelease.setSquash(squash);
         gitflowRelease.setKeep(keep);
         gitflowRelease.setSign(sign);
         gitflowRelease.setSigningkey(signingkey);
 
         /* 1. merge to master */
         try {
             gitflowRelease.finishToMaster(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
 
         /* 2. make versions in release and develop branches match to avoid conflicts */
         getGitflowInit().executeLocal("git checkout " + releaseName);
         reloadReactorProjects();
         setVersion(developVersion);
 
         /* 3. merge to develop */
         try {
             gitflowRelease.finishToDevelop(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
         /* Update develop branch dependencies to next snapshot version (if deployed) */
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions(true, updateParent, includes);
         }
 
         /* Switch to release tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);
         reloadReactorProjects();
         String tagVersion = project.getVersion();
         LOG.debug("tag version = " + tagVersion);
 
         /* install or deploy */
         if (skipDeploy == false) {
             String goals = "clean deploy";
             if (project.getDistributionManagement() != null
                     && project.getDistributionManagement().getSite() != null) {
                 goals += " site-deploy";
             }
 
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             if (useReleaseProfile) {
                 additionalArgs.add("-DperformRelease=true");
             }
             if (StringUtils.isNotBlank(releaseProfiles)) {
                 Iterable<String> profiles = PROFILES_SPLITTER.split(releaseProfiles);
                 additionalArgs.add("-P " + PROFILES_JOINER.join(profiles));
             }
             runGoals(goals, additionalArgs.build());
         } else if (skipBuild == false) {
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             runGoals("clean install", additionalArgs.build());
         } else {
             LOG.debug("Skipping both install and deploy for release tag " + releaseName);
         }
 
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingReleaseName(List<String> releaseBranches, String defaultReleaseName) throws MojoFailureException {
         String message = "Please select a release branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, releaseBranches, defaultReleaseName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading release name from command line " + e.getMessage());
         }
 
         return name;
     }
 }
diff --git a/pom.xml b/pom.xml
index 9453f2d..a01c99a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,171 +1,171 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven</artifactId>    
-    <version>1.5-SNAPSHOT</version>
+    <version>1.6-SNAPSHOT</version>
     <name>ggitflow-maven</name>
     <packaging>pom</packaging>
 
     <modules>
         <module>ggitflow-maven-plugin</module>
         <module>ggitflow-maven-archetype</module>
     </modules>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
     </properties>
 
     <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
 
     <scm>
         <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
         <connection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</connection>
         <developerConnection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</developerConnection>
     </scm>
 
     <description>Maven Archetype for the Gitflow Maven Plugin</description>
     <developers>
         <developer>
             <id>dkirrane</id>
             <name>Desmond Kirrane</name>
             <email>desmond.kirrane@gmail.com</email>
         </developer>
     </developers>
     <licenses>
         <license>
             <name>Apache License Version 2.0, January 2004</name>
             <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
             <distribution>repo</distribution>
         </license>
     </licenses>
 
     <build>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <version>2.3.2</version>
                 <configuration>
                     <source>1.5</source>
                     <target>1.5</target>
                 </configuration>
             </plugin>          
         </plugins>
     </build>
 
     <profiles>
         <!-- Deploy to https://oss.sonatype.org/index.html -->
         <!-- mvn clean deploy -Prelease-sign-artifacts -->
         <profile>
             <id>release-sign-artifacts</id>
             <activation>
                 <property>
                     <name>performRelease</name>
                     <value>true</value>
                 </property>
             </activation>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-gpg-plugin</artifactId>
                         <executions>
                             <execution>
                                 <id>sign-artifacts</id>
                                 <phase>verify</phase>
                                 <goals>
                                     <goal>sign</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
             </build>
         </profile>
         <profile>
             <id>run-its</id>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-invoker-plugin</artifactId>
                         <version>1.8</version>
                         <configuration>
                             <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
                             <settingsFile>src/it/settings.xml</settingsFile>
                             <debug>true</debug>
                             <showErrors>true</showErrors>
                             <detail>true</detail>
                             <streamLogs>true</streamLogs>
                             <projectsDirectory>src/it/projects</projectsDirectory>
                             <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
                             <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
                             <addTestClassPath>true</addTestClassPath>
                             <preBuildHookScript>setup</preBuildHookScript>
                             <postBuildHookScript>verify</postBuildHookScript>
                             <pomIncludes>
                                 <pomInclude>*/pom.xml</pomInclude>
                             </pomIncludes>
                             <goals>
                                 <goal>clean</goal>
                                 <goal>test-compile</goal>
                             </goals>
                         </configuration>
                         <executions>
                             <execution>
                                 <id>integration-test</id>
                                 <goals>
                                     <goal>install</goal>
                                     <goal>integration-test</goal>
                                     <goal>verify</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
 
             </build>
         </profile>
     </profiles>
 
     <!--
         Sonatype upload details:
         http://central.sonatype.org/pages/ossrh-guide.html
         http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
         https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
         https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
         https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
 
             - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
             - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
             - Promote staged artifacts into repository 'Releases'
             - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
             - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
     -->
 
     <distributionManagement>
         <snapshotRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
         </snapshotRepository>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
         </repository>
     </distributionManagement>
     <repositories>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
             <snapshots>
                 <enabled>true</enabled>
             </snapshots>
         </repository>
     </repositories>
 </project>

commit 71a046e2d1213ec657639fc50dc3ab5329b2a8ee
Author: dkirrane <dkirrane@avaya.com>
Date:   Tue Jul 22 11:36:52 2014 +0100

    upgrade least significant number for hotfix versions if over 3 primary numbers

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
index 170189b..ef6860b 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
@@ -29,76 +29,76 @@ import org.slf4j.LoggerFactory;
 /**
  * Creates a new hotfix branch off of the master branch.
  */
 @Mojo(name = "hotfix-start", aggregator = true)
 public class HotfixStartMojo extends AbstractHotfixMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(HotfixStartMojo.class.getName());
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         /* Switch to master branch and get current version i.e. lastest tag */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getMasterBrnName());
         reloadReactorProjects();
         String masterVersion = project.getVersion();
         LOG.debug("master version = " + masterVersion);
 
         String hotfixVersion = getHotfixVersion(masterVersion);
         String hotfixSnapshotVersion = getHotfixSnapshotVersion(masterVersion);
 
         LOG.info("Starting hotfix '" + hotfixVersion + "'");
         LOG.debug("msgPrefix '" + getMsgPrefix() + "'");
         LOG.debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
         gitflowHotfix.setPush(pushHotfixes);
 
         try {
             gitflowHotfix.start(hotfixVersion);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         setVersion(hotfixSnapshotVersion);
 
         String prefix = getGitflowInit().getHotfixBranchPrefix();
         if (getGitflowInit().gitRemoteBranchExists(prefix + hotfixVersion)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + hotfixVersion);
         }
     }
 
     private String getHotfixVersion(String currentVersion) throws MojoFailureException {
         LOG.debug("getHotfixVersion from '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         final StringBuilder result = new StringBuilder(30);
         if (artifactVersion.getPrimaryNumberCount() < 3) {
             String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
             String annotationAsString = artifactVersion.getAnnotationAsString();
             result.append(primaryNumbersAsString).append('.').append('1');
             result.append(annotationAsString);
         } else {
-            artifactVersion.upgradeLeastSignificantPrimaryNumber();
+            artifactVersion.upgradeLeastSignificantNumber();
             result.append(artifactVersion.toString());
         }
         return result.toString();
     }
 
     private String getHotfixSnapshotVersion(String currentVersion) throws MojoFailureException {
         LOG.debug("getHotfixSnapshotVersion from '" + currentVersion + "'");
 
         final StringBuilder result = new StringBuilder(30);
 
         String hotfixVersion = getHotfixVersion(currentVersion);
         result.append(hotfixVersion);
 
         result.append(DEFAULT_VERSION_COMPONENT_SEPARATOR).append(SNAPSHOT_QUALIFIER);
 
         return result.toString();
     }
 }

commit aaf5588c6a91fb8e7c847552e30890f62064a022
Author: dkirrane <dkirrane@avaya.com>
Date:   Tue Jul 22 11:35:02 2014 +0100

    upgrade least significant bit for hotfix versions if over 3 primary numbers

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
index b719e82..170189b 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
@@ -29,76 +29,76 @@ import org.slf4j.LoggerFactory;
 /**
  * Creates a new hotfix branch off of the master branch.
  */
 @Mojo(name = "hotfix-start", aggregator = true)
 public class HotfixStartMojo extends AbstractHotfixMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(HotfixStartMojo.class.getName());
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         /* Switch to master branch and get current version i.e. lastest tag */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getMasterBrnName());
         reloadReactorProjects();
         String masterVersion = project.getVersion();
         LOG.debug("master version = " + masterVersion);
 
         String hotfixVersion = getHotfixVersion(masterVersion);
         String hotfixSnapshotVersion = getHotfixSnapshotVersion(masterVersion);
 
         LOG.info("Starting hotfix '" + hotfixVersion + "'");
         LOG.debug("msgPrefix '" + getMsgPrefix() + "'");
         LOG.debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
         gitflowHotfix.setPush(pushHotfixes);
 
         try {
             gitflowHotfix.start(hotfixVersion);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         setVersion(hotfixSnapshotVersion);
 
         String prefix = getGitflowInit().getHotfixBranchPrefix();
         if (getGitflowInit().gitRemoteBranchExists(prefix + hotfixVersion)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + hotfixVersion);
         }
     }
 
     private String getHotfixVersion(String currentVersion) throws MojoFailureException {
         LOG.debug("getHotfixVersion from '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         final StringBuilder result = new StringBuilder(30);
         if (artifactVersion.getPrimaryNumberCount() < 3) {
             String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
             String annotationAsString = artifactVersion.getAnnotationAsString();
             result.append(primaryNumbersAsString).append('.').append('1');
             result.append(annotationAsString);
         } else {
-            artifactVersion.upgradeAnnotationRevision();
+            artifactVersion.upgradeLeastSignificantPrimaryNumber();
             result.append(artifactVersion.toString());
         }
         return result.toString();
     }
 
     private String getHotfixSnapshotVersion(String currentVersion) throws MojoFailureException {
         LOG.debug("getHotfixSnapshotVersion from '" + currentVersion + "'");
 
         final StringBuilder result = new StringBuilder(30);
 
         String hotfixVersion = getHotfixVersion(currentVersion);
         result.append(hotfixVersion);
 
         result.append(DEFAULT_VERSION_COMPONENT_SEPARATOR).append(SNAPSHOT_QUALIFIER);
 
         return result.toString();
     }
 }

commit bb07a160530fbfa505699fbb49968cb538999c83
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Tue Jul 8 23:23:30 2014 +0100

    Split hot fix up into finish to master then finish to develop

diff --git a/.gitignore b/.gitignore
index b091aad..3a47be0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -22,28 +22,29 @@ tmp/**/*
 *.tmp
 *.bak
 *.swp
 *~.nib
 local.properties
 .classpath
 .settings/
 .loadpath
 
 # External tool builders
 .externalToolBuilders/
 
 # Locally stored "Eclipse launch configurations"
 *.launch
 
 # CDT-specific
 .cproject
 
 # PDT-specific
 .buildpath
 
 ### IntelliJ ###
 *.iml
 *.ipr
 *.iws
 .idea/
 
 *.orig
+.DS_Store
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
index 8610994..5212e56 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
@@ -1,15 +1,15 @@
 /*
- * Copyright 2014 desmondkirrane.
+ * Copyright 2014 Desmond Kirrane.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *
  *      http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
@@ -33,234 +33,239 @@ import org.slf4j.LoggerFactory;
 /**
  * Merges a hotfix branch back into the develop and master branch and then
  * creates a tag for the hotfix on master.
  */
 @Mojo(name = "hotfix-finish", aggregator = true)
 public class HotfixFinishMojo extends AbstractHotfixMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(HotfixFinishMojo.class.getName());
 
     protected String hotfixName;
 
     /**
      * If <code>true</code>, the hotfix can still finish even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private boolean allowSnapshots;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "false", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any calls to <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipDeploy", defaultValue = "false", required = false)
     private Boolean skipDeploy;
 
     /**
      * Skips any tests during <code>mvn install</code> and
      * <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipTests", defaultValue = "false", required = false)
     private Boolean skipTests;
 
     /**
      * Whether to use the release profile that adds sources and javadoc to the
      * released artifact, if appropriate. If set to true, the hotfix-finish will
      * set the property "performRelease" to true, which activates the profile
      * "release-profile", which is inherited from the super pom.
      *
      * @since 1.2
      */
     @Parameter(property = "useReleaseProfile", defaultValue = "true", required = false)
     private Boolean useReleaseProfile;
 
     /**
      * Comma separated profiles to enable on deployment, in addition to active
      * profiles for project execution.
      *
      * @since 1.2
      */
     @Parameter(property = "releaseProfiles", defaultValue = "", required = false)
     private String releaseProfiles;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the branch will not be deleted after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keep;
 
     /**
      * If <code>true</code>, the hotfix tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         LOG.debug("Finishing hotfix");
 
         /* Get hotfix branch name */
         List<String> hotfixBranches = getGitflowInit().gitLocalHotfixBranches();
         if (hotfixBranches.isEmpty()) {
             throw new MojoFailureException("Could not find hotfix branch!");
         } else if (hotfixBranches.size() == 1) {
             hotfixName = hotfixBranches.get(0);
         } else {
             hotfixName = promptForExistingHotfixName(hotfixBranches, hotfixName);
         }
 
         LOG.info("Finishing hotfix '{}'", hotfixName);
 
+        /* Switch to develop branch and get its current version */
+        String developBranch = getGitflowInit().getDevelopBranch();
+        getGitflowInit().executeLocal("git checkout " + developBranch);
+        reloadReactorProjects();
+        String developVersion = project.getVersion();
+        LOG.debug("develop version = " + developVersion);
+
         /* Switch to hotfix branch and set poms to hotfix version */
         getGitflowInit().executeLocal("git checkout " + hotfixName);
         reloadReactorProjects();
         String hotfixVersion = project.getVersion();
         LOG.debug("hotfix snapshot version = " + hotfixVersion);
         String hotfixReleaseVersion = getReleaseVersion(hotfixVersion);
         LOG.debug("hotfix release version = " + hotfixReleaseVersion);
+
         setVersion(hotfixReleaseVersion);
-        
+
         if (!allowSnapshots) {
             reloadReactorProjects();
             checkForSnapshotDependencies();
-        }        
-
-        /* Switch to develop branch and get current develop version */
-        String developBranch = getGitflowInit().getDevelopBranch();
-        getGitflowInit().executeLocal("git checkout " + developBranch);
-        reloadReactorProjects();
-        String developVersion = project.getVersion();
-        LOG.debug("develop version = " + developVersion);
-
-        /* Set develop branch to hotfix version to prevent merge conflicts */
-        setVersion(hotfixReleaseVersion);
+        }
 
         /* finish hotfix */
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
         gitflowHotfix.setPush(pushHotfixes);
         gitflowHotfix.setSquash(squash);
         gitflowHotfix.setKeep(keep);
         gitflowHotfix.setSign(sign);
         gitflowHotfix.setSigningkey(signingkey);
 
+        /* 1. merge to master */
         try {
-            gitflowHotfix.finish(hotfixName);
+            gitflowHotfix.finishToMaster(hotfixName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
-            LOG.error("Merge conflicts exist.", gmce);
             throw new MojoFailureException(gmce.getMessage());
+        }
+
+        /* 2. make versions in hotfix and develop branches match to avoid conflicts */
+        getGitflowInit().executeLocal("git checkout " + hotfixName);
+        reloadReactorProjects();
+        setVersion(developVersion);
 
-//            LOG.info("Attempting to auto-resolve any pom version conflicts.", gmce);
+        /* 3. merge to develop */
+        try {
+            gitflowHotfix.finishToDevelop(hotfixName);
+        } catch (GitflowException ge) {
+            throw new MojoFailureException(ge.getMessage());
+        } catch (GitflowMergeConflictException gmce) {
+            throw new MojoFailureException(gmce.getMessage());
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
-//            fixPomMergeConflicts.setInit(getGitflowInit());
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
-        /* Set develop branch back to original develop version */
-        setVersion(developVersion);
-        if (getGitflowInit().gitRemoteBranchExists(developBranch)) {
-            getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + developBranch);
-        }
-
         /* Switch to hotfix tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + hotfixReleaseVersion);
         reloadReactorProjects();
+        String tagVersion = project.getVersion();
+        LOG.debug("tag version = " + tagVersion);
 
         /* install or deploy */
         if (skipDeploy == false) {
             String goals = "clean deploy";
             if (project.getDistributionManagement() != null
                     && project.getDistributionManagement().getSite() != null) {
                 goals += " site-deploy";
             }
 
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             if (useReleaseProfile) {
                 additionalArgs.add("-DperformRelease=true");
             }
             if (StringUtils.isNotBlank(releaseProfiles)) {
                 Iterable<String> profiles = PROFILES_SPLITTER.split(releaseProfiles);
                 additionalArgs.add("-P " + PROFILES_JOINER.join(profiles));
             }
             runGoals(goals, additionalArgs.build());
         } else if (skipBuild == false) {
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             runGoals("clean install", additionalArgs.build());
         } else {
             LOG.debug("Skipping both install and deploy for hotfix tag " + hotfixName);
         }
 
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingHotfixName(List<String> hotfixBranches, String defaultHotfixName) throws MojoFailureException {
         String message = "Please select a hotfix branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, hotfixBranches, defaultHotfixName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading hotfix name from command line " + e.getMessage());
         }
 
         return name;
     }
 }

commit d05f6e01814bd972ef941ac52a1d7783015b74b3
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Thu Apr 17 19:04:52 2014 +0100

    fix for push tracking and hot fix snapshot checks

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
index 77432c3..8610994 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
@@ -33,234 +33,234 @@ import org.slf4j.LoggerFactory;
 /**
  * Merges a hotfix branch back into the develop and master branch and then
  * creates a tag for the hotfix on master.
  */
 @Mojo(name = "hotfix-finish", aggregator = true)
 public class HotfixFinishMojo extends AbstractHotfixMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(HotfixFinishMojo.class.getName());
 
     protected String hotfixName;
 
     /**
      * If <code>true</code>, the hotfix can still finish even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private boolean allowSnapshots;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "false", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any calls to <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipDeploy", defaultValue = "false", required = false)
     private Boolean skipDeploy;
 
     /**
      * Skips any tests during <code>mvn install</code> and
      * <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipTests", defaultValue = "false", required = false)
     private Boolean skipTests;
 
     /**
      * Whether to use the release profile that adds sources and javadoc to the
      * released artifact, if appropriate. If set to true, the hotfix-finish will
      * set the property "performRelease" to true, which activates the profile
      * "release-profile", which is inherited from the super pom.
      *
      * @since 1.2
      */
     @Parameter(property = "useReleaseProfile", defaultValue = "true", required = false)
     private Boolean useReleaseProfile;
 
     /**
      * Comma separated profiles to enable on deployment, in addition to active
      * profiles for project execution.
      *
      * @since 1.2
      */
     @Parameter(property = "releaseProfiles", defaultValue = "", required = false)
     private String releaseProfiles;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the branch will not be deleted after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keep;
 
     /**
      * If <code>true</code>, the hotfix tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         LOG.debug("Finishing hotfix");
 
         /* Get hotfix branch name */
         List<String> hotfixBranches = getGitflowInit().gitLocalHotfixBranches();
         if (hotfixBranches.isEmpty()) {
             throw new MojoFailureException("Could not find hotfix branch!");
         } else if (hotfixBranches.size() == 1) {
             hotfixName = hotfixBranches.get(0);
         } else {
             hotfixName = promptForExistingHotfixName(hotfixBranches, hotfixName);
         }
 
         LOG.info("Finishing hotfix '{}'", hotfixName);
 
         /* Switch to hotfix branch and set poms to hotfix version */
         getGitflowInit().executeLocal("git checkout " + hotfixName);
         reloadReactorProjects();
         String hotfixVersion = project.getVersion();
         LOG.debug("hotfix snapshot version = " + hotfixVersion);
         String hotfixReleaseVersion = getReleaseVersion(hotfixVersion);
         LOG.debug("hotfix release version = " + hotfixReleaseVersion);
         setVersion(hotfixReleaseVersion);
+        
+        if (!allowSnapshots) {
+            reloadReactorProjects();
+            checkForSnapshotDependencies();
+        }        
 
         /* Switch to develop branch and get current develop version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         LOG.debug("develop version = " + developVersion);
 
         /* Set develop branch to hotfix version to prevent merge conflicts */
         setVersion(hotfixReleaseVersion);
 
-        if (!allowSnapshots) {
-            reloadReactorProjects();
-            checkForSnapshotDependencies();
-        }
-
         /* finish hotfix */
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
         gitflowHotfix.setPush(pushHotfixes);
         gitflowHotfix.setSquash(squash);
         gitflowHotfix.setKeep(keep);
         gitflowHotfix.setSign(sign);
         gitflowHotfix.setSigningkey(signingkey);
 
         try {
             gitflowHotfix.finish(hotfixName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             LOG.error("Merge conflicts exist.", gmce);
             throw new MojoFailureException(gmce.getMessage());
 
 //            LOG.info("Attempting to auto-resolve any pom version conflicts.", gmce);
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            fixPomMergeConflicts.setInit(getGitflowInit());
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
         /* Set develop branch back to original develop version */
         setVersion(developVersion);
         if (getGitflowInit().gitRemoteBranchExists(developBranch)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + developBranch);
         }
 
         /* Switch to hotfix tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + hotfixReleaseVersion);
         reloadReactorProjects();
 
         /* install or deploy */
         if (skipDeploy == false) {
             String goals = "clean deploy";
             if (project.getDistributionManagement() != null
                     && project.getDistributionManagement().getSite() != null) {
                 goals += " site-deploy";
             }
 
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             if (useReleaseProfile) {
                 additionalArgs.add("-DperformRelease=true");
             }
             if (StringUtils.isNotBlank(releaseProfiles)) {
                 Iterable<String> profiles = PROFILES_SPLITTER.split(releaseProfiles);
                 additionalArgs.add("-P " + PROFILES_JOINER.join(profiles));
             }
             runGoals(goals, additionalArgs.build());
         } else if (skipBuild == false) {
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             runGoals("clean install", additionalArgs.build());
         } else {
             LOG.debug("Skipping both install and deploy for hotfix tag " + hotfixName);
         }
 
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingHotfixName(List<String> hotfixBranches, String defaultHotfixName) throws MojoFailureException {
         String message = "Please select a hotfix branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, hotfixBranches, defaultHotfixName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading hotfix name from command line " + e.getMessage());
         }
 
         return name;
     }
 }

commit 9d7b876df4655f2df5a82dfed3c21aaa45aca154
Author: Dessie Kirrane <dkirrane@avaya.com>
Date:   Tue Apr 8 18:36:33 2014 +0100

    Include fixes for
    - reload poms downloading stuff and
    - includes replaced with includesList

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index 315c8cd..362e9d7 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -78,484 +78,484 @@ import com.google.common.collect.ImmutableList;
 public class AbstractGitflowMojo extends AbstractMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(AbstractGitflowMojo.class.getName());
 
     public final Pattern matchSnapshotRegex = Pattern.compile("-SNAPSHOT");
 
     public static final ImmutableList<String> DEFAULT_INSTALL_ARGS = ImmutableList.of(
             "-DinstallAtEnd=true");
 
     public static final ImmutableList<String> DEFAULT_DEPLOY_ARGS = ImmutableList.of(
             "-DdeployAtEnd=true",
             "-DretryFailedDeploymentCount=2");
 
     public static final Splitter PROFILES_SPLITTER = Splitter.on(',').trimResults().omitEmptyStrings();
     public static final Joiner PROFILES_JOINER = Joiner.on(',').skipNulls();
 
     /**
      * Gitflow branches and prefixes to use.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
     /**
      * Message prefix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgPrefix", defaultValue = "", required = false)
     protected String msgPrefix;
 
     /**
      * Message suffix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgSuffix", defaultValue = "", required = false)
     protected String msgSuffix;
 
     /**
      * Component used to prompt for input.
      */
     @Component
     protected Prompter prompter;
 
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
     @Component
     protected ArtifactResolver artifactResolver;
 
     /**
      * @parameter default-value="${project.artifacts}"
      * @required
      * @readonly
      */
     protected Collection artifacts;
 
     /**
      * @parameter expression="${localRepository}"
      */
     protected ArtifactRepository localRepository;
 
     /**
      * @parameter expression="${project.remoteArtifactRepositories}"
      */
     protected List remoteArtifactRepositories;
 
 //    @Component
 //    protected MavenProjectBuilder projectBuilder;
 //    @Component
 //    protected DefaultProjectBuilder projectBuilder;
 //    /**
 //     * @parameter property="plugin"
 //     * @required
 //     */
 //    @Component
 //    protected PluginDescriptor pluginDescriptor;
 //
     /**
      * The projects in the reactor.
      */
     @Parameter(defaultValue = "${reactorProjects}", readonly = true, required = true)
     protected List<MavenProject> reactorProjects;
 
     /**
      * The project builder
      */
     @Component
     private ProjectBuilder projectBuilder;
 
     /**
      * The project currently being build.
      *
      * @parameter expression="${project}"
      * @required
      * @readonly
      */
     @Component
     protected MavenProject project;
 
     /**
      * The current Maven session.
      *
      * @parameter expression="${session}"
      * @required
      * @readonly
      */
     @Component
     protected MavenSession session;
 
     /**
      * The Maven BuildPluginManager component.
      *
      * @component
      * @required
      */
     @Component
     protected BuildPluginManager pluginManager;
 
 //    @Parameter(defaultValue = "${basedir}", readonly = true, required = true)
 //    protected File basedir;
 //    @Component
 //    protected Settings settings;
     private GitflowInit init;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     public void execute() throws MojoExecutionException, MojoFailureException {
         StaticLoggerBinder.getSingleton().setMavenLog(this.getLog());
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             LOG.debug("Gitflow pom  '" + project.getBasedir() + "'");
         }
 
         GitflowInit gitflowInit = getGitflowInit();
 
         gitflowInit.requireGitRepo();
 
         if (!gitflowInit.gitflowIsInitialized()) {
             try {
                 gitflowInit.cmdDefault();
             } catch (GitflowException ex) {
                 throw new MojoExecutionException("Failed to inintialise Gitflow " + ex.getMessage(), ex);
             }
         }
 
         gitflowInit.requireCleanWorkingTree();
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     protected final GitflowInit getGitflowInit() {
         if (null == init) {
             LOG.info("Initialising Gitflow");
             init = new GitflowInit();
             File basedir = getProject().getBasedir();
             LOG.debug("Setting base directory " + basedir);
             init.setRepoDir(basedir);
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
 
             /* root Git directory may not be the pom directory */
             String gitRootPath = init.executeLocal("git rev-parse --show-toplevel"); 
             LOG.debug("Git repo top level " + gitRootPath);
             File baseGitDir = new File(gitRootPath);
             if (baseGitDir.isDirectory()) {
                 LOG.debug("Setting git base directory " + baseGitDir);
                 init.setRepoDir(baseGitDir);
             }
         }
         return init;
     }
 
     protected final void setVersion(String version) throws MojoExecutionException, MojoFailureException {
         LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
 
         for (MavenProject mavenProject : reactorProjects) {
             LOG.debug("Calling versions-maven-plugin:set on " + mavenProject.getArtifactId());
             session.setCurrentProject(mavenProject);
             try {
                 executeMojo(
                         plugin(
                                 groupId("org.codehaus.mojo"),
                                 artifactId("versions-maven-plugin"),
                                 version("2.1")
                         ),
                         goal("set"),
                         configuration(
                                 element(name("generateBackupPoms"), "false"),
                                 element(name("newVersion"), version)
                         ),
                         executionEnvironment(
                                 mavenProject,
                                 session,
                                 pluginManager
                         )
                 );
             } catch (MojoExecutionException mee) {
                 String rootCauseMessage = ExceptionUtils.getRootCauseMessage(mee);
                 if (rootCauseMessage.contains("Project version is inherited from parent")) {
                     LOG.warn("Skipping versions-maven-plugin:set for project " + mavenProject.getArtifactId() + ". Project version is inherited from parent.");
                 } else {
                     LOG.error("Cannot set {} to version '{}'", mavenProject.getArtifactId(), version, mee);
                     throw mee;
                 }
             }
         }
         LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change " + version + " to origin. ExitCode:" + exitCode);
                 }
             }
         }
         /* We don't want to fail maybe the version was manually set correctly */
 //        else {
 //            throw new MojoFailureException("Failed to update poms to version " + version);
 //        }
     }
 
     protected final void setNextVersions(Boolean allowSnapshots, Boolean updateParent, String includes) throws MojoExecutionException, MojoFailureException {
         LOG.debug("setNextVersions");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
 
         if (updateParent) {
             LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:update-parent updateParent={}", updateParent);
             executeMojo(
                     plugin(
                             groupId("org.codehaus.mojo"),
                             artifactId("versions-maven-plugin"),
                             version("2.1")
                     ),
                     goal("update-parent"),
                     configuration(
                             element(name("generateBackupPoms"), "false"),
                             element(name("allowSnapshots"), allowSnapshots.toString())
                     ),
                     executionEnvironment(
                             rootProject,
                             session,
                             pluginManager
                     )
             );
             LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:update-parent");
         }
 
         if (!StringUtils.isBlank(includes)) {
             LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:use-next-versions allowSnapshots={}", allowSnapshots);
             for (MavenProject mavenProject : reactorProjects) {
                 LOG.debug("Calling use-next-versions on " + mavenProject.getArtifactId());
                 session.setCurrentProject(mavenProject);
                 executeMojo(
                         plugin(
                                 groupId("org.codehaus.mojo"),
                                 artifactId("versions-maven-plugin"),
                                 version("2.1")
                         ),
                         goal("use-next-versions"),
                         configuration(
                                 element(name("generateBackupPoms"), "false"),
                                 element(name("allowSnapshots"), allowSnapshots.toString()),
-                                element(name("includes"), includes)
+                                element(name("includesList"), includes)
                         ),
                         executionEnvironment(
                                 mavenProject,
                                 session,
                                 pluginManager
                         )
                 );
             }
             LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:use-next-versions");
         } else {
             LOG.warn("Parameter <includes> is not set. Skipping dependency updates");
         }
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg;
             if (allowSnapshots) {
                 msg = getMsgPrefix() + "Replaces any release versions with the next snapshot version (if it has been deployed)." + getMsgSuffix();
             } else {
                 msg = getMsgPrefix() + "Replaces snapshot versions with the corresponding release version" + getMsgSuffix();
             }
 
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change to origin. ExitCode:" + exitCode);
                 }
             }
         }
     }
 
     protected final void runGoals(String goals, List<String> additionalArgs) throws MojoExecutionException, MojoFailureException {
         LOG.debug("START executing " + goals + " with args " + additionalArgs);
 
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         File basedir = rootProject.getBasedir();
 
         ReleaseResult result = new ReleaseResult();
         ReleaseEnvironment env = new DefaultReleaseEnvironment();
         env.setSettings(session.getSettings());
         MavenExecutor mavenExecutor = mavenExecutors.get(env.getMavenExecutorId());
 
         Joiner joiner = Joiner.on(" ").skipNulls();
         String additionalArguments = joiner.join(additionalArgs);
         LOG.debug("additionalArguments " + additionalArguments);
 
         try {
             mavenExecutor.executeGoals(basedir, goals, env, false, additionalArguments, result);
         } catch (MavenExecutorException ex) {
             throw new MojoExecutionException(result.getOutput(), ex);
         }
         LOG.debug("DONE executing " + goals);
     }
 
     protected final String getReleaseVersion(String version) throws MojoFailureException {
         LOG.debug("Current Develop version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
             LOG.debug("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
     protected final void checkForSnapshotDependencies() throws MojoExecutionException {
         LOG.info("Checking for SNAPSHOT dependencies");
         Boolean hasDepSnapshots = false;
         Boolean hasParentSnapshot = false;
         for (MavenProject mavenProject : reactorProjects) {
             String artifactId = mavenProject.getArtifactId();
 
             /* Check <parent> */
             Artifact parentArtifact = mavenProject.getParentArtifact();
             if (parentArtifact != null && parentArtifact.isSnapshot()) {
                 LOG.error("Parent of project " + artifactId + " is a SNAPSHOT " + parentArtifact.getId());
                 hasParentSnapshot = true;
             }
 
             /* Check <dependencyManagement> */
             DependencyManagement dependencyManagement = mavenProject.getDependencyManagement();
             if (null != dependencyManagement) {
                 if (checkForSnapshot(artifactId, dependencyManagement.getDependencies())) {
                     hasDepSnapshots = true;
                 }
             }
 
             /* Check <dependencies> */
             if (checkForSnapshot(artifactId, mavenProject.getDependencies())) {
                 hasDepSnapshots = true;
             }
         }
         if (hasParentSnapshot || hasDepSnapshots) {
             throw new MojoExecutionException("Cannot release because SNAPSHOT dependencies exist");
         }
     }
 
     private boolean checkForSnapshot(String artifactId, List<Dependency> dependencies) throws MojoExecutionException {
         Boolean hasSnapshotDependency = false;
         for (Dependency dependency : dependencies) {
             String version = dependency.getVersion();
             Matcher versionMatcher = matchSnapshotRegex.matcher(version);
             if (versionMatcher.find() && versionMatcher.end() == version.length()) {
                 LOG.error("Project " + artifactId + " contains SNAPSHOT dependency: " + dependency.getGroupId() + ":" + dependency.getArtifactId() + ":" + version);
                 hasSnapshotDependency = true;
             }
         }
         return hasSnapshotDependency;
     }
 
     protected final void reloadReactorProjects() throws MojoExecutionException {
         LOG.debug("Reloading poms...");
 
         List<MavenProject> newReactorProjects;
         try {
             newReactorProjects = buildReactorProjects();
         } catch (ProjectBuildingException e) {
             LOG.error("Re-parse aborted due to malformed pom.xml file(s)", e);
             throw new MojoExecutionException("Re-parse aborted due to malformed pom.xml file(s)", e);
         } catch (CycleDetectedException e) {
             LOG.error("Re-parse aborted due to dependency cycle in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to dependency cycle in project model", e);
         } catch (DuplicateProjectException e) {
             LOG.error("Re-parse aborted due to duplicate projects in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to duplicate projects in project model", e);
         } catch (Exception e) {
             LOG.error("Re-parse aborted due a problem that prevented sorting the project model", e);
             throw new MojoExecutionException("Re-parse aborted due a problem that prevented sorting the project model", e);
         }
         MavenProject newProject = findProject(newReactorProjects, this.project);
         if (newProject == null) {
             throw new MojoExecutionException("A pom.xml change appears to have removed " + this.project.getId() + " from the build plan.");
         }
 
         this.project = newProject;
         this.reactorProjects = newReactorProjects;
 
         LOG.debug("Reloading poms complete...");
     }
 
     private List<MavenProject> buildReactorProjects() throws Exception {
 
         List<MavenProject> projects = new ArrayList<MavenProject>();
         for (MavenProject p : reactorProjects) {
             ProjectBuildingRequest request = new DefaultProjectBuildingRequest();
 
-            request.setProcessPlugins(true);
+            request.setProcessPlugins(false);
             request.setProfiles(request.getProfiles());
             request.setActiveProfileIds(session.getRequest().getActiveProfiles());
             request.setInactiveProfileIds(session.getRequest().getInactiveProfiles());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setSystemProperties(session.getSystemProperties());
             request.setUserProperties(session.getUserProperties());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setPluginArtifactRepositories(session.getRequest().getPluginArtifactRepositories());
             request.setRepositorySession(session.getRepositorySession());
             request.setLocalRepository(localRepository);
             request.setBuildStartTime(session.getRequest().getStartTime());
-            request.setResolveDependencies(true);
+            request.setResolveDependencies(false);
             request.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_STRICT);
             projects.add(projectBuilder.build(p.getFile(), request).getProject());
         }
         return new ProjectSorter(projects).getSortedProjects();
     }
 
     private MavenProject findProject(List<MavenProject> newReactorProjects, MavenProject oldProject) {
         for (MavenProject newProject : newReactorProjects) {
             if (oldProject.getGroupId().equals(newProject.getGroupId())
                     && oldProject.getArtifactId().equals(newProject.getArtifactId())) {
                 return newProject;
             }
         }
         return null;
     }
 
 }

commit a1f0ebd326056fcbdf37c21c5a5c007d7202c6a5
Author: Dessie Kirrane <dkirrane@avaya.com>
Date:   Tue Apr 8 17:53:17 2014 +0100

    Cleanup by deleting any pushed bracnhes

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
index 828b368..d1a53c5 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
@@ -32,146 +32,147 @@ import org.slf4j.LoggerFactory;
 /**
  * Merges a feature branch back into the develop.
  */
 @Mojo(name = "feature-finish", aggregator = true)
 public class FeatureFinishMojo extends AbstractFeatureMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(FeatureFinishMojo.class.getName());
 
     /**
      * If <code>true</code>, the feature branch will be rebased onto develop,
      * then finish will fast-forward merge the feature branch back onto develop.
      *
      * @since 1.2
      */
     @Parameter(property = "isRebase", defaultValue = "false", required = false)
     private boolean isRebase;
 
 //    No good way to handle Interactive rebase from a Maven plugin
 //    /**
 //     * If <code>true</code>, and <code>isRebase</code> is true, then an interactive rebase is
 //     * performed for the feature branch.
 //     *
 //     * @since 1.2
 //     */
 //    @Parameter(property = "isInteractive", defaultValue = "false", required = false)
     private final boolean isInteractive = false;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "false", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any tests during <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipTests", defaultValue = "false", required = false)
     private Boolean skipTests;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the branch will not be deleted after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keep;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         LOG.debug("Finishing feature");
 
         List<String> featureBranches = getGitflowInit().gitLocalFeatureBranches();
 
         if (null == featureBranches || featureBranches.isEmpty()) {
             throw new MojoFailureException("No local feature branches exit!");
         }
 
         String featureBranchPrefix = getFeatureBranchPrefix();
         if (StringUtils.isBlank(featureName)) {
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (currentBranch.startsWith(featureBranchPrefix)) {
                 featureName = currentBranch;
             } else {
                 featureName = featureBranches.get(0);
             }
         } else {
             featureName = getFeatureName(featureName);
         }
 
         featureName = promptForExistingFeatureName(featureBranches, featureName);
 
         LOG.info("Finishing feature '{}'", featureName);
 
         if (enableFeatureVersions) {
             /* Switch to develop branch and get its current version */
             getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
             reloadReactorProjects();
             String developVersion = project.getVersion();
             LOG.debug("develop version = " + developVersion);
 
             /* Switch to feature branch and get its current version */
             getGitflowInit().executeLocal("git checkout " + featureName);
             reloadReactorProjects();
             String featureVersion = project.getVersion();
             LOG.debug("feature version = " + featureVersion);
 
             setVersion(developVersion);
         }
 
         if (skipBuild == false) {
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_INSTALL_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             runGoals("clean install", additionalArgs.build());
         } else {
             LOG.debug("Skipping mvn install for feature " + featureName);
         }
 
         GitflowFeature gitflowFeature = new GitflowFeature();
         gitflowFeature.setInit(getGitflowInit());
         gitflowFeature.setMsgPrefix(getMsgPrefix());
         gitflowFeature.setMsgSuffix(getMsgSuffix());
+        gitflowFeature.setPush(pushFeatures);
         gitflowFeature.setSquash(squash);
         gitflowFeature.setKeep(keep);
         gitflowFeature.setIsRebase(isRebase);
         gitflowFeature.setIsInteractive(isInteractive);
 
         try {
             gitflowFeature.finish(featureName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
     }
 
     private String promptForExistingFeatureName(List<String> featureBranches, String defaultFeatureName) throws MojoFailureException {
         String message = "Please select a feature branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, featureBranches, defaultFeatureName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading feature name from command line " + e.getMessage());
         }
 
         return name.trim();
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
index 5220b19..77432c3 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
@@ -33,233 +33,234 @@ import org.slf4j.LoggerFactory;
 /**
  * Merges a hotfix branch back into the develop and master branch and then
  * creates a tag for the hotfix on master.
  */
 @Mojo(name = "hotfix-finish", aggregator = true)
 public class HotfixFinishMojo extends AbstractHotfixMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(HotfixFinishMojo.class.getName());
 
     protected String hotfixName;
 
     /**
      * If <code>true</code>, the hotfix can still finish even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private boolean allowSnapshots;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "false", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any calls to <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipDeploy", defaultValue = "false", required = false)
     private Boolean skipDeploy;
 
     /**
      * Skips any tests during <code>mvn install</code> and
      * <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipTests", defaultValue = "false", required = false)
     private Boolean skipTests;
 
     /**
      * Whether to use the release profile that adds sources and javadoc to the
      * released artifact, if appropriate. If set to true, the hotfix-finish will
      * set the property "performRelease" to true, which activates the profile
      * "release-profile", which is inherited from the super pom.
      *
      * @since 1.2
      */
     @Parameter(property = "useReleaseProfile", defaultValue = "true", required = false)
     private Boolean useReleaseProfile;
 
     /**
      * Comma separated profiles to enable on deployment, in addition to active
      * profiles for project execution.
      *
      * @since 1.2
      */
     @Parameter(property = "releaseProfiles", defaultValue = "", required = false)
     private String releaseProfiles;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the branch will not be deleted after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keep;
 
     /**
      * If <code>true</code>, the hotfix tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         LOG.debug("Finishing hotfix");
 
         /* Get hotfix branch name */
         List<String> hotfixBranches = getGitflowInit().gitLocalHotfixBranches();
         if (hotfixBranches.isEmpty()) {
             throw new MojoFailureException("Could not find hotfix branch!");
         } else if (hotfixBranches.size() == 1) {
             hotfixName = hotfixBranches.get(0);
         } else {
             hotfixName = promptForExistingHotfixName(hotfixBranches, hotfixName);
         }
 
         LOG.info("Finishing hotfix '{}'", hotfixName);
 
         /* Switch to hotfix branch and set poms to hotfix version */
         getGitflowInit().executeLocal("git checkout " + hotfixName);
         reloadReactorProjects();
         String hotfixVersion = project.getVersion();
         LOG.debug("hotfix snapshot version = " + hotfixVersion);
         String hotfixReleaseVersion = getReleaseVersion(hotfixVersion);
         LOG.debug("hotfix release version = " + hotfixReleaseVersion);
         setVersion(hotfixReleaseVersion);
 
         /* Switch to develop branch and get current develop version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         LOG.debug("develop version = " + developVersion);
 
         /* Set develop branch to hotfix version to prevent merge conflicts */
         setVersion(hotfixReleaseVersion);
 
         if (!allowSnapshots) {
             reloadReactorProjects();
             checkForSnapshotDependencies();
         }
 
         /* finish hotfix */
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
+        gitflowHotfix.setPush(pushHotfixes);
         gitflowHotfix.setSquash(squash);
         gitflowHotfix.setKeep(keep);
         gitflowHotfix.setSign(sign);
         gitflowHotfix.setSigningkey(signingkey);
 
         try {
             gitflowHotfix.finish(hotfixName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             LOG.error("Merge conflicts exist.", gmce);
             throw new MojoFailureException(gmce.getMessage());
 
 //            LOG.info("Attempting to auto-resolve any pom version conflicts.", gmce);
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            fixPomMergeConflicts.setInit(getGitflowInit());
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
         /* Set develop branch back to original develop version */
         setVersion(developVersion);
         if (getGitflowInit().gitRemoteBranchExists(developBranch)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + developBranch);
         }
 
         /* Switch to hotfix tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + hotfixReleaseVersion);
         reloadReactorProjects();
 
         /* install or deploy */
         if (skipDeploy == false) {
             String goals = "clean deploy";
             if (project.getDistributionManagement() != null
                     && project.getDistributionManagement().getSite() != null) {
                 goals += " site-deploy";
             }
 
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             if (useReleaseProfile) {
                 additionalArgs.add("-DperformRelease=true");
             }
             if (StringUtils.isNotBlank(releaseProfiles)) {
                 Iterable<String> profiles = PROFILES_SPLITTER.split(releaseProfiles);
                 additionalArgs.add("-P " + PROFILES_JOINER.join(profiles));
             }
             runGoals(goals, additionalArgs.build());
         } else if (skipBuild == false) {
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             runGoals("clean install", additionalArgs.build());
         } else {
             LOG.debug("Skipping both install and deploy for hotfix tag " + hotfixName);
         }
 
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingHotfixName(List<String> hotfixBranches, String defaultHotfixName) throws MojoFailureException {
         String message = "Please select a hotfix branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, hotfixBranches, defaultHotfixName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading hotfix name from command line " + e.getMessage());
         }
 
         return name;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index c26768d..73123ad 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -38,285 +38,286 @@ import com.google.common.collect.ImmutableList;
 /**
  * Merges a release branch back into the develop and master branch and then
  * creates a tag for the release on master.
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(ReleaseFinishMojo.class.getName());
 
     /**
      * If <code>true</code>, the release can still finish even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private Boolean allowSnapshots;
 
     /**
      * If the project has a parent with a release version it will be replaced
      * with the next <code>-SNAPSHOT</code> version (if it has been deployed).
      * This action is performed on the develop branch after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "updateParent", defaultValue = "true", required = false)
     private Boolean updateParent;
 
     /**
      * On the release branch before finish is called any dependencies with a
      * <code>-SNAPSHOT</code> version are replaced with the corresponding
      * release version (if it has been released).
      *
      * On the develop branch after the merge any dependencies with a release
      * version are replaced with the next <code>-SNAPSHOT</code> version (if it
      * has been deployed).
      *
      * @since 1.2
      */
     @Parameter(property = "updateDependencies", defaultValue = "true", required = false)
     private Boolean updateDependencies;
 
     /**
      * If <code>updateDependencies</code> is set, then this should contain a
      * comma separated list of artifact patterns to include. Follows the pattern <code>groupId:artifactId:type:classifier:version<code>
      *
      * @since 1.5
      */
     @Parameter(property = "includes", defaultValue = "", required = false)
     private String includes;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "false", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any calls to <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipDeploy", defaultValue = "false", required = false)
     private Boolean skipDeploy;
 
     /**
      * Skips any tests during <code>mvn install</code> and
      * <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipTests", defaultValue = "false", required = false)
     private Boolean skipTests;
 
     /**
      * Whether to use the release profile that adds sources and javadoc to the
      * released artifact, if appropriate. If set to true, the release-finish
      * will set the property "performRelease" to true, which activates the
      * profile "release-profile", which is inherited from the super pom.
      *
      * @since 1.2
      */
     @Parameter(property = "useReleaseProfile", defaultValue = "true", required = false)
     private Boolean useReleaseProfile;
 
     /**
      * Comma separated profiles to enable on deployment, in addition to active
      * profiles for project execution.
      *
      * @since 1.2
      */
     @Parameter(property = "releaseProfiles", defaultValue = "", required = false)
     private String releaseProfiles;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the branch will not be deleted after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keep;
 
     /**
      * If <code>true</code>, the release tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         LOG.debug("Finishing release");
 
         /* Get release branch name */
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
         if (releaseBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         } else if (releaseBranches.size() == 1) {
             releaseName = releaseBranches.get(0);
         } else {
             releaseName = promptForExistingReleaseName(releaseBranches, releaseName);
         }
 
         LOG.info("Finishing release '{}'", releaseName);
 
         /* Switch to develop branch and get its current version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         LOG.debug("develop version = " + developVersion);
 
         /* Switch to release branch and set poms to release version */
         getGitflowInit().executeLocal("git checkout " + releaseName);
         reloadReactorProjects();
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(project.getVersion());
         String releaseVersion;
         if ("SNAPSHOT".equals(artifactVersion.getBuildSpecifier())) {
             releaseVersion = getReleaseVersion(project.getVersion());
         } else {
             releaseVersion = project.getVersion();
         }
         LOG.debug("release version = " + releaseVersion);
 
         setVersion(releaseVersion);
 
         /* Update release branch dependencies to release version */
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions(false, updateParent, includes);
         }
 
         if (!allowSnapshots) {
             reloadReactorProjects();
             checkForSnapshotDependencies();
         }
 
         /* finish release */
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
+        gitflowRelease.setPush(pushReleases);
         gitflowRelease.setSquash(squash);
         gitflowRelease.setKeep(keep);
         gitflowRelease.setSign(sign);
         gitflowRelease.setSigningkey(signingkey);
 
         /* 1. merge to master */
         try {
             gitflowRelease.finishToMaster(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
 
         /* 2. make versions in release and develop branches match to avoid conflicts */
         getGitflowInit().executeLocal("git checkout " + releaseName);
         reloadReactorProjects();
         setVersion(developVersion);
 
         /* 3. merge to develop */
         try {
             gitflowRelease.finishToDevelop(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
         /* Update develop branch dependencies to next snapshot version (if deployed) */
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions(true, updateParent, includes);
         }
 
         /* Switch to release tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);
         reloadReactorProjects();
         String tagVersion = project.getVersion();
         LOG.debug("tag version = " + tagVersion);
 
         /* install or deploy */
         if (skipDeploy == false) {
             String goals = "clean deploy";
             if (project.getDistributionManagement() != null
                     && project.getDistributionManagement().getSite() != null) {
                 goals += " site-deploy";
             }
 
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             if (useReleaseProfile) {
                 additionalArgs.add("-DperformRelease=true");
             }
             if (StringUtils.isNotBlank(releaseProfiles)) {
                 Iterable<String> profiles = PROFILES_SPLITTER.split(releaseProfiles);
                 additionalArgs.add("-P " + PROFILES_JOINER.join(profiles));
             }
             runGoals(goals, additionalArgs.build());
         } else if (skipBuild == false) {
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             runGoals("clean install", additionalArgs.build());
         } else {
             LOG.debug("Skipping both install and deploy for release tag " + releaseName);
         }
 
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingReleaseName(List<String> releaseBranches, String defaultReleaseName) throws MojoFailureException {
         String message = "Please select a release branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, releaseBranches, defaultReleaseName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading release name from command line " + e.getMessage());
         }
 
         return name;
     }
 }

commit d422a6e2f6b82d994cea5503e34dfe54342ea831
Author: Dessie Kirrane <dkirrane@avaya.com>
Date:   Tue Apr 8 17:33:54 2014 +0100

    fix repoDir being null

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index 1fa9fb7..315c8cd 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -78,479 +78,484 @@ import com.google.common.collect.ImmutableList;
 public class AbstractGitflowMojo extends AbstractMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(AbstractGitflowMojo.class.getName());
 
     public final Pattern matchSnapshotRegex = Pattern.compile("-SNAPSHOT");
 
     public static final ImmutableList<String> DEFAULT_INSTALL_ARGS = ImmutableList.of(
             "-DinstallAtEnd=true");
 
     public static final ImmutableList<String> DEFAULT_DEPLOY_ARGS = ImmutableList.of(
             "-DdeployAtEnd=true",
             "-DretryFailedDeploymentCount=2");
 
     public static final Splitter PROFILES_SPLITTER = Splitter.on(',').trimResults().omitEmptyStrings();
     public static final Joiner PROFILES_JOINER = Joiner.on(',').skipNulls();
 
     /**
      * Gitflow branches and prefixes to use.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
     /**
      * Message prefix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgPrefix", defaultValue = "", required = false)
     protected String msgPrefix;
 
     /**
      * Message suffix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgSuffix", defaultValue = "", required = false)
     protected String msgSuffix;
 
     /**
      * Component used to prompt for input.
      */
     @Component
     protected Prompter prompter;
 
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
     @Component
     protected ArtifactResolver artifactResolver;
 
     /**
      * @parameter default-value="${project.artifacts}"
      * @required
      * @readonly
      */
     protected Collection artifacts;
 
     /**
      * @parameter expression="${localRepository}"
      */
     protected ArtifactRepository localRepository;
 
     /**
      * @parameter expression="${project.remoteArtifactRepositories}"
      */
     protected List remoteArtifactRepositories;
 
 //    @Component
 //    protected MavenProjectBuilder projectBuilder;
 //    @Component
 //    protected DefaultProjectBuilder projectBuilder;
 //    /**
 //     * @parameter property="plugin"
 //     * @required
 //     */
 //    @Component
 //    protected PluginDescriptor pluginDescriptor;
 //
     /**
      * The projects in the reactor.
      */
     @Parameter(defaultValue = "${reactorProjects}", readonly = true, required = true)
     protected List<MavenProject> reactorProjects;
 
     /**
      * The project builder
      */
     @Component
     private ProjectBuilder projectBuilder;
 
     /**
      * The project currently being build.
      *
      * @parameter expression="${project}"
      * @required
      * @readonly
      */
     @Component
     protected MavenProject project;
 
     /**
      * The current Maven session.
      *
      * @parameter expression="${session}"
      * @required
      * @readonly
      */
     @Component
     protected MavenSession session;
 
     /**
      * The Maven BuildPluginManager component.
      *
      * @component
      * @required
      */
     @Component
     protected BuildPluginManager pluginManager;
 
 //    @Parameter(defaultValue = "${basedir}", readonly = true, required = true)
 //    protected File basedir;
 //    @Component
 //    protected Settings settings;
     private GitflowInit init;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     public void execute() throws MojoExecutionException, MojoFailureException {
         StaticLoggerBinder.getSingleton().setMavenLog(this.getLog());
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             LOG.debug("Gitflow pom  '" + project.getBasedir() + "'");
         }
 
         GitflowInit gitflowInit = getGitflowInit();
 
         gitflowInit.requireGitRepo();
 
         if (!gitflowInit.gitflowIsInitialized()) {
             try {
                 gitflowInit.cmdDefault();
             } catch (GitflowException ex) {
                 throw new MojoExecutionException("Failed to inintialise Gitflow " + ex.getMessage(), ex);
             }
         }
 
         gitflowInit.requireCleanWorkingTree();
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     protected final GitflowInit getGitflowInit() {
         if (null == init) {
             LOG.info("Initialising Gitflow");
             init = new GitflowInit();
-            init.setRepoDir(getProject().getBasedir());
+            File basedir = getProject().getBasedir();
+            LOG.debug("Setting base directory " + basedir);
+            init.setRepoDir(basedir);
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
 
             /* root Git directory may not be the pom directory */
-            String dotGitDir = init.executeLocal("git rev-parse --git-dir");
-            File dotGitFolder = new File(dotGitDir);
-            assert dotGitFolder.exists();
-            init.setRepoDir(dotGitFolder.getParentFile());
+            String gitRootPath = init.executeLocal("git rev-parse --show-toplevel"); 
+            LOG.debug("Git repo top level " + gitRootPath);
+            File baseGitDir = new File(gitRootPath);
+            if (baseGitDir.isDirectory()) {
+                LOG.debug("Setting git base directory " + baseGitDir);
+                init.setRepoDir(baseGitDir);
+            }
         }
         return init;
     }
 
     protected final void setVersion(String version) throws MojoExecutionException, MojoFailureException {
         LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
 
         for (MavenProject mavenProject : reactorProjects) {
             LOG.debug("Calling versions-maven-plugin:set on " + mavenProject.getArtifactId());
             session.setCurrentProject(mavenProject);
             try {
                 executeMojo(
                         plugin(
                                 groupId("org.codehaus.mojo"),
                                 artifactId("versions-maven-plugin"),
                                 version("2.1")
                         ),
                         goal("set"),
                         configuration(
                                 element(name("generateBackupPoms"), "false"),
                                 element(name("newVersion"), version)
                         ),
                         executionEnvironment(
                                 mavenProject,
                                 session,
                                 pluginManager
                         )
                 );
             } catch (MojoExecutionException mee) {
                 String rootCauseMessage = ExceptionUtils.getRootCauseMessage(mee);
                 if (rootCauseMessage.contains("Project version is inherited from parent")) {
                     LOG.warn("Skipping versions-maven-plugin:set for project " + mavenProject.getArtifactId() + ". Project version is inherited from parent.");
                 } else {
                     LOG.error("Cannot set {} to version '{}'", mavenProject.getArtifactId(), version, mee);
                     throw mee;
                 }
             }
         }
         LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change " + version + " to origin. ExitCode:" + exitCode);
                 }
             }
         }
         /* We don't want to fail maybe the version was manually set correctly */
 //        else {
 //            throw new MojoFailureException("Failed to update poms to version " + version);
 //        }
     }
 
     protected final void setNextVersions(Boolean allowSnapshots, Boolean updateParent, String includes) throws MojoExecutionException, MojoFailureException {
         LOG.debug("setNextVersions");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
 
         if (updateParent) {
             LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:update-parent updateParent={}", updateParent);
             executeMojo(
                     plugin(
                             groupId("org.codehaus.mojo"),
                             artifactId("versions-maven-plugin"),
                             version("2.1")
                     ),
                     goal("update-parent"),
                     configuration(
                             element(name("generateBackupPoms"), "false"),
                             element(name("allowSnapshots"), allowSnapshots.toString())
                     ),
                     executionEnvironment(
                             rootProject,
                             session,
                             pluginManager
                     )
             );
             LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:update-parent");
         }
 
         if (!StringUtils.isBlank(includes)) {
             LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:use-next-versions allowSnapshots={}", allowSnapshots);
             for (MavenProject mavenProject : reactorProjects) {
                 LOG.debug("Calling use-next-versions on " + mavenProject.getArtifactId());
                 session.setCurrentProject(mavenProject);
                 executeMojo(
                         plugin(
                                 groupId("org.codehaus.mojo"),
                                 artifactId("versions-maven-plugin"),
                                 version("2.1")
                         ),
                         goal("use-next-versions"),
                         configuration(
                                 element(name("generateBackupPoms"), "false"),
                                 element(name("allowSnapshots"), allowSnapshots.toString()),
                                 element(name("includes"), includes)
                         ),
                         executionEnvironment(
                                 mavenProject,
                                 session,
                                 pluginManager
                         )
                 );
             }
             LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:use-next-versions");
         } else {
             LOG.warn("Parameter <includes> is not set. Skipping dependency updates");
         }
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg;
             if (allowSnapshots) {
                 msg = getMsgPrefix() + "Replaces any release versions with the next snapshot version (if it has been deployed)." + getMsgSuffix();
             } else {
                 msg = getMsgPrefix() + "Replaces snapshot versions with the corresponding release version" + getMsgSuffix();
             }
 
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change to origin. ExitCode:" + exitCode);
                 }
             }
         }
     }
 
     protected final void runGoals(String goals, List<String> additionalArgs) throws MojoExecutionException, MojoFailureException {
         LOG.debug("START executing " + goals + " with args " + additionalArgs);
 
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         File basedir = rootProject.getBasedir();
 
         ReleaseResult result = new ReleaseResult();
         ReleaseEnvironment env = new DefaultReleaseEnvironment();
         env.setSettings(session.getSettings());
         MavenExecutor mavenExecutor = mavenExecutors.get(env.getMavenExecutorId());
 
         Joiner joiner = Joiner.on(" ").skipNulls();
         String additionalArguments = joiner.join(additionalArgs);
         LOG.debug("additionalArguments " + additionalArguments);
 
         try {
             mavenExecutor.executeGoals(basedir, goals, env, false, additionalArguments, result);
         } catch (MavenExecutorException ex) {
             throw new MojoExecutionException(result.getOutput(), ex);
         }
         LOG.debug("DONE executing " + goals);
     }
 
     protected final String getReleaseVersion(String version) throws MojoFailureException {
         LOG.debug("Current Develop version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
             LOG.debug("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
     protected final void checkForSnapshotDependencies() throws MojoExecutionException {
         LOG.info("Checking for SNAPSHOT dependencies");
         Boolean hasDepSnapshots = false;
         Boolean hasParentSnapshot = false;
         for (MavenProject mavenProject : reactorProjects) {
             String artifactId = mavenProject.getArtifactId();
 
             /* Check <parent> */
             Artifact parentArtifact = mavenProject.getParentArtifact();
             if (parentArtifact != null && parentArtifact.isSnapshot()) {
                 LOG.error("Parent of project " + artifactId + " is a SNAPSHOT " + parentArtifact.getId());
                 hasParentSnapshot = true;
             }
 
             /* Check <dependencyManagement> */
             DependencyManagement dependencyManagement = mavenProject.getDependencyManagement();
             if (null != dependencyManagement) {
                 if (checkForSnapshot(artifactId, dependencyManagement.getDependencies())) {
                     hasDepSnapshots = true;
                 }
             }
 
             /* Check <dependencies> */
             if (checkForSnapshot(artifactId, mavenProject.getDependencies())) {
                 hasDepSnapshots = true;
             }
         }
         if (hasParentSnapshot || hasDepSnapshots) {
             throw new MojoExecutionException("Cannot release because SNAPSHOT dependencies exist");
         }
     }
 
     private boolean checkForSnapshot(String artifactId, List<Dependency> dependencies) throws MojoExecutionException {
         Boolean hasSnapshotDependency = false;
         for (Dependency dependency : dependencies) {
             String version = dependency.getVersion();
             Matcher versionMatcher = matchSnapshotRegex.matcher(version);
             if (versionMatcher.find() && versionMatcher.end() == version.length()) {
                 LOG.error("Project " + artifactId + " contains SNAPSHOT dependency: " + dependency.getGroupId() + ":" + dependency.getArtifactId() + ":" + version);
                 hasSnapshotDependency = true;
             }
         }
         return hasSnapshotDependency;
     }
 
     protected final void reloadReactorProjects() throws MojoExecutionException {
         LOG.debug("Reloading poms...");
 
         List<MavenProject> newReactorProjects;
         try {
             newReactorProjects = buildReactorProjects();
         } catch (ProjectBuildingException e) {
             LOG.error("Re-parse aborted due to malformed pom.xml file(s)", e);
             throw new MojoExecutionException("Re-parse aborted due to malformed pom.xml file(s)", e);
         } catch (CycleDetectedException e) {
             LOG.error("Re-parse aborted due to dependency cycle in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to dependency cycle in project model", e);
         } catch (DuplicateProjectException e) {
             LOG.error("Re-parse aborted due to duplicate projects in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to duplicate projects in project model", e);
         } catch (Exception e) {
             LOG.error("Re-parse aborted due a problem that prevented sorting the project model", e);
             throw new MojoExecutionException("Re-parse aborted due a problem that prevented sorting the project model", e);
         }
         MavenProject newProject = findProject(newReactorProjects, this.project);
         if (newProject == null) {
             throw new MojoExecutionException("A pom.xml change appears to have removed " + this.project.getId() + " from the build plan.");
         }
 
         this.project = newProject;
         this.reactorProjects = newReactorProjects;
 
         LOG.debug("Reloading poms complete...");
     }
 
     private List<MavenProject> buildReactorProjects() throws Exception {
 
         List<MavenProject> projects = new ArrayList<MavenProject>();
         for (MavenProject p : reactorProjects) {
             ProjectBuildingRequest request = new DefaultProjectBuildingRequest();
 
             request.setProcessPlugins(true);
             request.setProfiles(request.getProfiles());
             request.setActiveProfileIds(session.getRequest().getActiveProfiles());
             request.setInactiveProfileIds(session.getRequest().getInactiveProfiles());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setSystemProperties(session.getSystemProperties());
             request.setUserProperties(session.getUserProperties());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setPluginArtifactRepositories(session.getRequest().getPluginArtifactRepositories());
             request.setRepositorySession(session.getRepositorySession());
             request.setLocalRepository(localRepository);
             request.setBuildStartTime(session.getRequest().getStartTime());
             request.setResolveDependencies(true);
             request.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_STRICT);
             projects.add(projectBuilder.build(p.getFile(), request).getProject());
         }
         return new ProjectSorter(projects).getSortedProjects();
     }
 
     private MavenProject findProject(List<MavenProject> newReactorProjects, MavenProject oldProject) {
         for (MavenProject newProject : newReactorProjects) {
             if (oldProject.getGroupId().equals(newProject.getGroupId())
                     && oldProject.getArtifactId().equals(newProject.getArtifactId())) {
                 return newProject;
             }
         }
         return null;
     }
 
 }

commit 1f2455d00f93e5c2ee576aa8b766fdd70ad6bf26
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Tue Apr 1 21:38:19 2014 +0100

    Handling dependency updates

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index 89dbf32..1fa9fb7 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -78,475 +78,479 @@ import com.google.common.collect.ImmutableList;
 public class AbstractGitflowMojo extends AbstractMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(AbstractGitflowMojo.class.getName());
 
     public final Pattern matchSnapshotRegex = Pattern.compile("-SNAPSHOT");
 
     public static final ImmutableList<String> DEFAULT_INSTALL_ARGS = ImmutableList.of(
             "-DinstallAtEnd=true");
 
     public static final ImmutableList<String> DEFAULT_DEPLOY_ARGS = ImmutableList.of(
             "-DdeployAtEnd=true",
             "-DretryFailedDeploymentCount=2");
 
     public static final Splitter PROFILES_SPLITTER = Splitter.on(',').trimResults().omitEmptyStrings();
     public static final Joiner PROFILES_JOINER = Joiner.on(',').skipNulls();
 
     /**
      * Gitflow branches and prefixes to use.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
     /**
      * Message prefix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgPrefix", defaultValue = "", required = false)
     protected String msgPrefix;
 
     /**
      * Message suffix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgSuffix", defaultValue = "", required = false)
     protected String msgSuffix;
 
     /**
      * Component used to prompt for input.
      */
     @Component
     protected Prompter prompter;
 
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
     @Component
     protected ArtifactResolver artifactResolver;
 
     /**
      * @parameter default-value="${project.artifacts}"
      * @required
      * @readonly
      */
     protected Collection artifacts;
 
     /**
      * @parameter expression="${localRepository}"
      */
     protected ArtifactRepository localRepository;
 
     /**
      * @parameter expression="${project.remoteArtifactRepositories}"
      */
     protected List remoteArtifactRepositories;
 
 //    @Component
 //    protected MavenProjectBuilder projectBuilder;
 //    @Component
 //    protected DefaultProjectBuilder projectBuilder;
 //    /**
 //     * @parameter property="plugin"
 //     * @required
 //     */
 //    @Component
 //    protected PluginDescriptor pluginDescriptor;
 //
     /**
      * The projects in the reactor.
      */
     @Parameter(defaultValue = "${reactorProjects}", readonly = true, required = true)
     protected List<MavenProject> reactorProjects;
 
     /**
      * The project builder
      */
     @Component
     private ProjectBuilder projectBuilder;
 
     /**
      * The project currently being build.
      *
      * @parameter expression="${project}"
      * @required
      * @readonly
      */
     @Component
     protected MavenProject project;
 
     /**
      * The current Maven session.
      *
      * @parameter expression="${session}"
      * @required
      * @readonly
      */
     @Component
     protected MavenSession session;
 
     /**
      * The Maven BuildPluginManager component.
      *
      * @component
      * @required
      */
     @Component
     protected BuildPluginManager pluginManager;
 
 //    @Parameter(defaultValue = "${basedir}", readonly = true, required = true)
 //    protected File basedir;
 //    @Component
 //    protected Settings settings;
     private GitflowInit init;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     public void execute() throws MojoExecutionException, MojoFailureException {
         StaticLoggerBinder.getSingleton().setMavenLog(this.getLog());
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             LOG.debug("Gitflow pom  '" + project.getBasedir() + "'");
         }
 
         GitflowInit gitflowInit = getGitflowInit();
 
         gitflowInit.requireGitRepo();
 
         if (!gitflowInit.gitflowIsInitialized()) {
             try {
                 gitflowInit.cmdDefault();
             } catch (GitflowException ex) {
                 throw new MojoExecutionException("Failed to inintialise Gitflow " + ex.getMessage(), ex);
             }
         }
 
         gitflowInit.requireCleanWorkingTree();
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     protected final GitflowInit getGitflowInit() {
         if (null == init) {
             LOG.info("Initialising Gitflow");
             init = new GitflowInit();
             init.setRepoDir(getProject().getBasedir());
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
 
             /* root Git directory may not be the pom directory */
             String dotGitDir = init.executeLocal("git rev-parse --git-dir");
             File dotGitFolder = new File(dotGitDir);
             assert dotGitFolder.exists();
             init.setRepoDir(dotGitFolder.getParentFile());
         }
         return init;
     }
 
     protected final void setVersion(String version) throws MojoExecutionException, MojoFailureException {
         LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
 
         for (MavenProject mavenProject : reactorProjects) {
             LOG.debug("Calling versions-maven-plugin:set on " + mavenProject.getArtifactId());
             session.setCurrentProject(mavenProject);
             try {
                 executeMojo(
                         plugin(
                                 groupId("org.codehaus.mojo"),
                                 artifactId("versions-maven-plugin"),
                                 version("2.1")
                         ),
                         goal("set"),
                         configuration(
                                 element(name("generateBackupPoms"), "false"),
                                 element(name("newVersion"), version)
                         ),
                         executionEnvironment(
                                 mavenProject,
                                 session,
                                 pluginManager
                         )
                 );
             } catch (MojoExecutionException mee) {
                 String rootCauseMessage = ExceptionUtils.getRootCauseMessage(mee);
                 if (rootCauseMessage.contains("Project version is inherited from parent")) {
                     LOG.warn("Skipping versions-maven-plugin:set for project " + mavenProject.getArtifactId() + ". Project version is inherited from parent.");
                 } else {
                     LOG.error("Cannot set {} to version '{}'", mavenProject.getArtifactId(), version, mee);
                     throw mee;
                 }
             }
         }
         LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change " + version + " to origin. ExitCode:" + exitCode);
                 }
             }
         }
         /* We don't want to fail maybe the version was manually set correctly */
 //        else {
 //            throw new MojoFailureException("Failed to update poms to version " + version);
 //        }
     }
 
-    protected final void setNextVersions(Boolean allowSnapshots, Boolean updateParent, String dependenciesIncludesList) throws MojoExecutionException, MojoFailureException {
+    protected final void setNextVersions(Boolean allowSnapshots, Boolean updateParent, String includes) throws MojoExecutionException, MojoFailureException {
         LOG.debug("setNextVersions");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
 
         if (updateParent) {
             LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:update-parent updateParent={}", updateParent);
             executeMojo(
                     plugin(
                             groupId("org.codehaus.mojo"),
                             artifactId("versions-maven-plugin"),
                             version("2.1")
                     ),
                     goal("update-parent"),
                     configuration(
                             element(name("generateBackupPoms"), "false"),
                             element(name("allowSnapshots"), allowSnapshots.toString())
                     ),
                     executionEnvironment(
                             rootProject,
                             session,
                             pluginManager
                     )
             );
             LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:update-parent");
         }
 
-        LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:use-next-versions allowSnapshots={}", allowSnapshots);
-        for (MavenProject mavenProject : reactorProjects) {
-            LOG.debug("Calling use-next-versions on " + mavenProject.getArtifactId());
-            session.setCurrentProject(mavenProject);
-            executeMojo(
-                    plugin(
-                            groupId("org.codehaus.mojo"),
-                            artifactId("versions-maven-plugin"),
-                            version("2.1")
-                    ),
-                    goal("use-next-versions"),
-                    configuration(
-                            element(name("generateBackupPoms"), "false"),
-                            element(name("allowSnapshots"), allowSnapshots.toString()),
-                            element(name("includes"), dependenciesIncludesList)
-                    ),
-                    executionEnvironment(
-                            mavenProject,
-                            session,
-                            pluginManager
-                    )
-            );
+        if (!StringUtils.isBlank(includes)) {
+            LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:use-next-versions allowSnapshots={}", allowSnapshots);
+            for (MavenProject mavenProject : reactorProjects) {
+                LOG.debug("Calling use-next-versions on " + mavenProject.getArtifactId());
+                session.setCurrentProject(mavenProject);
+                executeMojo(
+                        plugin(
+                                groupId("org.codehaus.mojo"),
+                                artifactId("versions-maven-plugin"),
+                                version("2.1")
+                        ),
+                        goal("use-next-versions"),
+                        configuration(
+                                element(name("generateBackupPoms"), "false"),
+                                element(name("allowSnapshots"), allowSnapshots.toString()),
+                                element(name("includes"), includes)
+                        ),
+                        executionEnvironment(
+                                mavenProject,
+                                session,
+                                pluginManager
+                        )
+                );
+            }
+            LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:use-next-versions");
+        } else {
+            LOG.warn("Parameter <includes> is not set. Skipping dependency updates");
         }
-        LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:use-next-versions");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg;
             if (allowSnapshots) {
                 msg = getMsgPrefix() + "Replaces any release versions with the next snapshot version (if it has been deployed)." + getMsgSuffix();
             } else {
                 msg = getMsgPrefix() + "Replaces snapshot versions with the corresponding release version" + getMsgSuffix();
             }
 
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change to origin. ExitCode:" + exitCode);
                 }
             }
         }
     }
 
     protected final void runGoals(String goals, List<String> additionalArgs) throws MojoExecutionException, MojoFailureException {
         LOG.debug("START executing " + goals + " with args " + additionalArgs);
 
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         File basedir = rootProject.getBasedir();
 
         ReleaseResult result = new ReleaseResult();
         ReleaseEnvironment env = new DefaultReleaseEnvironment();
         env.setSettings(session.getSettings());
         MavenExecutor mavenExecutor = mavenExecutors.get(env.getMavenExecutorId());
 
         Joiner joiner = Joiner.on(" ").skipNulls();
         String additionalArguments = joiner.join(additionalArgs);
         LOG.debug("additionalArguments " + additionalArguments);
 
         try {
             mavenExecutor.executeGoals(basedir, goals, env, false, additionalArguments, result);
         } catch (MavenExecutorException ex) {
             throw new MojoExecutionException(result.getOutput(), ex);
         }
         LOG.debug("DONE executing " + goals);
     }
 
     protected final String getReleaseVersion(String version) throws MojoFailureException {
         LOG.debug("Current Develop version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
             LOG.debug("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
     protected final void checkForSnapshotDependencies() throws MojoExecutionException {
         LOG.info("Checking for SNAPSHOT dependencies");
         Boolean hasDepSnapshots = false;
         Boolean hasParentSnapshot = false;
         for (MavenProject mavenProject : reactorProjects) {
             String artifactId = mavenProject.getArtifactId();
 
             /* Check <parent> */
             Artifact parentArtifact = mavenProject.getParentArtifact();
             if (parentArtifact != null && parentArtifact.isSnapshot()) {
                 LOG.error("Parent of project " + artifactId + " is a SNAPSHOT " + parentArtifact.getId());
                 hasParentSnapshot = true;
             }
 
             /* Check <dependencyManagement> */
             DependencyManagement dependencyManagement = mavenProject.getDependencyManagement();
             if (null != dependencyManagement) {
                 if (checkForSnapshot(artifactId, dependencyManagement.getDependencies())) {
                     hasDepSnapshots = true;
                 }
             }
 
             /* Check <dependencies> */
             if (checkForSnapshot(artifactId, mavenProject.getDependencies())) {
                 hasDepSnapshots = true;
             }
         }
         if (hasParentSnapshot || hasDepSnapshots) {
             throw new MojoExecutionException("Cannot release because SNAPSHOT dependencies exist");
         }
     }
 
     private boolean checkForSnapshot(String artifactId, List<Dependency> dependencies) throws MojoExecutionException {
         Boolean hasSnapshotDependency = false;
         for (Dependency dependency : dependencies) {
             String version = dependency.getVersion();
             Matcher versionMatcher = matchSnapshotRegex.matcher(version);
             if (versionMatcher.find() && versionMatcher.end() == version.length()) {
                 LOG.error("Project " + artifactId + " contains SNAPSHOT dependency: " + dependency.getGroupId() + ":" + dependency.getArtifactId() + ":" + version);
                 hasSnapshotDependency = true;
             }
         }
         return hasSnapshotDependency;
     }
 
     protected final void reloadReactorProjects() throws MojoExecutionException {
         LOG.debug("Reloading poms...");
 
         List<MavenProject> newReactorProjects;
         try {
             newReactorProjects = buildReactorProjects();
         } catch (ProjectBuildingException e) {
             LOG.error("Re-parse aborted due to malformed pom.xml file(s)", e);
             throw new MojoExecutionException("Re-parse aborted due to malformed pom.xml file(s)", e);
         } catch (CycleDetectedException e) {
             LOG.error("Re-parse aborted due to dependency cycle in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to dependency cycle in project model", e);
         } catch (DuplicateProjectException e) {
             LOG.error("Re-parse aborted due to duplicate projects in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to duplicate projects in project model", e);
         } catch (Exception e) {
             LOG.error("Re-parse aborted due a problem that prevented sorting the project model", e);
             throw new MojoExecutionException("Re-parse aborted due a problem that prevented sorting the project model", e);
         }
         MavenProject newProject = findProject(newReactorProjects, this.project);
         if (newProject == null) {
             throw new MojoExecutionException("A pom.xml change appears to have removed " + this.project.getId() + " from the build plan.");
         }
 
         this.project = newProject;
         this.reactorProjects = newReactorProjects;
 
         LOG.debug("Reloading poms complete...");
     }
 
     private List<MavenProject> buildReactorProjects() throws Exception {
 
         List<MavenProject> projects = new ArrayList<MavenProject>();
         for (MavenProject p : reactorProjects) {
             ProjectBuildingRequest request = new DefaultProjectBuildingRequest();
 
             request.setProcessPlugins(true);
             request.setProfiles(request.getProfiles());
             request.setActiveProfileIds(session.getRequest().getActiveProfiles());
             request.setInactiveProfileIds(session.getRequest().getInactiveProfiles());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setSystemProperties(session.getSystemProperties());
             request.setUserProperties(session.getUserProperties());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setPluginArtifactRepositories(session.getRequest().getPluginArtifactRepositories());
             request.setRepositorySession(session.getRepositorySession());
             request.setLocalRepository(localRepository);
             request.setBuildStartTime(session.getRequest().getStartTime());
             request.setResolveDependencies(true);
             request.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_STRICT);
             projects.add(projectBuilder.build(p.getFile(), request).getProject());
         }
         return new ProjectSorter(projects).getSortedProjects();
     }
 
     private MavenProject findProject(List<MavenProject> newReactorProjects, MavenProject oldProject) {
         for (MavenProject newProject : newReactorProjects) {
             if (oldProject.getGroupId().equals(newProject.getGroupId())
                     && oldProject.getArtifactId().equals(newProject.getArtifactId())) {
                 return newProject;
             }
         }
         return null;
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index 8e27400..c26768d 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -38,285 +38,285 @@ import com.google.common.collect.ImmutableList;
 /**
  * Merges a release branch back into the develop and master branch and then
  * creates a tag for the release on master.
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(ReleaseFinishMojo.class.getName());
 
     /**
      * If <code>true</code>, the release can still finish even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private Boolean allowSnapshots;
 
     /**
      * If the project has a parent with a release version it will be replaced
      * with the next <code>-SNAPSHOT</code> version (if it has been deployed).
      * This action is performed on the develop branch after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "updateParent", defaultValue = "true", required = false)
     private Boolean updateParent;
 
     /**
      * On the release branch before finish is called any dependencies with a
      * <code>-SNAPSHOT</code> version are replaced with the corresponding
      * release version (if it has been released).
      *
      * On the develop branch after the merge any dependencies with a release
      * version are replaced with the next <code>-SNAPSHOT</code> version (if it
      * has been deployed).
      *
      * @since 1.2
      */
     @Parameter(property = "updateDependencies", defaultValue = "true", required = false)
     private Boolean updateDependencies;
 
     /**
-     * A comma separated list of artifact patterns to include. Follows the
-     * pattern <code>groupId:artifactId:type:classifier:version<code>
+     * If <code>updateDependencies</code> is set, then this should contain a
+     * comma separated list of artifact patterns to include. Follows the pattern <code>groupId:artifactId:type:classifier:version<code>
      *
-     * @since 1.4
+     * @since 1.5
      */
-    @Parameter(property = "dependenciesIncludesList", defaultValue = "", required = false)
-    private String dependenciesIncludesList;
+    @Parameter(property = "includes", defaultValue = "", required = false)
+    private String includes;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "false", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any calls to <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipDeploy", defaultValue = "false", required = false)
     private Boolean skipDeploy;
 
     /**
      * Skips any tests during <code>mvn install</code> and
      * <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipTests", defaultValue = "false", required = false)
     private Boolean skipTests;
 
     /**
      * Whether to use the release profile that adds sources and javadoc to the
      * released artifact, if appropriate. If set to true, the release-finish
      * will set the property "performRelease" to true, which activates the
      * profile "release-profile", which is inherited from the super pom.
      *
      * @since 1.2
      */
     @Parameter(property = "useReleaseProfile", defaultValue = "true", required = false)
     private Boolean useReleaseProfile;
 
     /**
      * Comma separated profiles to enable on deployment, in addition to active
      * profiles for project execution.
      *
      * @since 1.2
      */
     @Parameter(property = "releaseProfiles", defaultValue = "", required = false)
     private String releaseProfiles;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the branch will not be deleted after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keep;
 
     /**
      * If <code>true</code>, the release tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         LOG.debug("Finishing release");
 
         /* Get release branch name */
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
         if (releaseBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         } else if (releaseBranches.size() == 1) {
             releaseName = releaseBranches.get(0);
         } else {
             releaseName = promptForExistingReleaseName(releaseBranches, releaseName);
         }
 
         LOG.info("Finishing release '{}'", releaseName);
 
         /* Switch to develop branch and get its current version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         LOG.debug("develop version = " + developVersion);
 
         /* Switch to release branch and set poms to release version */
         getGitflowInit().executeLocal("git checkout " + releaseName);
         reloadReactorProjects();
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(project.getVersion());
         String releaseVersion;
         if ("SNAPSHOT".equals(artifactVersion.getBuildSpecifier())) {
             releaseVersion = getReleaseVersion(project.getVersion());
         } else {
             releaseVersion = project.getVersion();
         }
         LOG.debug("release version = " + releaseVersion);
 
         setVersion(releaseVersion);
 
         /* Update release branch dependencies to release version */
         if (updateDependencies) {
             reloadReactorProjects();
-            setNextVersions(false, updateParent, dependenciesIncludesList);
+            setNextVersions(false, updateParent, includes);
         }
 
         if (!allowSnapshots) {
             reloadReactorProjects();
             checkForSnapshotDependencies();
         }
 
         /* finish release */
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setSquash(squash);
         gitflowRelease.setKeep(keep);
         gitflowRelease.setSign(sign);
         gitflowRelease.setSigningkey(signingkey);
 
         /* 1. merge to master */
         try {
             gitflowRelease.finishToMaster(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
 
         /* 2. make versions in release and develop branches match to avoid conflicts */
         getGitflowInit().executeLocal("git checkout " + releaseName);
         reloadReactorProjects();
         setVersion(developVersion);
 
         /* 3. merge to develop */
         try {
             gitflowRelease.finishToDevelop(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
         /* Update develop branch dependencies to next snapshot version (if deployed) */
         if (updateDependencies) {
             reloadReactorProjects();
-            setNextVersions(true, updateParent, dependenciesIncludesList);
+            setNextVersions(true, updateParent, includes);
         }
 
         /* Switch to release tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);
         reloadReactorProjects();
         String tagVersion = project.getVersion();
         LOG.debug("tag version = " + tagVersion);
 
         /* install or deploy */
         if (skipDeploy == false) {
             String goals = "clean deploy";
             if (project.getDistributionManagement() != null
                     && project.getDistributionManagement().getSite() != null) {
                 goals += " site-deploy";
             }
 
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             if (useReleaseProfile) {
                 additionalArgs.add("-DperformRelease=true");
             }
             if (StringUtils.isNotBlank(releaseProfiles)) {
                 Iterable<String> profiles = PROFILES_SPLITTER.split(releaseProfiles);
                 additionalArgs.add("-P " + PROFILES_JOINER.join(profiles));
             }
             runGoals(goals, additionalArgs.build());
         } else if (skipBuild == false) {
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             runGoals("clean install", additionalArgs.build());
         } else {
             LOG.debug("Skipping both install and deploy for release tag " + releaseName);
         }
 
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingReleaseName(List<String> releaseBranches, String defaultReleaseName) throws MojoFailureException {
         String message = "Please select a release branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, releaseBranches, defaultReleaseName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading release name from command line " + e.getMessage());
         }
 
         return name;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
index bb61c82..9cef67c 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
@@ -31,163 +31,163 @@ import org.slf4j.LoggerFactory;
 /**
  * Creates a new release branch off of the develop branch.
  */
 @Mojo(name = "release-start", aggregator = true)
 public class ReleaseStartMojo extends AbstractReleaseMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(ReleaseStartMojo.class.getName());
 
     /**
      * Whether to run the plugin in interactive mode or not. The default is to
      * run without interaction when possible.
      *
      * @since 1.2
      */
     @Parameter(property = "interactive", defaultValue = "true", required = false)
     protected boolean interactive;
 
     /**
      * If the project has a parent with a <code>-SNAPSHOT</code> version it will
      * be replaced with the corresponding release version (if it has been
      * released). This action is performed on the release branch after it is
      * created.
      *
      * @since 1.2
      */
     @Parameter(property = "updateParent", defaultValue = "false", required = false)
     private boolean updateParent;
 
     /**
      * Any dependencies with a <code>-SNAPSHOT</code> version are replaced with
      * the corresponding release version (if it has been released). This action
      * is performed on the release branch after it is created.
      *
      * @since 1.2
      */
     @Parameter(property = "updateDependencies", defaultValue = "false", required = false)
     private boolean updateDependencies;
 
     /**
-     * A comma separated list of artifact patterns to include. Follows the
-     * pattern <code>groupId:artifactId:type:classifier:version<code>
+     * If <code>updateDependencies</code> is set, then this should contain a
+     * comma separated list of artifact patterns to include. Follows the pattern <code>groupId:artifactId:type:classifier:version<code>
      *
-     * @since 1.4
+     * @since 1.5
      */
-    @Parameter(property = "dependenciesIncludesList", defaultValue = "", required = false)
-    private String dependenciesIncludesList;
+    @Parameter(property = "includes", defaultValue = "", required = false)
+    private String includes;
 
     /**
      * The commit to start the release branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     private String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         /* Switch to develop branch and get its current version */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
         reloadReactorProjects();
 
         String developVersion = project.getVersion();
         LOG.info("Current develop version = " + developVersion);
 
         /* Get next development version */
         String nextDevelopVersion = getNextDevelopVersion(developVersion);
         if (interactive) {
             String message = "What is the next development version? ";
             try {
                 nextDevelopVersion = prompter.prompt(message, nextDevelopVersion);
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading next development version from command line " + ex.getMessage(), ex);
             }
         }
         LOG.debug("Next development version = " + developVersion);
 
         /* Get suggested release version */
         String releaseVersion = getReleaseVersion(developVersion);
         LOG.debug("release version = " + releaseVersion);
 
         /* create release branch */
         String prefix = getReleaseBranchPrefix();
         if (!StringUtils.isBlank(releaseName)) {
             LOG.debug("Using releaseName passed  '" + releaseName + "'");
         } else if (interactive) {
             String message = "What is the release branch name? " + prefix;
             try {
                 releaseName = prompter.prompt(message, releaseVersion);
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading release name from command line " + ex.getMessage(), ex);
             }
         } else {
             releaseName = releaseVersion;
         }
 
         if (StringUtils.isBlank(releaseName)) {
             throw new MojoFailureException("Parameter <releaseName> cannot be null or empty.");
         }
 
         GenericArtifactVersion releaseArtifactVersion;
         try {
             releaseArtifactVersion = new GenericArtifactVersion(releaseName);
             if (SNAPSHOT_QUALIFIER.equals(releaseArtifactVersion.getBuildSpecifier())) {
                 throw new IllegalArgumentException("Parameter <releaseName> is not a release version as it contains SNAPSHOT build specifier");
             }
         } catch (IllegalArgumentException e) {
             throw new MojoExecutionException("Parameter <releaseName> value '" + releaseName + "' is not a valid Maven release version.");
         }
 
         LOG.info("Starting release '" + releaseName + "'");
         LOG.debug("msgPrefix '" + getMsgPrefix() + "'");
         LOG.debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setPush(pushReleases);
         gitflowRelease.setStartCommit(startCommit);
 
         try {
             gitflowRelease.start(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         // current branch should be the release branch
         String releaseBranch = getGitflowInit().gitCurrentBranch();
         if (!releaseBranch.startsWith(prefix)) {
             throw new MojoFailureException("Failed to create release version.");
         }
 
         /* Update release branch dependencies to release version */
         if (updateDependencies) {
             reloadReactorProjects();
-            setNextVersions(false, updateParent, dependenciesIncludesList);
+            setNextVersions(false, updateParent, includes);
         }
 
         // checkout develop branch and update it's version
         String developBranch = (String) getGitflowInit().getDevelopBrnName();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         setVersion(nextDevelopVersion);
 
         // checkout release branch again and update it's version to required release version
         getGitflowInit().executeLocal("git checkout " + releaseBranch);
         reloadReactorProjects();
         setVersion(releaseArtifactVersion.setBuildSpecifier(SNAPSHOT_QUALIFIER).toString());
     }
 
     public String getReleaseName() {
         return releaseName;
     }
 
     private String getNextDevelopVersion(String developVersion) {
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(developVersion);
         artifactVersion.upgradeLeastSignificantPrimaryNumber();
 
         return artifactVersion.toString();
     }
 }

commit b73147a3238438cbc135638a0a5fecb65409bffb
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Mon Mar 31 21:18:15 2014 +0100

    Pumping ggitflow to next development version 1.3-SNAPSHOT

diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index f04d7ac..d9f1df4 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,169 +1,169 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
         <version>1.5-SNAPSHOT</version>
     </parent>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
     <version>1.5-SNAPSHOT</version>
     <packaging>maven-plugin</packaging>
     <name>ggitflow-maven-plugin</name>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
-            <version>1.2</version>
+            <version>1.3-SNAPSHOT</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
         <dependency>
             <groupId>jline</groupId>
             <artifactId>jline</artifactId>
             <version>2.11</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>com.jcabi</groupId>
             <artifactId>jcabi-maven-slf4j</artifactId>
             <version>0.8</version>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>3.2</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>3.0.8</version>
         </dependency>
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-interactivity-api</artifactId>
             <version>1.0-alpha-5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>2.4</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-project</artifactId>
             <version>2.2.1</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-clean-plugin</artifactId>
             <version>2.5</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-install-plugin</artifactId>
             <version>2.5.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-deploy-plugin</artifactId>
             <version>2.8.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-artifact</artifactId>
             <version>2.2.1</version>
         </dependency>
         <dependency>
             <groupId>com.google.guava</groupId>
             <artifactId>guava</artifactId>
             <version>16.0.1</version>
         </dependency>
     </dependencies>
 
     <build>
         <resources>
             <resource>
                 <directory>src/it</directory>
                 <includes>
                     <include>**/**</include>
                 </includes>
             </resource>
         </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>3.2</version>
                 <configuration>
                     <goalPrefix>ggitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>com.github.github</groupId>
                 <artifactId>site-maven-plugin</artifactId>
                 <version>0.9</version>
                 <configuration>
                     <message>Creating site for ${project.version}</message>
                     <server>github</server>
                     <merge>true</merge>
                 </configuration>
                 <executions>
                     <execution>
                         <goals>
                             <goal>site</goal>
                         </goals>
                         <phase>site</phase>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <reportPlugins>
                         <plugin>
                             <groupId>org.apache.maven.plugins</groupId>
                             <artifactId>maven-plugin-plugin</artifactId>
                             <version>3.2</version>
                         </plugin>
                     </reportPlugins>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>

commit 76dda86bb324629e2f99f89f5d31be32992c568c
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Mon Mar 31 21:13:14 2014 +0100

    Adding OSS uri

diff --git a/pom.xml b/pom.xml
index 35691d1..9453f2d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,170 +1,171 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven</artifactId>    
     <version>1.5-SNAPSHOT</version>
     <name>ggitflow-maven</name>
     <packaging>pom</packaging>
 
     <modules>
         <module>ggitflow-maven-plugin</module>
         <module>ggitflow-maven-archetype</module>
     </modules>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
     </properties>
 
     <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
 
     <scm>
         <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
         <connection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</connection>
         <developerConnection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</developerConnection>
     </scm>
 
     <description>Maven Archetype for the Gitflow Maven Plugin</description>
     <developers>
         <developer>
             <id>dkirrane</id>
             <name>Desmond Kirrane</name>
             <email>desmond.kirrane@gmail.com</email>
         </developer>
     </developers>
     <licenses>
         <license>
             <name>Apache License Version 2.0, January 2004</name>
             <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
             <distribution>repo</distribution>
         </license>
     </licenses>
 
     <build>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <version>2.3.2</version>
                 <configuration>
                     <source>1.5</source>
                     <target>1.5</target>
                 </configuration>
             </plugin>          
         </plugins>
     </build>
 
     <profiles>
         <!-- Deploy to https://oss.sonatype.org/index.html -->
         <!-- mvn clean deploy -Prelease-sign-artifacts -->
         <profile>
             <id>release-sign-artifacts</id>
             <activation>
                 <property>
                     <name>performRelease</name>
                     <value>true</value>
                 </property>
             </activation>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-gpg-plugin</artifactId>
                         <executions>
                             <execution>
                                 <id>sign-artifacts</id>
                                 <phase>verify</phase>
                                 <goals>
                                     <goal>sign</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
             </build>
         </profile>
         <profile>
             <id>run-its</id>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-invoker-plugin</artifactId>
                         <version>1.8</version>
                         <configuration>
                             <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
                             <settingsFile>src/it/settings.xml</settingsFile>
                             <debug>true</debug>
                             <showErrors>true</showErrors>
                             <detail>true</detail>
                             <streamLogs>true</streamLogs>
                             <projectsDirectory>src/it/projects</projectsDirectory>
                             <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
                             <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
                             <addTestClassPath>true</addTestClassPath>
                             <preBuildHookScript>setup</preBuildHookScript>
                             <postBuildHookScript>verify</postBuildHookScript>
                             <pomIncludes>
                                 <pomInclude>*/pom.xml</pomInclude>
                             </pomIncludes>
                             <goals>
                                 <goal>clean</goal>
                                 <goal>test-compile</goal>
                             </goals>
                         </configuration>
                         <executions>
                             <execution>
                                 <id>integration-test</id>
                                 <goals>
                                     <goal>install</goal>
                                     <goal>integration-test</goal>
                                     <goal>verify</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
 
             </build>
         </profile>
     </profiles>
 
     <!--
         Sonatype upload details:
+        http://central.sonatype.org/pages/ossrh-guide.html
         http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
         https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
         https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
         https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
 
             - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
             - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
             - Promote staged artifacts into repository 'Releases'
             - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
             - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
     -->
 
     <distributionManagement>
         <snapshotRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
         </snapshotRepository>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
         </repository>
     </distributionManagement>
     <repositories>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
             <snapshots>
                 <enabled>true</enabled>
             </snapshots>
         </repository>
     </repositories>
 </project>

commit 80b2fec1ec0f5a1f3950ca9d35a77f7a2d462394
Author: Dessie Kirrane <dkirrane@avaya.com>
Date:   Mon Mar 31 14:52:34 2014 +0100

    Use includes instead of includesList

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index e90ddc1..89dbf32 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -78,475 +78,475 @@ import com.google.common.collect.ImmutableList;
 public class AbstractGitflowMojo extends AbstractMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(AbstractGitflowMojo.class.getName());
 
     public final Pattern matchSnapshotRegex = Pattern.compile("-SNAPSHOT");
 
     public static final ImmutableList<String> DEFAULT_INSTALL_ARGS = ImmutableList.of(
             "-DinstallAtEnd=true");
 
     public static final ImmutableList<String> DEFAULT_DEPLOY_ARGS = ImmutableList.of(
             "-DdeployAtEnd=true",
             "-DretryFailedDeploymentCount=2");
 
     public static final Splitter PROFILES_SPLITTER = Splitter.on(',').trimResults().omitEmptyStrings();
     public static final Joiner PROFILES_JOINER = Joiner.on(',').skipNulls();
 
     /**
      * Gitflow branches and prefixes to use.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
     /**
      * Message prefix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgPrefix", defaultValue = "", required = false)
     protected String msgPrefix;
 
     /**
      * Message suffix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgSuffix", defaultValue = "", required = false)
     protected String msgSuffix;
 
     /**
      * Component used to prompt for input.
      */
     @Component
     protected Prompter prompter;
 
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
     @Component
     protected ArtifactResolver artifactResolver;
 
     /**
      * @parameter default-value="${project.artifacts}"
      * @required
      * @readonly
      */
     protected Collection artifacts;
 
     /**
      * @parameter expression="${localRepository}"
      */
     protected ArtifactRepository localRepository;
 
     /**
      * @parameter expression="${project.remoteArtifactRepositories}"
      */
     protected List remoteArtifactRepositories;
 
 //    @Component
 //    protected MavenProjectBuilder projectBuilder;
 //    @Component
 //    protected DefaultProjectBuilder projectBuilder;
 //    /**
 //     * @parameter property="plugin"
 //     * @required
 //     */
 //    @Component
 //    protected PluginDescriptor pluginDescriptor;
 //
     /**
      * The projects in the reactor.
      */
     @Parameter(defaultValue = "${reactorProjects}", readonly = true, required = true)
     protected List<MavenProject> reactorProjects;
 
     /**
      * The project builder
      */
     @Component
     private ProjectBuilder projectBuilder;
 
     /**
      * The project currently being build.
      *
      * @parameter expression="${project}"
      * @required
      * @readonly
      */
     @Component
     protected MavenProject project;
 
     /**
      * The current Maven session.
      *
      * @parameter expression="${session}"
      * @required
      * @readonly
      */
     @Component
     protected MavenSession session;
 
     /**
      * The Maven BuildPluginManager component.
      *
      * @component
      * @required
      */
     @Component
     protected BuildPluginManager pluginManager;
 
 //    @Parameter(defaultValue = "${basedir}", readonly = true, required = true)
 //    protected File basedir;
 //    @Component
 //    protected Settings settings;
     private GitflowInit init;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     public void execute() throws MojoExecutionException, MojoFailureException {
         StaticLoggerBinder.getSingleton().setMavenLog(this.getLog());
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             LOG.debug("Gitflow pom  '" + project.getBasedir() + "'");
         }
 
         GitflowInit gitflowInit = getGitflowInit();
 
         gitflowInit.requireGitRepo();
 
         if (!gitflowInit.gitflowIsInitialized()) {
             try {
                 gitflowInit.cmdDefault();
             } catch (GitflowException ex) {
                 throw new MojoExecutionException("Failed to inintialise Gitflow " + ex.getMessage(), ex);
             }
         }
 
         gitflowInit.requireCleanWorkingTree();
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     protected final GitflowInit getGitflowInit() {
         if (null == init) {
             LOG.info("Initialising Gitflow");
             init = new GitflowInit();
             init.setRepoDir(getProject().getBasedir());
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
 
             /* root Git directory may not be the pom directory */
             String dotGitDir = init.executeLocal("git rev-parse --git-dir");
             File dotGitFolder = new File(dotGitDir);
             assert dotGitFolder.exists();
             init.setRepoDir(dotGitFolder.getParentFile());
         }
         return init;
     }
 
     protected final void setVersion(String version) throws MojoExecutionException, MojoFailureException {
         LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
 
         for (MavenProject mavenProject : reactorProjects) {
             LOG.debug("Calling versions-maven-plugin:set on " + mavenProject.getArtifactId());
             session.setCurrentProject(mavenProject);
             try {
                 executeMojo(
                         plugin(
                                 groupId("org.codehaus.mojo"),
                                 artifactId("versions-maven-plugin"),
                                 version("2.1")
                         ),
                         goal("set"),
                         configuration(
                                 element(name("generateBackupPoms"), "false"),
                                 element(name("newVersion"), version)
                         ),
                         executionEnvironment(
                                 mavenProject,
                                 session,
                                 pluginManager
                         )
                 );
             } catch (MojoExecutionException mee) {
                 String rootCauseMessage = ExceptionUtils.getRootCauseMessage(mee);
                 if (rootCauseMessage.contains("Project version is inherited from parent")) {
                     LOG.warn("Skipping versions-maven-plugin:set for project " + mavenProject.getArtifactId() + ". Project version is inherited from parent.");
                 } else {
                     LOG.error("Cannot set {} to version '{}'", mavenProject.getArtifactId(), version, mee);
                     throw mee;
                 }
             }
         }
         LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change " + version + " to origin. ExitCode:" + exitCode);
                 }
             }
         }
         /* We don't want to fail maybe the version was manually set correctly */
 //        else {
 //            throw new MojoFailureException("Failed to update poms to version " + version);
 //        }
     }
 
     protected final void setNextVersions(Boolean allowSnapshots, Boolean updateParent, String dependenciesIncludesList) throws MojoExecutionException, MojoFailureException {
         LOG.debug("setNextVersions");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
 
         if (updateParent) {
             LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:update-parent updateParent={}", updateParent);
             executeMojo(
                     plugin(
                             groupId("org.codehaus.mojo"),
                             artifactId("versions-maven-plugin"),
                             version("2.1")
                     ),
                     goal("update-parent"),
                     configuration(
                             element(name("generateBackupPoms"), "false"),
                             element(name("allowSnapshots"), allowSnapshots.toString())
                     ),
                     executionEnvironment(
                             rootProject,
                             session,
                             pluginManager
                     )
             );
             LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:update-parent");
         }
 
         LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:use-next-versions allowSnapshots={}", allowSnapshots);
         for (MavenProject mavenProject : reactorProjects) {
             LOG.debug("Calling use-next-versions on " + mavenProject.getArtifactId());
             session.setCurrentProject(mavenProject);
             executeMojo(
                     plugin(
                             groupId("org.codehaus.mojo"),
                             artifactId("versions-maven-plugin"),
                             version("2.1")
                     ),
                     goal("use-next-versions"),
                     configuration(
                             element(name("generateBackupPoms"), "false"),
                             element(name("allowSnapshots"), allowSnapshots.toString()),
-                            element(name("includesList"), dependenciesIncludesList)
+                            element(name("includes"), dependenciesIncludesList)
                     ),
                     executionEnvironment(
                             mavenProject,
                             session,
                             pluginManager
                     )
             );
         }
         LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:use-next-versions");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg;
             if (allowSnapshots) {
                 msg = getMsgPrefix() + "Replaces any release versions with the next snapshot version (if it has been deployed)." + getMsgSuffix();
             } else {
                 msg = getMsgPrefix() + "Replaces snapshot versions with the corresponding release version" + getMsgSuffix();
             }
 
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change to origin. ExitCode:" + exitCode);
                 }
             }
         }
     }
 
     protected final void runGoals(String goals, List<String> additionalArgs) throws MojoExecutionException, MojoFailureException {
         LOG.debug("START executing " + goals + " with args " + additionalArgs);
 
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         File basedir = rootProject.getBasedir();
 
         ReleaseResult result = new ReleaseResult();
         ReleaseEnvironment env = new DefaultReleaseEnvironment();
         env.setSettings(session.getSettings());
         MavenExecutor mavenExecutor = mavenExecutors.get(env.getMavenExecutorId());
 
         Joiner joiner = Joiner.on(" ").skipNulls();
         String additionalArguments = joiner.join(additionalArgs);
         LOG.debug("additionalArguments " + additionalArguments);
 
         try {
             mavenExecutor.executeGoals(basedir, goals, env, false, additionalArguments, result);
         } catch (MavenExecutorException ex) {
             throw new MojoExecutionException(result.getOutput(), ex);
         }
         LOG.debug("DONE executing " + goals);
     }
 
     protected final String getReleaseVersion(String version) throws MojoFailureException {
         LOG.debug("Current Develop version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
             LOG.debug("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
     protected final void checkForSnapshotDependencies() throws MojoExecutionException {
         LOG.info("Checking for SNAPSHOT dependencies");
         Boolean hasDepSnapshots = false;
         Boolean hasParentSnapshot = false;
         for (MavenProject mavenProject : reactorProjects) {
             String artifactId = mavenProject.getArtifactId();
 
             /* Check <parent> */
             Artifact parentArtifact = mavenProject.getParentArtifact();
             if (parentArtifact != null && parentArtifact.isSnapshot()) {
                 LOG.error("Parent of project " + artifactId + " is a SNAPSHOT " + parentArtifact.getId());
                 hasParentSnapshot = true;
             }
 
             /* Check <dependencyManagement> */
             DependencyManagement dependencyManagement = mavenProject.getDependencyManagement();
             if (null != dependencyManagement) {
                 if (checkForSnapshot(artifactId, dependencyManagement.getDependencies())) {
                     hasDepSnapshots = true;
                 }
             }
 
             /* Check <dependencies> */
             if (checkForSnapshot(artifactId, mavenProject.getDependencies())) {
                 hasDepSnapshots = true;
             }
         }
         if (hasParentSnapshot || hasDepSnapshots) {
             throw new MojoExecutionException("Cannot release because SNAPSHOT dependencies exist");
         }
     }
 
     private boolean checkForSnapshot(String artifactId, List<Dependency> dependencies) throws MojoExecutionException {
         Boolean hasSnapshotDependency = false;
         for (Dependency dependency : dependencies) {
             String version = dependency.getVersion();
             Matcher versionMatcher = matchSnapshotRegex.matcher(version);
             if (versionMatcher.find() && versionMatcher.end() == version.length()) {
                 LOG.error("Project " + artifactId + " contains SNAPSHOT dependency: " + dependency.getGroupId() + ":" + dependency.getArtifactId() + ":" + version);
                 hasSnapshotDependency = true;
             }
         }
         return hasSnapshotDependency;
     }
 
     protected final void reloadReactorProjects() throws MojoExecutionException {
         LOG.debug("Reloading poms...");
 
         List<MavenProject> newReactorProjects;
         try {
             newReactorProjects = buildReactorProjects();
         } catch (ProjectBuildingException e) {
             LOG.error("Re-parse aborted due to malformed pom.xml file(s)", e);
             throw new MojoExecutionException("Re-parse aborted due to malformed pom.xml file(s)", e);
         } catch (CycleDetectedException e) {
             LOG.error("Re-parse aborted due to dependency cycle in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to dependency cycle in project model", e);
         } catch (DuplicateProjectException e) {
             LOG.error("Re-parse aborted due to duplicate projects in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to duplicate projects in project model", e);
         } catch (Exception e) {
             LOG.error("Re-parse aborted due a problem that prevented sorting the project model", e);
             throw new MojoExecutionException("Re-parse aborted due a problem that prevented sorting the project model", e);
         }
         MavenProject newProject = findProject(newReactorProjects, this.project);
         if (newProject == null) {
             throw new MojoExecutionException("A pom.xml change appears to have removed " + this.project.getId() + " from the build plan.");
         }
 
         this.project = newProject;
         this.reactorProjects = newReactorProjects;
 
         LOG.debug("Reloading poms complete...");
     }
 
     private List<MavenProject> buildReactorProjects() throws Exception {
 
         List<MavenProject> projects = new ArrayList<MavenProject>();
         for (MavenProject p : reactorProjects) {
             ProjectBuildingRequest request = new DefaultProjectBuildingRequest();
 
             request.setProcessPlugins(true);
             request.setProfiles(request.getProfiles());
             request.setActiveProfileIds(session.getRequest().getActiveProfiles());
             request.setInactiveProfileIds(session.getRequest().getInactiveProfiles());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setSystemProperties(session.getSystemProperties());
             request.setUserProperties(session.getUserProperties());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setPluginArtifactRepositories(session.getRequest().getPluginArtifactRepositories());
             request.setRepositorySession(session.getRepositorySession());
             request.setLocalRepository(localRepository);
             request.setBuildStartTime(session.getRequest().getStartTime());
             request.setResolveDependencies(true);
             request.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_STRICT);
             projects.add(projectBuilder.build(p.getFile(), request).getProject());
         }
         return new ProjectSorter(projects).getSortedProjects();
     }
 
     private MavenProject findProject(List<MavenProject> newReactorProjects, MavenProject oldProject) {
         for (MavenProject newProject : newReactorProjects) {
             if (oldProject.getGroupId().equals(newProject.getGroupId())
                     && oldProject.getArtifactId().equals(newProject.getArtifactId())) {
                 return newProject;
             }
         }
         return null;
     }
 
 }

commit 3e1799a2ebb9682085f8b3e0ee2ad146b359fd58
Author: Dessie Kirrane <dkirrane@avaya.com>
Date:   Mon Mar 31 14:21:24 2014 +0100

    Adding Parameter dependenciesIncludesList

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index e389cd6..e90ddc1 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -17,8 +17,13 @@ package com.dkirrane.maven.plugins.ggitflow;
 
-import com.dkirrane.gitflow.groovy.GitflowInit;
-import com.dkirrane.gitflow.groovy.ex.GitflowException;
-import com.dkirrane.maven.plugins.ggitflow.util.MavenUtil;
-import com.google.common.base.Joiner;
-import com.google.common.base.Splitter;
-import com.google.common.collect.ImmutableList;
+import static org.twdata.maven.mojoexecutor.MojoExecutor.artifactId;
+import static org.twdata.maven.mojoexecutor.MojoExecutor.configuration;
+import static org.twdata.maven.mojoexecutor.MojoExecutor.element;
+import static org.twdata.maven.mojoexecutor.MojoExecutor.executeMojo;
+import static org.twdata.maven.mojoexecutor.MojoExecutor.executionEnvironment;
+import static org.twdata.maven.mojoexecutor.MojoExecutor.goal;
+import static org.twdata.maven.mojoexecutor.MojoExecutor.groupId;
+import static org.twdata.maven.mojoexecutor.MojoExecutor.name;
+import static org.twdata.maven.mojoexecutor.MojoExecutor.plugin;
+import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
+
 import java.io.File;
@@ -30,2 +35,3 @@ import java.util.regex.Matcher;
 import java.util.regex.Pattern;
+
 import org.apache.commons.lang.exception.ExceptionUtils;
@@ -63,486 +69,484 @@ import org.slf4j.LoggerFactory;
 import org.slf4j.impl.StaticLoggerBinder;
-import static org.twdata.maven.mojoexecutor.MojoExecutor.artifactId;
-import static org.twdata.maven.mojoexecutor.MojoExecutor.configuration;
-import static org.twdata.maven.mojoexecutor.MojoExecutor.element;
-import static org.twdata.maven.mojoexecutor.MojoExecutor.executeMojo;
-import static org.twdata.maven.mojoexecutor.MojoExecutor.executionEnvironment;
-import static org.twdata.maven.mojoexecutor.MojoExecutor.goal;
-import static org.twdata.maven.mojoexecutor.MojoExecutor.groupId;
-import static org.twdata.maven.mojoexecutor.MojoExecutor.name;
-import static org.twdata.maven.mojoexecutor.MojoExecutor.plugin;
-import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
+
+import com.dkirrane.gitflow.groovy.GitflowInit;
+import com.dkirrane.gitflow.groovy.ex.GitflowException;
+import com.dkirrane.maven.plugins.ggitflow.util.MavenUtil;
+import com.google.common.base.Joiner;
+import com.google.common.base.Splitter;
+import com.google.common.collect.ImmutableList;
 
 public class AbstractGitflowMojo extends AbstractMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(AbstractGitflowMojo.class.getName());
 
     public final Pattern matchSnapshotRegex = Pattern.compile("-SNAPSHOT");
 
     public static final ImmutableList<String> DEFAULT_INSTALL_ARGS = ImmutableList.of(
             "-DinstallAtEnd=true");
 
     public static final ImmutableList<String> DEFAULT_DEPLOY_ARGS = ImmutableList.of(
             "-DdeployAtEnd=true",
             "-DretryFailedDeploymentCount=2");
 
     public static final Splitter PROFILES_SPLITTER = Splitter.on(',').trimResults().omitEmptyStrings();
     public static final Joiner PROFILES_JOINER = Joiner.on(',').skipNulls();
 
     /**
      * Gitflow branches and prefixes to use.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
     /**
      * Message prefix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgPrefix", defaultValue = "", required = false)
     protected String msgPrefix;
 
     /**
      * Message suffix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgSuffix", defaultValue = "", required = false)
     protected String msgSuffix;
 
     /**
      * Component used to prompt for input.
      */
     @Component
     protected Prompter prompter;
 
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
     @Component
     protected ArtifactResolver artifactResolver;
 
     /**
      * @parameter default-value="${project.artifacts}"
      * @required
      * @readonly
      */
     protected Collection artifacts;
 
     /**
      * @parameter expression="${localRepository}"
      */
     protected ArtifactRepository localRepository;
 
     /**
      * @parameter expression="${project.remoteArtifactRepositories}"
      */
     protected List remoteArtifactRepositories;
 
 //    @Component
 //    protected MavenProjectBuilder projectBuilder;
 //    @Component
 //    protected DefaultProjectBuilder projectBuilder;
 //    /**
 //     * @parameter property="plugin"
 //     * @required
 //     */
 //    @Component
 //    protected PluginDescriptor pluginDescriptor;
 //
     /**
      * The projects in the reactor.
      */
     @Parameter(defaultValue = "${reactorProjects}", readonly = true, required = true)
     protected List<MavenProject> reactorProjects;
 
     /**
      * The project builder
      */
     @Component
     private ProjectBuilder projectBuilder;
 
     /**
      * The project currently being build.
      *
      * @parameter expression="${project}"
      * @required
      * @readonly
      */
     @Component
     protected MavenProject project;
 
     /**
      * The current Maven session.
      *
      * @parameter expression="${session}"
      * @required
      * @readonly
      */
     @Component
     protected MavenSession session;
 
     /**
      * The Maven BuildPluginManager component.
      *
      * @component
      * @required
      */
     @Component
     protected BuildPluginManager pluginManager;
 
 //    @Parameter(defaultValue = "${basedir}", readonly = true, required = true)
 //    protected File basedir;
 //    @Component
 //    protected Settings settings;
     private GitflowInit init;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     public void execute() throws MojoExecutionException, MojoFailureException {
         StaticLoggerBinder.getSingleton().setMavenLog(this.getLog());
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             LOG.debug("Gitflow pom  '" + project.getBasedir() + "'");
         }
 
         GitflowInit gitflowInit = getGitflowInit();
 
         gitflowInit.requireGitRepo();
 
         if (!gitflowInit.gitflowIsInitialized()) {
             try {
                 gitflowInit.cmdDefault();
             } catch (GitflowException ex) {
                 throw new MojoExecutionException("Failed to inintialise Gitflow " + ex.getMessage(), ex);
             }
         }
 
         gitflowInit.requireCleanWorkingTree();
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     protected final GitflowInit getGitflowInit() {
         if (null == init) {
             LOG.info("Initialising Gitflow");
             init = new GitflowInit();
             init.setRepoDir(getProject().getBasedir());
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
 
             /* root Git directory may not be the pom directory */
             String dotGitDir = init.executeLocal("git rev-parse --git-dir");
             File dotGitFolder = new File(dotGitDir);
             assert dotGitFolder.exists();
             init.setRepoDir(dotGitFolder.getParentFile());
         }
         return init;
     }
 
     protected final void setVersion(String version) throws MojoExecutionException, MojoFailureException {
         LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
 
         for (MavenProject mavenProject : reactorProjects) {
             LOG.debug("Calling versions-maven-plugin:set on " + mavenProject.getArtifactId());
             session.setCurrentProject(mavenProject);
             try {
                 executeMojo(
                         plugin(
                                 groupId("org.codehaus.mojo"),
                                 artifactId("versions-maven-plugin"),
                                 version("2.1")
                         ),
                         goal("set"),
                         configuration(
                                 element(name("generateBackupPoms"), "false"),
                                 element(name("newVersion"), version)
                         ),
                         executionEnvironment(
                                 mavenProject,
                                 session,
                                 pluginManager
                         )
                 );
             } catch (MojoExecutionException mee) {
                 String rootCauseMessage = ExceptionUtils.getRootCauseMessage(mee);
                 if (rootCauseMessage.contains("Project version is inherited from parent")) {
                     LOG.warn("Skipping versions-maven-plugin:set for project " + mavenProject.getArtifactId() + ". Project version is inherited from parent.");
                 } else {
                     LOG.error("Cannot set {} to version '{}'", mavenProject.getArtifactId(), version, mee);
                     throw mee;
                 }
             }
         }
         LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change " + version + " to origin. ExitCode:" + exitCode);
                 }
             }
         }
         /* We don't want to fail maybe the version was manually set correctly */
 //        else {
 //            throw new MojoFailureException("Failed to update poms to version " + version);
 //        }
     }
 
-    protected final void setNextVersions(Boolean allowSnapshots, Boolean updateParent) throws MojoExecutionException, MojoFailureException {
+    protected final void setNextVersions(Boolean allowSnapshots, Boolean updateParent, String dependenciesIncludesList) throws MojoExecutionException, MojoFailureException {
         LOG.debug("setNextVersions");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
 
         if (updateParent) {
             LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:update-parent updateParent={}", updateParent);
             executeMojo(
                     plugin(
                             groupId("org.codehaus.mojo"),
                             artifactId("versions-maven-plugin"),
                             version("2.1")
                     ),
                     goal("update-parent"),
                     configuration(
                             element(name("generateBackupPoms"), "false"),
                             element(name("allowSnapshots"), allowSnapshots.toString())
                     ),
                     executionEnvironment(
                             rootProject,
                             session,
                             pluginManager
                     )
             );
             LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:update-parent");
         }
 
         LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:use-next-versions allowSnapshots={}", allowSnapshots);
         for (MavenProject mavenProject : reactorProjects) {
             LOG.debug("Calling use-next-versions on " + mavenProject.getArtifactId());
             session.setCurrentProject(mavenProject);
             executeMojo(
                     plugin(
                             groupId("org.codehaus.mojo"),
                             artifactId("versions-maven-plugin"),
                             version("2.1")
                     ),
                     goal("use-next-versions"),
                     configuration(
                             element(name("generateBackupPoms"), "false"),
-                            element(name("allowSnapshots"), allowSnapshots.toString())
+                            element(name("allowSnapshots"), allowSnapshots.toString()),
+                            element(name("includesList"), dependenciesIncludesList)
                     ),
                     executionEnvironment(
                             mavenProject,
                             session,
                             pluginManager
                     )
             );
         }
         LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:use-next-versions");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg;
             if (allowSnapshots) {
                 msg = getMsgPrefix() + "Replaces any release versions with the next snapshot version (if it has been deployed)." + getMsgSuffix();
             } else {
                 msg = getMsgPrefix() + "Replaces snapshot versions with the corresponding release version" + getMsgSuffix();
             }
 
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change to origin. ExitCode:" + exitCode);
                 }
             }
         }
     }
 
     protected final void runGoals(String goals, List<String> additionalArgs) throws MojoExecutionException, MojoFailureException {
         LOG.debug("START executing " + goals + " with args " + additionalArgs);
 
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         File basedir = rootProject.getBasedir();
 
         ReleaseResult result = new ReleaseResult();
         ReleaseEnvironment env = new DefaultReleaseEnvironment();
         env.setSettings(session.getSettings());
         MavenExecutor mavenExecutor = mavenExecutors.get(env.getMavenExecutorId());
 
         Joiner joiner = Joiner.on(" ").skipNulls();
         String additionalArguments = joiner.join(additionalArgs);
         LOG.debug("additionalArguments " + additionalArguments);
 
         try {
             mavenExecutor.executeGoals(basedir, goals, env, false, additionalArguments, result);
         } catch (MavenExecutorException ex) {
             throw new MojoExecutionException(result.getOutput(), ex);
         }
         LOG.debug("DONE executing " + goals);
     }
 
     protected final String getReleaseVersion(String version) throws MojoFailureException {
         LOG.debug("Current Develop version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
             LOG.debug("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
     protected final void checkForSnapshotDependencies() throws MojoExecutionException {
         LOG.info("Checking for SNAPSHOT dependencies");
         Boolean hasDepSnapshots = false;
         Boolean hasParentSnapshot = false;
         for (MavenProject mavenProject : reactorProjects) {
             String artifactId = mavenProject.getArtifactId();
 
             /* Check <parent> */
             Artifact parentArtifact = mavenProject.getParentArtifact();
             if (parentArtifact != null && parentArtifact.isSnapshot()) {
                 LOG.error("Parent of project " + artifactId + " is a SNAPSHOT " + parentArtifact.getId());
                 hasParentSnapshot = true;
             }
 
             /* Check <dependencyManagement> */
             DependencyManagement dependencyManagement = mavenProject.getDependencyManagement();
             if (null != dependencyManagement) {
                 if (checkForSnapshot(artifactId, dependencyManagement.getDependencies())) {
                     hasDepSnapshots = true;
                 }
             }
 
             /* Check <dependencies> */
             if (checkForSnapshot(artifactId, mavenProject.getDependencies())) {
                 hasDepSnapshots = true;
             }
         }
         if (hasParentSnapshot || hasDepSnapshots) {
             throw new MojoExecutionException("Cannot release because SNAPSHOT dependencies exist");
         }
     }
 
     private boolean checkForSnapshot(String artifactId, List<Dependency> dependencies) throws MojoExecutionException {
         Boolean hasSnapshotDependency = false;
         for (Dependency dependency : dependencies) {
             String version = dependency.getVersion();
             Matcher versionMatcher = matchSnapshotRegex.matcher(version);
             if (versionMatcher.find() && versionMatcher.end() == version.length()) {
                 LOG.error("Project " + artifactId + " contains SNAPSHOT dependency: " + dependency.getGroupId() + ":" + dependency.getArtifactId() + ":" + version);
                 hasSnapshotDependency = true;
             }
         }
         return hasSnapshotDependency;
     }
 
     protected final void reloadReactorProjects() throws MojoExecutionException {
         LOG.debug("Reloading poms...");
 
         List<MavenProject> newReactorProjects;
         try {
             newReactorProjects = buildReactorProjects();
         } catch (ProjectBuildingException e) {
             LOG.error("Re-parse aborted due to malformed pom.xml file(s)", e);
             throw new MojoExecutionException("Re-parse aborted due to malformed pom.xml file(s)", e);
         } catch (CycleDetectedException e) {
             LOG.error("Re-parse aborted due to dependency cycle in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to dependency cycle in project model", e);
         } catch (DuplicateProjectException e) {
             LOG.error("Re-parse aborted due to duplicate projects in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to duplicate projects in project model", e);
         } catch (Exception e) {
             LOG.error("Re-parse aborted due a problem that prevented sorting the project model", e);
             throw new MojoExecutionException("Re-parse aborted due a problem that prevented sorting the project model", e);
         }
         MavenProject newProject = findProject(newReactorProjects, this.project);
         if (newProject == null) {
             throw new MojoExecutionException("A pom.xml change appears to have removed " + this.project.getId() + " from the build plan.");
         }
 
         this.project = newProject;
         this.reactorProjects = newReactorProjects;
 
         LOG.debug("Reloading poms complete...");
     }
 
     private List<MavenProject> buildReactorProjects() throws Exception {
 
         List<MavenProject> projects = new ArrayList<MavenProject>();
         for (MavenProject p : reactorProjects) {
             ProjectBuildingRequest request = new DefaultProjectBuildingRequest();
 
             request.setProcessPlugins(true);
             request.setProfiles(request.getProfiles());
             request.setActiveProfileIds(session.getRequest().getActiveProfiles());
             request.setInactiveProfileIds(session.getRequest().getInactiveProfiles());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setSystemProperties(session.getSystemProperties());
             request.setUserProperties(session.getUserProperties());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setPluginArtifactRepositories(session.getRequest().getPluginArtifactRepositories());
             request.setRepositorySession(session.getRepositorySession());
             request.setLocalRepository(localRepository);
             request.setBuildStartTime(session.getRequest().getStartTime());
             request.setResolveDependencies(true);
             request.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_STRICT);
             projects.add(projectBuilder.build(p.getFile(), request).getProject());
         }
         return new ProjectSorter(projects).getSortedProjects();
     }
 
     private MavenProject findProject(List<MavenProject> newReactorProjects, MavenProject oldProject) {
         for (MavenProject newProject : newReactorProjects) {
             if (oldProject.getGroupId().equals(newProject.getGroupId())
                     && oldProject.getArtifactId().equals(newProject.getArtifactId())) {
                 return newProject;
             }
         }
         return null;
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index 45c1809..8e27400 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -17,9 +17,7 @@ package com.dkirrane.maven.plugins.ggitflow;
 
-import com.dkirrane.gitflow.groovy.GitflowRelease;
-import com.dkirrane.gitflow.groovy.ex.GitflowException;
-import com.dkirrane.gitflow.groovy.ex.GitflowMergeConflictException;
 import static com.dkirrane.maven.plugins.ggitflow.AbstractGitflowMojo.DEFAULT_DEPLOY_ARGS;
 import static com.dkirrane.maven.plugins.ggitflow.AbstractGitflowMojo.PROFILES_SPLITTER;
-import com.google.common.collect.ImmutableList;
+
 import java.util.List;
+
 import org.apache.maven.plugin.MojoExecutionException;
@@ -33,278 +31,292 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+import com.dkirrane.gitflow.groovy.GitflowRelease;
+import com.dkirrane.gitflow.groovy.ex.GitflowException;
+import com.dkirrane.gitflow.groovy.ex.GitflowMergeConflictException;
+import com.google.common.collect.ImmutableList;
+
 /**
  * Merges a release branch back into the develop and master branch and then
  * creates a tag for the release on master.
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(ReleaseFinishMojo.class.getName());
 
     /**
      * If <code>true</code>, the release can still finish even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
-    private boolean allowSnapshots;
+    private Boolean allowSnapshots;
 
     /**
      * If the project has a parent with a release version it will be replaced
      * with the next <code>-SNAPSHOT</code> version (if it has been deployed).
      * This action is performed on the develop branch after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "updateParent", defaultValue = "true", required = false)
-    private boolean updateParent;
+    private Boolean updateParent;
 
     /**
      * On the release branch before finish is called any dependencies with a
      * <code>-SNAPSHOT</code> version are replaced with the corresponding
      * release version (if it has been released).
      *
      * On the develop branch after the merge any dependencies with a release
      * version are replaced with the next <code>-SNAPSHOT</code> version (if it
      * has been deployed).
      *
      * @since 1.2
      */
     @Parameter(property = "updateDependencies", defaultValue = "true", required = false)
-    private boolean updateDependencies;
+    private Boolean updateDependencies;
+
+    /**
+     * A comma separated list of artifact patterns to include. Follows the
+     * pattern <code>groupId:artifactId:type:classifier:version<code>
+     *
+     * @since 1.4
+     */
+    @Parameter(property = "dependenciesIncludesList", defaultValue = "", required = false)
+    private String dependenciesIncludesList;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "false", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any calls to <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipDeploy", defaultValue = "false", required = false)
     private Boolean skipDeploy;
 
     /**
      * Skips any tests during <code>mvn install</code> and
      * <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipTests", defaultValue = "false", required = false)
     private Boolean skipTests;
 
     /**
      * Whether to use the release profile that adds sources and javadoc to the
      * released artifact, if appropriate. If set to true, the release-finish
      * will set the property "performRelease" to true, which activates the
      * profile "release-profile", which is inherited from the super pom.
      *
      * @since 1.2
      */
     @Parameter(property = "useReleaseProfile", defaultValue = "true", required = false)
     private Boolean useReleaseProfile;
 
     /**
      * Comma separated profiles to enable on deployment, in addition to active
      * profiles for project execution.
      *
      * @since 1.2
      */
     @Parameter(property = "releaseProfiles", defaultValue = "", required = false)
     private String releaseProfiles;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the branch will not be deleted after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keep;
 
     /**
      * If <code>true</code>, the release tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         LOG.debug("Finishing release");
 
         /* Get release branch name */
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
         if (releaseBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         } else if (releaseBranches.size() == 1) {
             releaseName = releaseBranches.get(0);
         } else {
             releaseName = promptForExistingReleaseName(releaseBranches, releaseName);
         }
 
         LOG.info("Finishing release '{}'", releaseName);
 
         /* Switch to develop branch and get its current version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         LOG.debug("develop version = " + developVersion);
 
         /* Switch to release branch and set poms to release version */
         getGitflowInit().executeLocal("git checkout " + releaseName);
         reloadReactorProjects();
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(project.getVersion());
         String releaseVersion;
         if ("SNAPSHOT".equals(artifactVersion.getBuildSpecifier())) {
             releaseVersion = getReleaseVersion(project.getVersion());
         } else {
             releaseVersion = project.getVersion();
         }
         LOG.debug("release version = " + releaseVersion);
 
         setVersion(releaseVersion);
 
         /* Update release branch dependencies to release version */
         if (updateDependencies) {
             reloadReactorProjects();
-            setNextVersions(false, updateParent);
+            setNextVersions(false, updateParent, dependenciesIncludesList);
         }
 
         if (!allowSnapshots) {
             reloadReactorProjects();
             checkForSnapshotDependencies();
         }
 
         /* finish release */
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setSquash(squash);
         gitflowRelease.setKeep(keep);
         gitflowRelease.setSign(sign);
         gitflowRelease.setSigningkey(signingkey);
 
         /* 1. merge to master */
         try {
             gitflowRelease.finishToMaster(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
 
         /* 2. make versions in release and develop branches match to avoid conflicts */
         getGitflowInit().executeLocal("git checkout " + releaseName);
         reloadReactorProjects();
         setVersion(developVersion);
 
         /* 3. merge to develop */
         try {
             gitflowRelease.finishToDevelop(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
         /* Update develop branch dependencies to next snapshot version (if deployed) */
         if (updateDependencies) {
             reloadReactorProjects();
-            setNextVersions(true, updateParent);
+            setNextVersions(true, updateParent, dependenciesIncludesList);
         }
 
         /* Switch to release tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);
         reloadReactorProjects();
         String tagVersion = project.getVersion();
         LOG.debug("tag version = " + tagVersion);
 
         /* install or deploy */
         if (skipDeploy == false) {
             String goals = "clean deploy";
             if (project.getDistributionManagement() != null
                     && project.getDistributionManagement().getSite() != null) {
                 goals += " site-deploy";
             }
 
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             if (useReleaseProfile) {
                 additionalArgs.add("-DperformRelease=true");
             }
             if (StringUtils.isNotBlank(releaseProfiles)) {
                 Iterable<String> profiles = PROFILES_SPLITTER.split(releaseProfiles);
                 additionalArgs.add("-P " + PROFILES_JOINER.join(profiles));
             }
             runGoals(goals, additionalArgs.build());
         } else if (skipBuild == false) {
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             runGoals("clean install", additionalArgs.build());
         } else {
             LOG.debug("Skipping both install and deploy for release tag " + releaseName);
         }
 
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingReleaseName(List<String> releaseBranches, String defaultReleaseName) throws MojoFailureException {
         String message = "Please select a release branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, releaseBranches, defaultReleaseName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading release name from command line " + e.getMessage());
         }
 
         return name;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
index f329f8b..bb61c82 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
@@ -31,154 +31,163 @@ import org.slf4j.LoggerFactory;
 /**
  * Creates a new release branch off of the develop branch.
  */
 @Mojo(name = "release-start", aggregator = true)
 public class ReleaseStartMojo extends AbstractReleaseMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(ReleaseStartMojo.class.getName());
 
     /**
      * Whether to run the plugin in interactive mode or not. The default is to
      * run without interaction when possible.
      *
      * @since 1.2
      */
     @Parameter(property = "interactive", defaultValue = "true", required = false)
     protected boolean interactive;
 
     /**
      * If the project has a parent with a <code>-SNAPSHOT</code> version it will
      * be replaced with the corresponding release version (if it has been
      * released). This action is performed on the release branch after it is
      * created.
      *
      * @since 1.2
      */
     @Parameter(property = "updateParent", defaultValue = "false", required = false)
     private boolean updateParent;
 
     /**
      * Any dependencies with a <code>-SNAPSHOT</code> version are replaced with
      * the corresponding release version (if it has been released). This action
      * is performed on the release branch after it is created.
      *
      * @since 1.2
      */
     @Parameter(property = "updateDependencies", defaultValue = "false", required = false)
     private boolean updateDependencies;
 
+    /**
+     * A comma separated list of artifact patterns to include. Follows the
+     * pattern <code>groupId:artifactId:type:classifier:version<code>
+     *
+     * @since 1.4
+     */
+    @Parameter(property = "dependenciesIncludesList", defaultValue = "", required = false)
+    private String dependenciesIncludesList;
+
     /**
      * The commit to start the release branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     private String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         /* Switch to develop branch and get its current version */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
         reloadReactorProjects();
 
         String developVersion = project.getVersion();
         LOG.info("Current develop version = " + developVersion);
 
         /* Get next development version */
         String nextDevelopVersion = getNextDevelopVersion(developVersion);
         if (interactive) {
             String message = "What is the next development version? ";
             try {
                 nextDevelopVersion = prompter.prompt(message, nextDevelopVersion);
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading next development version from command line " + ex.getMessage(), ex);
             }
         }
         LOG.debug("Next development version = " + developVersion);
 
         /* Get suggested release version */
         String releaseVersion = getReleaseVersion(developVersion);
         LOG.debug("release version = " + releaseVersion);
 
         /* create release branch */
         String prefix = getReleaseBranchPrefix();
         if (!StringUtils.isBlank(releaseName)) {
             LOG.debug("Using releaseName passed  '" + releaseName + "'");
         } else if (interactive) {
             String message = "What is the release branch name? " + prefix;
             try {
                 releaseName = prompter.prompt(message, releaseVersion);
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading release name from command line " + ex.getMessage(), ex);
             }
         } else {
             releaseName = releaseVersion;
         }
 
         if (StringUtils.isBlank(releaseName)) {
             throw new MojoFailureException("Parameter <releaseName> cannot be null or empty.");
         }
 
         GenericArtifactVersion releaseArtifactVersion;
         try {
             releaseArtifactVersion = new GenericArtifactVersion(releaseName);
             if (SNAPSHOT_QUALIFIER.equals(releaseArtifactVersion.getBuildSpecifier())) {
                 throw new IllegalArgumentException("Parameter <releaseName> is not a release version as it contains SNAPSHOT build specifier");
             }
         } catch (IllegalArgumentException e) {
             throw new MojoExecutionException("Parameter <releaseName> value '" + releaseName + "' is not a valid Maven release version.");
         }
 
         LOG.info("Starting release '" + releaseName + "'");
         LOG.debug("msgPrefix '" + getMsgPrefix() + "'");
         LOG.debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setPush(pushReleases);
         gitflowRelease.setStartCommit(startCommit);
 
         try {
             gitflowRelease.start(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         // current branch should be the release branch
         String releaseBranch = getGitflowInit().gitCurrentBranch();
         if (!releaseBranch.startsWith(prefix)) {
             throw new MojoFailureException("Failed to create release version.");
         }
 
         /* Update release branch dependencies to release version */
         if (updateDependencies) {
             reloadReactorProjects();
-            setNextVersions(false, updateParent);
+            setNextVersions(false, updateParent, dependenciesIncludesList);
         }
 
         // checkout develop branch and update it's version
         String developBranch = (String) getGitflowInit().getDevelopBrnName();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         setVersion(nextDevelopVersion);
 
         // checkout release branch again and update it's version to required release version
         getGitflowInit().executeLocal("git checkout " + releaseBranch);
         reloadReactorProjects();
         setVersion(releaseArtifactVersion.setBuildSpecifier(SNAPSHOT_QUALIFIER).toString());
     }
 
     public String getReleaseName() {
         return releaseName;
     }
 
     private String getNextDevelopVersion(String developVersion) {
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(developVersion);
         artifactVersion.upgradeLeastSignificantPrimaryNumber();
 
         return artifactVersion.toString();
     }
 }

commit 6598cbf759f0086bc284983f77cbdecf1891d0af
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Mon Mar 24 23:13:14 2014 +0000

    Pumping ggitflow-maven to next development version 1.4

diff --git a/ggitflow-maven-archetype/pom.xml b/ggitflow-maven-archetype/pom.xml
index 9274c47..33206dc 100644
--- a/ggitflow-maven-archetype/pom.xml
+++ b/ggitflow-maven-archetype/pom.xml
@@ -1,45 +1,45 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
-        <version>1.4</version>
+        <version>1.5-SNAPSHOT</version>
     </parent>
 
     <groupId>com.dkirrane.maven.archetype</groupId>
     <artifactId>ggitflow-maven-archetype</artifactId>
-    <version>1.4</version>
+    <version>1.5-SNAPSHOT</version>
     <packaging>maven-archetype</packaging>
     <name>ggitflow-maven-archetype</name>
 
     <build>
         <extensions>
             <extension>
                 <groupId>org.apache.maven.archetype</groupId>
                 <artifactId>archetype-packaging</artifactId>
                 <version>2.2</version>
             </extension>
         </extensions>
 
         <pluginManagement>
             <plugins>
                 <plugin>
                     <artifactId>maven-archetype-plugin</artifactId>
                     <version>2.2</version>
                 </plugin>
             </plugins>
         </pluginManagement>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <skip>true</skip>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index 25cec89..f04d7ac 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,169 +1,169 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
-        <version>1.4</version>
+        <version>1.5-SNAPSHOT</version>
     </parent>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
-    <version>1.4</version>
+    <version>1.5-SNAPSHOT</version>
     <packaging>maven-plugin</packaging>
     <name>ggitflow-maven-plugin</name>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
             <version>1.2</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
         <dependency>
             <groupId>jline</groupId>
             <artifactId>jline</artifactId>
             <version>2.11</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>com.jcabi</groupId>
             <artifactId>jcabi-maven-slf4j</artifactId>
             <version>0.8</version>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>3.2</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>3.0.8</version>
         </dependency>
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-interactivity-api</artifactId>
             <version>1.0-alpha-5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>2.4</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-project</artifactId>
             <version>2.2.1</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-clean-plugin</artifactId>
             <version>2.5</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-install-plugin</artifactId>
             <version>2.5.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-deploy-plugin</artifactId>
             <version>2.8.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-artifact</artifactId>
             <version>2.2.1</version>
         </dependency>
         <dependency>
             <groupId>com.google.guava</groupId>
             <artifactId>guava</artifactId>
             <version>16.0.1</version>
         </dependency>
     </dependencies>
 
     <build>
         <resources>
             <resource>
                 <directory>src/it</directory>
                 <includes>
                     <include>**/**</include>
                 </includes>
             </resource>
         </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>3.2</version>
                 <configuration>
                     <goalPrefix>ggitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>com.github.github</groupId>
                 <artifactId>site-maven-plugin</artifactId>
                 <version>0.9</version>
                 <configuration>
                     <message>Creating site for ${project.version}</message>
                     <server>github</server>
                     <merge>true</merge>
                 </configuration>
                 <executions>
                     <execution>
                         <goals>
                             <goal>site</goal>
                         </goals>
                         <phase>site</phase>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <reportPlugins>
                         <plugin>
                             <groupId>org.apache.maven.plugins</groupId>
                             <artifactId>maven-plugin-plugin</artifactId>
                             <version>3.2</version>
                         </plugin>
                     </reportPlugins>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/pom.xml b/pom.xml
index 0fee804..35691d1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,170 +1,170 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven</artifactId>    
-    <version>1.4</version>
+    <version>1.5-SNAPSHOT</version>
     <name>ggitflow-maven</name>
     <packaging>pom</packaging>
 
     <modules>
         <module>ggitflow-maven-plugin</module>
         <module>ggitflow-maven-archetype</module>
     </modules>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
     </properties>
 
     <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
 
     <scm>
         <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
         <connection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</connection>
         <developerConnection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</developerConnection>
     </scm>
 
     <description>Maven Archetype for the Gitflow Maven Plugin</description>
     <developers>
         <developer>
             <id>dkirrane</id>
             <name>Desmond Kirrane</name>
             <email>desmond.kirrane@gmail.com</email>
         </developer>
     </developers>
     <licenses>
         <license>
             <name>Apache License Version 2.0, January 2004</name>
             <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
             <distribution>repo</distribution>
         </license>
     </licenses>
 
     <build>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <version>2.3.2</version>
                 <configuration>
                     <source>1.5</source>
                     <target>1.5</target>
                 </configuration>
             </plugin>          
         </plugins>
     </build>
 
     <profiles>
         <!-- Deploy to https://oss.sonatype.org/index.html -->
         <!-- mvn clean deploy -Prelease-sign-artifacts -->
         <profile>
             <id>release-sign-artifacts</id>
             <activation>
                 <property>
                     <name>performRelease</name>
                     <value>true</value>
                 </property>
             </activation>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-gpg-plugin</artifactId>
                         <executions>
                             <execution>
                                 <id>sign-artifacts</id>
                                 <phase>verify</phase>
                                 <goals>
                                     <goal>sign</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
             </build>
         </profile>
         <profile>
             <id>run-its</id>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-invoker-plugin</artifactId>
                         <version>1.8</version>
                         <configuration>
                             <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
                             <settingsFile>src/it/settings.xml</settingsFile>
                             <debug>true</debug>
                             <showErrors>true</showErrors>
                             <detail>true</detail>
                             <streamLogs>true</streamLogs>
                             <projectsDirectory>src/it/projects</projectsDirectory>
                             <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
                             <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
                             <addTestClassPath>true</addTestClassPath>
                             <preBuildHookScript>setup</preBuildHookScript>
                             <postBuildHookScript>verify</postBuildHookScript>
                             <pomIncludes>
                                 <pomInclude>*/pom.xml</pomInclude>
                             </pomIncludes>
                             <goals>
                                 <goal>clean</goal>
                                 <goal>test-compile</goal>
                             </goals>
                         </configuration>
                         <executions>
                             <execution>
                                 <id>integration-test</id>
                                 <goals>
                                     <goal>install</goal>
                                     <goal>integration-test</goal>
                                     <goal>verify</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
 
             </build>
         </profile>
     </profiles>
 
     <!--
         Sonatype upload details:
         http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
         https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
         https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
         https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
 
             - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
             - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
             - Promote staged artifacts into repository 'Releases'
             - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
             - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
     -->
 
     <distributionManagement>
         <snapshotRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
         </snapshotRepository>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
         </repository>
     </distributionManagement>
     <repositories>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
             <snapshots>
                 <enabled>true</enabled>
             </snapshots>
         </repository>
     </repositories>
 </project>

commit d5b48c1e301bbe09e215612e8396bf40e00e8acf
Merge: 3b33019 0504147
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Mon Mar 24 23:08:41 2014 +0000

    Merge branch 'release/1.4'

commit a1e7614215098b2cadb4963fc8375afa4a1159d5
Merge: 6f73e5d 0504147
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Mon Mar 24 23:08:41 2014 +0000

    Merge branch 'release/1.4' into develop

commit 05041478331f4ec05cdb2cc545896cbd0042b6d0
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Mon Mar 24 23:03:32 2014 +0000

    Pumping ggitflow-maven to release version 1.4

diff --git a/ggitflow-maven-archetype/pom.xml b/ggitflow-maven-archetype/pom.xml
index 6d23053..9274c47 100644
--- a/ggitflow-maven-archetype/pom.xml
+++ b/ggitflow-maven-archetype/pom.xml
@@ -1,45 +1,45 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
-        <version>1.4-SNAPSHOT</version>
+        <version>1.4</version>
     </parent>
 
     <groupId>com.dkirrane.maven.archetype</groupId>
     <artifactId>ggitflow-maven-archetype</artifactId>
-    <version>1.4-SNAPSHOT</version>
+    <version>1.4</version>
     <packaging>maven-archetype</packaging>
     <name>ggitflow-maven-archetype</name>
 
     <build>
         <extensions>
             <extension>
                 <groupId>org.apache.maven.archetype</groupId>
                 <artifactId>archetype-packaging</artifactId>
                 <version>2.2</version>
             </extension>
         </extensions>
 
         <pluginManagement>
             <plugins>
                 <plugin>
                     <artifactId>maven-archetype-plugin</artifactId>
                     <version>2.2</version>
                 </plugin>
             </plugins>
         </pluginManagement>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <skip>true</skip>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index 244ebe1..25cec89 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,169 +1,169 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
-        <version>1.4-SNAPSHOT</version>
+        <version>1.4</version>
     </parent>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
-    <version>1.4-SNAPSHOT</version>
+    <version>1.4</version>
     <packaging>maven-plugin</packaging>
     <name>ggitflow-maven-plugin</name>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
             <version>1.2</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
         <dependency>
             <groupId>jline</groupId>
             <artifactId>jline</artifactId>
             <version>2.11</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>com.jcabi</groupId>
             <artifactId>jcabi-maven-slf4j</artifactId>
             <version>0.8</version>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>3.2</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>3.0.8</version>
         </dependency>
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-interactivity-api</artifactId>
             <version>1.0-alpha-5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>2.4</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-project</artifactId>
             <version>2.2.1</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-clean-plugin</artifactId>
             <version>2.5</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-install-plugin</artifactId>
             <version>2.5.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-deploy-plugin</artifactId>
             <version>2.8.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-artifact</artifactId>
             <version>2.2.1</version>
         </dependency>
         <dependency>
             <groupId>com.google.guava</groupId>
             <artifactId>guava</artifactId>
             <version>16.0.1</version>
         </dependency>
     </dependencies>
 
     <build>
         <resources>
             <resource>
                 <directory>src/it</directory>
                 <includes>
                     <include>**/**</include>
                 </includes>
             </resource>
         </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>3.2</version>
                 <configuration>
                     <goalPrefix>ggitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>com.github.github</groupId>
                 <artifactId>site-maven-plugin</artifactId>
                 <version>0.9</version>
                 <configuration>
                     <message>Creating site for ${project.version}</message>
                     <server>github</server>
                     <merge>true</merge>
                 </configuration>
                 <executions>
                     <execution>
                         <goals>
                             <goal>site</goal>
                         </goals>
                         <phase>site</phase>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <reportPlugins>
                         <plugin>
                             <groupId>org.apache.maven.plugins</groupId>
                             <artifactId>maven-plugin-plugin</artifactId>
                             <version>3.2</version>
                         </plugin>
                     </reportPlugins>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/pom.xml b/pom.xml
index ea23b37..0fee804 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,170 +1,170 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven</artifactId>    
-    <version>1.4-SNAPSHOT</version>
+    <version>1.4</version>
     <name>ggitflow-maven</name>
     <packaging>pom</packaging>
 
     <modules>
         <module>ggitflow-maven-plugin</module>
         <module>ggitflow-maven-archetype</module>
     </modules>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
     </properties>
 
     <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
 
     <scm>
         <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
         <connection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</connection>
         <developerConnection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</developerConnection>
     </scm>
 
     <description>Maven Archetype for the Gitflow Maven Plugin</description>
     <developers>
         <developer>
             <id>dkirrane</id>
             <name>Desmond Kirrane</name>
             <email>desmond.kirrane@gmail.com</email>
         </developer>
     </developers>
     <licenses>
         <license>
             <name>Apache License Version 2.0, January 2004</name>
             <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
             <distribution>repo</distribution>
         </license>
     </licenses>
 
     <build>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <version>2.3.2</version>
                 <configuration>
                     <source>1.5</source>
                     <target>1.5</target>
                 </configuration>
             </plugin>          
         </plugins>
     </build>
 
     <profiles>
         <!-- Deploy to https://oss.sonatype.org/index.html -->
         <!-- mvn clean deploy -Prelease-sign-artifacts -->
         <profile>
             <id>release-sign-artifacts</id>
             <activation>
                 <property>
                     <name>performRelease</name>
                     <value>true</value>
                 </property>
             </activation>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-gpg-plugin</artifactId>
                         <executions>
                             <execution>
                                 <id>sign-artifacts</id>
                                 <phase>verify</phase>
                                 <goals>
                                     <goal>sign</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
             </build>
         </profile>
         <profile>
             <id>run-its</id>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-invoker-plugin</artifactId>
                         <version>1.8</version>
                         <configuration>
                             <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
                             <settingsFile>src/it/settings.xml</settingsFile>
                             <debug>true</debug>
                             <showErrors>true</showErrors>
                             <detail>true</detail>
                             <streamLogs>true</streamLogs>
                             <projectsDirectory>src/it/projects</projectsDirectory>
                             <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
                             <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
                             <addTestClassPath>true</addTestClassPath>
                             <preBuildHookScript>setup</preBuildHookScript>
                             <postBuildHookScript>verify</postBuildHookScript>
                             <pomIncludes>
                                 <pomInclude>*/pom.xml</pomInclude>
                             </pomIncludes>
                             <goals>
                                 <goal>clean</goal>
                                 <goal>test-compile</goal>
                             </goals>
                         </configuration>
                         <executions>
                             <execution>
                                 <id>integration-test</id>
                                 <goals>
                                     <goal>install</goal>
                                     <goal>integration-test</goal>
                                     <goal>verify</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
 
             </build>
         </profile>
     </profiles>
 
     <!--
         Sonatype upload details:
         http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
         https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
         https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
         https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
 
             - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
             - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
             - Promote staged artifacts into repository 'Releases'
             - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
             - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
     -->
 
     <distributionManagement>
         <snapshotRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
         </snapshotRepository>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
         </repository>
     </distributionManagement>
     <repositories>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
             <snapshots>
                 <enabled>true</enabled>
             </snapshots>
         </repository>
     </repositories>
 </project>

commit 6f73e5db64f1f3ea7c19e2b1d32fa63a42e658cf
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Mon Mar 24 22:50:22 2014 +0000

    pushSupport

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
index f968dee..2640fbb 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
@@ -32,116 +32,126 @@ import org.slf4j.LoggerFactory;
 /**
  * Creates a new support branch from a specific commit on the master branch.
  */
 @Mojo(name = "support-start", aggregator = true)
 public class SupportStartMojo extends AbstractGitflowMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(SupportStartMojo.class.getName());
 
+    /**
+     * If <code>true</code>, the support branch is pushed to the remote
+     * repository.
+     *
+     * @since 1.2
+     */
+    @Parameter(property = "pushSupport", defaultValue = "false", required = false)
+    protected boolean pushSupport;
+
     /**
      * The commit to start the support branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     protected String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         String prefix = getGitflowInit().getSupportBranchPrefix();
 
         List<String> tags = getGitflowInit().gitAllTags();
         if (tags.isEmpty()) {
             throw new MojoFailureException("Could not find any tags to create support branch from!");
         }
 
         String baseName = promptForExistingTagName(tags, tags.get(tags.size() - 1));
 
         getGitflowInit().executeLocal("git checkout " + baseName);
         reloadReactorProjects();
         String supportVersion = getSupportVersion(project.getVersion());
         String supportSnapshotVersion = getSupportSnapshotVersion(project.getVersion());
 
         LOG.info("Starting support branch '" + supportVersion + "'");
         LOG.debug("msgPrefix '" + getMsgPrefix() + "'");
         LOG.debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowSupport gitflowSupport = new GitflowSupport();
         gitflowSupport.setInit(getGitflowInit());
         gitflowSupport.setMsgPrefix(getMsgPrefix());
         gitflowSupport.setMsgSuffix(getMsgSuffix());
+        gitflowSupport.setPush(pushSupport);
         gitflowSupport.setStartCommit(startCommit);
 
         try {
             gitflowSupport.start(supportVersion);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         setVersion(supportSnapshotVersion);
 
         if (getGitflowInit().gitRemoteBranchExists(prefix + supportVersion)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + supportVersion);
         }
     }
 
     private String promptForExistingTagName(List<String> branches, String defaultBrnName) throws MojoFailureException {
         String message = "Create a support branch from tag:";
 
         String name = "";
         try {
             name = prompter.prompt(message, branches, defaultBrnName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading selected Tag name from command line " + e.getMessage());
         }
 
         return name;
     }
 
     private String getSupportVersion(String currentVersion) throws MojoFailureException {
         LOG.debug("getSupportVersion from '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         StringBuilder sb = new StringBuilder(10);
         int pCount = artifactVersion.getPrimaryNumberCount();
         if (pCount < 3) {
             // Support versions should be like 1.0.x e.g. 1.0.1, 1.0.2 etc
             sb.append(artifactVersion.getPrimaryNumbersAsString()).append('.').append('x');
             sb.append(artifactVersion.getAnnotationAsString()).append(artifactVersion.getBuildSpecifierAsString());
         } else {
             // Support versions should be like 1.0.0-xx e.g. 1.0.0-01, 1.0.0-02 etc
             if (null != artifactVersion.getAnnotation()) {
                 throw new MojoFailureException("Cannot start Support branch. Primary number " + artifactVersion.getPrimaryNumbersAsString() + " and annotations are already set " + artifactVersion.getAnnotation());
             }
             sb.append(artifactVersion.getPrimaryNumbersAsString()).append('-').append("xx");
         }
 
         return sb.toString();
     }
 
     private String getSupportSnapshotVersion(String currentVersion) throws MojoFailureException {
         LOG.debug("getSupportSnapshotVersion from '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         StringBuilder sb = new StringBuilder(10);
         int pCount = artifactVersion.getPrimaryNumberCount();
         if (pCount < 3) {
             // Support versions should be like 1.0.x e.g. 1.0.1, 1.0.2 etc
             sb.append(artifactVersion.getPrimaryNumbersAsString()).append('.').append('1');
             sb.append(artifactVersion.getAnnotationAsString());
         } else {
             // Support versions should be like 1.0.0-xx e.g. 1.0.0-01, 1.0.0-02 etc
             if (null != artifactVersion.getAnnotation()) {
                 throw new MojoFailureException("Cannot start Support branch. Primary number " + artifactVersion.getPrimaryNumbersAsString() + " and annotations are already set " + artifactVersion.getAnnotation());
             }
             sb.append(artifactVersion.getPrimaryNumbersAsString()).append('-').append("01");
         }
 
         sb.append(DEFAULT_VERSION_COMPONENT_SEPARATOR).append(SNAPSHOT_QUALIFIER);
 
         return sb.toString();
     }
 }

commit dad2ba044c4278ddfdbade5e7b68782564f4d07a
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Mon Mar 24 22:46:54 2014 +0000

    Format and fix imports

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index 39363c8..e389cd6 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -72,3 +72,2 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.name;
 import static org.twdata.maven.mojoexecutor.MojoExecutor.plugin;
-import static org.twdata.maven.mojoexecutor.MojoExecutor.plugin;
 import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
@@ -76,474 +75,474 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 public class AbstractGitflowMojo extends AbstractMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(AbstractGitflowMojo.class.getName());
 
     public final Pattern matchSnapshotRegex = Pattern.compile("-SNAPSHOT");
 
     public static final ImmutableList<String> DEFAULT_INSTALL_ARGS = ImmutableList.of(
             "-DinstallAtEnd=true");
 
     public static final ImmutableList<String> DEFAULT_DEPLOY_ARGS = ImmutableList.of(
             "-DdeployAtEnd=true",
             "-DretryFailedDeploymentCount=2");
 
     public static final Splitter PROFILES_SPLITTER = Splitter.on(',').trimResults().omitEmptyStrings();
     public static final Joiner PROFILES_JOINER = Joiner.on(',').skipNulls();
 
     /**
      * Gitflow branches and prefixes to use.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
     /**
      * Message prefix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgPrefix", defaultValue = "", required = false)
     protected String msgPrefix;
 
     /**
      * Message suffix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgSuffix", defaultValue = "", required = false)
     protected String msgSuffix;
 
     /**
      * Component used to prompt for input.
      */
     @Component
     protected Prompter prompter;
 
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
     @Component
     protected ArtifactResolver artifactResolver;
 
     /**
      * @parameter default-value="${project.artifacts}"
      * @required
      * @readonly
      */
     protected Collection artifacts;
 
     /**
      * @parameter expression="${localRepository}"
      */
     protected ArtifactRepository localRepository;
 
     /**
      * @parameter expression="${project.remoteArtifactRepositories}"
      */
     protected List remoteArtifactRepositories;
 
 //    @Component
 //    protected MavenProjectBuilder projectBuilder;
 //    @Component
 //    protected DefaultProjectBuilder projectBuilder;
 //    /**
 //     * @parameter property="plugin"
 //     * @required
 //     */
 //    @Component
 //    protected PluginDescriptor pluginDescriptor;
 //
     /**
      * The projects in the reactor.
      */
     @Parameter(defaultValue = "${reactorProjects}", readonly = true, required = true)
     protected List<MavenProject> reactorProjects;
 
     /**
      * The project builder
      */
     @Component
     private ProjectBuilder projectBuilder;
 
     /**
      * The project currently being build.
      *
      * @parameter expression="${project}"
      * @required
      * @readonly
      */
     @Component
     protected MavenProject project;
 
     /**
      * The current Maven session.
      *
      * @parameter expression="${session}"
      * @required
      * @readonly
      */
     @Component
     protected MavenSession session;
 
     /**
      * The Maven BuildPluginManager component.
      *
      * @component
      * @required
      */
     @Component
     protected BuildPluginManager pluginManager;
 
 //    @Parameter(defaultValue = "${basedir}", readonly = true, required = true)
 //    protected File basedir;
 //    @Component
 //    protected Settings settings;
     private GitflowInit init;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     public void execute() throws MojoExecutionException, MojoFailureException {
         StaticLoggerBinder.getSingleton().setMavenLog(this.getLog());
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             LOG.debug("Gitflow pom  '" + project.getBasedir() + "'");
         }
 
         GitflowInit gitflowInit = getGitflowInit();
 
         gitflowInit.requireGitRepo();
 
         if (!gitflowInit.gitflowIsInitialized()) {
             try {
                 gitflowInit.cmdDefault();
             } catch (GitflowException ex) {
                 throw new MojoExecutionException("Failed to inintialise Gitflow " + ex.getMessage(), ex);
             }
         }
 
         gitflowInit.requireCleanWorkingTree();
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     protected final GitflowInit getGitflowInit() {
         if (null == init) {
             LOG.info("Initialising Gitflow");
             init = new GitflowInit();
             init.setRepoDir(getProject().getBasedir());
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
 
             /* root Git directory may not be the pom directory */
             String dotGitDir = init.executeLocal("git rev-parse --git-dir");
             File dotGitFolder = new File(dotGitDir);
             assert dotGitFolder.exists();
             init.setRepoDir(dotGitFolder.getParentFile());
         }
         return init;
     }
 
     protected final void setVersion(String version) throws MojoExecutionException, MojoFailureException {
         LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
 
         for (MavenProject mavenProject : reactorProjects) {
             LOG.debug("Calling versions-maven-plugin:set on " + mavenProject.getArtifactId());
             session.setCurrentProject(mavenProject);
             try {
                 executeMojo(
                         plugin(
                                 groupId("org.codehaus.mojo"),
                                 artifactId("versions-maven-plugin"),
                                 version("2.1")
                         ),
                         goal("set"),
                         configuration(
                                 element(name("generateBackupPoms"), "false"),
                                 element(name("newVersion"), version)
                         ),
                         executionEnvironment(
                                 mavenProject,
                                 session,
                                 pluginManager
                         )
                 );
             } catch (MojoExecutionException mee) {
                 String rootCauseMessage = ExceptionUtils.getRootCauseMessage(mee);
                 if (rootCauseMessage.contains("Project version is inherited from parent")) {
                     LOG.warn("Skipping versions-maven-plugin:set for project " + mavenProject.getArtifactId() + ". Project version is inherited from parent.");
                 } else {
                     LOG.error("Cannot set {} to version '{}'", mavenProject.getArtifactId(), version, mee);
                     throw mee;
                 }
             }
         }
         LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change " + version + " to origin. ExitCode:" + exitCode);
                 }
             }
         }
         /* We don't want to fail maybe the version was manually set correctly */
 //        else {
 //            throw new MojoFailureException("Failed to update poms to version " + version);
 //        }
     }
 
     protected final void setNextVersions(Boolean allowSnapshots, Boolean updateParent) throws MojoExecutionException, MojoFailureException {
         LOG.debug("setNextVersions");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
 
         if (updateParent) {
             LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:update-parent updateParent={}", updateParent);
             executeMojo(
                     plugin(
                             groupId("org.codehaus.mojo"),
                             artifactId("versions-maven-plugin"),
                             version("2.1")
                     ),
                     goal("update-parent"),
                     configuration(
                             element(name("generateBackupPoms"), "false"),
                             element(name("allowSnapshots"), allowSnapshots.toString())
                     ),
                     executionEnvironment(
                             rootProject,
                             session,
                             pluginManager
                     )
             );
             LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:update-parent");
         }
 
         LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:use-next-versions allowSnapshots={}", allowSnapshots);
         for (MavenProject mavenProject : reactorProjects) {
             LOG.debug("Calling use-next-versions on " + mavenProject.getArtifactId());
             session.setCurrentProject(mavenProject);
             executeMojo(
                     plugin(
                             groupId("org.codehaus.mojo"),
                             artifactId("versions-maven-plugin"),
                             version("2.1")
                     ),
                     goal("use-next-versions"),
                     configuration(
                             element(name("generateBackupPoms"), "false"),
                             element(name("allowSnapshots"), allowSnapshots.toString())
                     ),
                     executionEnvironment(
                             mavenProject,
                             session,
                             pluginManager
                     )
             );
         }
         LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:use-next-versions");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg;
             if (allowSnapshots) {
                 msg = getMsgPrefix() + "Replaces any release versions with the next snapshot version (if it has been deployed)." + getMsgSuffix();
             } else {
                 msg = getMsgPrefix() + "Replaces snapshot versions with the corresponding release version" + getMsgSuffix();
             }
 
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change to origin. ExitCode:" + exitCode);
                 }
             }
         }
     }
 
     protected final void runGoals(String goals, List<String> additionalArgs) throws MojoExecutionException, MojoFailureException {
         LOG.debug("START executing " + goals + " with args " + additionalArgs);
 
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         File basedir = rootProject.getBasedir();
 
         ReleaseResult result = new ReleaseResult();
         ReleaseEnvironment env = new DefaultReleaseEnvironment();
         env.setSettings(session.getSettings());
         MavenExecutor mavenExecutor = mavenExecutors.get(env.getMavenExecutorId());
 
         Joiner joiner = Joiner.on(" ").skipNulls();
         String additionalArguments = joiner.join(additionalArgs);
         LOG.debug("additionalArguments " + additionalArguments);
 
         try {
             mavenExecutor.executeGoals(basedir, goals, env, false, additionalArguments, result);
         } catch (MavenExecutorException ex) {
             throw new MojoExecutionException(result.getOutput(), ex);
         }
         LOG.debug("DONE executing " + goals);
     }
 
     protected final String getReleaseVersion(String version) throws MojoFailureException {
         LOG.debug("Current Develop version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
             LOG.debug("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
     protected final void checkForSnapshotDependencies() throws MojoExecutionException {
         LOG.info("Checking for SNAPSHOT dependencies");
         Boolean hasDepSnapshots = false;
         Boolean hasParentSnapshot = false;
         for (MavenProject mavenProject : reactorProjects) {
             String artifactId = mavenProject.getArtifactId();
 
             /* Check <parent> */
             Artifact parentArtifact = mavenProject.getParentArtifact();
-            if (parentArtifact != null && parentArtifact.isSnapshot()) {                
+            if (parentArtifact != null && parentArtifact.isSnapshot()) {
                 LOG.error("Parent of project " + artifactId + " is a SNAPSHOT " + parentArtifact.getId());
-                hasParentSnapshot = true;                
+                hasParentSnapshot = true;
             }
 
             /* Check <dependencyManagement> */
             DependencyManagement dependencyManagement = mavenProject.getDependencyManagement();
             if (null != dependencyManagement) {
                 if (checkForSnapshot(artifactId, dependencyManagement.getDependencies())) {
                     hasDepSnapshots = true;
                 }
             }
-            
+
             /* Check <dependencies> */
             if (checkForSnapshot(artifactId, mavenProject.getDependencies())) {
                 hasDepSnapshots = true;
             }
         }
         if (hasParentSnapshot || hasDepSnapshots) {
             throw new MojoExecutionException("Cannot release because SNAPSHOT dependencies exist");
         }
     }
 
     private boolean checkForSnapshot(String artifactId, List<Dependency> dependencies) throws MojoExecutionException {
         Boolean hasSnapshotDependency = false;
         for (Dependency dependency : dependencies) {
             String version = dependency.getVersion();
             Matcher versionMatcher = matchSnapshotRegex.matcher(version);
             if (versionMatcher.find() && versionMatcher.end() == version.length()) {
                 LOG.error("Project " + artifactId + " contains SNAPSHOT dependency: " + dependency.getGroupId() + ":" + dependency.getArtifactId() + ":" + version);
                 hasSnapshotDependency = true;
             }
         }
         return hasSnapshotDependency;
     }
 
     protected final void reloadReactorProjects() throws MojoExecutionException {
         LOG.debug("Reloading poms...");
 
         List<MavenProject> newReactorProjects;
         try {
             newReactorProjects = buildReactorProjects();
         } catch (ProjectBuildingException e) {
             LOG.error("Re-parse aborted due to malformed pom.xml file(s)", e);
             throw new MojoExecutionException("Re-parse aborted due to malformed pom.xml file(s)", e);
         } catch (CycleDetectedException e) {
             LOG.error("Re-parse aborted due to dependency cycle in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to dependency cycle in project model", e);
         } catch (DuplicateProjectException e) {
             LOG.error("Re-parse aborted due to duplicate projects in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to duplicate projects in project model", e);
         } catch (Exception e) {
             LOG.error("Re-parse aborted due a problem that prevented sorting the project model", e);
             throw new MojoExecutionException("Re-parse aborted due a problem that prevented sorting the project model", e);
         }
         MavenProject newProject = findProject(newReactorProjects, this.project);
         if (newProject == null) {
             throw new MojoExecutionException("A pom.xml change appears to have removed " + this.project.getId() + " from the build plan.");
         }
 
         this.project = newProject;
         this.reactorProjects = newReactorProjects;
 
         LOG.debug("Reloading poms complete...");
     }
 
     private List<MavenProject> buildReactorProjects() throws Exception {
 
         List<MavenProject> projects = new ArrayList<MavenProject>();
         for (MavenProject p : reactorProjects) {
             ProjectBuildingRequest request = new DefaultProjectBuildingRequest();
 
             request.setProcessPlugins(true);
             request.setProfiles(request.getProfiles());
             request.setActiveProfileIds(session.getRequest().getActiveProfiles());
             request.setInactiveProfileIds(session.getRequest().getInactiveProfiles());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setSystemProperties(session.getSystemProperties());
             request.setUserProperties(session.getUserProperties());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setPluginArtifactRepositories(session.getRequest().getPluginArtifactRepositories());
             request.setRepositorySession(session.getRepositorySession());
             request.setLocalRepository(localRepository);
             request.setBuildStartTime(session.getRequest().getStartTime());
             request.setResolveDependencies(true);
             request.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_STRICT);
             projects.add(projectBuilder.build(p.getFile(), request).getProject());
         }
         return new ProjectSorter(projects).getSortedProjects();
     }
 
     private MavenProject findProject(List<MavenProject> newReactorProjects, MavenProject oldProject) {
         for (MavenProject newProject : newReactorProjects) {
             if (oldProject.getGroupId().equals(newProject.getGroupId())
                     && oldProject.getArtifactId().equals(newProject.getArtifactId())) {
                 return newProject;
             }
         }
         return null;
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/DebuggingMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/DebuggingMojo.java
index f0c6fdd..b3c129e 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/DebuggingMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/DebuggingMojo.java
@@ -23,19 +23,19 @@ import org.slf4j.LoggerFactory;
 /**
  * Mojo used for Testing
  */
 //@Mojo(name = "debug-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class DebuggingMojo extends AbstractGitflowMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(DebuggingMojo.class.getName());
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
-        
+
         reloadReactorProjects();
-        
+
         setVersion("1.4");
-        
-        runGoals("clean deploy", DEFAULT_DEPLOY_ARGS);  
+
+        runGoals("clean deploy", DEFAULT_DEPLOY_ARGS);
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
index 3c944c4..828b368 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
@@ -32,146 +32,146 @@ import org.slf4j.LoggerFactory;
 /**
  * Merges a feature branch back into the develop.
  */
 @Mojo(name = "feature-finish", aggregator = true)
 public class FeatureFinishMojo extends AbstractFeatureMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(FeatureFinishMojo.class.getName());
 
     /**
      * If <code>true</code>, the feature branch will be rebased onto develop,
      * then finish will fast-forward merge the feature branch back onto develop.
      *
      * @since 1.2
      */
     @Parameter(property = "isRebase", defaultValue = "false", required = false)
     private boolean isRebase;
 
 //    No good way to handle Interactive rebase from a Maven plugin
 //    /**
 //     * If <code>true</code>, and <code>isRebase</code> is true, then an interactive rebase is
 //     * performed for the feature branch.
 //     *
 //     * @since 1.2
 //     */
 //    @Parameter(property = "isInteractive", defaultValue = "false", required = false)
     private final boolean isInteractive = false;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "false", required = false)
     private Boolean skipBuild;
-    
+
     /**
      * Skips any tests during <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipTests", defaultValue = "false", required = false)
-    private Boolean skipTests;    
+    private Boolean skipTests;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the branch will not be deleted after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keep;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         LOG.debug("Finishing feature");
 
         List<String> featureBranches = getGitflowInit().gitLocalFeatureBranches();
 
         if (null == featureBranches || featureBranches.isEmpty()) {
             throw new MojoFailureException("No local feature branches exit!");
         }
 
         String featureBranchPrefix = getFeatureBranchPrefix();
         if (StringUtils.isBlank(featureName)) {
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (currentBranch.startsWith(featureBranchPrefix)) {
                 featureName = currentBranch;
             } else {
                 featureName = featureBranches.get(0);
             }
         } else {
             featureName = getFeatureName(featureName);
         }
 
         featureName = promptForExistingFeatureName(featureBranches, featureName);
 
         LOG.info("Finishing feature '{}'", featureName);
 
         if (enableFeatureVersions) {
             /* Switch to develop branch and get its current version */
             getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
             reloadReactorProjects();
             String developVersion = project.getVersion();
             LOG.debug("develop version = " + developVersion);
 
             /* Switch to feature branch and get its current version */
             getGitflowInit().executeLocal("git checkout " + featureName);
             reloadReactorProjects();
             String featureVersion = project.getVersion();
             LOG.debug("feature version = " + featureVersion);
 
             setVersion(developVersion);
         }
 
         if (skipBuild == false) {
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_INSTALL_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
-            }              
+            }
             runGoals("clean install", additionalArgs.build());
         } else {
             LOG.debug("Skipping mvn install for feature " + featureName);
-        }        
+        }
 
         GitflowFeature gitflowFeature = new GitflowFeature();
         gitflowFeature.setInit(getGitflowInit());
         gitflowFeature.setMsgPrefix(getMsgPrefix());
         gitflowFeature.setMsgSuffix(getMsgSuffix());
         gitflowFeature.setSquash(squash);
         gitflowFeature.setKeep(keep);
         gitflowFeature.setIsRebase(isRebase);
         gitflowFeature.setIsInteractive(isInteractive);
 
         try {
             gitflowFeature.finish(featureName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
     }
 
     private String promptForExistingFeatureName(List<String> featureBranches, String defaultFeatureName) throws MojoFailureException {
         String message = "Please select a feature branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, featureBranches, defaultFeatureName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading feature name from command line " + e.getMessage());
         }
 
         return name.trim();
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
index 9f03530..c65382c 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
@@ -17,2 +17,5 @@ package com.dkirrane.maven.plugins.ggitflow;
 
+import com.dkirrane.gitflow.groovy.GitflowFeature;
+import com.dkirrane.gitflow.groovy.ex.GitflowException;
+import com.dkirrane.maven.plugins.ggitflow.util.MavenUtil;
 import org.apache.maven.model.Model;
@@ -27,9 +30,5 @@ import org.slf4j.LoggerFactory;
 
-import com.dkirrane.gitflow.groovy.GitflowFeature;
-import com.dkirrane.gitflow.groovy.ex.GitflowException;
-import com.dkirrane.maven.plugins.ggitflow.util.MavenUtil;
-
 /**
  * Creates a new feature branch off of the develop branch.
  */
 @Mojo(name = "feature-start", aggregator = true)
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
index 3857d2f..5220b19 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
@@ -17,6 +17,8 @@ package com.dkirrane.maven.plugins.ggitflow;
 
+import com.dkirrane.gitflow.groovy.GitflowHotfix;
+import com.dkirrane.gitflow.groovy.ex.GitflowException;
+import com.dkirrane.gitflow.groovy.ex.GitflowMergeConflictException;
 import static com.dkirrane.maven.plugins.ggitflow.AbstractGitflowMojo.DEFAULT_DEPLOY_ARGS;
-
+import com.google.common.collect.ImmutableList;
 import java.util.List;
-
 import org.apache.maven.plugin.MojoExecutionException;
@@ -30,239 +32,234 @@ import org.slf4j.LoggerFactory;
 
-import com.dkirrane.gitflow.groovy.GitflowHotfix;
-import com.dkirrane.gitflow.groovy.ex.GitflowException;
-import com.dkirrane.gitflow.groovy.ex.GitflowMergeConflictException;
-import com.google.common.collect.ImmutableList;
-
 /**
  * Merges a hotfix branch back into the develop and master branch and then
  * creates a tag for the hotfix on master.
  */
 @Mojo(name = "hotfix-finish", aggregator = true)
 public class HotfixFinishMojo extends AbstractHotfixMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(HotfixFinishMojo.class.getName());
 
     protected String hotfixName;
 
     /**
      * If <code>true</code>, the hotfix can still finish even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private boolean allowSnapshots;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "false", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any calls to <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipDeploy", defaultValue = "false", required = false)
     private Boolean skipDeploy;
 
     /**
      * Skips any tests during <code>mvn install</code> and
      * <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipTests", defaultValue = "false", required = false)
     private Boolean skipTests;
 
     /**
      * Whether to use the release profile that adds sources and javadoc to the
      * released artifact, if appropriate. If set to true, the hotfix-finish will
      * set the property "performRelease" to true, which activates the profile
      * "release-profile", which is inherited from the super pom.
      *
      * @since 1.2
      */
     @Parameter(property = "useReleaseProfile", defaultValue = "true", required = false)
     private Boolean useReleaseProfile;
 
     /**
      * Comma separated profiles to enable on deployment, in addition to active
      * profiles for project execution.
      *
      * @since 1.2
      */
     @Parameter(property = "releaseProfiles", defaultValue = "", required = false)
     private String releaseProfiles;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the branch will not be deleted after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keep;
 
     /**
      * If <code>true</code>, the hotfix tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         LOG.debug("Finishing hotfix");
 
         /* Get hotfix branch name */
         List<String> hotfixBranches = getGitflowInit().gitLocalHotfixBranches();
         if (hotfixBranches.isEmpty()) {
             throw new MojoFailureException("Could not find hotfix branch!");
         } else if (hotfixBranches.size() == 1) {
             hotfixName = hotfixBranches.get(0);
         } else {
             hotfixName = promptForExistingHotfixName(hotfixBranches, hotfixName);
         }
 
         LOG.info("Finishing hotfix '{}'", hotfixName);
 
         /* Switch to hotfix branch and set poms to hotfix version */
         getGitflowInit().executeLocal("git checkout " + hotfixName);
         reloadReactorProjects();
         String hotfixVersion = project.getVersion();
         LOG.debug("hotfix snapshot version = " + hotfixVersion);
         String hotfixReleaseVersion = getReleaseVersion(hotfixVersion);
         LOG.debug("hotfix release version = " + hotfixReleaseVersion);
         setVersion(hotfixReleaseVersion);
 
         /* Switch to develop branch and get current develop version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         LOG.debug("develop version = " + developVersion);
 
         /* Set develop branch to hotfix version to prevent merge conflicts */
         setVersion(hotfixReleaseVersion);
 
         if (!allowSnapshots) {
             reloadReactorProjects();
             checkForSnapshotDependencies();
         }
 
         /* finish hotfix */
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
         gitflowHotfix.setSquash(squash);
         gitflowHotfix.setKeep(keep);
         gitflowHotfix.setSign(sign);
         gitflowHotfix.setSigningkey(signingkey);
 
         try {
             gitflowHotfix.finish(hotfixName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             LOG.error("Merge conflicts exist.", gmce);
             throw new MojoFailureException(gmce.getMessage());
 
 //            LOG.info("Attempting to auto-resolve any pom version conflicts.", gmce);
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            fixPomMergeConflicts.setInit(getGitflowInit());
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
         /* Set develop branch back to original develop version */
         setVersion(developVersion);
         if (getGitflowInit().gitRemoteBranchExists(developBranch)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + developBranch);
         }
 
         /* Switch to hotfix tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + hotfixReleaseVersion);
         reloadReactorProjects();
 
         /* install or deploy */
         if (skipDeploy == false) {
             String goals = "clean deploy";
             if (project.getDistributionManagement() != null
                     && project.getDistributionManagement().getSite() != null) {
                 goals += " site-deploy";
             }
 
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             if (useReleaseProfile) {
                 additionalArgs.add("-DperformRelease=true");
             }
             if (StringUtils.isNotBlank(releaseProfiles)) {
-                Iterable<String> profiles = PROFILES_SPLITTER.split(releaseProfiles);                
+                Iterable<String> profiles = PROFILES_SPLITTER.split(releaseProfiles);
                 additionalArgs.add("-P " + PROFILES_JOINER.join(profiles));
             }
             runGoals(goals, additionalArgs.build());
         } else if (skipBuild == false) {
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             runGoals("clean install", additionalArgs.build());
         } else {
             LOG.debug("Skipping both install and deploy for hotfix tag " + hotfixName);
         }
 
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingHotfixName(List<String> hotfixBranches, String defaultHotfixName) throws MojoFailureException {
         String message = "Please select a hotfix branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, hotfixBranches, defaultHotfixName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading hotfix name from command line " + e.getMessage());
         }
 
         return name;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
index 1397f78..b719e82 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
@@ -17,5 +17,4 @@ package com.dkirrane.maven.plugins.ggitflow;
 
-import static org.jfrog.hudson.util.GenericArtifactVersion.DEFAULT_VERSION_COMPONENT_SEPARATOR;
-import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
-
+import com.dkirrane.gitflow.groovy.GitflowHotfix;
+import com.dkirrane.gitflow.groovy.ex.GitflowException;
 import org.apache.maven.plugin.MojoExecutionException;
@@ -24,2 +23,4 @@ import org.apache.maven.plugins.annotations.Mojo;
 import org.jfrog.hudson.util.GenericArtifactVersion;
+import static org.jfrog.hudson.util.GenericArtifactVersion.DEFAULT_VERSION_COMPONENT_SEPARATOR;
+import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
 import org.slf4j.Logger;
@@ -27,8 +28,5 @@ import org.slf4j.LoggerFactory;
 
-import com.dkirrane.gitflow.groovy.GitflowHotfix;
-import com.dkirrane.gitflow.groovy.ex.GitflowException;
-
 /**
  * Creates a new hotfix branch off of the master branch.
  */
 @Mojo(name = "hotfix-start", aggregator = true)
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index 03a4410..45c1809 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -35,276 +35,276 @@ import org.slf4j.LoggerFactory;
 /**
  * Merges a release branch back into the develop and master branch and then
  * creates a tag for the release on master.
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(ReleaseFinishMojo.class.getName());
 
     /**
      * If <code>true</code>, the release can still finish even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private boolean allowSnapshots;
 
     /**
      * If the project has a parent with a release version it will be replaced
      * with the next <code>-SNAPSHOT</code> version (if it has been deployed).
      * This action is performed on the develop branch after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "updateParent", defaultValue = "true", required = false)
     private boolean updateParent;
 
     /**
      * On the release branch before finish is called any dependencies with a
      * <code>-SNAPSHOT</code> version are replaced with the corresponding
      * release version (if it has been released).
      *
      * On the develop branch after the merge any dependencies with a release
      * version are replaced with the next <code>-SNAPSHOT</code> version (if it
      * has been deployed).
      *
      * @since 1.2
      */
     @Parameter(property = "updateDependencies", defaultValue = "true", required = false)
     private boolean updateDependencies;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "false", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any calls to <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipDeploy", defaultValue = "false", required = false)
     private Boolean skipDeploy;
 
     /**
      * Skips any tests during <code>mvn install</code> and
      * <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipTests", defaultValue = "false", required = false)
     private Boolean skipTests;
 
     /**
      * Whether to use the release profile that adds sources and javadoc to the
      * released artifact, if appropriate. If set to true, the release-finish
      * will set the property "performRelease" to true, which activates the
      * profile "release-profile", which is inherited from the super pom.
      *
      * @since 1.2
      */
     @Parameter(property = "useReleaseProfile", defaultValue = "true", required = false)
     private Boolean useReleaseProfile;
 
     /**
      * Comma separated profiles to enable on deployment, in addition to active
      * profiles for project execution.
      *
      * @since 1.2
      */
     @Parameter(property = "releaseProfiles", defaultValue = "", required = false)
     private String releaseProfiles;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the branch will not be deleted after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keep;
 
     /**
      * If <code>true</code>, the release tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         LOG.debug("Finishing release");
 
         /* Get release branch name */
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
         if (releaseBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         } else if (releaseBranches.size() == 1) {
             releaseName = releaseBranches.get(0);
         } else {
             releaseName = promptForExistingReleaseName(releaseBranches, releaseName);
         }
 
         LOG.info("Finishing release '{}'", releaseName);
 
         /* Switch to develop branch and get its current version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         LOG.debug("develop version = " + developVersion);
 
         /* Switch to release branch and set poms to release version */
         getGitflowInit().executeLocal("git checkout " + releaseName);
         reloadReactorProjects();
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(project.getVersion());
         String releaseVersion;
         if ("SNAPSHOT".equals(artifactVersion.getBuildSpecifier())) {
             releaseVersion = getReleaseVersion(project.getVersion());
         } else {
             releaseVersion = project.getVersion();
         }
         LOG.debug("release version = " + releaseVersion);
 
         setVersion(releaseVersion);
 
         /* Update release branch dependencies to release version */
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions(false, updateParent);
         }
 
         if (!allowSnapshots) {
             reloadReactorProjects();
             checkForSnapshotDependencies();
         }
 
         /* finish release */
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setSquash(squash);
         gitflowRelease.setKeep(keep);
         gitflowRelease.setSign(sign);
         gitflowRelease.setSigningkey(signingkey);
 
         /* 1. merge to master */
         try {
             gitflowRelease.finishToMaster(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
 
         /* 2. make versions in release and develop branches match to avoid conflicts */
         getGitflowInit().executeLocal("git checkout " + releaseName);
         reloadReactorProjects();
         setVersion(developVersion);
 
         /* 3. merge to develop */
         try {
             gitflowRelease.finishToDevelop(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
         /* Update develop branch dependencies to next snapshot version (if deployed) */
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions(true, updateParent);
         }
 
         /* Switch to release tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);
         reloadReactorProjects();
         String tagVersion = project.getVersion();
         LOG.debug("tag version = " + tagVersion);
 
         /* install or deploy */
         if (skipDeploy == false) {
             String goals = "clean deploy";
             if (project.getDistributionManagement() != null
                     && project.getDistributionManagement().getSite() != null) {
                 goals += " site-deploy";
             }
 
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             if (useReleaseProfile) {
                 additionalArgs.add("-DperformRelease=true");
             }
             if (StringUtils.isNotBlank(releaseProfiles)) {
-                Iterable<String> profiles = PROFILES_SPLITTER.split(releaseProfiles);                
+                Iterable<String> profiles = PROFILES_SPLITTER.split(releaseProfiles);
                 additionalArgs.add("-P " + PROFILES_JOINER.join(profiles));
             }
             runGoals(goals, additionalArgs.build());
         } else if (skipBuild == false) {
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             runGoals("clean install", additionalArgs.build());
         } else {
             LOG.debug("Skipping both install and deploy for release tag " + releaseName);
         }
 
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingReleaseName(List<String> releaseBranches, String defaultReleaseName) throws MojoFailureException {
         String message = "Please select a release branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, releaseBranches, defaultReleaseName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading release name from command line " + e.getMessage());
         }
 
         return name;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
index 27a945b..f329f8b 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
@@ -17,4 +17,4 @@ package com.dkirrane.maven.plugins.ggitflow;
 
-import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
-
+import com.dkirrane.gitflow.groovy.GitflowRelease;
+import com.dkirrane.gitflow.groovy.ex.GitflowException;
 import org.apache.maven.plugin.MojoExecutionException;
@@ -26,2 +26,3 @@ import org.codehaus.plexus.util.StringUtils;
 import org.jfrog.hudson.util.GenericArtifactVersion;
+import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
 import org.slf4j.Logger;
@@ -29,8 +30,5 @@ import org.slf4j.LoggerFactory;
 
-import com.dkirrane.gitflow.groovy.GitflowRelease;
-import com.dkirrane.gitflow.groovy.ex.GitflowException;
-
 /**
  * Creates a new release branch off of the develop branch.
  */
 @Mojo(name = "release-start", aggregator = true)
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
index 3a745d0..f968dee 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
@@ -17,7 +17,5 @@ package com.dkirrane.maven.plugins.ggitflow;
 
-import static org.jfrog.hudson.util.GenericArtifactVersion.DEFAULT_VERSION_COMPONENT_SEPARATOR;
-import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
-
+import com.dkirrane.gitflow.groovy.GitflowSupport;
+import com.dkirrane.gitflow.groovy.ex.GitflowException;
 import java.util.List;
-
 import org.apache.maven.plugin.MojoExecutionException;
@@ -28,2 +26,4 @@ import org.codehaus.plexus.components.interactivity.PrompterException;
 import org.jfrog.hudson.util.GenericArtifactVersion;
+import static org.jfrog.hudson.util.GenericArtifactVersion.DEFAULT_VERSION_COMPONENT_SEPARATOR;
+import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
 import org.slf4j.Logger;
@@ -31,120 +31,117 @@ import org.slf4j.LoggerFactory;
 
-import com.dkirrane.gitflow.groovy.GitflowSupport;
-import com.dkirrane.gitflow.groovy.ex.GitflowException;
-
 /**
  * Creates a new support branch from a specific commit on the master branch.
  */
 @Mojo(name = "support-start", aggregator = true)
 public class SupportStartMojo extends AbstractGitflowMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(SupportStartMojo.class.getName());
 
     /**
      * The commit to start the support branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     protected String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         String prefix = getGitflowInit().getSupportBranchPrefix();
 
         List<String> tags = getGitflowInit().gitAllTags();
         if (tags.isEmpty()) {
             throw new MojoFailureException("Could not find any tags to create support branch from!");
         }
 
         String baseName = promptForExistingTagName(tags, tags.get(tags.size() - 1));
 
         getGitflowInit().executeLocal("git checkout " + baseName);
         reloadReactorProjects();
         String supportVersion = getSupportVersion(project.getVersion());
         String supportSnapshotVersion = getSupportSnapshotVersion(project.getVersion());
 
         LOG.info("Starting support branch '" + supportVersion + "'");
         LOG.debug("msgPrefix '" + getMsgPrefix() + "'");
         LOG.debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowSupport gitflowSupport = new GitflowSupport();
         gitflowSupport.setInit(getGitflowInit());
         gitflowSupport.setMsgPrefix(getMsgPrefix());
         gitflowSupport.setMsgSuffix(getMsgSuffix());
         gitflowSupport.setStartCommit(startCommit);
 
         try {
             gitflowSupport.start(supportVersion);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         setVersion(supportSnapshotVersion);
 
         if (getGitflowInit().gitRemoteBranchExists(prefix + supportVersion)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + supportVersion);
         }
     }
 
     private String promptForExistingTagName(List<String> branches, String defaultBrnName) throws MojoFailureException {
         String message = "Create a support branch from tag:";
 
         String name = "";
         try {
             name = prompter.prompt(message, branches, defaultBrnName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading selected Tag name from command line " + e.getMessage());
         }
 
         return name;
     }
 
     private String getSupportVersion(String currentVersion) throws MojoFailureException {
         LOG.debug("getSupportVersion from '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         StringBuilder sb = new StringBuilder(10);
         int pCount = artifactVersion.getPrimaryNumberCount();
         if (pCount < 3) {
             // Support versions should be like 1.0.x e.g. 1.0.1, 1.0.2 etc
             sb.append(artifactVersion.getPrimaryNumbersAsString()).append('.').append('x');
             sb.append(artifactVersion.getAnnotationAsString()).append(artifactVersion.getBuildSpecifierAsString());
         } else {
             // Support versions should be like 1.0.0-xx e.g. 1.0.0-01, 1.0.0-02 etc
             if (null != artifactVersion.getAnnotation()) {
                 throw new MojoFailureException("Cannot start Support branch. Primary number " + artifactVersion.getPrimaryNumbersAsString() + " and annotations are already set " + artifactVersion.getAnnotation());
             }
             sb.append(artifactVersion.getPrimaryNumbersAsString()).append('-').append("xx");
         }
 
         return sb.toString();
     }
 
     private String getSupportSnapshotVersion(String currentVersion) throws MojoFailureException {
         LOG.debug("getSupportSnapshotVersion from '" + currentVersion + "'");
 
-        GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);        
+        GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         StringBuilder sb = new StringBuilder(10);
         int pCount = artifactVersion.getPrimaryNumberCount();
         if (pCount < 3) {
             // Support versions should be like 1.0.x e.g. 1.0.1, 1.0.2 etc
             sb.append(artifactVersion.getPrimaryNumbersAsString()).append('.').append('1');
             sb.append(artifactVersion.getAnnotationAsString());
         } else {
             // Support versions should be like 1.0.0-xx e.g. 1.0.0-01, 1.0.0-02 etc
             if (null != artifactVersion.getAnnotation()) {
                 throw new MojoFailureException("Cannot start Support branch. Primary number " + artifactVersion.getPrimaryNumbersAsString() + " and annotations are already set " + artifactVersion.getAnnotation());
             }
             sb.append(artifactVersion.getPrimaryNumbersAsString()).append('-').append("01");
-        }        
+        }
 
         sb.append(DEFAULT_VERSION_COMPONENT_SEPARATOR).append(SNAPSHOT_QUALIFIER);
 
         return sb.toString();
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/util/MavenUtil.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/util/MavenUtil.java
index d327551..9bf3291 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/util/MavenUtil.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/util/MavenUtil.java
@@ -29,44 +29,44 @@ import org.codehaus.plexus.util.xml.pull.XmlPullParserException;
 /**
  *
  */
 public final class MavenUtil {
 
     public static MavenProject getRootProject(List<MavenProject> reactorProjects) {
         MavenProject project = reactorProjects.get(0);
         for (MavenProject currentProject : reactorProjects) {
             if (currentProject.isExecutionRoot()) {
                 project = currentProject;
                 break;
             }
         }
         return project;
     }
 
     public static Model readPom(List<MavenProject> reactorProjects) throws MojoExecutionException {
         MavenProject rootProject = getRootProject(reactorProjects);
         File pomFile = rootProject.getFile();
-        
+
         FileReader fileReader = null;
 
         try {
             fileReader = new FileReader(pomFile);
             MavenXpp3Reader m = new MavenXpp3Reader();
             Model model = m.read(fileReader);
             return model;
         } catch (FileNotFoundException ex) {
             throw new MojoExecutionException("POM " + pomFile.getAbsolutePath() + " could not be parsed.", ex);
         } catch (IOException ex) {
             throw new MojoExecutionException("POM " + pomFile.getAbsolutePath() + " could not be parsed.", ex);
         } catch (XmlPullParserException ex) {
             throw new MojoExecutionException("POM " + pomFile.getAbsolutePath() + " could not be parsed.", ex);
         } finally {
             if (null != fileReader) {
                 try {
                     fileReader.close();
                 } catch (IOException ex) {
                 }
             }
         }
     }
-    
+
 }
diff --git a/ggitflow-maven-plugin/src/site/site.xml b/ggitflow-maven-plugin/src/site/site.xml
index 51b1b9c..6929103 100644
--- a/ggitflow-maven-plugin/src/site/site.xml
+++ b/ggitflow-maven-plugin/src/site/site.xml
@@ -15,12 +15,12 @@ See the License for the specific language governing permissions and
 limitations under the License.
 -->
 <project name="ggitflow-maven-plugin">
-  <publishDate format="dd MMM yyyy" position="left"/>
-  <body>
-   <menu name="Overview">
-      <!--<item name="Introduction" href="index.html"/>-->
-      <item name="Goals" href="plugin-info.html"/>
-      <!--<item name="FAQ" href="faq.html"/>-->
-   </menu>
-  </body>
+    <publishDate format="dd MMM yyyy" position="left"/>
+    <body>
+        <menu name="Overview">
+            <!--<item name="Introduction" href="index.html"/>-->
+            <item name="Goals" href="plugin-info.html"/>
+            <!--<item name="FAQ" href="faq.html"/>-->
+        </menu>
+    </body>
 </project>
\ No newline at end of file

commit 36a4aa9805da2f65cd1acd716606dad509c6155e
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Mon Mar 24 22:34:12 2014 +0000

    Fix to check for parent SNAPSHOTS on release finish

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index 225411f..39363c8 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -31,2 +31,3 @@ import java.util.regex.Pattern;
 import org.apache.commons.lang.exception.ExceptionUtils;
+import org.apache.maven.artifact.Artifact;
 import org.apache.maven.artifact.repository.ArtifactRepository;
@@ -71,2 +72,3 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.name;
 import static org.twdata.maven.mojoexecutor.MojoExecutor.plugin;
+import static org.twdata.maven.mojoexecutor.MojoExecutor.plugin;
 import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
@@ -74,462 +76,474 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 public class AbstractGitflowMojo extends AbstractMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(AbstractGitflowMojo.class.getName());
 
     public final Pattern matchSnapshotRegex = Pattern.compile("-SNAPSHOT");
 
     public static final ImmutableList<String> DEFAULT_INSTALL_ARGS = ImmutableList.of(
             "-DinstallAtEnd=true");
 
     public static final ImmutableList<String> DEFAULT_DEPLOY_ARGS = ImmutableList.of(
             "-DdeployAtEnd=true",
             "-DretryFailedDeploymentCount=2");
 
     public static final Splitter PROFILES_SPLITTER = Splitter.on(',').trimResults().omitEmptyStrings();
     public static final Joiner PROFILES_JOINER = Joiner.on(',').skipNulls();
 
     /**
      * Gitflow branches and prefixes to use.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
     /**
      * Message prefix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgPrefix", defaultValue = "", required = false)
     protected String msgPrefix;
 
     /**
      * Message suffix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgSuffix", defaultValue = "", required = false)
     protected String msgSuffix;
 
     /**
      * Component used to prompt for input.
      */
     @Component
     protected Prompter prompter;
 
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
     @Component
     protected ArtifactResolver artifactResolver;
 
     /**
      * @parameter default-value="${project.artifacts}"
      * @required
      * @readonly
      */
     protected Collection artifacts;
 
     /**
      * @parameter expression="${localRepository}"
      */
     protected ArtifactRepository localRepository;
 
     /**
      * @parameter expression="${project.remoteArtifactRepositories}"
      */
     protected List remoteArtifactRepositories;
 
 //    @Component
 //    protected MavenProjectBuilder projectBuilder;
 //    @Component
 //    protected DefaultProjectBuilder projectBuilder;
 //    /**
 //     * @parameter property="plugin"
 //     * @required
 //     */
 //    @Component
 //    protected PluginDescriptor pluginDescriptor;
 //
     /**
      * The projects in the reactor.
      */
     @Parameter(defaultValue = "${reactorProjects}", readonly = true, required = true)
     protected List<MavenProject> reactorProjects;
 
     /**
      * The project builder
      */
     @Component
     private ProjectBuilder projectBuilder;
 
     /**
      * The project currently being build.
      *
      * @parameter expression="${project}"
      * @required
      * @readonly
      */
     @Component
     protected MavenProject project;
 
     /**
      * The current Maven session.
      *
      * @parameter expression="${session}"
      * @required
      * @readonly
      */
     @Component
     protected MavenSession session;
 
     /**
      * The Maven BuildPluginManager component.
      *
      * @component
      * @required
      */
     @Component
     protected BuildPluginManager pluginManager;
 
 //    @Parameter(defaultValue = "${basedir}", readonly = true, required = true)
 //    protected File basedir;
 //    @Component
 //    protected Settings settings;
     private GitflowInit init;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     public void execute() throws MojoExecutionException, MojoFailureException {
         StaticLoggerBinder.getSingleton().setMavenLog(this.getLog());
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             LOG.debug("Gitflow pom  '" + project.getBasedir() + "'");
         }
 
         GitflowInit gitflowInit = getGitflowInit();
 
         gitflowInit.requireGitRepo();
 
         if (!gitflowInit.gitflowIsInitialized()) {
             try {
                 gitflowInit.cmdDefault();
             } catch (GitflowException ex) {
                 throw new MojoExecutionException("Failed to inintialise Gitflow " + ex.getMessage(), ex);
             }
         }
 
         gitflowInit.requireCleanWorkingTree();
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     protected final GitflowInit getGitflowInit() {
         if (null == init) {
             LOG.info("Initialising Gitflow");
             init = new GitflowInit();
             init.setRepoDir(getProject().getBasedir());
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
 
             /* root Git directory may not be the pom directory */
             String dotGitDir = init.executeLocal("git rev-parse --git-dir");
             File dotGitFolder = new File(dotGitDir);
             assert dotGitFolder.exists();
             init.setRepoDir(dotGitFolder.getParentFile());
         }
         return init;
     }
 
     protected final void setVersion(String version) throws MojoExecutionException, MojoFailureException {
         LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
 
         for (MavenProject mavenProject : reactorProjects) {
             LOG.debug("Calling versions-maven-plugin:set on " + mavenProject.getArtifactId());
             session.setCurrentProject(mavenProject);
             try {
                 executeMojo(
                         plugin(
                                 groupId("org.codehaus.mojo"),
                                 artifactId("versions-maven-plugin"),
                                 version("2.1")
                         ),
                         goal("set"),
                         configuration(
                                 element(name("generateBackupPoms"), "false"),
                                 element(name("newVersion"), version)
                         ),
                         executionEnvironment(
                                 mavenProject,
                                 session,
                                 pluginManager
                         )
                 );
             } catch (MojoExecutionException mee) {
                 String rootCauseMessage = ExceptionUtils.getRootCauseMessage(mee);
                 if (rootCauseMessage.contains("Project version is inherited from parent")) {
                     LOG.warn("Skipping versions-maven-plugin:set for project " + mavenProject.getArtifactId() + ". Project version is inherited from parent.");
                 } else {
                     LOG.error("Cannot set {} to version '{}'", mavenProject.getArtifactId(), version, mee);
                     throw mee;
                 }
             }
         }
         LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change " + version + " to origin. ExitCode:" + exitCode);
                 }
             }
         }
         /* We don't want to fail maybe the version was manually set correctly */
 //        else {
 //            throw new MojoFailureException("Failed to update poms to version " + version);
 //        }
     }
 
     protected final void setNextVersions(Boolean allowSnapshots, Boolean updateParent) throws MojoExecutionException, MojoFailureException {
         LOG.debug("setNextVersions");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
 
         if (updateParent) {
             LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:update-parent updateParent={}", updateParent);
             executeMojo(
                     plugin(
                             groupId("org.codehaus.mojo"),
                             artifactId("versions-maven-plugin"),
                             version("2.1")
                     ),
                     goal("update-parent"),
                     configuration(
                             element(name("generateBackupPoms"), "false"),
                             element(name("allowSnapshots"), allowSnapshots.toString())
                     ),
                     executionEnvironment(
                             rootProject,
                             session,
                             pluginManager
                     )
             );
             LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:update-parent");
         }
 
         LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:use-next-versions allowSnapshots={}", allowSnapshots);
         for (MavenProject mavenProject : reactorProjects) {
             LOG.debug("Calling use-next-versions on " + mavenProject.getArtifactId());
             session.setCurrentProject(mavenProject);
             executeMojo(
                     plugin(
                             groupId("org.codehaus.mojo"),
                             artifactId("versions-maven-plugin"),
                             version("2.1")
                     ),
                     goal("use-next-versions"),
                     configuration(
                             element(name("generateBackupPoms"), "false"),
                             element(name("allowSnapshots"), allowSnapshots.toString())
                     ),
                     executionEnvironment(
                             mavenProject,
                             session,
                             pluginManager
                     )
             );
         }
         LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:use-next-versions");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg;
             if (allowSnapshots) {
                 msg = getMsgPrefix() + "Replaces any release versions with the next snapshot version (if it has been deployed)." + getMsgSuffix();
             } else {
                 msg = getMsgPrefix() + "Replaces snapshot versions with the corresponding release version" + getMsgSuffix();
             }
 
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change to origin. ExitCode:" + exitCode);
                 }
             }
         }
     }
 
     protected final void runGoals(String goals, List<String> additionalArgs) throws MojoExecutionException, MojoFailureException {
         LOG.debug("START executing " + goals + " with args " + additionalArgs);
 
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         File basedir = rootProject.getBasedir();
 
         ReleaseResult result = new ReleaseResult();
         ReleaseEnvironment env = new DefaultReleaseEnvironment();
         env.setSettings(session.getSettings());
         MavenExecutor mavenExecutor = mavenExecutors.get(env.getMavenExecutorId());
 
         Joiner joiner = Joiner.on(" ").skipNulls();
         String additionalArguments = joiner.join(additionalArgs);
         LOG.debug("additionalArguments " + additionalArguments);
 
         try {
             mavenExecutor.executeGoals(basedir, goals, env, false, additionalArguments, result);
         } catch (MavenExecutorException ex) {
             throw new MojoExecutionException(result.getOutput(), ex);
         }
         LOG.debug("DONE executing " + goals);
     }
 
     protected final String getReleaseVersion(String version) throws MojoFailureException {
         LOG.debug("Current Develop version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
             LOG.debug("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
     protected final void checkForSnapshotDependencies() throws MojoExecutionException {
         LOG.info("Checking for SNAPSHOT dependencies");
-        Boolean hasSnapshots = false;
+        Boolean hasDepSnapshots = false;
+        Boolean hasParentSnapshot = false;
         for (MavenProject mavenProject : reactorProjects) {
             String artifactId = mavenProject.getArtifactId();
+
+            /* Check <parent> */
+            Artifact parentArtifact = mavenProject.getParentArtifact();
+            if (parentArtifact != null && parentArtifact.isSnapshot()) {                
+                LOG.error("Parent of project " + artifactId + " is a SNAPSHOT " + parentArtifact.getId());
+                hasParentSnapshot = true;                
+            }
+
+            /* Check <dependencyManagement> */
             DependencyManagement dependencyManagement = mavenProject.getDependencyManagement();
             if (null != dependencyManagement) {
                 if (checkForSnapshot(artifactId, dependencyManagement.getDependencies())) {
-                    hasSnapshots = true;
+                    hasDepSnapshots = true;
                 }
             }
+            
+            /* Check <dependencies> */
             if (checkForSnapshot(artifactId, mavenProject.getDependencies())) {
-                hasSnapshots = true;
+                hasDepSnapshots = true;
             }
         }
-        if (hasSnapshots) {
+        if (hasParentSnapshot || hasDepSnapshots) {
             throw new MojoExecutionException("Cannot release because SNAPSHOT dependencies exist");
         }
     }
 
     private boolean checkForSnapshot(String artifactId, List<Dependency> dependencies) throws MojoExecutionException {
         Boolean hasSnapshotDependency = false;
         for (Dependency dependency : dependencies) {
             String version = dependency.getVersion();
             Matcher versionMatcher = matchSnapshotRegex.matcher(version);
             if (versionMatcher.find() && versionMatcher.end() == version.length()) {
-                LOG.error("Project " + artifactId + " contains SNAPSHOT dependency " + dependency.getGroupId() + ":" + dependency.getArtifactId() + ":" + version);
+                LOG.error("Project " + artifactId + " contains SNAPSHOT dependency: " + dependency.getGroupId() + ":" + dependency.getArtifactId() + ":" + version);
                 hasSnapshotDependency = true;
             }
         }
         return hasSnapshotDependency;
     }
 
     protected final void reloadReactorProjects() throws MojoExecutionException {
         LOG.debug("Reloading poms...");
 
         List<MavenProject> newReactorProjects;
         try {
             newReactorProjects = buildReactorProjects();
         } catch (ProjectBuildingException e) {
             LOG.error("Re-parse aborted due to malformed pom.xml file(s)", e);
             throw new MojoExecutionException("Re-parse aborted due to malformed pom.xml file(s)", e);
         } catch (CycleDetectedException e) {
             LOG.error("Re-parse aborted due to dependency cycle in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to dependency cycle in project model", e);
         } catch (DuplicateProjectException e) {
             LOG.error("Re-parse aborted due to duplicate projects in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to duplicate projects in project model", e);
         } catch (Exception e) {
             LOG.error("Re-parse aborted due a problem that prevented sorting the project model", e);
             throw new MojoExecutionException("Re-parse aborted due a problem that prevented sorting the project model", e);
         }
         MavenProject newProject = findProject(newReactorProjects, this.project);
         if (newProject == null) {
             throw new MojoExecutionException("A pom.xml change appears to have removed " + this.project.getId() + " from the build plan.");
         }
 
         this.project = newProject;
         this.reactorProjects = newReactorProjects;
 
         LOG.debug("Reloading poms complete...");
     }
 
     private List<MavenProject> buildReactorProjects() throws Exception {
 
         List<MavenProject> projects = new ArrayList<MavenProject>();
         for (MavenProject p : reactorProjects) {
             ProjectBuildingRequest request = new DefaultProjectBuildingRequest();
 
             request.setProcessPlugins(true);
             request.setProfiles(request.getProfiles());
             request.setActiveProfileIds(session.getRequest().getActiveProfiles());
             request.setInactiveProfileIds(session.getRequest().getInactiveProfiles());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setSystemProperties(session.getSystemProperties());
             request.setUserProperties(session.getUserProperties());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setPluginArtifactRepositories(session.getRequest().getPluginArtifactRepositories());
             request.setRepositorySession(session.getRepositorySession());
             request.setLocalRepository(localRepository);
             request.setBuildStartTime(session.getRequest().getStartTime());
             request.setResolveDependencies(true);
             request.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_STRICT);
             projects.add(projectBuilder.build(p.getFile(), request).getProject());
         }
         return new ProjectSorter(projects).getSortedProjects();
     }
 
     private MavenProject findProject(List<MavenProject> newReactorProjects, MavenProject oldProject) {
         for (MavenProject newProject : newReactorProjects) {
             if (oldProject.getGroupId().equals(newProject.getGroupId())
                     && oldProject.getArtifactId().equals(newProject.getArtifactId())) {
                 return newProject;
             }
         }
         return null;
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
index bfe3bbc..3857d2f 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
@@ -36,232 +36,233 @@ import com.google.common.collect.ImmutableList;
 /**
  * Merges a hotfix branch back into the develop and master branch and then
  * creates a tag for the hotfix on master.
  */
 @Mojo(name = "hotfix-finish", aggregator = true)
 public class HotfixFinishMojo extends AbstractHotfixMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(HotfixFinishMojo.class.getName());
 
     protected String hotfixName;
 
     /**
      * If <code>true</code>, the hotfix can still finish even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private boolean allowSnapshots;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "false", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any calls to <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipDeploy", defaultValue = "false", required = false)
     private Boolean skipDeploy;
 
     /**
      * Skips any tests during <code>mvn install</code> and
      * <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipTests", defaultValue = "false", required = false)
     private Boolean skipTests;
 
     /**
      * Whether to use the release profile that adds sources and javadoc to the
      * released artifact, if appropriate. If set to true, the hotfix-finish will
      * set the property "performRelease" to true, which activates the profile
      * "release-profile", which is inherited from the super pom.
      *
      * @since 1.2
      */
     @Parameter(property = "useReleaseProfile", defaultValue = "true", required = false)
     private Boolean useReleaseProfile;
 
     /**
      * Comma separated profiles to enable on deployment, in addition to active
      * profiles for project execution.
      *
      * @since 1.2
      */
     @Parameter(property = "releaseProfiles", defaultValue = "", required = false)
     private String releaseProfiles;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the branch will not be deleted after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keep;
 
     /**
      * If <code>true</code>, the hotfix tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         LOG.debug("Finishing hotfix");
 
         /* Get hotfix branch name */
         List<String> hotfixBranches = getGitflowInit().gitLocalHotfixBranches();
         if (hotfixBranches.isEmpty()) {
             throw new MojoFailureException("Could not find hotfix branch!");
         } else if (hotfixBranches.size() == 1) {
             hotfixName = hotfixBranches.get(0);
         } else {
             hotfixName = promptForExistingHotfixName(hotfixBranches, hotfixName);
         }
 
         LOG.info("Finishing hotfix '{}'", hotfixName);
 
         /* Switch to hotfix branch and set poms to hotfix version */
         getGitflowInit().executeLocal("git checkout " + hotfixName);
         reloadReactorProjects();
         String hotfixVersion = project.getVersion();
         LOG.debug("hotfix snapshot version = " + hotfixVersion);
         String hotfixReleaseVersion = getReleaseVersion(hotfixVersion);
         LOG.debug("hotfix release version = " + hotfixReleaseVersion);
         setVersion(hotfixReleaseVersion);
 
         /* Switch to develop branch and get current develop version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         LOG.debug("develop version = " + developVersion);
 
         /* Set develop branch to hotfix version to prevent merge conflicts */
         setVersion(hotfixReleaseVersion);
 
         if (!allowSnapshots) {
+            reloadReactorProjects();
             checkForSnapshotDependencies();
         }
 
         /* finish hotfix */
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
         gitflowHotfix.setSquash(squash);
         gitflowHotfix.setKeep(keep);
         gitflowHotfix.setSign(sign);
         gitflowHotfix.setSigningkey(signingkey);
 
         try {
             gitflowHotfix.finish(hotfixName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             LOG.error("Merge conflicts exist.", gmce);
             throw new MojoFailureException(gmce.getMessage());
 
 //            LOG.info("Attempting to auto-resolve any pom version conflicts.", gmce);
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            fixPomMergeConflicts.setInit(getGitflowInit());
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
         /* Set develop branch back to original develop version */
         setVersion(developVersion);
         if (getGitflowInit().gitRemoteBranchExists(developBranch)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + developBranch);
         }
 
         /* Switch to hotfix tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + hotfixReleaseVersion);
         reloadReactorProjects();
 
         /* install or deploy */
         if (skipDeploy == false) {
             String goals = "clean deploy";
             if (project.getDistributionManagement() != null
                     && project.getDistributionManagement().getSite() != null) {
                 goals += " site-deploy";
             }
 
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             if (useReleaseProfile) {
                 additionalArgs.add("-DperformRelease=true");
             }
             if (StringUtils.isNotBlank(releaseProfiles)) {
                 Iterable<String> profiles = PROFILES_SPLITTER.split(releaseProfiles);                
                 additionalArgs.add("-P " + PROFILES_JOINER.join(profiles));
             }
             runGoals(goals, additionalArgs.build());
         } else if (skipBuild == false) {
             ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
             additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
             if (skipTests) {
                 additionalArgs.add("-DskipTests=true");
             }
             runGoals("clean install", additionalArgs.build());
         } else {
             LOG.debug("Skipping both install and deploy for hotfix tag " + hotfixName);
         }
 
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingHotfixName(List<String> hotfixBranches, String defaultHotfixName) throws MojoFailureException {
         String message = "Please select a hotfix branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, hotfixBranches, defaultHotfixName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading hotfix name from command line " + e.getMessage());
         }
 
         return name;
     }
 }

commit 9542dc749850c20ce4e2283f350008e55473932f
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Mon Mar 24 21:44:21 2014 +0000

    fixes If releaseName is passed make sure poms are updated to this version

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
index dbcdb61..27a945b 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
@@ -33,150 +33,154 @@ import com.dkirrane.gitflow.groovy.ex.GitflowException;
 /**
  * Creates a new release branch off of the develop branch.
  */
 @Mojo(name = "release-start", aggregator = true)
 public class ReleaseStartMojo extends AbstractReleaseMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(ReleaseStartMojo.class.getName());
 
     /**
      * Whether to run the plugin in interactive mode or not. The default is to
      * run without interaction when possible.
      *
      * @since 1.2
      */
     @Parameter(property = "interactive", defaultValue = "true", required = false)
     protected boolean interactive;
 
     /**
      * If the project has a parent with a <code>-SNAPSHOT</code> version it will
      * be replaced with the corresponding release version (if it has been
      * released). This action is performed on the release branch after it is
      * created.
      *
      * @since 1.2
      */
     @Parameter(property = "updateParent", defaultValue = "false", required = false)
     private boolean updateParent;
 
     /**
      * Any dependencies with a <code>-SNAPSHOT</code> version are replaced with
      * the corresponding release version (if it has been released). This action
      * is performed on the release branch after it is created.
      *
      * @since 1.2
      */
     @Parameter(property = "updateDependencies", defaultValue = "false", required = false)
     private boolean updateDependencies;
 
     /**
      * The commit to start the release branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     private String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         /* Switch to develop branch and get its current version */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
         reloadReactorProjects();
 
         String developVersion = project.getVersion();
         LOG.info("Current develop version = " + developVersion);
 
         /* Get next development version */
         String nextDevelopVersion = getNextDevelopVersion(developVersion);
         if (interactive) {
             String message = "What is the next development version? ";
             try {
                 nextDevelopVersion = prompter.prompt(message, nextDevelopVersion);
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading next development version from command line " + ex.getMessage(), ex);
             }
-        }      
-        LOG.debug("next develop version = " + developVersion);
+        }
+        LOG.debug("Next development version = " + developVersion);
 
         /* Get suggested release version */
         String releaseVersion = getReleaseVersion(developVersion);
         LOG.debug("release version = " + releaseVersion);
 
         /* create release branch */
         String prefix = getReleaseBranchPrefix();
-        if (interactive && StringUtils.isBlank(releaseName)) {
+        if (!StringUtils.isBlank(releaseName)) {
+            LOG.debug("Using releaseName passed  '" + releaseName + "'");
+        } else if (interactive) {
             String message = "What is the release branch name? " + prefix;
             try {
                 releaseName = prompter.prompt(message, releaseVersion);
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading release name from command line " + ex.getMessage(), ex);
             }
         } else {
             releaseName = releaseVersion;
         }
 
         if (StringUtils.isBlank(releaseName)) {
             throw new MojoFailureException("Parameter <releaseName> cannot be null or empty.");
         }
 
         GenericArtifactVersion releaseArtifactVersion;
         try {
             releaseArtifactVersion = new GenericArtifactVersion(releaseName);
-            releaseArtifactVersion.setBuildSpecifier(SNAPSHOT_QUALIFIER);
+            if (SNAPSHOT_QUALIFIER.equals(releaseArtifactVersion.getBuildSpecifier())) {
+                throw new IllegalArgumentException("Parameter <releaseName> is not a release version as it contains SNAPSHOT build specifier");
+            }
         } catch (IllegalArgumentException e) {
-            throw new MojoExecutionException("Provided releaseName " + releaseName + " is not a valid Maven version.");
+            throw new MojoExecutionException("Parameter <releaseName> value '" + releaseName + "' is not a valid Maven release version.");
         }
 
         LOG.info("Starting release '" + releaseName + "'");
         LOG.debug("msgPrefix '" + getMsgPrefix() + "'");
         LOG.debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setPush(pushReleases);
         gitflowRelease.setStartCommit(startCommit);
 
         try {
             gitflowRelease.start(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         // current branch should be the release branch
         String releaseBranch = getGitflowInit().gitCurrentBranch();
         if (!releaseBranch.startsWith(prefix)) {
             throw new MojoFailureException("Failed to create release version.");
         }
 
         /* Update release branch dependencies to release version */
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions(false, updateParent);
         }
 
         // checkout develop branch and update it's version
         String developBranch = (String) getGitflowInit().getDevelopBrnName();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         setVersion(nextDevelopVersion);
 
-        // checkout release branch again
+        // checkout release branch again and update it's version to required release version
         getGitflowInit().executeLocal("git checkout " + releaseBranch);
         reloadReactorProjects();
-        setVersion(releaseArtifactVersion.toString());
+        setVersion(releaseArtifactVersion.setBuildSpecifier(SNAPSHOT_QUALIFIER).toString());
     }
 
     public String getReleaseName() {
         return releaseName;
     }
 
     private String getNextDevelopVersion(String developVersion) {
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(developVersion);
         artifactVersion.upgradeLeastSignificantPrimaryNumber();
 
         return artifactVersion.toString();
     }
 }

commit 9aa61d800b2a59e1f8d38c40a96c4b505b9aa6aa
Author: Dessie Kirrane <dkirrane@avaya.com>
Date:   Mon Mar 24 16:35:54 2014 +0000

    pumping project to next development version

diff --git a/ggitflow-maven-archetype/pom.xml b/ggitflow-maven-archetype/pom.xml
index fb05105..6d23053 100644
--- a/ggitflow-maven-archetype/pom.xml
+++ b/ggitflow-maven-archetype/pom.xml
@@ -1,45 +1,45 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
-        <version>1.3</version>
+        <version>1.4-SNAPSHOT</version>
     </parent>
 
     <groupId>com.dkirrane.maven.archetype</groupId>
     <artifactId>ggitflow-maven-archetype</artifactId>
-    <version>1.3</version>
+    <version>1.4-SNAPSHOT</version>
     <packaging>maven-archetype</packaging>
     <name>ggitflow-maven-archetype</name>
 
     <build>
         <extensions>
             <extension>
                 <groupId>org.apache.maven.archetype</groupId>
                 <artifactId>archetype-packaging</artifactId>
                 <version>2.2</version>
             </extension>
         </extensions>
 
         <pluginManagement>
             <plugins>
                 <plugin>
                     <artifactId>maven-archetype-plugin</artifactId>
                     <version>2.2</version>
                 </plugin>
             </plugins>
         </pluginManagement>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <skip>true</skip>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index a9c9316..244ebe1 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,169 +1,169 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
-        <version>1.3</version>
+        <version>1.4-SNAPSHOT</version>
     </parent>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
-    <version>1.3</version>
+    <version>1.4-SNAPSHOT</version>
     <packaging>maven-plugin</packaging>
     <name>ggitflow-maven-plugin</name>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
             <version>1.2</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
         <dependency>
             <groupId>jline</groupId>
             <artifactId>jline</artifactId>
             <version>2.11</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>com.jcabi</groupId>
             <artifactId>jcabi-maven-slf4j</artifactId>
             <version>0.8</version>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>3.2</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>3.0.8</version>
         </dependency>
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-interactivity-api</artifactId>
             <version>1.0-alpha-5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>2.4</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-project</artifactId>
             <version>2.2.1</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-clean-plugin</artifactId>
             <version>2.5</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-install-plugin</artifactId>
             <version>2.5.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-deploy-plugin</artifactId>
             <version>2.8.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-artifact</artifactId>
             <version>2.2.1</version>
         </dependency>
         <dependency>
             <groupId>com.google.guava</groupId>
             <artifactId>guava</artifactId>
             <version>16.0.1</version>
         </dependency>
     </dependencies>
 
     <build>
         <resources>
             <resource>
                 <directory>src/it</directory>
                 <includes>
                     <include>**/**</include>
                 </includes>
             </resource>
         </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>3.2</version>
                 <configuration>
                     <goalPrefix>ggitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>com.github.github</groupId>
                 <artifactId>site-maven-plugin</artifactId>
                 <version>0.9</version>
                 <configuration>
                     <message>Creating site for ${project.version}</message>
                     <server>github</server>
                     <merge>true</merge>
                 </configuration>
                 <executions>
                     <execution>
                         <goals>
                             <goal>site</goal>
                         </goals>
                         <phase>site</phase>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <reportPlugins>
                         <plugin>
                             <groupId>org.apache.maven.plugins</groupId>
                             <artifactId>maven-plugin-plugin</artifactId>
                             <version>3.2</version>
                         </plugin>
                     </reportPlugins>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/pom.xml b/pom.xml
index 2d458ce..ea23b37 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,170 +1,170 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven</artifactId>    
-    <version>1.3</version>
+    <version>1.4-SNAPSHOT</version>
     <name>ggitflow-maven</name>
     <packaging>pom</packaging>
 
     <modules>
         <module>ggitflow-maven-plugin</module>
         <module>ggitflow-maven-archetype</module>
     </modules>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
     </properties>
 
     <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
 
     <scm>
         <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
         <connection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</connection>
         <developerConnection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</developerConnection>
     </scm>
 
     <description>Maven Archetype for the Gitflow Maven Plugin</description>
     <developers>
         <developer>
             <id>dkirrane</id>
             <name>Desmond Kirrane</name>
             <email>desmond.kirrane@gmail.com</email>
         </developer>
     </developers>
     <licenses>
         <license>
             <name>Apache License Version 2.0, January 2004</name>
             <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
             <distribution>repo</distribution>
         </license>
     </licenses>
 
     <build>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <version>2.3.2</version>
                 <configuration>
                     <source>1.5</source>
                     <target>1.5</target>
                 </configuration>
             </plugin>          
         </plugins>
     </build>
 
     <profiles>
         <!-- Deploy to https://oss.sonatype.org/index.html -->
         <!-- mvn clean deploy -Prelease-sign-artifacts -->
         <profile>
             <id>release-sign-artifacts</id>
             <activation>
                 <property>
                     <name>performRelease</name>
                     <value>true</value>
                 </property>
             </activation>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-gpg-plugin</artifactId>
                         <executions>
                             <execution>
                                 <id>sign-artifacts</id>
                                 <phase>verify</phase>
                                 <goals>
                                     <goal>sign</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
             </build>
         </profile>
         <profile>
             <id>run-its</id>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-invoker-plugin</artifactId>
                         <version>1.8</version>
                         <configuration>
                             <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
                             <settingsFile>src/it/settings.xml</settingsFile>
                             <debug>true</debug>
                             <showErrors>true</showErrors>
                             <detail>true</detail>
                             <streamLogs>true</streamLogs>
                             <projectsDirectory>src/it/projects</projectsDirectory>
                             <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
                             <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
                             <addTestClassPath>true</addTestClassPath>
                             <preBuildHookScript>setup</preBuildHookScript>
                             <postBuildHookScript>verify</postBuildHookScript>
                             <pomIncludes>
                                 <pomInclude>*/pom.xml</pomInclude>
                             </pomIncludes>
                             <goals>
                                 <goal>clean</goal>
                                 <goal>test-compile</goal>
                             </goals>
                         </configuration>
                         <executions>
                             <execution>
                                 <id>integration-test</id>
                                 <goals>
                                     <goal>install</goal>
                                     <goal>integration-test</goal>
                                     <goal>verify</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
 
             </build>
         </profile>
     </profiles>
 
     <!--
         Sonatype upload details:
         http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
         https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
         https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
         https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
 
             - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
             - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
             - Promote staged artifacts into repository 'Releases'
             - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
             - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
     -->
 
     <distributionManagement>
         <snapshotRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
         </snapshotRepository>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
         </repository>
     </distributionManagement>
     <repositories>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
             <snapshots>
                 <enabled>true</enabled>
             </snapshots>
         </repository>
     </repositories>
 </project>

commit 9d93e9e0d6af8764bb5a56a60f6ea84a42ec50e0
Author: Dessie Kirrane <dkirrane@avaya.com>
Date:   Mon Mar 24 16:20:43 2014 +0000

    If releaseName is passed make sure poms are updated to this version

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
index 9f1aec6..dbcdb61 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
@@ -17,2 +17,4 @@ package com.dkirrane.maven.plugins.ggitflow;
 
+import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
+
 import org.apache.maven.plugin.MojoExecutionException;
@@ -31,145 +33,150 @@ import com.dkirrane.gitflow.groovy.ex.GitflowException;
 /**
  * Creates a new release branch off of the develop branch.
  */
 @Mojo(name = "release-start", aggregator = true)
 public class ReleaseStartMojo extends AbstractReleaseMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(ReleaseStartMojo.class.getName());
 
     /**
      * Whether to run the plugin in interactive mode or not. The default is to
      * run without interaction when possible.
      *
      * @since 1.2
      */
     @Parameter(property = "interactive", defaultValue = "true", required = false)
     protected boolean interactive;
 
     /**
      * If the project has a parent with a <code>-SNAPSHOT</code> version it will
      * be replaced with the corresponding release version (if it has been
      * released). This action is performed on the release branch after it is
      * created.
      *
      * @since 1.2
      */
     @Parameter(property = "updateParent", defaultValue = "false", required = false)
     private boolean updateParent;
 
     /**
      * Any dependencies with a <code>-SNAPSHOT</code> version are replaced with
      * the corresponding release version (if it has been released). This action
      * is performed on the release branch after it is created.
      *
      * @since 1.2
      */
     @Parameter(property = "updateDependencies", defaultValue = "false", required = false)
     private boolean updateDependencies;
 
     /**
      * The commit to start the release branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     private String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         /* Switch to develop branch and get its current version */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
         reloadReactorProjects();
 
         String developVersion = project.getVersion();
         LOG.info("Current develop version = " + developVersion);
 
         /* Get next development version */
         String nextDevelopVersion = getNextDevelopVersion(developVersion);
         if (interactive) {
             String message = "What is the next development version? ";
             try {
                 nextDevelopVersion = prompter.prompt(message, nextDevelopVersion);
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading next development version from command line " + ex.getMessage(), ex);
             }
         }      
         LOG.debug("next develop version = " + developVersion);
 
         /* Get suggested release version */
         String releaseVersion = getReleaseVersion(developVersion);
         LOG.debug("release version = " + releaseVersion);
 
         /* create release branch */
         String prefix = getReleaseBranchPrefix();
         if (interactive && StringUtils.isBlank(releaseName)) {
             String message = "What is the release branch name? " + prefix;
             try {
                 releaseName = prompter.prompt(message, releaseVersion);
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading release name from command line " + ex.getMessage(), ex);
             }
         } else {
             releaseName = releaseVersion;
         }
 
         if (StringUtils.isBlank(releaseName)) {
             throw new MojoFailureException("Parameter <releaseName> cannot be null or empty.");
         }
 
+        GenericArtifactVersion releaseArtifactVersion;
         try {
-            new GenericArtifactVersion(releaseName);
+            releaseArtifactVersion = new GenericArtifactVersion(releaseName);
+            releaseArtifactVersion.setBuildSpecifier(SNAPSHOT_QUALIFIER);
         } catch (IllegalArgumentException e) {
             throw new MojoExecutionException("Provided releaseName " + releaseName + " is not a valid Maven version.");
         }
 
         LOG.info("Starting release '" + releaseName + "'");
         LOG.debug("msgPrefix '" + getMsgPrefix() + "'");
         LOG.debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setPush(pushReleases);
         gitflowRelease.setStartCommit(startCommit);
 
         try {
             gitflowRelease.start(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         // current branch should be the release branch
         String releaseBranch = getGitflowInit().gitCurrentBranch();
         if (!releaseBranch.startsWith(prefix)) {
             throw new MojoFailureException("Failed to create release version.");
         }
 
         /* Update release branch dependencies to release version */
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions(false, updateParent);
         }
 
         // checkout develop branch and update it's version
         String developBranch = (String) getGitflowInit().getDevelopBrnName();
         getGitflowInit().executeLocal("git checkout " + developBranch);
+        reloadReactorProjects();
         setVersion(nextDevelopVersion);
 
         // checkout release branch again
         getGitflowInit().executeLocal("git checkout " + releaseBranch);
+        reloadReactorProjects();
+        setVersion(releaseArtifactVersion.toString());
     }
 
     public String getReleaseName() {
         return releaseName;
     }
 
     private String getNextDevelopVersion(String developVersion) {
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(developVersion);
         artifactVersion.upgradeLeastSignificantPrimaryNumber();
 
         return artifactVersion.toString();
     }
 }

commit 3b3301992c8eefbfdc8e7bbcf46b65f8d400a790
Merge: d4ee715 bb966e0
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Fri Mar 21 23:41:39 2014 +0000

    Merge branch 'release/1.3'

commit 01e4fe8875cafec1637c24fcfa07cb08a5b06736
Merge: f619101 bb966e0
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Fri Mar 21 23:41:39 2014 +0000

    Merge branch 'release/1.3' into develop

commit bb966e0b43ab2441afe746c013012e433ef4f2fe
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Fri Mar 21 23:20:24 2014 +0000

    Pumping ggitflow to release version 1.2

diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index c4b8385..a9c9316 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,169 +1,169 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
         <version>1.3</version>
     </parent>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
     <version>1.3</version>
     <packaging>maven-plugin</packaging>
     <name>ggitflow-maven-plugin</name>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
-            <version>1.2-SNAPSHOT</version>
+            <version>1.2</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
         <dependency>
             <groupId>jline</groupId>
             <artifactId>jline</artifactId>
             <version>2.11</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>com.jcabi</groupId>
             <artifactId>jcabi-maven-slf4j</artifactId>
             <version>0.8</version>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>3.2</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>3.0.8</version>
         </dependency>
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-interactivity-api</artifactId>
             <version>1.0-alpha-5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>2.4</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-project</artifactId>
             <version>2.2.1</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-clean-plugin</artifactId>
             <version>2.5</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-install-plugin</artifactId>
             <version>2.5.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-deploy-plugin</artifactId>
             <version>2.8.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-artifact</artifactId>
             <version>2.2.1</version>
         </dependency>
         <dependency>
             <groupId>com.google.guava</groupId>
             <artifactId>guava</artifactId>
             <version>16.0.1</version>
         </dependency>
     </dependencies>
 
     <build>
         <resources>
             <resource>
                 <directory>src/it</directory>
                 <includes>
                     <include>**/**</include>
                 </includes>
             </resource>
         </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>3.2</version>
                 <configuration>
                     <goalPrefix>ggitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>com.github.github</groupId>
                 <artifactId>site-maven-plugin</artifactId>
                 <version>0.9</version>
                 <configuration>
                     <message>Creating site for ${project.version}</message>
                     <server>github</server>
                     <merge>true</merge>
                 </configuration>
                 <executions>
                     <execution>
                         <goals>
                             <goal>site</goal>
                         </goals>
                         <phase>site</phase>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <reportPlugins>
                         <plugin>
                             <groupId>org.apache.maven.plugins</groupId>
                             <artifactId>maven-plugin-plugin</artifactId>
                             <version>3.2</version>
                         </plugin>
                     </reportPlugins>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>

commit 927a447f47ea4cdf5d13a5a9cbe86acece5fde7b
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Fri Mar 21 23:12:55 2014 +0000

    Pumping ggitflow-maven to release version 1.3

diff --git a/ggitflow-maven-archetype/pom.xml b/ggitflow-maven-archetype/pom.xml
index f43be07..fb05105 100644
--- a/ggitflow-maven-archetype/pom.xml
+++ b/ggitflow-maven-archetype/pom.xml
@@ -1,45 +1,45 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
-        <version>1.3-SNAPSPHOT</version>
+        <version>1.3</version>
     </parent>
 
     <groupId>com.dkirrane.maven.archetype</groupId>
     <artifactId>ggitflow-maven-archetype</artifactId>
-    <version>1.3-SNAPSPHOT</version>
+    <version>1.3</version>
     <packaging>maven-archetype</packaging>
     <name>ggitflow-maven-archetype</name>
 
     <build>
         <extensions>
             <extension>
                 <groupId>org.apache.maven.archetype</groupId>
                 <artifactId>archetype-packaging</artifactId>
                 <version>2.2</version>
             </extension>
         </extensions>
 
         <pluginManagement>
             <plugins>
                 <plugin>
                     <artifactId>maven-archetype-plugin</artifactId>
                     <version>2.2</version>
                 </plugin>
             </plugins>
         </pluginManagement>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <skip>true</skip>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index 6681f14..c4b8385 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,169 +1,169 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
-        <version>1.3-SNAPSPHOT</version>
+        <version>1.3</version>
     </parent>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
-    <version>1.3-SNAPSPHOT</version>
+    <version>1.3</version>
     <packaging>maven-plugin</packaging>
     <name>ggitflow-maven-plugin</name>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
             <version>1.2-SNAPSHOT</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
         <dependency>
             <groupId>jline</groupId>
             <artifactId>jline</artifactId>
             <version>2.11</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>com.jcabi</groupId>
             <artifactId>jcabi-maven-slf4j</artifactId>
             <version>0.8</version>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>3.2</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>3.0.8</version>
         </dependency>
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-interactivity-api</artifactId>
             <version>1.0-alpha-5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>2.4</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-project</artifactId>
             <version>2.2.1</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-clean-plugin</artifactId>
             <version>2.5</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-install-plugin</artifactId>
             <version>2.5.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-deploy-plugin</artifactId>
             <version>2.8.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-artifact</artifactId>
             <version>2.2.1</version>
         </dependency>
         <dependency>
             <groupId>com.google.guava</groupId>
             <artifactId>guava</artifactId>
             <version>16.0.1</version>
         </dependency>
     </dependencies>
 
     <build>
         <resources>
             <resource>
                 <directory>src/it</directory>
                 <includes>
                     <include>**/**</include>
                 </includes>
             </resource>
         </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>3.2</version>
                 <configuration>
                     <goalPrefix>ggitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>com.github.github</groupId>
                 <artifactId>site-maven-plugin</artifactId>
                 <version>0.9</version>
                 <configuration>
                     <message>Creating site for ${project.version}</message>
                     <server>github</server>
                     <merge>true</merge>
                 </configuration>
                 <executions>
                     <execution>
                         <goals>
                             <goal>site</goal>
                         </goals>
                         <phase>site</phase>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <reportPlugins>
                         <plugin>
                             <groupId>org.apache.maven.plugins</groupId>
                             <artifactId>maven-plugin-plugin</artifactId>
                             <version>3.2</version>
                         </plugin>
                     </reportPlugins>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/pom.xml b/pom.xml
index c4de437..2d458ce 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,170 +1,170 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven</artifactId>    
-    <version>1.3-SNAPSPHOT</version>
+    <version>1.3</version>
     <name>ggitflow-maven</name>
     <packaging>pom</packaging>
 
     <modules>
         <module>ggitflow-maven-plugin</module>
         <module>ggitflow-maven-archetype</module>
     </modules>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
     </properties>
 
     <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
 
     <scm>
         <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
         <connection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</connection>
         <developerConnection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</developerConnection>
     </scm>
 
     <description>Maven Archetype for the Gitflow Maven Plugin</description>
     <developers>
         <developer>
             <id>dkirrane</id>
             <name>Desmond Kirrane</name>
             <email>desmond.kirrane@gmail.com</email>
         </developer>
     </developers>
     <licenses>
         <license>
             <name>Apache License Version 2.0, January 2004</name>
             <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
             <distribution>repo</distribution>
         </license>
     </licenses>
 
     <build>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <version>2.3.2</version>
                 <configuration>
                     <source>1.5</source>
                     <target>1.5</target>
                 </configuration>
             </plugin>          
         </plugins>
     </build>
 
     <profiles>
         <!-- Deploy to https://oss.sonatype.org/index.html -->
         <!-- mvn clean deploy -Prelease-sign-artifacts -->
         <profile>
             <id>release-sign-artifacts</id>
             <activation>
                 <property>
                     <name>performRelease</name>
                     <value>true</value>
                 </property>
             </activation>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-gpg-plugin</artifactId>
                         <executions>
                             <execution>
                                 <id>sign-artifacts</id>
                                 <phase>verify</phase>
                                 <goals>
                                     <goal>sign</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
             </build>
         </profile>
         <profile>
             <id>run-its</id>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-invoker-plugin</artifactId>
                         <version>1.8</version>
                         <configuration>
                             <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
                             <settingsFile>src/it/settings.xml</settingsFile>
                             <debug>true</debug>
                             <showErrors>true</showErrors>
                             <detail>true</detail>
                             <streamLogs>true</streamLogs>
                             <projectsDirectory>src/it/projects</projectsDirectory>
                             <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
                             <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
                             <addTestClassPath>true</addTestClassPath>
                             <preBuildHookScript>setup</preBuildHookScript>
                             <postBuildHookScript>verify</postBuildHookScript>
                             <pomIncludes>
                                 <pomInclude>*/pom.xml</pomInclude>
                             </pomIncludes>
                             <goals>
                                 <goal>clean</goal>
                                 <goal>test-compile</goal>
                             </goals>
                         </configuration>
                         <executions>
                             <execution>
                                 <id>integration-test</id>
                                 <goals>
                                     <goal>install</goal>
                                     <goal>integration-test</goal>
                                     <goal>verify</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
 
             </build>
         </profile>
     </profiles>
 
     <!--
         Sonatype upload details:
         http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
         https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
         https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
         https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
 
             - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
             - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
             - Promote staged artifacts into repository 'Releases'
             - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
             - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
     -->
 
     <distributionManagement>
         <snapshotRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
         </snapshotRepository>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
         </repository>
     </distributionManagement>
     <repositories>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
             <snapshots>
                 <enabled>true</enabled>
             </snapshots>
         </repository>
     </repositories>
 </project>

commit f619101c8828e4a86a4a468dc0875b16492126fd
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Fri Mar 21 22:58:40 2014 +0000

    Version number may contain more than 1 digit

diff --git a/ggitflow-maven-plugin/src/main/java/org/jfrog/hudson/util/GenericArtifactVersion.java b/ggitflow-maven-plugin/src/main/java/org/jfrog/hudson/util/GenericArtifactVersion.java
index 1d38898..fb378f0 100644
--- a/ggitflow-maven-plugin/src/main/java/org/jfrog/hudson/util/GenericArtifactVersion.java
+++ b/ggitflow-maven-plugin/src/main/java/org/jfrog/hudson/util/GenericArtifactVersion.java
@@ -7,676 +7,676 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  * Represents a generic standard artifact version. This class can be used either
  * for parsing a version string and/or for building a version string
  * programatically. Consistency is guaranteed at all times so that no invalid
  * version is formed. Also, new
  * {@link GenericArtifactVersion}(versionString).toString().equals(versionString)
  * is guaranteed to be always true if 'versionString' is in the right format.
  *
  * A standard artifact version is a string in the following format:
  *
  * <pre>
  * <primary_numbers>[[-_]<annotation>][[-_]<annotation_revision>][[-_]<build_specifier>]
  * </pre>
  * <ul>
  * where:
  * <li>primary_numbers: <p1>[.<p2>[...<pn>]...] are non-negative integers
  * separated by '.'. Examples: 1; 1.2; 1.2.3; etc.</li>
  * <li>annotation: Sequence of letters that usually describe the release type.
  * Examples: alpha, beta, RC, etc.</li>
  * <li>annotation_revision: A non-negative integer associated to the
  * annotation.</li>
  * <li>build_specifier: SNAPSHOT|YYYYMMdd.hhmmss-n[n[...[n]...]] Examples:
  * SNAPSHOT, 20120110.152615-1, 20120110.152615-543</li>
  * </ul>
  *
  * Note that we used generic terms as components. Even though "major", "minor",
  * and "incremental" are terms used for the first three primary components, we
  * want to abstract that to be as generic as possible. Other implementations can
  * reuse this class and rename components as desired.
  *
  * Notes: The version format is based on Maven's
  * org.apache.maven.shared.release.versions.DefaultVersionInfo. As of today,
  * that class can be found in the following artifact:
  * org.apache.maven.release:maven-release-manager:2.2
  * <p>
  * The reason why I decided to reimplement this is becase of the unwanted
  * dependencies added with that artifact that clash with some Jenkins'
  * dependencies. Besides that, the implementation is not very flexible, it does
  * not provide means to retrieve the component separators and it cannot be
  * extended either. Moreover, if we depended on that class, our code can easily
  * break if we upgrade that artifact and they update their version scheme. What
  * we do when releasing is tied to our interpretation of version schemes.
  *
  *
  * @author Nicolas Grobisa
  *
  */
 public class GenericArtifactVersion {
 
     public static final String SNAPSHOT_QUALIFIER = "SNAPSHOT";
 
     public static final Character DEFAULT_VERSION_COMPONENT_SEPARATOR = '-';
 
     private static final Integer DEFAULT_BASE_ANNOTATION_REVISION = 1;
 
     private static final String VERSION_COMPONENT_SEPARATOR_REGEX = "([-_]?)";
 
     private static final Pattern VERSION_COMPONENT_SEPARATOR_PATTERN = Pattern.compile(VERSION_COMPONENT_SEPARATOR_REGEX);
 
-    private static final String VERSION_PRIMARY_NUMBERS_REGEX = "(\\d(\\.\\d)*)";
+    private static final String VERSION_PRIMARY_NUMBERS_REGEX = "(\\d+(\\.\\d+)*)";
 
     private static final String VERSION_ANNOTATION_REGEX = "([a-zA-Z]+)";
 
     private static final Pattern VERSION_ANNOTATION_PATTERN = Pattern.compile(VERSION_ANNOTATION_REGEX);
 
     private static final String VERSION_ANNOTATIONREV_REGEX = "(\\d+)";
 
     private static final String VERSION_BUILD_SPECIFIER_REGEX = "((?i)" + SNAPSHOT_QUALIFIER + "|\\d{8}\\.\\d{6}\\-(\\d+))";
 
     private static final Pattern VERSION_BUILD_SPECIFIER_PATTERN = Pattern.compile(VERSION_BUILD_SPECIFIER_REGEX);
 
     private static final String VERSION_REGEX = "^" + VERSION_PRIMARY_NUMBERS_REGEX + "(" + VERSION_COMPONENT_SEPARATOR_REGEX
             + VERSION_ANNOTATION_REGEX + ")?(" + VERSION_COMPONENT_SEPARATOR_REGEX + VERSION_ANNOTATIONREV_REGEX + ")?("
             + VERSION_COMPONENT_SEPARATOR_REGEX + VERSION_BUILD_SPECIFIER_REGEX + ")?$";
 
     private static final int VERSION_REGEXGROUP_PRIMARYNUMS = 1;
 
     private static final int VERSION_REGEXGROUP_ANNOTATION_SEPARATOR = 4;
 
     private static final int VERSION_REGEXGROUP_ANNOTATION = 5;
 
     private static final int VERSION_REGEXGROUP_ANNOTATIONREV_SEPARATOR = 7;
 
     private static final int VERSION_REGEXGROUP_ANNOTATIONREV = 8;
 
     private static final int VERSION_REGEXGROUP_BUILDSPEC_SEPARATOR = 10;
 
     private static final int VERSION_REGEXGROUP_BUILDSPEC = 11;
 
     private static final Pattern VERSION_PATTERN = Pattern.compile(VERSION_REGEX);
 
     private final Integer[] primaryNumbers;
 
     private Character annotationSeparator;
 
     private String annotation;
 
     private Character annotationRevisionSeparator;
 
     private Integer annotationRevision;
 
     private Character buildSpecifierSeparator;
 
     private String buildSpecifier;
 
     public GenericArtifactVersion(final String versionString) {
         final Matcher matcher = VERSION_PATTERN.matcher(versionString);
 
         if (!matcher.matches()) {
             throw new IllegalArgumentException("Provided version string is not a valid version.");
         }
 
         Integer annotationRevision = parseAnnotationRevision(matcher.group(VERSION_REGEXGROUP_ANNOTATIONREV));
         Character annotationSeparator = parseSeparator(matcher.group(VERSION_REGEXGROUP_ANNOTATION_SEPARATOR));
         String annotation = nullIfBlank(matcher.group(VERSION_REGEXGROUP_ANNOTATION));
         Character buildSpecifierSeparator = parseSeparator(matcher.group(VERSION_REGEXGROUP_BUILDSPEC_SEPARATOR));
         String buildSpecifier = nullIfBlank(matcher.group(VERSION_REGEXGROUP_BUILDSPEC));
 
         // The regex will capture the snapshot qualifier as an annotation.
         // Therefore, we need to set it as the build specifier.
         if (buildSpecifier == null && SNAPSHOT_QUALIFIER.equalsIgnoreCase(annotation)) {
             buildSpecifierSeparator = annotationSeparator;
             buildSpecifier = annotation;
             annotationSeparator = null;
             annotation = null;
         }
 
         // Set the separators, using the default ones where appropriate. This is a subtle use case. The user might have provided a
         // version with annotation but no annotation revision. E.g., 1.0_alpha.
         // This means that we would know what the annotation separator is ('_' in the example) but we don't have information about
         // the annotation revision separator. If later the user wants to add an annotation revision, we want to be sure that the
         // default separator is used instead of the null separator. Example, if the users adds a revision of '5', then the result
         // would be "1.0_alpha-5", and not "1.0_alpha5".
         this.annotationSeparator = (annotation == null) ? DEFAULT_VERSION_COMPONENT_SEPARATOR : annotationSeparator;
         this.annotationRevisionSeparator = (annotationRevision == null) ? DEFAULT_VERSION_COMPONENT_SEPARATOR
                 : parseSeparator(matcher.group(VERSION_REGEXGROUP_ANNOTATIONREV_SEPARATOR));
         this.buildSpecifierSeparator = (buildSpecifier == null) ? DEFAULT_VERSION_COMPONENT_SEPARATOR : buildSpecifierSeparator;
 
         // Set version components
         this.primaryNumbers = parsePrimaryNumber(matcher.group(VERSION_REGEXGROUP_PRIMARYNUMS));
         this.annotation = annotation;
         this.annotationRevision = annotationRevision;
         this.buildSpecifier = buildSpecifier;
     }
 
     /**
      * Parses a primary component number.
      *
      * @param primaryNumbers A string representing a sequence of primary numbers
      * separated by dot ('.'). Examples: "1", "1.2.3". Must be in the correct
      * format.
      * @return An array where each element is an integer. Index 0 contains the
      * most significant primary number.
      */
     private Integer[] parsePrimaryNumber(final String primaryNumbers) {
         final String[] primaryNumberStrings = primaryNumbers.split("\\.");
         final int n = primaryNumberStrings.length;
         final Integer[] result = new Integer[n];
 
         for (int i = 0; i < n; i++) {
             result[i] = Integer.parseInt(primaryNumberStrings[i]);
         }
 
         return result;
     }
 
     /**
      * Returns the input string or null if that string is blank or null.
      *
      * @param string The input string.
      * @return The input string or null if that string is blank or null.
      */
     private String nullIfBlank(final String string) {
         return StringUtils.isBlank(string) ? null : string;
     }
 
     /**
      * Parses a version component separator string and returns it as a
      * character.
      *
      * @param separator The separator string to parse.
      * @return The first character of the string, or null if that string is
      * empty.
      */
     private Character parseSeparator(final String separator) {
         return StringUtils.isNotEmpty(separator) ? separator.charAt(0) : null;
     }
 
     /**
      * Parses a string representing the version annotation revision.
      *
      * @param annotationRev The string to parse.
      * @return An integer representing the version annotation revision, or null
      * if the string is empty.
      */
     private Integer parseAnnotationRevision(final String annotationRev) {
         return StringUtils.isNotEmpty(annotationRev) ? Integer.parseInt(annotationRev) : null;
     }
 
     /**
      * Increments the least significant number in the version components by 1.
      * <p>
      * If the annotation revision is defined, it's incremented. Otherwise, the
      * last primary number is incremented.
      * <p>
      * Examples:
      * <ul>
      * <li>"1.2.3.4-alpha-5" is upgraded to "1.2.3.4-alpha-6"</li>
      * <li>"1.2.3.4-alpha" is upgraded to "1.2.3.5-alpha"</li>
      * <li>"1-SNAPSHOT" is upgraded to "2-SNAPSHOT"</li>
      * </ul>
      *
      * @return The instance, for method chaining.
      */
     public GenericArtifactVersion upgradeLeastSignificantNumber() {
         if (this.annotationRevision != null) {
             upgradeAnnotationRevision();
         } else {
             upgradeLeastSignificantPrimaryNumber();
         }
 
         return this;
     }
 
     /**
      * Increments the least significant primary number by 1, resetting the
      * annotation revision if it is defined.
      * <p>
      * Examples (assuming a base annotation revision of 1):
      * <ul>
      * <li>"1.2.3.4-alpha-5" is upgraded to "1.2.3.5-alpha-1"</li>
      * <li>"1.2.3.4-alpha" is upgraded to "1.2.3.5-alpha"</li>
      * <li>"1-SNAPSHOT" is upgraded to "2-SNAPSHOT"</li>
      * </ul>
      *
      * @return The instance, for method chaining.
      */
     public GenericArtifactVersion upgradeLeastSignificantPrimaryNumber() {
         upgradePrimaryNumber(this.primaryNumbers.length - 1);
 
         return this;
     }
 
     /**
      * Increments a primary number by 1, resetting the remaining less
      * significant components.
      * <p>
      * Examples (assuming a base annotation revision of 1):
      * <ul>
      * <li>"1.2.3.4-alpha-5" is upgraded to "2.0.0.0-alpha-1" with an index of
      * 0</li>
      * <li>"1.2.3.4-alpha-5" is upgraded to "1.2.3.0-alpha-1" with an index of
      * 3</li>
      * <li>"1.2-alpha" is upgraded to "1.3-alpha" with an index of 1</li>
      * <li>"1-SNAPSHOT" is upgraded to "2-SNAPSHOT" with an index of 0</li>
      * </ul>
      *
      * @param primaryNumberIndex The index identifying the primary number to
      * increase.
      * @return The instance, for method chaining.
      * @throws IllegalArgumentException if the index is negative.
      * @throws IllegalStateException if this version doesn't have a primary
      * number at the specified index.
      */
     public GenericArtifactVersion upgradePrimaryNumber(final int primaryNumberIndex) {
         if (primaryNumberIndex < 0) {
             throw new IllegalArgumentException("Primary number index cannot be negative.");
         }
         if (this.primaryNumbers.length <= primaryNumberIndex) {
             throw new IllegalStateException("Cannot upgrade version becase '" + this + "' does not have a "
                     + "primary number at index " + primaryNumberIndex);
         }
 
         this.primaryNumbers[primaryNumberIndex]++;
         resetPrimaryNumbers(primaryNumberIndex + 1);
         resetAnnotationRevision();
 
         return this;
     }
 
     /**
      * Increments the annotation revision by 1.
      *
      * @return The instance, for method chaining.
      * @throws IllegalStateException if this version doesn't have an annotation
      * revision defined.
      */
     public GenericArtifactVersion upgradeAnnotationRevision() {
         if (this.annotationRevision == null) {
             throw new IllegalStateException("Cannot upgrade annotation revision for version '" + this
                     + "' because it does not have that component.");
         }
 
         this.annotationRevision++;
         return this;
     }
 
     /**
      * Resets (sets to 0) all consecutive primary numbers starting at a specific
      * index.
      *
      * @param fromIndex The index pointing to the first primary number that will
      * be reset.
      */
     private void resetPrimaryNumbers(final int fromIndex) {
         for (int i = fromIndex, n = this.primaryNumbers.length; i < n; i++) {
             this.primaryNumbers[i] = 0;
         }
     }
 
     /**
      * Resets the annotation revision (if it is defined). It is set to
      * {@link #DEFAULT_BASE_ANNOTATION_REVISION}.
      */
     private void resetAnnotationRevision() {
         if (this.annotationRevision != null) {
             this.annotationRevision = DEFAULT_BASE_ANNOTATION_REVISION;
         }
     }
 
     /**
      * Returns the string representation of the primary numbers.
      * <p>
      * The string representation is the concatenation of all numbers separated
      * by the dot character ('.').
      *
      * @return The primary numbers as a single string.
      */
     public String getPrimaryNumbersAsString() {
         return createPrimaryNumbersString(new StringBuilder(8)).toString();
     }
 
     /**
      * Returns the string representation of the annotation string.
      *
      * [[-_]<annotation>][[-_]<annotation_revision>]
      *
      * @return The annotation as a single string.
      */
     public String getAnnotationAsString() {
         return createAnnotationString(new StringBuilder(0)).toString();
     }
 
     /**
      * Returns the string representation of the annotation string.
      *
      * [[-_]<build_specifier>]
      *
      * @return The build specifier as a single string.
      */
     public String getBuildSpecifierAsString() {
         return createBuildSpecifierString(new StringBuilder(0)).toString();
     }
 
     /**
      * Returns how many primary numbers are defined for this version.
      *
      * @return The primary number count.
      */
     public int getPrimaryNumberCount() {
         return this.primaryNumbers.length;
     }
 
     /**
      * Returns the primary number located at a specific index.
      *
      * @param index The index pointing to the primary number. Must be
      * non-negative.
      * @return The primary number, or null if it's not defined.
      * @throws IllegalArgumentException if the index is provided is negative.
      */
     public Integer getPrimaryNumber(final int index) {
         if (index < 0) {
             throw new IllegalArgumentException("Primary number index must be non-negative.");
         }
 
         return (this.primaryNumbers.length > index) ? this.primaryNumbers[index] : null;
     }
 
     /**
      * Defines the primary number located at a specific index.
      *
      * @param index The index pointing to the primary number to define. Must be
      * non-negative.
      * @param value The number to define as the primary component. Must be
      * non-negative.
      * @return The instance, for method chaining.
      * @throws IllegalArgumentException if the index or value is negative, or if
      * a primary number does not exist at that index.
      */
     public GenericArtifactVersion setPrimaryNumber(final int index, final int value) {
         if (index < 0) {
             throw new IllegalArgumentException("Primary number index must be non-negative.");
         }
         if (index >= this.primaryNumbers.length) {
             throw new IllegalArgumentException("Invalid index for version digit. Maximum digit index for this version is "
                     + (this.primaryNumbers.length - 1));
         }
         if (value < 0) {
             throw new IllegalArgumentException("Primary numbers must be non-negative.");
         }
 
         this.primaryNumbers[index] = value;
 
         return this;
     }
 
     /**
      * Returns the separator character for the version annotation component.
      *
      * @return The annotation separator, or null if there's none.
      */
     public Character getAnnotationSeparator() {
         return this.annotationSeparator;
     }
 
     /**
      * Sets the separator character for the version annotation component.
      *
      * @param annotationSeparator A valid separator character (read this class'
      * documentation for more information about the valid format). null can be
      * used to indicate that there's no separator.
      * @return The instance, for method chaining.
      * @throws IllegalArgumentException if the character provided is invalid.
      */
     public GenericArtifactVersion setAnnotationSeparator(final Character annotationSeparator) {
         validateSeparator(annotationSeparator);
         this.annotationSeparator = annotationSeparator;
 
         return this;
     }
 
     /**
      * Returns the version annotation component.
      *
      * @return The annotation, or null if it is not defined.
      */
     public String getAnnotation() {
         return this.annotation;
     }
 
     /**
      * Defines the version annotation component.
      *
      * @param annotation A valid annotation string (read this class'
      * documentation for more information about the valid format). null can be
      * used to indicate that there's no annotation.
      * @return The instance, for method chaining.
      * @throws IllegalArgumentException if the annotation is invalid.
      */
     public GenericArtifactVersion setAnnotation(final String annotation) {
         if (annotation != null && !VERSION_ANNOTATION_PATTERN.matcher(annotation).matches()) {
             throw new IllegalArgumentException("Invalid version separator.");
         }
         this.annotation = annotation;
 
         return this;
     }
 
     /**
      * Returns the separator character for the annotation revision.
      *
      * @return The separator, or null if there's none.
      */
     public Character getAnnotationRevisionSeparator() {
         return annotationRevisionSeparator;
     }
 
     /**
      * Defines the separator character for the version annotation revision
      * component.
      *
      * @param annotationRevisionSeparator A valid separator character (read this
      * class' documentation for more information about the valid format). null
      * can be used to indicate that there's no separator.
      * @return The instance, for method chaining.
      * @throws IllegalArgumentException if the character provided is invalid.
      */
     public GenericArtifactVersion setAnnotationRevisionSeparator(final Character annotationRevisionSeparator) {
         validateSeparator(annotationRevisionSeparator);
         this.annotationRevisionSeparator = annotationRevisionSeparator;
 
         return this;
     }
 
     /**
      * Returns the annotation revision number.
      *
      * @return The revision number, or null if it's not defined.
      */
     public Integer getAnnotationRevision() {
         return annotationRevision;
     }
 
     /**
      * Defines the annotation revision number.
      *
      * @param annotationRevision The revision number. Must be non-negative. null
      * can be used to indicate that there's no annotation revision number.
      * @return The instance, for method chaining.
      * @throws IllegalArgumentException if 'annotationRevision' is negative.
      */
     public GenericArtifactVersion setAnnotationRevision(final Integer annotationRevision) {
         if (annotationRevision != null && annotationRevision < 0) {
             throw new IllegalArgumentException("Annotation revision must be non-negative.");
         }
         this.annotationRevision = annotationRevision;
 
         return this;
     }
 
     /**
      * Returns the separator character for the build specifier component.
      *
      * @return The separator, or null if there's none.
      */
     public Character getBuildSpecifierSeparator() {
         return buildSpecifierSeparator;
     }
 
     /**
      * Defines the separator character for the version build specifier
      * component.
      *
      * @param buildSpecifierSeparator A valid separator character (read this
      * class' documentation for more information about the valid format). null
      * can be used to indicate that there's no separator.
      * @return The instance, for method chaining.
      * @throws IllegalArgumentException if the character provided is invalid.
      */
     public GenericArtifactVersion setBuildSpecifierSeparator(final Character buildSpecifierSeparator) {
         validateSeparator(buildSpecifierSeparator);
         this.buildSpecifierSeparator = buildSpecifierSeparator;
 
         return this;
     }
 
     /**
      * Returns the build specifier component.
      *
      * @return The build specifier, or null if it's not defined.
      */
     public String getBuildSpecifier() {
         return buildSpecifier;
     }
 
     /**
      * Defines the build specifier component.
      *
      * @param buildSpecifier A valid build specifier (read this class'
      * documentation for more information about the valid format). null can be
      * used to indicate that there's no build specifier component.
      * @return The instance, for method chaining.
      * @throws IllegalArgumentException if the build specifier is invalid.
      */
     public GenericArtifactVersion setBuildSpecifier(final String buildSpecifier) {
         if (buildSpecifier != null && !VERSION_BUILD_SPECIFIER_PATTERN.matcher(buildSpecifier).matches()) {
             throw new IllegalArgumentException("Invalid build specifier.");
         }
         this.buildSpecifier = buildSpecifier;
 
         return this;
     }
 
     /**
      * Checks that a character is a valid version component separator, only if
      * it's not null.
      *
      * @param separator The separator character that we want to check.
      * @throws IllegalArgumentException if the character is not a valid version
      * component separator.
      */
     private void validateSeparator(final Character separator) {
         if (separator != null && !VERSION_COMPONENT_SEPARATOR_PATTERN.matcher(String.valueOf(separator)).matches()) {
             throw new IllegalArgumentException("Invalid version separator.");
         }
     }
 
     /**
      * Returns a string representation of this version object.
      * <p>
      * The following condition is always true: new
      * {@link GenericArtifactVersion} (versionString).equals(versionString)
      * <p>
      * The result is the concatenation of all the version components, separated
      * with their respective separator characters:
      * <ul>
      * <li>primary components separated by the dot character ('.').</li>
      * <li>annotation separator</li>
      * <li>annotation</li>
      * <li>annotation revision separator</li>
      * <li>annotation revision</li>
      * <li>build specifier separator</li>
      * <li>build specifier</li>
      * </ul>
      *
      */
     @Override
     public String toString() {
         final StringBuilder result = new StringBuilder(30);
 
         createPrimaryNumbersString(result);
 
         if (this.annotation != null) {
             if (this.annotationSeparator != null) {
                 result.append(this.annotationSeparator);
             }
             result.append(this.annotation);
         }
 
         if (this.annotationRevision != null) {
             if (this.annotationRevisionSeparator != null) {
                 result.append(this.annotationRevisionSeparator);
             }
             result.append(this.annotationRevision);
         }
 
         if (this.buildSpecifier != null) {
             if (this.buildSpecifierSeparator != null) {
                 result.append(this.buildSpecifierSeparator);
             }
             result.append(this.buildSpecifier);
         }
 
         return result.toString();
     }
 
     /**
      * Creates a string concatenating the primary numbers separated by the dot
      * character ('.').
      * <p>
      * The result is appended to the provided string builder and returned.
      *
      * @param result The string builder where to append the string.
      * @return The provided string builder.
      */
     private StringBuilder createPrimaryNumbersString(final StringBuilder result) {
         for (int i = 0, n = this.primaryNumbers.length; i < n; i++) {
             if (i > 0) {
                 result.append('.');
             }
             result.append(this.primaryNumbers[i]);
         }
 
         return result;
     }
 
     /**
      * [[-_]<annotation>][[-_]<annotation_revision>]
      *
      * @param result
      * @return
      */
     private StringBuilder createAnnotationString(final StringBuilder result) {
         if (null != this.annotation) {
             result.append(this.annotationSeparator).append(this.annotation);
         }
         if (null != this.annotationRevision) {
             result.append(this.annotationRevisionSeparator).append(this.annotationRevision);
         }
         return result;
     }
 
     /**
      * [[-_]<build_specifier>]
      *
      * @param result
      * @return
      */
     private StringBuilder createBuildSpecifierString(final StringBuilder result) {
         if (null != this.buildSpecifier) {
             result.append(this.buildSpecifierSeparator).append(this.buildSpecifier);
         }
         return result;
     }
 }

commit e38f2926f08ecc39bc930f8f2abed38c2b818d37
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Fri Mar 21 22:02:53 2014 +0000

    Logging improvement

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
index 131c5df..9f1aec6 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
@@ -31,145 +31,145 @@ import com.dkirrane.gitflow.groovy.ex.GitflowException;
 /**
  * Creates a new release branch off of the develop branch.
  */
 @Mojo(name = "release-start", aggregator = true)
 public class ReleaseStartMojo extends AbstractReleaseMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(ReleaseStartMojo.class.getName());
 
     /**
      * Whether to run the plugin in interactive mode or not. The default is to
      * run without interaction when possible.
      *
      * @since 1.2
      */
     @Parameter(property = "interactive", defaultValue = "true", required = false)
     protected boolean interactive;
 
     /**
      * If the project has a parent with a <code>-SNAPSHOT</code> version it will
      * be replaced with the corresponding release version (if it has been
      * released). This action is performed on the release branch after it is
      * created.
      *
      * @since 1.2
      */
     @Parameter(property = "updateParent", defaultValue = "false", required = false)
     private boolean updateParent;
 
     /**
      * Any dependencies with a <code>-SNAPSHOT</code> version are replaced with
      * the corresponding release version (if it has been released). This action
      * is performed on the release branch after it is created.
      *
      * @since 1.2
      */
     @Parameter(property = "updateDependencies", defaultValue = "false", required = false)
     private boolean updateDependencies;
 
     /**
      * The commit to start the release branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     private String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         /* Switch to develop branch and get its current version */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
         reloadReactorProjects();
 
         String developVersion = project.getVersion();
-        LOG.debug("current develop version = " + developVersion);
+        LOG.info("Current develop version = " + developVersion);
 
         /* Get next development version */
         String nextDevelopVersion = getNextDevelopVersion(developVersion);
         if (interactive) {
             String message = "What is the next development version? ";
             try {
                 nextDevelopVersion = prompter.prompt(message, nextDevelopVersion);
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading next development version from command line " + ex.getMessage(), ex);
             }
         }      
         LOG.debug("next develop version = " + developVersion);
 
         /* Get suggested release version */
         String releaseVersion = getReleaseVersion(developVersion);
         LOG.debug("release version = " + releaseVersion);
 
         /* create release branch */
         String prefix = getReleaseBranchPrefix();
         if (interactive && StringUtils.isBlank(releaseName)) {
             String message = "What is the release branch name? " + prefix;
             try {
                 releaseName = prompter.prompt(message, releaseVersion);
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading release name from command line " + ex.getMessage(), ex);
             }
         } else {
             releaseName = releaseVersion;
         }
 
         if (StringUtils.isBlank(releaseName)) {
             throw new MojoFailureException("Parameter <releaseName> cannot be null or empty.");
         }
 
         try {
             new GenericArtifactVersion(releaseName);
         } catch (IllegalArgumentException e) {
             throw new MojoExecutionException("Provided releaseName " + releaseName + " is not a valid Maven version.");
         }
 
         LOG.info("Starting release '" + releaseName + "'");
         LOG.debug("msgPrefix '" + getMsgPrefix() + "'");
         LOG.debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setPush(pushReleases);
         gitflowRelease.setStartCommit(startCommit);
 
         try {
             gitflowRelease.start(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         // current branch should be the release branch
         String releaseBranch = getGitflowInit().gitCurrentBranch();
         if (!releaseBranch.startsWith(prefix)) {
             throw new MojoFailureException("Failed to create release version.");
         }
 
         /* Update release branch dependencies to release version */
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions(false, updateParent);
         }
 
         // checkout develop branch and update it's version
         String developBranch = (String) getGitflowInit().getDevelopBrnName();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         setVersion(nextDevelopVersion);
 
         // checkout release branch again
         getGitflowInit().executeLocal("git checkout " + releaseBranch);
     }
 
     public String getReleaseName() {
         return releaseName;
     }
 
     private String getNextDevelopVersion(String developVersion) {
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(developVersion);
         artifactVersion.upgradeLeastSignificantPrimaryNumber();
 
         return artifactVersion.toString();
     }
 }

commit 949431f4218d630a511b56d095635574618f09e7
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Fri Mar 21 21:57:14 2014 +0000

    updating to ggitflow snapshot

diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index ce013f0..6681f14 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,186 +1,169 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
         <version>1.3-SNAPSPHOT</version>
     </parent>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
     <version>1.3-SNAPSPHOT</version>
     <packaging>maven-plugin</packaging>
     <name>ggitflow-maven-plugin</name>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
-            <version>1.1</version>
+            <version>1.2-SNAPSHOT</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
         <dependency>
             <groupId>jline</groupId>
             <artifactId>jline</artifactId>
             <version>2.11</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>com.jcabi</groupId>
             <artifactId>jcabi-maven-slf4j</artifactId>
             <version>0.8</version>
         </dependency>
-        <dependency>
-            <groupId>ch.qos.logback</groupId>
-            <artifactId>logback-classic</artifactId>
-            <version>1.0.13</version>
-        </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>3.2</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>3.0.8</version>
         </dependency>
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-interactivity-api</artifactId>
             <version>1.0-alpha-5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>2.4</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-project</artifactId>
             <version>2.2.1</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-clean-plugin</artifactId>
             <version>2.5</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-install-plugin</artifactId>
             <version>2.5.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-deploy-plugin</artifactId>
             <version>2.8.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-artifact</artifactId>
             <version>2.2.1</version>
         </dependency>
         <dependency>
             <groupId>com.google.guava</groupId>
             <artifactId>guava</artifactId>
             <version>16.0.1</version>
         </dependency>
     </dependencies>
 
     <build>
         <resources>
             <resource>
                 <directory>src/it</directory>
                 <includes>
                     <include>**/**</include>
                 </includes>
             </resource>
         </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>3.2</version>
                 <configuration>
                     <goalPrefix>ggitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
-                    <!--                    <execution>
-                        <id>help-goal</id>
-                        <goals>
-                            <goal>helpmojo</goal>
-                        </goals>
-                    </execution>-->
-                    <!--                    <execution>
-                        <id>report</id>
-                        <goals>
-                            <goal>report</goal>
-                        </goals>
-                    </execution>                    -->
                 </executions>
             </plugin>
             <plugin>
                 <groupId>com.github.github</groupId>
                 <artifactId>site-maven-plugin</artifactId>
                 <version>0.9</version>
                 <configuration>
                     <message>Creating site for ${project.version}</message>
                     <server>github</server>
                     <merge>true</merge>
                 </configuration>
                 <executions>
                     <execution>
                         <goals>
                             <goal>site</goal>
                         </goals>
                         <phase>site</phase>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <reportPlugins>
                         <plugin>
                             <groupId>org.apache.maven.plugins</groupId>
                             <artifactId>maven-plugin-plugin</artifactId>
                             <version>3.2</version>
                         </plugin>
                     </reportPlugins>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index 3854b46..225411f 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -74,455 +74,462 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 public class AbstractGitflowMojo extends AbstractMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(AbstractGitflowMojo.class.getName());
 
     public final Pattern matchSnapshotRegex = Pattern.compile("-SNAPSHOT");
 
     public static final ImmutableList<String> DEFAULT_INSTALL_ARGS = ImmutableList.of(
             "-DinstallAtEnd=true");
 
     public static final ImmutableList<String> DEFAULT_DEPLOY_ARGS = ImmutableList.of(
             "-DdeployAtEnd=true",
             "-DretryFailedDeploymentCount=2");
 
     public static final Splitter PROFILES_SPLITTER = Splitter.on(',').trimResults().omitEmptyStrings();
     public static final Joiner PROFILES_JOINER = Joiner.on(',').skipNulls();
 
     /**
      * Gitflow branches and prefixes to use.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
     /**
      * Message prefix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgPrefix", defaultValue = "", required = false)
     protected String msgPrefix;
 
     /**
      * Message suffix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgSuffix", defaultValue = "", required = false)
     protected String msgSuffix;
 
     /**
      * Component used to prompt for input.
      */
     @Component
     protected Prompter prompter;
 
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
     @Component
     protected ArtifactResolver artifactResolver;
 
     /**
      * @parameter default-value="${project.artifacts}"
      * @required
      * @readonly
      */
     protected Collection artifacts;
 
     /**
      * @parameter expression="${localRepository}"
      */
     protected ArtifactRepository localRepository;
 
     /**
      * @parameter expression="${project.remoteArtifactRepositories}"
      */
     protected List remoteArtifactRepositories;
 
 //    @Component
 //    protected MavenProjectBuilder projectBuilder;
 //    @Component
 //    protected DefaultProjectBuilder projectBuilder;
 //    /**
 //     * @parameter property="plugin"
 //     * @required
 //     */
 //    @Component
 //    protected PluginDescriptor pluginDescriptor;
 //
     /**
      * The projects in the reactor.
      */
     @Parameter(defaultValue = "${reactorProjects}", readonly = true, required = true)
     protected List<MavenProject> reactorProjects;
 
     /**
      * The project builder
      */
     @Component
     private ProjectBuilder projectBuilder;
 
     /**
      * The project currently being build.
      *
      * @parameter expression="${project}"
      * @required
      * @readonly
      */
     @Component
     protected MavenProject project;
 
     /**
      * The current Maven session.
      *
      * @parameter expression="${session}"
      * @required
      * @readonly
      */
     @Component
     protected MavenSession session;
 
     /**
      * The Maven BuildPluginManager component.
      *
      * @component
      * @required
      */
     @Component
     protected BuildPluginManager pluginManager;
 
 //    @Parameter(defaultValue = "${basedir}", readonly = true, required = true)
 //    protected File basedir;
 //    @Component
 //    protected Settings settings;
     private GitflowInit init;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     public void execute() throws MojoExecutionException, MojoFailureException {
         StaticLoggerBinder.getSingleton().setMavenLog(this.getLog());
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             LOG.debug("Gitflow pom  '" + project.getBasedir() + "'");
         }
 
         GitflowInit gitflowInit = getGitflowInit();
 
         gitflowInit.requireGitRepo();
 
         if (!gitflowInit.gitflowIsInitialized()) {
             try {
                 gitflowInit.cmdDefault();
             } catch (GitflowException ex) {
                 throw new MojoExecutionException("Failed to inintialise Gitflow " + ex.getMessage(), ex);
             }
         }
 
         gitflowInit.requireCleanWorkingTree();
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     protected final GitflowInit getGitflowInit() {
         if (null == init) {
             LOG.info("Initialising Gitflow");
             init = new GitflowInit();
             init.setRepoDir(getProject().getBasedir());
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
 
             /* root Git directory may not be the pom directory */
             String dotGitDir = init.executeLocal("git rev-parse --git-dir");
             File dotGitFolder = new File(dotGitDir);
             assert dotGitFolder.exists();
             init.setRepoDir(dotGitFolder.getParentFile());
         }
         return init;
     }
 
     protected final void setVersion(String version) throws MojoExecutionException, MojoFailureException {
         LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
 
         for (MavenProject mavenProject : reactorProjects) {
             LOG.debug("Calling versions-maven-plugin:set on " + mavenProject.getArtifactId());
             session.setCurrentProject(mavenProject);
             try {
                 executeMojo(
                         plugin(
                                 groupId("org.codehaus.mojo"),
                                 artifactId("versions-maven-plugin"),
                                 version("2.1")
                         ),
                         goal("set"),
                         configuration(
                                 element(name("generateBackupPoms"), "false"),
                                 element(name("newVersion"), version)
                         ),
                         executionEnvironment(
                                 mavenProject,
                                 session,
                                 pluginManager
                         )
                 );
             } catch (MojoExecutionException mee) {
                 String rootCauseMessage = ExceptionUtils.getRootCauseMessage(mee);
                 if (rootCauseMessage.contains("Project version is inherited from parent")) {
-                    LOG.warn("Skipping versions-maven-plugin:set for project {}. Project version is inherited from parent.", mavenProject.getArtifactId(), version);
+                    LOG.warn("Skipping versions-maven-plugin:set for project " + mavenProject.getArtifactId() + ". Project version is inherited from parent.");
                 } else {
                     LOG.error("Cannot set {} to version '{}'", mavenProject.getArtifactId(), version, mee);
                     throw mee;
                 }
             }
         }
         LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change " + version + " to origin. ExitCode:" + exitCode);
                 }
             }
         }
         /* We don't want to fail maybe the version was manually set correctly */
 //        else {
 //            throw new MojoFailureException("Failed to update poms to version " + version);
 //        }
     }
 
     protected final void setNextVersions(Boolean allowSnapshots, Boolean updateParent) throws MojoExecutionException, MojoFailureException {
         LOG.debug("setNextVersions");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
 
         if (updateParent) {
             LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:update-parent updateParent={}", updateParent);
             executeMojo(
                     plugin(
                             groupId("org.codehaus.mojo"),
                             artifactId("versions-maven-plugin"),
                             version("2.1")
                     ),
                     goal("update-parent"),
                     configuration(
                             element(name("generateBackupPoms"), "false"),
                             element(name("allowSnapshots"), allowSnapshots.toString())
                     ),
                     executionEnvironment(
                             rootProject,
                             session,
                             pluginManager
                     )
             );
             LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:update-parent");
         }
 
         LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:use-next-versions allowSnapshots={}", allowSnapshots);
         for (MavenProject mavenProject : reactorProjects) {
             LOG.debug("Calling use-next-versions on " + mavenProject.getArtifactId());
             session.setCurrentProject(mavenProject);
             executeMojo(
                     plugin(
                             groupId("org.codehaus.mojo"),
                             artifactId("versions-maven-plugin"),
                             version("2.1")
                     ),
                     goal("use-next-versions"),
                     configuration(
                             element(name("generateBackupPoms"), "false"),
                             element(name("allowSnapshots"), allowSnapshots.toString())
                     ),
                     executionEnvironment(
                             mavenProject,
                             session,
                             pluginManager
                     )
             );
         }
         LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:use-next-versions");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg;
             if (allowSnapshots) {
                 msg = getMsgPrefix() + "Replaces any release versions with the next snapshot version (if it has been deployed)." + getMsgSuffix();
             } else {
                 msg = getMsgPrefix() + "Replaces snapshot versions with the corresponding release version" + getMsgSuffix();
             }
 
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change to origin. ExitCode:" + exitCode);
                 }
             }
         }
     }
 
     protected final void runGoals(String goals, List<String> additionalArgs) throws MojoExecutionException, MojoFailureException {
         LOG.debug("START executing " + goals + " with args " + additionalArgs);
 
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         File basedir = rootProject.getBasedir();
 
         ReleaseResult result = new ReleaseResult();
         ReleaseEnvironment env = new DefaultReleaseEnvironment();
         env.setSettings(session.getSettings());
         MavenExecutor mavenExecutor = mavenExecutors.get(env.getMavenExecutorId());
 
         Joiner joiner = Joiner.on(" ").skipNulls();
         String additionalArguments = joiner.join(additionalArgs);
         LOG.debug("additionalArguments " + additionalArguments);
 
         try {
             mavenExecutor.executeGoals(basedir, goals, env, false, additionalArguments, result);
         } catch (MavenExecutorException ex) {
             throw new MojoExecutionException(result.getOutput(), ex);
         }
         LOG.debug("DONE executing " + goals);
     }
 
     protected final String getReleaseVersion(String version) throws MojoFailureException {
         LOG.debug("Current Develop version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
             LOG.debug("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
     protected final void checkForSnapshotDependencies() throws MojoExecutionException {
         LOG.info("Checking for SNAPSHOT dependencies");
+        Boolean hasSnapshots = false;
         for (MavenProject mavenProject : reactorProjects) {
+            String artifactId = mavenProject.getArtifactId();
             DependencyManagement dependencyManagement = mavenProject.getDependencyManagement();
             if (null != dependencyManagement) {
-                checkForSnapshot(dependencyManagement.getDependencies());
+                if (checkForSnapshot(artifactId, dependencyManagement.getDependencies())) {
+                    hasSnapshots = true;
+                }
+            }
+            if (checkForSnapshot(artifactId, mavenProject.getDependencies())) {
+                hasSnapshots = true;
             }
-            checkForSnapshot(mavenProject.getDependencies());
+        }
+        if (hasSnapshots) {
+            throw new MojoExecutionException("Cannot release because SNAPSHOT dependencies exist");
         }
     }
 
-    private void checkForSnapshot(List<Dependency> dependencies) throws MojoExecutionException {
+    private boolean checkForSnapshot(String artifactId, List<Dependency> dependencies) throws MojoExecutionException {
         Boolean hasSnapshotDependency = false;
         for (Dependency dependency : dependencies) {
             String version = dependency.getVersion();
             Matcher versionMatcher = matchSnapshotRegex.matcher(version);
             if (versionMatcher.find() && versionMatcher.end() == version.length()) {
-                LOG.error("Found SNAPSHOT dependency " + dependency.getGroupId() + ":" + dependency.getArtifactId() + ":" + version);
+                LOG.error("Project " + artifactId + " contains SNAPSHOT dependency " + dependency.getGroupId() + ":" + dependency.getArtifactId() + ":" + version);
                 hasSnapshotDependency = true;
             }
         }
-        if (hasSnapshotDependency) {
-            throw new MojoExecutionException("Cannot start release because SNAPSHOT dependencies exist");
-        }
+        return hasSnapshotDependency;
     }
 
     protected final void reloadReactorProjects() throws MojoExecutionException {
         LOG.debug("Reloading poms...");
 
         List<MavenProject> newReactorProjects;
         try {
             newReactorProjects = buildReactorProjects();
         } catch (ProjectBuildingException e) {
             LOG.error("Re-parse aborted due to malformed pom.xml file(s)", e);
             throw new MojoExecutionException("Re-parse aborted due to malformed pom.xml file(s)", e);
         } catch (CycleDetectedException e) {
             LOG.error("Re-parse aborted due to dependency cycle in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to dependency cycle in project model", e);
         } catch (DuplicateProjectException e) {
             LOG.error("Re-parse aborted due to duplicate projects in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to duplicate projects in project model", e);
         } catch (Exception e) {
             LOG.error("Re-parse aborted due a problem that prevented sorting the project model", e);
             throw new MojoExecutionException("Re-parse aborted due a problem that prevented sorting the project model", e);
         }
         MavenProject newProject = findProject(newReactorProjects, this.project);
         if (newProject == null) {
             throw new MojoExecutionException("A pom.xml change appears to have removed " + this.project.getId() + " from the build plan.");
         }
 
         this.project = newProject;
         this.reactorProjects = newReactorProjects;
 
         LOG.debug("Reloading poms complete...");
     }
 
     private List<MavenProject> buildReactorProjects() throws Exception {
 
         List<MavenProject> projects = new ArrayList<MavenProject>();
         for (MavenProject p : reactorProjects) {
             ProjectBuildingRequest request = new DefaultProjectBuildingRequest();
 
             request.setProcessPlugins(true);
             request.setProfiles(request.getProfiles());
             request.setActiveProfileIds(session.getRequest().getActiveProfiles());
             request.setInactiveProfileIds(session.getRequest().getInactiveProfiles());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setSystemProperties(session.getSystemProperties());
             request.setUserProperties(session.getUserProperties());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setPluginArtifactRepositories(session.getRequest().getPluginArtifactRepositories());
             request.setRepositorySession(session.getRepositorySession());
             request.setLocalRepository(localRepository);
             request.setBuildStartTime(session.getRequest().getStartTime());
             request.setResolveDependencies(true);
             request.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_STRICT);
             projects.add(projectBuilder.build(p.getFile(), request).getProject());
         }
         return new ProjectSorter(projects).getSortedProjects();
     }
 
     private MavenProject findProject(List<MavenProject> newReactorProjects, MavenProject oldProject) {
         for (MavenProject newProject : newReactorProjects) {
             if (oldProject.getGroupId().equals(newProject.getGroupId())
                     && oldProject.getArtifactId().equals(newProject.getArtifactId())) {
                 return newProject;
             }
         }
         return null;
     }
 
 }

commit 1c1a0506235e4d940454b94a9fe4281bc4a3dd2c
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Fri Mar 21 20:52:02 2014 +0000

    Issue with versions-maven-plugin:set when child Project version is inherited from parent

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index eb8e0ec..3854b46 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -30,2 +30,3 @@ import java.util.regex.Matcher;
 import java.util.regex.Pattern;
+import org.apache.commons.lang.exception.ExceptionUtils;
 import org.apache.maven.artifact.repository.ArtifactRepository;
@@ -73,445 +74,455 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 public class AbstractGitflowMojo extends AbstractMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(AbstractGitflowMojo.class.getName());
 
     public final Pattern matchSnapshotRegex = Pattern.compile("-SNAPSHOT");
-    
+
     public static final ImmutableList<String> DEFAULT_INSTALL_ARGS = ImmutableList.of(
-            "-DinstallAtEnd=true");    
-    
+            "-DinstallAtEnd=true");
+
     public static final ImmutableList<String> DEFAULT_DEPLOY_ARGS = ImmutableList.of(
-            "-DdeployAtEnd=true", 
+            "-DdeployAtEnd=true",
             "-DretryFailedDeploymentCount=2");
-    
+
     public static final Splitter PROFILES_SPLITTER = Splitter.on(',').trimResults().omitEmptyStrings();
     public static final Joiner PROFILES_JOINER = Joiner.on(',').skipNulls();
 
     /**
      * Gitflow branches and prefixes to use.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
     /**
      * Message prefix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgPrefix", defaultValue = "", required = false)
     protected String msgPrefix;
 
     /**
      * Message suffix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgSuffix", defaultValue = "", required = false)
     protected String msgSuffix;
 
     /**
      * Component used to prompt for input.
      */
     @Component
     protected Prompter prompter;
 
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
     @Component
     protected ArtifactResolver artifactResolver;
 
     /**
      * @parameter default-value="${project.artifacts}"
      * @required
      * @readonly
      */
     protected Collection artifacts;
 
     /**
      * @parameter expression="${localRepository}"
      */
     protected ArtifactRepository localRepository;
 
     /**
      * @parameter expression="${project.remoteArtifactRepositories}"
      */
     protected List remoteArtifactRepositories;
 
 //    @Component
 //    protected MavenProjectBuilder projectBuilder;
 //    @Component
 //    protected DefaultProjectBuilder projectBuilder;
 //    /**
 //     * @parameter property="plugin"
 //     * @required
 //     */
 //    @Component
 //    protected PluginDescriptor pluginDescriptor;
 //
     /**
      * The projects in the reactor.
      */
     @Parameter(defaultValue = "${reactorProjects}", readonly = true, required = true)
     protected List<MavenProject> reactorProjects;
 
     /**
      * The project builder
      */
     @Component
     private ProjectBuilder projectBuilder;
 
     /**
      * The project currently being build.
      *
      * @parameter expression="${project}"
      * @required
      * @readonly
      */
     @Component
     protected MavenProject project;
 
     /**
      * The current Maven session.
      *
      * @parameter expression="${session}"
      * @required
      * @readonly
      */
     @Component
     protected MavenSession session;
 
     /**
      * The Maven BuildPluginManager component.
      *
      * @component
      * @required
      */
     @Component
     protected BuildPluginManager pluginManager;
 
 //    @Parameter(defaultValue = "${basedir}", readonly = true, required = true)
 //    protected File basedir;
 //    @Component
 //    protected Settings settings;
     private GitflowInit init;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     public void execute() throws MojoExecutionException, MojoFailureException {
         StaticLoggerBinder.getSingleton().setMavenLog(this.getLog());
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             LOG.debug("Gitflow pom  '" + project.getBasedir() + "'");
         }
 
         GitflowInit gitflowInit = getGitflowInit();
 
         gitflowInit.requireGitRepo();
 
         if (!gitflowInit.gitflowIsInitialized()) {
             try {
                 gitflowInit.cmdDefault();
             } catch (GitflowException ex) {
                 throw new MojoExecutionException("Failed to inintialise Gitflow " + ex.getMessage(), ex);
             }
         }
 
         gitflowInit.requireCleanWorkingTree();
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     protected final GitflowInit getGitflowInit() {
         if (null == init) {
             LOG.info("Initialising Gitflow");
             init = new GitflowInit();
             init.setRepoDir(getProject().getBasedir());
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
 
             /* root Git directory may not be the pom directory */
             String dotGitDir = init.executeLocal("git rev-parse --git-dir");
             File dotGitFolder = new File(dotGitDir);
             assert dotGitFolder.exists();
             init.setRepoDir(dotGitFolder.getParentFile());
         }
         return init;
     }
 
     protected final void setVersion(String version) throws MojoExecutionException, MojoFailureException {
         LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
 
         for (MavenProject mavenProject : reactorProjects) {
             LOG.debug("Calling versions-maven-plugin:set on " + mavenProject.getArtifactId());
             session.setCurrentProject(mavenProject);
-            executeMojo(
-                    plugin(
-                            groupId("org.codehaus.mojo"),
-                            artifactId("versions-maven-plugin"),
-                            version("2.1")
-                    ),
-                    goal("set"),
-                    configuration(
-                            element(name("generateBackupPoms"), "false"),
-                            element(name("newVersion"), version)
-                    ),
-                    executionEnvironment(
-                            mavenProject,
-                            session,
-                            pluginManager
-                    )
-            );
+            try {
+                executeMojo(
+                        plugin(
+                                groupId("org.codehaus.mojo"),
+                                artifactId("versions-maven-plugin"),
+                                version("2.1")
+                        ),
+                        goal("set"),
+                        configuration(
+                                element(name("generateBackupPoms"), "false"),
+                                element(name("newVersion"), version)
+                        ),
+                        executionEnvironment(
+                                mavenProject,
+                                session,
+                                pluginManager
+                        )
+                );
+            } catch (MojoExecutionException mee) {
+                String rootCauseMessage = ExceptionUtils.getRootCauseMessage(mee);
+                if (rootCauseMessage.contains("Project version is inherited from parent")) {
+                    LOG.warn("Skipping versions-maven-plugin:set for project {}. Project version is inherited from parent.", mavenProject.getArtifactId(), version);
+                } else {
+                    LOG.error("Cannot set {} to version '{}'", mavenProject.getArtifactId(), version, mee);
+                    throw mee;
+                }
+            }
         }
         LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change " + version + " to origin. ExitCode:" + exitCode);
                 }
             }
         }
         /* We don't want to fail maybe the version was manually set correctly */
 //        else {
 //            throw new MojoFailureException("Failed to update poms to version " + version);
 //        }
     }
 
     protected final void setNextVersions(Boolean allowSnapshots, Boolean updateParent) throws MojoExecutionException, MojoFailureException {
         LOG.debug("setNextVersions");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
 
         if (updateParent) {
             LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:update-parent updateParent={}", updateParent);
             executeMojo(
                     plugin(
                             groupId("org.codehaus.mojo"),
                             artifactId("versions-maven-plugin"),
                             version("2.1")
                     ),
                     goal("update-parent"),
                     configuration(
                             element(name("generateBackupPoms"), "false"),
                             element(name("allowSnapshots"), allowSnapshots.toString())
                     ),
                     executionEnvironment(
                             rootProject,
                             session,
                             pluginManager
                     )
             );
             LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:update-parent");
         }
 
         LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:use-next-versions allowSnapshots={}", allowSnapshots);
         for (MavenProject mavenProject : reactorProjects) {
             LOG.debug("Calling use-next-versions on " + mavenProject.getArtifactId());
             session.setCurrentProject(mavenProject);
             executeMojo(
                     plugin(
                             groupId("org.codehaus.mojo"),
                             artifactId("versions-maven-plugin"),
                             version("2.1")
                     ),
                     goal("use-next-versions"),
                     configuration(
                             element(name("generateBackupPoms"), "false"),
                             element(name("allowSnapshots"), allowSnapshots.toString())
                     ),
                     executionEnvironment(
                             mavenProject,
                             session,
                             pluginManager
                     )
             );
         }
         LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:use-next-versions");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg;
             if (allowSnapshots) {
                 msg = getMsgPrefix() + "Replaces any release versions with the next snapshot version (if it has been deployed)." + getMsgSuffix();
             } else {
                 msg = getMsgPrefix() + "Replaces snapshot versions with the corresponding release version" + getMsgSuffix();
             }
 
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change to origin. ExitCode:" + exitCode);
                 }
             }
         }
     }
 
     protected final void runGoals(String goals, List<String> additionalArgs) throws MojoExecutionException, MojoFailureException {
         LOG.debug("START executing " + goals + " with args " + additionalArgs);
 
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         File basedir = rootProject.getBasedir();
 
         ReleaseResult result = new ReleaseResult();
         ReleaseEnvironment env = new DefaultReleaseEnvironment();
         env.setSettings(session.getSettings());
         MavenExecutor mavenExecutor = mavenExecutors.get(env.getMavenExecutorId());
-        
+
         Joiner joiner = Joiner.on(" ").skipNulls();
         String additionalArguments = joiner.join(additionalArgs);
         LOG.debug("additionalArguments " + additionalArguments);
-        
+
         try {
             mavenExecutor.executeGoals(basedir, goals, env, false, additionalArguments, result);
         } catch (MavenExecutorException ex) {
             throw new MojoExecutionException(result.getOutput(), ex);
         }
         LOG.debug("DONE executing " + goals);
     }
 
     protected final String getReleaseVersion(String version) throws MojoFailureException {
         LOG.debug("Current Develop version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
             LOG.debug("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
     protected final void checkForSnapshotDependencies() throws MojoExecutionException {
         LOG.info("Checking for SNAPSHOT dependencies");
         for (MavenProject mavenProject : reactorProjects) {
             DependencyManagement dependencyManagement = mavenProject.getDependencyManagement();
             if (null != dependencyManagement) {
                 checkForSnapshot(dependencyManagement.getDependencies());
             }
             checkForSnapshot(mavenProject.getDependencies());
         }
     }
 
     private void checkForSnapshot(List<Dependency> dependencies) throws MojoExecutionException {
         Boolean hasSnapshotDependency = false;
         for (Dependency dependency : dependencies) {
             String version = dependency.getVersion();
             Matcher versionMatcher = matchSnapshotRegex.matcher(version);
             if (versionMatcher.find() && versionMatcher.end() == version.length()) {
                 LOG.error("Found SNAPSHOT dependency " + dependency.getGroupId() + ":" + dependency.getArtifactId() + ":" + version);
                 hasSnapshotDependency = true;
             }
         }
         if (hasSnapshotDependency) {
             throw new MojoExecutionException("Cannot start release because SNAPSHOT dependencies exist");
         }
     }
 
     protected final void reloadReactorProjects() throws MojoExecutionException {
         LOG.debug("Reloading poms...");
 
         List<MavenProject> newReactorProjects;
         try {
             newReactorProjects = buildReactorProjects();
         } catch (ProjectBuildingException e) {
             LOG.error("Re-parse aborted due to malformed pom.xml file(s)", e);
             throw new MojoExecutionException("Re-parse aborted due to malformed pom.xml file(s)", e);
         } catch (CycleDetectedException e) {
             LOG.error("Re-parse aborted due to dependency cycle in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to dependency cycle in project model", e);
         } catch (DuplicateProjectException e) {
             LOG.error("Re-parse aborted due to duplicate projects in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to duplicate projects in project model", e);
         } catch (Exception e) {
             LOG.error("Re-parse aborted due a problem that prevented sorting the project model", e);
             throw new MojoExecutionException("Re-parse aborted due a problem that prevented sorting the project model", e);
         }
         MavenProject newProject = findProject(newReactorProjects, this.project);
         if (newProject == null) {
             throw new MojoExecutionException("A pom.xml change appears to have removed " + this.project.getId() + " from the build plan.");
         }
 
         this.project = newProject;
         this.reactorProjects = newReactorProjects;
 
         LOG.debug("Reloading poms complete...");
     }
 
     private List<MavenProject> buildReactorProjects() throws Exception {
 
         List<MavenProject> projects = new ArrayList<MavenProject>();
         for (MavenProject p : reactorProjects) {
             ProjectBuildingRequest request = new DefaultProjectBuildingRequest();
 
             request.setProcessPlugins(true);
             request.setProfiles(request.getProfiles());
             request.setActiveProfileIds(session.getRequest().getActiveProfiles());
             request.setInactiveProfileIds(session.getRequest().getInactiveProfiles());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setSystemProperties(session.getSystemProperties());
             request.setUserProperties(session.getUserProperties());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setPluginArtifactRepositories(session.getRequest().getPluginArtifactRepositories());
             request.setRepositorySession(session.getRepositorySession());
             request.setLocalRepository(localRepository);
             request.setBuildStartTime(session.getRequest().getStartTime());
             request.setResolveDependencies(true);
             request.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_STRICT);
             projects.add(projectBuilder.build(p.getFile(), request).getProject());
         }
         return new ProjectSorter(projects).getSortedProjects();
     }
 
     private MavenProject findProject(List<MavenProject> newReactorProjects, MavenProject oldProject) {
         for (MavenProject newProject : newReactorProjects) {
             if (oldProject.getGroupId().equals(newProject.getGroupId())
                     && oldProject.getArtifactId().equals(newProject.getArtifactId())) {
                 return newProject;
             }
         }
         return null;
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
index ad56a8b..131c5df 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
@@ -31,136 +31,145 @@ import com.dkirrane.gitflow.groovy.ex.GitflowException;
 /**
  * Creates a new release branch off of the develop branch.
  */
 @Mojo(name = "release-start", aggregator = true)
 public class ReleaseStartMojo extends AbstractReleaseMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(ReleaseStartMojo.class.getName());
 
     /**
      * Whether to run the plugin in interactive mode or not. The default is to
      * run without interaction when possible.
      *
      * @since 1.2
      */
-    @Parameter(property = "interactive", defaultValue = "false", required = false)
+    @Parameter(property = "interactive", defaultValue = "true", required = false)
     protected boolean interactive;
 
     /**
      * If the project has a parent with a <code>-SNAPSHOT</code> version it will
      * be replaced with the corresponding release version (if it has been
      * released). This action is performed on the release branch after it is
      * created.
      *
      * @since 1.2
      */
     @Parameter(property = "updateParent", defaultValue = "false", required = false)
     private boolean updateParent;
 
     /**
      * Any dependencies with a <code>-SNAPSHOT</code> version are replaced with
      * the corresponding release version (if it has been released). This action
      * is performed on the release branch after it is created.
      *
      * @since 1.2
      */
     @Parameter(property = "updateDependencies", defaultValue = "false", required = false)
     private boolean updateDependencies;
 
     /**
      * The commit to start the release branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     private String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         /* Switch to develop branch and get its current version */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
         reloadReactorProjects();
 
         String developVersion = project.getVersion();
         LOG.debug("current develop version = " + developVersion);
 
+        /* Get next development version */
         String nextDevelopVersion = getNextDevelopVersion(developVersion);
+        if (interactive) {
+            String message = "What is the next development version? ";
+            try {
+                nextDevelopVersion = prompter.prompt(message, nextDevelopVersion);
+            } catch (PrompterException ex) {
+                throw new MojoExecutionException("Error reading next development version from command line " + ex.getMessage(), ex);
+            }
+        }      
         LOG.debug("next develop version = " + developVersion);
 
         /* Get suggested release version */
         String releaseVersion = getReleaseVersion(developVersion);
         LOG.debug("release version = " + releaseVersion);
 
         /* create release branch */
         String prefix = getReleaseBranchPrefix();
         if (interactive && StringUtils.isBlank(releaseName)) {
             String message = "What is the release branch name? " + prefix;
             try {
                 releaseName = prompter.prompt(message, releaseVersion);
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading release name from command line " + ex.getMessage(), ex);
             }
         } else {
             releaseName = releaseVersion;
         }
 
         if (StringUtils.isBlank(releaseName)) {
             throw new MojoFailureException("Parameter <releaseName> cannot be null or empty.");
         }
 
         try {
             new GenericArtifactVersion(releaseName);
         } catch (IllegalArgumentException e) {
             throw new MojoExecutionException("Provided releaseName " + releaseName + " is not a valid Maven version.");
         }
 
         LOG.info("Starting release '" + releaseName + "'");
         LOG.debug("msgPrefix '" + getMsgPrefix() + "'");
         LOG.debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setPush(pushReleases);
         gitflowRelease.setStartCommit(startCommit);
 
         try {
             gitflowRelease.start(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         // current branch should be the release branch
         String releaseBranch = getGitflowInit().gitCurrentBranch();
         if (!releaseBranch.startsWith(prefix)) {
             throw new MojoFailureException("Failed to create release version.");
         }
 
         /* Update release branch dependencies to release version */
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions(false, updateParent);
         }
 
         // checkout develop branch and update it's version
         String developBranch = (String) getGitflowInit().getDevelopBrnName();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         setVersion(nextDevelopVersion);
 
         // checkout release branch again
         getGitflowInit().executeLocal("git checkout " + releaseBranch);
     }
 
     public String getReleaseName() {
         return releaseName;
     }
 
     private String getNextDevelopVersion(String developVersion) {
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(developVersion);
         artifactVersion.upgradeLeastSignificantPrimaryNumber();
 
         return artifactVersion.toString();
     }
 }

commit ca76feda8a77ccd7569571d08024d127aa90b4cf
Author: Dessie Kirrane <dkirrane@avaya.com>
Date:   Fri Mar 21 15:51:00 2014 +0000

    Do not process resources or dependencies

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
index 454ca66..9f03530 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
@@ -17,5 +17,2 @@ package com.dkirrane.maven.plugins.ggitflow;
 
-import com.dkirrane.gitflow.groovy.GitflowFeature;
-import com.dkirrane.gitflow.groovy.ex.GitflowException;
-import com.dkirrane.maven.plugins.ggitflow.util.MavenUtil;
 import org.apache.maven.model.Model;
@@ -23,3 +20,2 @@ import org.apache.maven.plugin.MojoExecutionException;
 import org.apache.maven.plugin.MojoFailureException;
-import org.apache.maven.plugins.annotations.LifecyclePhase;
 import org.apache.maven.plugins.annotations.Mojo;
@@ -30,7 +26,11 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+import com.dkirrane.gitflow.groovy.GitflowFeature;
+import com.dkirrane.gitflow.groovy.ex.GitflowException;
+import com.dkirrane.maven.plugins.ggitflow.util.MavenUtil;
+
 /**
  * Creates a new feature branch off of the develop branch.
  */
-@Mojo(name = "feature-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
+@Mojo(name = "feature-start", aggregator = true)
 public class FeatureStartMojo extends AbstractFeatureMojo {
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
index a813363..bfe3bbc 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
@@ -17,11 +17,8 @@ package com.dkirrane.maven.plugins.ggitflow;
 
-import com.dkirrane.gitflow.groovy.GitflowHotfix;
-import com.dkirrane.gitflow.groovy.ex.GitflowException;
-import com.dkirrane.gitflow.groovy.ex.GitflowMergeConflictException;
 import static com.dkirrane.maven.plugins.ggitflow.AbstractGitflowMojo.DEFAULT_DEPLOY_ARGS;
-import com.google.common.collect.ImmutableList;
+
 import java.util.List;
+
 import org.apache.maven.plugin.MojoExecutionException;
 import org.apache.maven.plugin.MojoFailureException;
-import org.apache.maven.plugins.annotations.LifecyclePhase;
 import org.apache.maven.plugins.annotations.Mojo;
@@ -32,8 +29,13 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+import com.dkirrane.gitflow.groovy.GitflowHotfix;
+import com.dkirrane.gitflow.groovy.ex.GitflowException;
+import com.dkirrane.gitflow.groovy.ex.GitflowMergeConflictException;
+import com.google.common.collect.ImmutableList;
+
 /**
  * Merges a hotfix branch back into the develop and master branch and then
  * creates a tag for the hotfix on master.
  */
-@Mojo(name = "hotfix-finish", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
+@Mojo(name = "hotfix-finish", aggregator = true)
 public class HotfixFinishMojo extends AbstractHotfixMojo {
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
index 43f0042..1397f78 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
@@ -17,18 +17,19 @@ package com.dkirrane.maven.plugins.ggitflow;
 
-import com.dkirrane.gitflow.groovy.GitflowHotfix;
-import com.dkirrane.gitflow.groovy.ex.GitflowException;
+import static org.jfrog.hudson.util.GenericArtifactVersion.DEFAULT_VERSION_COMPONENT_SEPARATOR;
+import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
+
 import org.apache.maven.plugin.MojoExecutionException;
 import org.apache.maven.plugin.MojoFailureException;
-import org.apache.maven.plugins.annotations.LifecyclePhase;
 import org.apache.maven.plugins.annotations.Mojo;
 import org.jfrog.hudson.util.GenericArtifactVersion;
-import static org.jfrog.hudson.util.GenericArtifactVersion.DEFAULT_VERSION_COMPONENT_SEPARATOR;
-import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+import com.dkirrane.gitflow.groovy.GitflowHotfix;
+import com.dkirrane.gitflow.groovy.ex.GitflowException;
+
 /**
  * Creates a new hotfix branch off of the master branch.
  */
-@Mojo(name = "hotfix-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
+@Mojo(name = "hotfix-start", aggregator = true)
 public class HotfixStartMojo extends AbstractHotfixMojo {
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
index b0a2858..ad56a8b 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
@@ -17,10 +17,6 @@ package com.dkirrane.maven.plugins.ggitflow;
 
-import com.dkirrane.gitflow.groovy.GitflowRelease;
-import com.dkirrane.gitflow.groovy.ex.GitflowException;
 import org.apache.maven.plugin.MojoExecutionException;
 import org.apache.maven.plugin.MojoFailureException;
-import org.apache.maven.plugins.annotations.LifecyclePhase;
 import org.apache.maven.plugins.annotations.Mojo;
 import org.apache.maven.plugins.annotations.Parameter;
-import org.apache.maven.plugins.annotations.ResolutionScope;
 import org.codehaus.plexus.components.interactivity.PrompterException;
@@ -30,7 +26,10 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+import com.dkirrane.gitflow.groovy.GitflowRelease;
+import com.dkirrane.gitflow.groovy.ex.GitflowException;
+
 /**
  * Creates a new release branch off of the develop branch.
  */
-@Mojo(name = "release-start", aggregator = true, requiresDependencyResolution = ResolutionScope.COMPILE_PLUS_RUNTIME, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
+@Mojo(name = "release-start", aggregator = true)
 public class ReleaseStartMojo extends AbstractReleaseMojo {
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
index 5630fb7..3a745d0 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
@@ -17,8 +17,9 @@ package com.dkirrane.maven.plugins.ggitflow;
 
-import com.dkirrane.gitflow.groovy.GitflowSupport;
-import com.dkirrane.gitflow.groovy.ex.GitflowException;
+import static org.jfrog.hudson.util.GenericArtifactVersion.DEFAULT_VERSION_COMPONENT_SEPARATOR;
+import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
+
 import java.util.List;
+
 import org.apache.maven.plugin.MojoExecutionException;
 import org.apache.maven.plugin.MojoFailureException;
-import org.apache.maven.plugins.annotations.LifecyclePhase;
 import org.apache.maven.plugins.annotations.Mojo;
@@ -27,11 +28,12 @@ import org.codehaus.plexus.components.interactivity.PrompterException;
 import org.jfrog.hudson.util.GenericArtifactVersion;
-import static org.jfrog.hudson.util.GenericArtifactVersion.DEFAULT_VERSION_COMPONENT_SEPARATOR;
-import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+import com.dkirrane.gitflow.groovy.GitflowSupport;
+import com.dkirrane.gitflow.groovy.ex.GitflowException;
+
 /**
  * Creates a new support branch from a specific commit on the master branch.
  */
-@Mojo(name = "support-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
+@Mojo(name = "support-start", aggregator = true)
 public class SupportStartMojo extends AbstractGitflowMojo {

commit 63619fc8583c091b5b17e7b8c397ce2b6394f59a
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Mon Mar 17 20:00:23 2014 +0000

    Pumping version to next development version 1.3-SNAPSHOT

diff --git a/ggitflow-maven-archetype/pom.xml b/ggitflow-maven-archetype/pom.xml
index 1df0d0f..f43be07 100644
--- a/ggitflow-maven-archetype/pom.xml
+++ b/ggitflow-maven-archetype/pom.xml
@@ -1,45 +1,45 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
-        <version>1.2</version>
+        <version>1.3-SNAPSPHOT</version>
     </parent>
 
     <groupId>com.dkirrane.maven.archetype</groupId>
     <artifactId>ggitflow-maven-archetype</artifactId>
-    <version>1.2</version>
+    <version>1.3-SNAPSPHOT</version>
     <packaging>maven-archetype</packaging>
     <name>ggitflow-maven-archetype</name>
 
     <build>
         <extensions>
             <extension>
                 <groupId>org.apache.maven.archetype</groupId>
                 <artifactId>archetype-packaging</artifactId>
                 <version>2.2</version>
             </extension>
         </extensions>
 
         <pluginManagement>
             <plugins>
                 <plugin>
                     <artifactId>maven-archetype-plugin</artifactId>
                     <version>2.2</version>
                 </plugin>
             </plugins>
         </pluginManagement>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <skip>true</skip>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index 3803f9d..ce013f0 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,186 +1,186 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
-        <version>1.2</version>
+        <version>1.3-SNAPSPHOT</version>
     </parent>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
-    <version>1.2</version>
+    <version>1.3-SNAPSPHOT</version>
     <packaging>maven-plugin</packaging>
     <name>ggitflow-maven-plugin</name>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
             <version>1.1</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
         <dependency>
             <groupId>jline</groupId>
             <artifactId>jline</artifactId>
             <version>2.11</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>com.jcabi</groupId>
             <artifactId>jcabi-maven-slf4j</artifactId>
             <version>0.8</version>
         </dependency>
         <dependency>
             <groupId>ch.qos.logback</groupId>
             <artifactId>logback-classic</artifactId>
             <version>1.0.13</version>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>3.2</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>3.0.8</version>
         </dependency>
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-interactivity-api</artifactId>
             <version>1.0-alpha-5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>2.4</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-project</artifactId>
             <version>2.2.1</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-clean-plugin</artifactId>
             <version>2.5</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-install-plugin</artifactId>
             <version>2.5.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-deploy-plugin</artifactId>
             <version>2.8.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-artifact</artifactId>
             <version>2.2.1</version>
         </dependency>
         <dependency>
             <groupId>com.google.guava</groupId>
             <artifactId>guava</artifactId>
             <version>16.0.1</version>
         </dependency>
     </dependencies>
 
     <build>
         <resources>
             <resource>
                 <directory>src/it</directory>
                 <includes>
                     <include>**/**</include>
                 </includes>
             </resource>
         </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>3.2</version>
                 <configuration>
                     <goalPrefix>ggitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                     <!--                    <execution>
                         <id>help-goal</id>
                         <goals>
                             <goal>helpmojo</goal>
                         </goals>
                     </execution>-->
                     <!--                    <execution>
                         <id>report</id>
                         <goals>
                             <goal>report</goal>
                         </goals>
                     </execution>                    -->
                 </executions>
             </plugin>
             <plugin>
                 <groupId>com.github.github</groupId>
                 <artifactId>site-maven-plugin</artifactId>
                 <version>0.9</version>
                 <configuration>
                     <message>Creating site for ${project.version}</message>
                     <server>github</server>
                     <merge>true</merge>
                 </configuration>
                 <executions>
                     <execution>
                         <goals>
                             <goal>site</goal>
                         </goals>
                         <phase>site</phase>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <reportPlugins>
                         <plugin>
                             <groupId>org.apache.maven.plugins</groupId>
                             <artifactId>maven-plugin-plugin</artifactId>
                             <version>3.2</version>
                         </plugin>
                     </reportPlugins>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/pom.xml b/pom.xml
index f5f8b41..c4de437 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,170 +1,170 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven</artifactId>    
-    <version>1.2</version>
+    <version>1.3-SNAPSPHOT</version>
     <name>ggitflow-maven</name>
     <packaging>pom</packaging>
 
     <modules>
         <module>ggitflow-maven-plugin</module>
         <module>ggitflow-maven-archetype</module>
     </modules>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
     </properties>
 
     <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
 
     <scm>
         <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
         <connection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</connection>
         <developerConnection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</developerConnection>
     </scm>
 
     <description>Maven Archetype for the Gitflow Maven Plugin</description>
     <developers>
         <developer>
             <id>dkirrane</id>
             <name>Desmond Kirrane</name>
             <email>desmond.kirrane@gmail.com</email>
         </developer>
     </developers>
     <licenses>
         <license>
             <name>Apache License Version 2.0, January 2004</name>
             <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
             <distribution>repo</distribution>
         </license>
     </licenses>
 
     <build>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <version>2.3.2</version>
                 <configuration>
                     <source>1.5</source>
                     <target>1.5</target>
                 </configuration>
             </plugin>          
         </plugins>
     </build>
 
     <profiles>
         <!-- Deploy to https://oss.sonatype.org/index.html -->
         <!-- mvn clean deploy -Prelease-sign-artifacts -->
         <profile>
             <id>release-sign-artifacts</id>
             <activation>
                 <property>
                     <name>performRelease</name>
                     <value>true</value>
                 </property>
             </activation>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-gpg-plugin</artifactId>
                         <executions>
                             <execution>
                                 <id>sign-artifacts</id>
                                 <phase>verify</phase>
                                 <goals>
                                     <goal>sign</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
             </build>
         </profile>
         <profile>
             <id>run-its</id>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-invoker-plugin</artifactId>
                         <version>1.8</version>
                         <configuration>
                             <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
                             <settingsFile>src/it/settings.xml</settingsFile>
                             <debug>true</debug>
                             <showErrors>true</showErrors>
                             <detail>true</detail>
                             <streamLogs>true</streamLogs>
                             <projectsDirectory>src/it/projects</projectsDirectory>
                             <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
                             <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
                             <addTestClassPath>true</addTestClassPath>
                             <preBuildHookScript>setup</preBuildHookScript>
                             <postBuildHookScript>verify</postBuildHookScript>
                             <pomIncludes>
                                 <pomInclude>*/pom.xml</pomInclude>
                             </pomIncludes>
                             <goals>
                                 <goal>clean</goal>
                                 <goal>test-compile</goal>
                             </goals>
                         </configuration>
                         <executions>
                             <execution>
                                 <id>integration-test</id>
                                 <goals>
                                     <goal>install</goal>
                                     <goal>integration-test</goal>
                                     <goal>verify</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
 
             </build>
         </profile>
     </profiles>
 
     <!--
         Sonatype upload details:
         http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
         https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
         https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
         https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
 
             - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
             - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
             - Promote staged artifacts into repository 'Releases'
             - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
             - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
     -->
 
     <distributionManagement>
         <snapshotRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
         </snapshotRepository>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
         </repository>
     </distributionManagement>
     <repositories>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
             <snapshots>
                 <enabled>true</enabled>
             </snapshots>
         </repository>
     </repositories>
 </project>

commit d4ee715f4148fb9eb47409c54f6a77a5f7e1b122
Merge: 11a3578 e328246
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Mon Mar 17 19:55:44 2014 +0000

    Merge branch 'release/1.2'

commit 07e68bc237933afa7ea110e6b51f9e30c6a8e270
Merge: a328863 e328246
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Mon Mar 17 19:55:44 2014 +0000

    Merge branch 'release/1.2' into develop

commit e32824655782303c51dbf9e48ea83c1ca467c029
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Mon Mar 17 19:55:22 2014 +0000

    adding project name to fix deployment to Nexus

diff --git a/pom.xml b/pom.xml
index 3af281e..f5f8b41 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,169 +1,170 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
-    <artifactId>ggitflow-maven</artifactId>
+    <artifactId>ggitflow-maven</artifactId>    
     <version>1.2</version>
+    <name>ggitflow-maven</name>
     <packaging>pom</packaging>
 
     <modules>
         <module>ggitflow-maven-plugin</module>
         <module>ggitflow-maven-archetype</module>
     </modules>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
     </properties>
 
     <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
 
     <scm>
         <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
         <connection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</connection>
         <developerConnection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</developerConnection>
     </scm>
 
     <description>Maven Archetype for the Gitflow Maven Plugin</description>
     <developers>
         <developer>
             <id>dkirrane</id>
             <name>Desmond Kirrane</name>
             <email>desmond.kirrane@gmail.com</email>
         </developer>
     </developers>
     <licenses>
         <license>
             <name>Apache License Version 2.0, January 2004</name>
             <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
             <distribution>repo</distribution>
         </license>
     </licenses>
 
     <build>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <version>2.3.2</version>
                 <configuration>
                     <source>1.5</source>
                     <target>1.5</target>
                 </configuration>
             </plugin>          
         </plugins>
     </build>
 
     <profiles>
         <!-- Deploy to https://oss.sonatype.org/index.html -->
         <!-- mvn clean deploy -Prelease-sign-artifacts -->
         <profile>
             <id>release-sign-artifacts</id>
             <activation>
                 <property>
                     <name>performRelease</name>
                     <value>true</value>
                 </property>
             </activation>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-gpg-plugin</artifactId>
                         <executions>
                             <execution>
                                 <id>sign-artifacts</id>
                                 <phase>verify</phase>
                                 <goals>
                                     <goal>sign</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
             </build>
         </profile>
         <profile>
             <id>run-its</id>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-invoker-plugin</artifactId>
                         <version>1.8</version>
                         <configuration>
                             <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
                             <settingsFile>src/it/settings.xml</settingsFile>
                             <debug>true</debug>
                             <showErrors>true</showErrors>
                             <detail>true</detail>
                             <streamLogs>true</streamLogs>
                             <projectsDirectory>src/it/projects</projectsDirectory>
                             <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
                             <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
                             <addTestClassPath>true</addTestClassPath>
                             <preBuildHookScript>setup</preBuildHookScript>
                             <postBuildHookScript>verify</postBuildHookScript>
                             <pomIncludes>
                                 <pomInclude>*/pom.xml</pomInclude>
                             </pomIncludes>
                             <goals>
                                 <goal>clean</goal>
                                 <goal>test-compile</goal>
                             </goals>
                         </configuration>
                         <executions>
                             <execution>
                                 <id>integration-test</id>
                                 <goals>
                                     <goal>install</goal>
                                     <goal>integration-test</goal>
                                     <goal>verify</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
 
             </build>
         </profile>
     </profiles>
 
     <!--
         Sonatype upload details:
         http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
         https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
         https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
         https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
 
             - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
             - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
             - Promote staged artifacts into repository 'Releases'
             - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
             - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
     -->
 
     <distributionManagement>
         <snapshotRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
         </snapshotRepository>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
         </repository>
     </distributionManagement>
     <repositories>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
             <snapshots>
                 <enabled>true</enabled>
             </snapshots>
         </repository>
     </repositories>
 </project>

commit fa9d915e264544b2b6fe19532f68ffaf83a20d0c
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Mon Mar 17 19:24:21 2014 +0000

    Pumping version to release 1.2

diff --git a/ggitflow-maven-archetype/pom.xml b/ggitflow-maven-archetype/pom.xml
index 5def8de..1df0d0f 100644
--- a/ggitflow-maven-archetype/pom.xml
+++ b/ggitflow-maven-archetype/pom.xml
@@ -1,45 +1,45 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
-        <version>1.2-SNAPSHOT</version>
+        <version>1.2</version>
     </parent>
 
     <groupId>com.dkirrane.maven.archetype</groupId>
     <artifactId>ggitflow-maven-archetype</artifactId>
-    <version>1.2-SNAPSHOT</version>
+    <version>1.2</version>
     <packaging>maven-archetype</packaging>
     <name>ggitflow-maven-archetype</name>
 
     <build>
         <extensions>
             <extension>
                 <groupId>org.apache.maven.archetype</groupId>
                 <artifactId>archetype-packaging</artifactId>
                 <version>2.2</version>
             </extension>
         </extensions>
 
         <pluginManagement>
             <plugins>
                 <plugin>
                     <artifactId>maven-archetype-plugin</artifactId>
                     <version>2.2</version>
                 </plugin>
             </plugins>
         </pluginManagement>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <skip>true</skip>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index 261eeb2..3803f9d 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,186 +1,186 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
-        <version>1.2-SNAPSHOT</version>
+        <version>1.2</version>
     </parent>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
-    <version>1.2-SNAPSHOT</version>
+    <version>1.2</version>
     <packaging>maven-plugin</packaging>
     <name>ggitflow-maven-plugin</name>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
             <version>1.1</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
         <dependency>
             <groupId>jline</groupId>
             <artifactId>jline</artifactId>
             <version>2.11</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>com.jcabi</groupId>
             <artifactId>jcabi-maven-slf4j</artifactId>
             <version>0.8</version>
         </dependency>
         <dependency>
             <groupId>ch.qos.logback</groupId>
             <artifactId>logback-classic</artifactId>
             <version>1.0.13</version>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>3.2</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>3.0.8</version>
         </dependency>
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-interactivity-api</artifactId>
             <version>1.0-alpha-5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>2.4</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-project</artifactId>
             <version>2.2.1</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-clean-plugin</artifactId>
             <version>2.5</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-install-plugin</artifactId>
             <version>2.5.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-deploy-plugin</artifactId>
             <version>2.8.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-artifact</artifactId>
             <version>2.2.1</version>
         </dependency>
         <dependency>
             <groupId>com.google.guava</groupId>
             <artifactId>guava</artifactId>
             <version>16.0.1</version>
         </dependency>
     </dependencies>
 
     <build>
         <resources>
             <resource>
                 <directory>src/it</directory>
                 <includes>
                     <include>**/**</include>
                 </includes>
             </resource>
         </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>3.2</version>
                 <configuration>
                     <goalPrefix>ggitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                     <!--                    <execution>
                         <id>help-goal</id>
                         <goals>
                             <goal>helpmojo</goal>
                         </goals>
                     </execution>-->
                     <!--                    <execution>
                         <id>report</id>
                         <goals>
                             <goal>report</goal>
                         </goals>
                     </execution>                    -->
                 </executions>
             </plugin>
             <plugin>
                 <groupId>com.github.github</groupId>
                 <artifactId>site-maven-plugin</artifactId>
                 <version>0.9</version>
                 <configuration>
                     <message>Creating site for ${project.version}</message>
                     <server>github</server>
                     <merge>true</merge>
                 </configuration>
                 <executions>
                     <execution>
                         <goals>
                             <goal>site</goal>
                         </goals>
                         <phase>site</phase>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <reportPlugins>
                         <plugin>
                             <groupId>org.apache.maven.plugins</groupId>
                             <artifactId>maven-plugin-plugin</artifactId>
                             <version>3.2</version>
                         </plugin>
                     </reportPlugins>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/pom.xml b/pom.xml
index 75208c3..3af281e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,169 +1,169 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven</artifactId>
-    <version>1.2-SNAPSHOT</version>
+    <version>1.2</version>
     <packaging>pom</packaging>
 
     <modules>
         <module>ggitflow-maven-plugin</module>
         <module>ggitflow-maven-archetype</module>
     </modules>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
     </properties>
 
     <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
 
     <scm>
         <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
         <connection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</connection>
         <developerConnection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</developerConnection>
     </scm>
 
     <description>Maven Archetype for the Gitflow Maven Plugin</description>
     <developers>
         <developer>
             <id>dkirrane</id>
             <name>Desmond Kirrane</name>
             <email>desmond.kirrane@gmail.com</email>
         </developer>
     </developers>
     <licenses>
         <license>
             <name>Apache License Version 2.0, January 2004</name>
             <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
             <distribution>repo</distribution>
         </license>
     </licenses>
 
     <build>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <version>2.3.2</version>
                 <configuration>
                     <source>1.5</source>
                     <target>1.5</target>
                 </configuration>
             </plugin>          
         </plugins>
     </build>
 
     <profiles>
         <!-- Deploy to https://oss.sonatype.org/index.html -->
         <!-- mvn clean deploy -Prelease-sign-artifacts -->
         <profile>
             <id>release-sign-artifacts</id>
             <activation>
                 <property>
                     <name>performRelease</name>
                     <value>true</value>
                 </property>
             </activation>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-gpg-plugin</artifactId>
                         <executions>
                             <execution>
                                 <id>sign-artifacts</id>
                                 <phase>verify</phase>
                                 <goals>
                                     <goal>sign</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
             </build>
         </profile>
         <profile>
             <id>run-its</id>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-invoker-plugin</artifactId>
                         <version>1.8</version>
                         <configuration>
                             <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
                             <settingsFile>src/it/settings.xml</settingsFile>
                             <debug>true</debug>
                             <showErrors>true</showErrors>
                             <detail>true</detail>
                             <streamLogs>true</streamLogs>
                             <projectsDirectory>src/it/projects</projectsDirectory>
                             <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
                             <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
                             <addTestClassPath>true</addTestClassPath>
                             <preBuildHookScript>setup</preBuildHookScript>
                             <postBuildHookScript>verify</postBuildHookScript>
                             <pomIncludes>
                                 <pomInclude>*/pom.xml</pomInclude>
                             </pomIncludes>
                             <goals>
                                 <goal>clean</goal>
                                 <goal>test-compile</goal>
                             </goals>
                         </configuration>
                         <executions>
                             <execution>
                                 <id>integration-test</id>
                                 <goals>
                                     <goal>install</goal>
                                     <goal>integration-test</goal>
                                     <goal>verify</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
 
             </build>
         </profile>
     </profiles>
 
     <!--
         Sonatype upload details:
         http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
         https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
         https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
         https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
 
             - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
             - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
             - Promote staged artifacts into repository 'Releases'
             - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
             - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
     -->
 
     <distributionManagement>
         <snapshotRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
         </snapshotRepository>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
         </repository>
     </distributionManagement>
     <repositories>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
             <snapshots>
                 <enabled>true</enabled>
             </snapshots>
         </repository>
     </repositories>
 </project>

commit 36d37cf317e75b50423ab7bad85a37d1c453ed91
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Mon Mar 17 19:22:49 2014 +0000

    Pumping ggitflow to release version 1.1

diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index f7bd91b..261eeb2 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,186 +1,186 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
         <version>1.2-SNAPSHOT</version>
     </parent>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
     <version>1.2-SNAPSHOT</version>
     <packaging>maven-plugin</packaging>
     <name>ggitflow-maven-plugin</name>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
-            <version>1.1-SNAPSHOT</version>
+            <version>1.1</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
         <dependency>
             <groupId>jline</groupId>
             <artifactId>jline</artifactId>
             <version>2.11</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>com.jcabi</groupId>
             <artifactId>jcabi-maven-slf4j</artifactId>
             <version>0.8</version>
         </dependency>
         <dependency>
             <groupId>ch.qos.logback</groupId>
             <artifactId>logback-classic</artifactId>
             <version>1.0.13</version>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>3.2</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>3.0.8</version>
         </dependency>
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-interactivity-api</artifactId>
             <version>1.0-alpha-5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>2.4</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-project</artifactId>
             <version>2.2.1</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-clean-plugin</artifactId>
             <version>2.5</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-install-plugin</artifactId>
             <version>2.5.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-deploy-plugin</artifactId>
             <version>2.8.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-artifact</artifactId>
             <version>2.2.1</version>
         </dependency>
         <dependency>
             <groupId>com.google.guava</groupId>
             <artifactId>guava</artifactId>
             <version>16.0.1</version>
         </dependency>
     </dependencies>
 
     <build>
         <resources>
             <resource>
                 <directory>src/it</directory>
                 <includes>
                     <include>**/**</include>
                 </includes>
             </resource>
         </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>3.2</version>
                 <configuration>
                     <goalPrefix>ggitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                     <!--                    <execution>
                         <id>help-goal</id>
                         <goals>
                             <goal>helpmojo</goal>
                         </goals>
                     </execution>-->
                     <!--                    <execution>
                         <id>report</id>
                         <goals>
                             <goal>report</goal>
                         </goals>
                     </execution>                    -->
                 </executions>
             </plugin>
             <plugin>
                 <groupId>com.github.github</groupId>
                 <artifactId>site-maven-plugin</artifactId>
                 <version>0.9</version>
                 <configuration>
                     <message>Creating site for ${project.version}</message>
                     <server>github</server>
                     <merge>true</merge>
                 </configuration>
                 <executions>
                     <execution>
                         <goals>
                             <goal>site</goal>
                         </goals>
                         <phase>site</phase>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <reportPlugins>
                         <plugin>
                             <groupId>org.apache.maven.plugins</groupId>
                             <artifactId>maven-plugin-plugin</artifactId>
                             <version>3.2</version>
                         </plugin>
                     </reportPlugins>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>

commit a3288637b44c8c8e7aef399b0b3a97302fa512a7
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Mon Mar 17 19:01:56 2014 +0000

    hot fix and support versioning fixes

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index 0dc4d36..eb8e0ec 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -73,445 +73,445 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 public class AbstractGitflowMojo extends AbstractMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(AbstractGitflowMojo.class.getName());
 
     public final Pattern matchSnapshotRegex = Pattern.compile("-SNAPSHOT");
     
     public static final ImmutableList<String> DEFAULT_INSTALL_ARGS = ImmutableList.of(
             "-DinstallAtEnd=true");    
     
     public static final ImmutableList<String> DEFAULT_DEPLOY_ARGS = ImmutableList.of(
             "-DdeployAtEnd=true", 
             "-DretryFailedDeploymentCount=2");
     
     public static final Splitter PROFILES_SPLITTER = Splitter.on(',').trimResults().omitEmptyStrings();
     public static final Joiner PROFILES_JOINER = Joiner.on(',').skipNulls();
 
     /**
      * Gitflow branches and prefixes to use.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
     /**
      * Message prefix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgPrefix", defaultValue = "", required = false)
     protected String msgPrefix;
 
     /**
      * Message suffix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgSuffix", defaultValue = "", required = false)
     protected String msgSuffix;
 
     /**
      * Component used to prompt for input.
      */
     @Component
     protected Prompter prompter;
 
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
     @Component
     protected ArtifactResolver artifactResolver;
 
     /**
      * @parameter default-value="${project.artifacts}"
      * @required
      * @readonly
      */
     protected Collection artifacts;
 
     /**
      * @parameter expression="${localRepository}"
      */
     protected ArtifactRepository localRepository;
 
     /**
      * @parameter expression="${project.remoteArtifactRepositories}"
      */
     protected List remoteArtifactRepositories;
 
 //    @Component
 //    protected MavenProjectBuilder projectBuilder;
 //    @Component
 //    protected DefaultProjectBuilder projectBuilder;
 //    /**
 //     * @parameter property="plugin"
 //     * @required
 //     */
 //    @Component
 //    protected PluginDescriptor pluginDescriptor;
 //
     /**
      * The projects in the reactor.
      */
     @Parameter(defaultValue = "${reactorProjects}", readonly = true, required = true)
     protected List<MavenProject> reactorProjects;
 
     /**
      * The project builder
      */
     @Component
     private ProjectBuilder projectBuilder;
 
     /**
      * The project currently being build.
      *
      * @parameter expression="${project}"
      * @required
      * @readonly
      */
     @Component
     protected MavenProject project;
 
     /**
      * The current Maven session.
      *
      * @parameter expression="${session}"
      * @required
      * @readonly
      */
     @Component
     protected MavenSession session;
 
     /**
      * The Maven BuildPluginManager component.
      *
      * @component
      * @required
      */
     @Component
     protected BuildPluginManager pluginManager;
 
 //    @Parameter(defaultValue = "${basedir}", readonly = true, required = true)
 //    protected File basedir;
 //    @Component
 //    protected Settings settings;
     private GitflowInit init;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     public void execute() throws MojoExecutionException, MojoFailureException {
         StaticLoggerBinder.getSingleton().setMavenLog(this.getLog());
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             LOG.debug("Gitflow pom  '" + project.getBasedir() + "'");
         }
 
         GitflowInit gitflowInit = getGitflowInit();
 
         gitflowInit.requireGitRepo();
 
         if (!gitflowInit.gitflowIsInitialized()) {
             try {
                 gitflowInit.cmdDefault();
             } catch (GitflowException ex) {
                 throw new MojoExecutionException("Failed to inintialise Gitflow " + ex.getMessage(), ex);
             }
         }
 
         gitflowInit.requireCleanWorkingTree();
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     protected final GitflowInit getGitflowInit() {
         if (null == init) {
             LOG.info("Initialising Gitflow");
             init = new GitflowInit();
             init.setRepoDir(getProject().getBasedir());
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
 
             /* root Git directory may not be the pom directory */
             String dotGitDir = init.executeLocal("git rev-parse --git-dir");
             File dotGitFolder = new File(dotGitDir);
             assert dotGitFolder.exists();
             init.setRepoDir(dotGitFolder.getParentFile());
         }
         return init;
     }
 
     protected final void setVersion(String version) throws MojoExecutionException, MojoFailureException {
         LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
 
         for (MavenProject mavenProject : reactorProjects) {
             LOG.debug("Calling versions-maven-plugin:set on " + mavenProject.getArtifactId());
             session.setCurrentProject(mavenProject);
             executeMojo(
                     plugin(
                             groupId("org.codehaus.mojo"),
                             artifactId("versions-maven-plugin"),
                             version("2.1")
                     ),
                     goal("set"),
                     configuration(
                             element(name("generateBackupPoms"), "false"),
                             element(name("newVersion"), version)
                     ),
                     executionEnvironment(
                             mavenProject,
                             session,
                             pluginManager
                     )
             );
         }
         LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change " + version + " to origin. ExitCode:" + exitCode);
                 }
             }
         }
         /* We don't want to fail maybe the version was manually set correctly */
 //        else {
 //            throw new MojoFailureException("Failed to update poms to version " + version);
 //        }
     }
 
     protected final void setNextVersions(Boolean allowSnapshots, Boolean updateParent) throws MojoExecutionException, MojoFailureException {
         LOG.debug("setNextVersions");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
 
         if (updateParent) {
             LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:update-parent updateParent={}", updateParent);
             executeMojo(
                     plugin(
                             groupId("org.codehaus.mojo"),
                             artifactId("versions-maven-plugin"),
                             version("2.1")
                     ),
                     goal("update-parent"),
                     configuration(
                             element(name("generateBackupPoms"), "false"),
                             element(name("allowSnapshots"), allowSnapshots.toString())
                     ),
                     executionEnvironment(
                             rootProject,
                             session,
                             pluginManager
                     )
             );
             LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:update-parent");
         }
 
         LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:use-next-versions allowSnapshots={}", allowSnapshots);
         for (MavenProject mavenProject : reactorProjects) {
             LOG.debug("Calling use-next-versions on " + mavenProject.getArtifactId());
             session.setCurrentProject(mavenProject);
             executeMojo(
                     plugin(
                             groupId("org.codehaus.mojo"),
                             artifactId("versions-maven-plugin"),
                             version("2.1")
                     ),
                     goal("use-next-versions"),
                     configuration(
                             element(name("generateBackupPoms"), "false"),
                             element(name("allowSnapshots"), allowSnapshots.toString())
                     ),
                     executionEnvironment(
                             mavenProject,
                             session,
                             pluginManager
                     )
             );
         }
         LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:use-next-versions");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg;
             if (allowSnapshots) {
                 msg = getMsgPrefix() + "Replaces any release versions with the next snapshot version (if it has been deployed)." + getMsgSuffix();
             } else {
                 msg = getMsgPrefix() + "Replaces snapshot versions with the corresponding release version" + getMsgSuffix();
             }
 
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change to origin. ExitCode:" + exitCode);
                 }
             }
         }
     }
 
     protected final void runGoals(String goals, List<String> additionalArgs) throws MojoExecutionException, MojoFailureException {
         LOG.debug("START executing " + goals + " with args " + additionalArgs);
 
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         File basedir = rootProject.getBasedir();
 
         ReleaseResult result = new ReleaseResult();
         ReleaseEnvironment env = new DefaultReleaseEnvironment();
         env.setSettings(session.getSettings());
         MavenExecutor mavenExecutor = mavenExecutors.get(env.getMavenExecutorId());
         
         Joiner joiner = Joiner.on(" ").skipNulls();
         String additionalArguments = joiner.join(additionalArgs);
         LOG.debug("additionalArguments " + additionalArguments);
         
         try {
             mavenExecutor.executeGoals(basedir, goals, env, false, additionalArguments, result);
         } catch (MavenExecutorException ex) {
             throw new MojoExecutionException(result.getOutput(), ex);
         }
-        LOG.debug("DONE executing" + goals);
+        LOG.debug("DONE executing " + goals);
     }
 
     protected final String getReleaseVersion(String version) throws MojoFailureException {
         LOG.debug("Current Develop version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
             LOG.debug("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
     protected final void checkForSnapshotDependencies() throws MojoExecutionException {
         LOG.info("Checking for SNAPSHOT dependencies");
         for (MavenProject mavenProject : reactorProjects) {
             DependencyManagement dependencyManagement = mavenProject.getDependencyManagement();
             if (null != dependencyManagement) {
                 checkForSnapshot(dependencyManagement.getDependencies());
             }
             checkForSnapshot(mavenProject.getDependencies());
         }
     }
 
     private void checkForSnapshot(List<Dependency> dependencies) throws MojoExecutionException {
         Boolean hasSnapshotDependency = false;
         for (Dependency dependency : dependencies) {
             String version = dependency.getVersion();
             Matcher versionMatcher = matchSnapshotRegex.matcher(version);
             if (versionMatcher.find() && versionMatcher.end() == version.length()) {
                 LOG.error("Found SNAPSHOT dependency " + dependency.getGroupId() + ":" + dependency.getArtifactId() + ":" + version);
                 hasSnapshotDependency = true;
             }
         }
         if (hasSnapshotDependency) {
             throw new MojoExecutionException("Cannot start release because SNAPSHOT dependencies exist");
         }
     }
 
     protected final void reloadReactorProjects() throws MojoExecutionException {
         LOG.debug("Reloading poms...");
 
         List<MavenProject> newReactorProjects;
         try {
             newReactorProjects = buildReactorProjects();
         } catch (ProjectBuildingException e) {
             LOG.error("Re-parse aborted due to malformed pom.xml file(s)", e);
             throw new MojoExecutionException("Re-parse aborted due to malformed pom.xml file(s)", e);
         } catch (CycleDetectedException e) {
             LOG.error("Re-parse aborted due to dependency cycle in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to dependency cycle in project model", e);
         } catch (DuplicateProjectException e) {
             LOG.error("Re-parse aborted due to duplicate projects in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to duplicate projects in project model", e);
         } catch (Exception e) {
             LOG.error("Re-parse aborted due a problem that prevented sorting the project model", e);
             throw new MojoExecutionException("Re-parse aborted due a problem that prevented sorting the project model", e);
         }
         MavenProject newProject = findProject(newReactorProjects, this.project);
         if (newProject == null) {
             throw new MojoExecutionException("A pom.xml change appears to have removed " + this.project.getId() + " from the build plan.");
         }
 
         this.project = newProject;
         this.reactorProjects = newReactorProjects;
 
         LOG.debug("Reloading poms complete...");
     }
 
     private List<MavenProject> buildReactorProjects() throws Exception {
 
         List<MavenProject> projects = new ArrayList<MavenProject>();
         for (MavenProject p : reactorProjects) {
             ProjectBuildingRequest request = new DefaultProjectBuildingRequest();
 
             request.setProcessPlugins(true);
             request.setProfiles(request.getProfiles());
             request.setActiveProfileIds(session.getRequest().getActiveProfiles());
             request.setInactiveProfileIds(session.getRequest().getInactiveProfiles());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setSystemProperties(session.getSystemProperties());
             request.setUserProperties(session.getUserProperties());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setPluginArtifactRepositories(session.getRequest().getPluginArtifactRepositories());
             request.setRepositorySession(session.getRepositorySession());
             request.setLocalRepository(localRepository);
             request.setBuildStartTime(session.getRequest().getStartTime());
             request.setResolveDependencies(true);
             request.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_STRICT);
             projects.add(projectBuilder.build(p.getFile(), request).getProject());
         }
         return new ProjectSorter(projects).getSortedProjects();
     }
 
     private MavenProject findProject(List<MavenProject> newReactorProjects, MavenProject oldProject) {
         for (MavenProject newProject : newReactorProjects) {
             if (oldProject.getGroupId().equals(newProject.getGroupId())
                     && oldProject.getArtifactId().equals(newProject.getArtifactId())) {
                 return newProject;
             }
         }
         return null;
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
index f646077..43f0042 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
@@ -30,76 +30,76 @@ import org.slf4j.LoggerFactory;
 /**
  * Creates a new hotfix branch off of the master branch.
  */
 @Mojo(name = "hotfix-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class HotfixStartMojo extends AbstractHotfixMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(HotfixStartMojo.class.getName());
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         /* Switch to master branch and get current version i.e. lastest tag */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getMasterBrnName());
         reloadReactorProjects();
         String masterVersion = project.getVersion();
         LOG.debug("master version = " + masterVersion);
 
         String hotfixVersion = getHotfixVersion(masterVersion);
         String hotfixSnapshotVersion = getHotfixSnapshotVersion(masterVersion);
 
         LOG.info("Starting hotfix '" + hotfixVersion + "'");
         LOG.debug("msgPrefix '" + getMsgPrefix() + "'");
         LOG.debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
         gitflowHotfix.setPush(pushHotfixes);
 
         try {
             gitflowHotfix.start(hotfixVersion);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         setVersion(hotfixSnapshotVersion);
 
         String prefix = getGitflowInit().getHotfixBranchPrefix();
         if (getGitflowInit().gitRemoteBranchExists(prefix + hotfixVersion)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + hotfixVersion);
         }
     }
 
     private String getHotfixVersion(String currentVersion) throws MojoFailureException {
         LOG.debug("getHotfixVersion from '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         final StringBuilder result = new StringBuilder(30);
         if (artifactVersion.getPrimaryNumberCount() < 3) {
             String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
             String annotationAsString = artifactVersion.getAnnotationAsString();
-            result.append(primaryNumbersAsString).append('.').append('0');
+            result.append(primaryNumbersAsString).append('.').append('1');
             result.append(annotationAsString);
         } else {
             artifactVersion.upgradeAnnotationRevision();
             result.append(artifactVersion.toString());
         }
         return result.toString();
     }
 
     private String getHotfixSnapshotVersion(String currentVersion) throws MojoFailureException {
         LOG.debug("getHotfixSnapshotVersion from '" + currentVersion + "'");
 
         final StringBuilder result = new StringBuilder(30);
 
         String hotfixVersion = getHotfixVersion(currentVersion);
         result.append(hotfixVersion);
 
         result.append(DEFAULT_VERSION_COMPONENT_SEPARATOR).append(SNAPSHOT_QUALIFIER);
 
         return result.toString();
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
index 2fef444..5630fb7 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
@@ -33,110 +33,116 @@ import org.slf4j.LoggerFactory;
 /**
  * Creates a new support branch from a specific commit on the master branch.
  */
 @Mojo(name = "support-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class SupportStartMojo extends AbstractGitflowMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(SupportStartMojo.class.getName());
 
     /**
      * The commit to start the support branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     protected String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         String prefix = getGitflowInit().getSupportBranchPrefix();
 
         List<String> tags = getGitflowInit().gitAllTags();
         if (tags.isEmpty()) {
             throw new MojoFailureException("Could not find any tags to create support branch from!");
         }
 
         String baseName = promptForExistingTagName(tags, tags.get(tags.size() - 1));
 
         getGitflowInit().executeLocal("git checkout " + baseName);
-
+        reloadReactorProjects();
         String supportVersion = getSupportVersion(project.getVersion());
         String supportSnapshotVersion = getSupportSnapshotVersion(project.getVersion());
 
         LOG.info("Starting support branch '" + supportVersion + "'");
         LOG.debug("msgPrefix '" + getMsgPrefix() + "'");
         LOG.debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowSupport gitflowSupport = new GitflowSupport();
         gitflowSupport.setInit(getGitflowInit());
         gitflowSupport.setMsgPrefix(getMsgPrefix());
         gitflowSupport.setMsgSuffix(getMsgSuffix());
         gitflowSupport.setStartCommit(startCommit);
 
         try {
             gitflowSupport.start(supportVersion);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         setVersion(supportSnapshotVersion);
 
         if (getGitflowInit().gitRemoteBranchExists(prefix + supportVersion)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + supportVersion);
         }
     }
 
     private String promptForExistingTagName(List<String> branches, String defaultBrnName) throws MojoFailureException {
-        String message = "Please select the Tag to create the support branch from?";
+        String message = "Create a support branch from tag:";
 
         String name = "";
         try {
             name = prompter.prompt(message, branches, defaultBrnName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading selected Tag name from command line " + e.getMessage());
         }
 
         return name;
     }
 
     private String getSupportVersion(String currentVersion) throws MojoFailureException {
         LOG.debug("getSupportVersion from '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         StringBuilder sb = new StringBuilder(10);
-//        int pCount = artifactVersion.getPrimaryNumberCount();
-//        for (int i = 0; i < pCount; i++) {
-//            Integer primaryNumber = artifactVersion.getPrimaryNumber(i);
-//            if (i == (pCount - 1)) {
-//                sb.append('x');
-//            } else {
-//                sb.append(primaryNumber);
-//            }
-//        }
-        sb.append(artifactVersion.getPrimaryNumbersAsString()).append('.').append('x');
-        sb.append(artifactVersion.getAnnotationAsString()).append(artifactVersion.getBuildSpecifierAsString());
+        int pCount = artifactVersion.getPrimaryNumberCount();
+        if (pCount < 3) {
+            // Support versions should be like 1.0.x e.g. 1.0.1, 1.0.2 etc
+            sb.append(artifactVersion.getPrimaryNumbersAsString()).append('.').append('x');
+            sb.append(artifactVersion.getAnnotationAsString()).append(artifactVersion.getBuildSpecifierAsString());
+        } else {
+            // Support versions should be like 1.0.0-xx e.g. 1.0.0-01, 1.0.0-02 etc
+            if (null != artifactVersion.getAnnotation()) {
+                throw new MojoFailureException("Cannot start Support branch. Primary number " + artifactVersion.getPrimaryNumbersAsString() + " and annotations are already set " + artifactVersion.getAnnotation());
+            }
+            sb.append(artifactVersion.getPrimaryNumbersAsString()).append('-').append("xx");
+        }
 
         return sb.toString();
     }
 
     private String getSupportSnapshotVersion(String currentVersion) throws MojoFailureException {
         LOG.debug("getSupportSnapshotVersion from '" + currentVersion + "'");
 
-        GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
-
-        final StringBuilder result = new StringBuilder(30);
+        GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);        
 
-        String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
-        if (null == artifactVersion.getAnnotation()) {
-            result.append(primaryNumbersAsString).append('.').append('0');
+        StringBuilder sb = new StringBuilder(10);
+        int pCount = artifactVersion.getPrimaryNumberCount();
+        if (pCount < 3) {
+            // Support versions should be like 1.0.x e.g. 1.0.1, 1.0.2 etc
+            sb.append(artifactVersion.getPrimaryNumbersAsString()).append('.').append('1');
+            sb.append(artifactVersion.getAnnotationAsString());
         } else {
-            artifactVersion.upgradeAnnotationRevision();
-            result.append(artifactVersion.toString());
-        }
-        result.append(DEFAULT_VERSION_COMPONENT_SEPARATOR).append(SNAPSHOT_QUALIFIER);
+            // Support versions should be like 1.0.0-xx e.g. 1.0.0-01, 1.0.0-02 etc
+            if (null != artifactVersion.getAnnotation()) {
+                throw new MojoFailureException("Cannot start Support branch. Primary number " + artifactVersion.getPrimaryNumbersAsString() + " and annotations are already set " + artifactVersion.getAnnotation());
+            }
+            sb.append(artifactVersion.getPrimaryNumbersAsString()).append('-').append("01");
+        }        
 
-        return result.toString();
+        sb.append(DEFAULT_VERSION_COMPONENT_SEPARATOR).append(SNAPSHOT_QUALIFIER);
+
+        return sb.toString();
     }
 }

commit a50c2f5e0d1234aca0b3da245962cb7df98615e8
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Sat Mar 15 17:03:37 2014 +0000

    install and deploy
    
    install and deploy fixes
    
    goals fixes
    
    npe
    
    releaseProfiles
    
    print additional args
    
    useReleaseProfile true by default
    
    fixes

diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index c463b82..f7bd91b 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,181 +1,186 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
         <version>1.2-SNAPSHOT</version>
     </parent>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
     <version>1.2-SNAPSHOT</version>
     <packaging>maven-plugin</packaging>
     <name>ggitflow-maven-plugin</name>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
             <version>1.1-SNAPSHOT</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
         <dependency>
             <groupId>jline</groupId>
             <artifactId>jline</artifactId>
             <version>2.11</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>com.jcabi</groupId>
             <artifactId>jcabi-maven-slf4j</artifactId>
             <version>0.8</version>
         </dependency>
         <dependency>
             <groupId>ch.qos.logback</groupId>
             <artifactId>logback-classic</artifactId>
             <version>1.0.13</version>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>3.2</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>3.0.8</version>
         </dependency>
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-interactivity-api</artifactId>
             <version>1.0-alpha-5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>2.4</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-project</artifactId>
             <version>2.2.1</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-clean-plugin</artifactId>
             <version>2.5</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-install-plugin</artifactId>
             <version>2.5.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-deploy-plugin</artifactId>
             <version>2.8.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-artifact</artifactId>
             <version>2.2.1</version>
         </dependency>
+        <dependency>
+            <groupId>com.google.guava</groupId>
+            <artifactId>guava</artifactId>
+            <version>16.0.1</version>
+        </dependency>
     </dependencies>
 
     <build>
         <resources>
             <resource>
                 <directory>src/it</directory>
                 <includes>
                     <include>**/**</include>
                 </includes>
             </resource>
         </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>3.2</version>
                 <configuration>
                     <goalPrefix>ggitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                     <!--                    <execution>
                         <id>help-goal</id>
                         <goals>
                             <goal>helpmojo</goal>
                         </goals>
                     </execution>-->
                     <!--                    <execution>
                         <id>report</id>
                         <goals>
                             <goal>report</goal>
                         </goals>
                     </execution>                    -->
                 </executions>
             </plugin>
             <plugin>
                 <groupId>com.github.github</groupId>
                 <artifactId>site-maven-plugin</artifactId>
                 <version>0.9</version>
                 <configuration>
                     <message>Creating site for ${project.version}</message>
                     <server>github</server>
                     <merge>true</merge>
                 </configuration>
                 <executions>
                     <execution>
                         <goals>
                             <goal>site</goal>
                         </goals>
                         <phase>site</phase>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <reportPlugins>
                         <plugin>
                             <groupId>org.apache.maven.plugins</groupId>
                             <artifactId>maven-plugin-plugin</artifactId>
                             <version>3.2</version>
                         </plugin>
                     </reportPlugins>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index 956e59b..0dc4d36 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -20,2 +20,5 @@ import com.dkirrane.gitflow.groovy.ex.GitflowException;
 import com.dkirrane.maven.plugins.ggitflow.util.MavenUtil;
+import com.google.common.base.Joiner;
+import com.google.common.base.Splitter;
+import com.google.common.collect.ImmutableList;
 import java.io.File;
@@ -46,3 +49,7 @@ import org.apache.maven.project.ProjectBuildingRequest;
 import org.apache.maven.project.ProjectSorter;
+import org.apache.maven.shared.release.ReleaseResult;
+import org.apache.maven.shared.release.env.DefaultReleaseEnvironment;
+import org.apache.maven.shared.release.env.ReleaseEnvironment;
 import org.apache.maven.shared.release.exec.MavenExecutor;
+import org.apache.maven.shared.release.exec.MavenExecutorException;
 import org.codehaus.plexus.components.interactivity.Prompter;
@@ -66,493 +73,445 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 public class AbstractGitflowMojo extends AbstractMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(AbstractGitflowMojo.class.getName());
 
     public final Pattern matchSnapshotRegex = Pattern.compile("-SNAPSHOT");
+    
+    public static final ImmutableList<String> DEFAULT_INSTALL_ARGS = ImmutableList.of(
+            "-DinstallAtEnd=true");    
+    
+    public static final ImmutableList<String> DEFAULT_DEPLOY_ARGS = ImmutableList.of(
+            "-DdeployAtEnd=true", 
+            "-DretryFailedDeploymentCount=2");
+    
+    public static final Splitter PROFILES_SPLITTER = Splitter.on(',').trimResults().omitEmptyStrings();
+    public static final Joiner PROFILES_JOINER = Joiner.on(',').skipNulls();
 
     /**
      * Gitflow branches and prefixes to use.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
     /**
      * Message prefix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgPrefix", defaultValue = "", required = false)
     protected String msgPrefix;
 
     /**
      * Message suffix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgSuffix", defaultValue = "", required = false)
     protected String msgSuffix;
 
     /**
      * Component used to prompt for input.
      */
     @Component
     protected Prompter prompter;
 
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
     @Component
     protected ArtifactResolver artifactResolver;
 
     /**
      * @parameter default-value="${project.artifacts}"
      * @required
      * @readonly
      */
     protected Collection artifacts;
 
     /**
      * @parameter expression="${localRepository}"
      */
     protected ArtifactRepository localRepository;
 
     /**
      * @parameter expression="${project.remoteArtifactRepositories}"
      */
     protected List remoteArtifactRepositories;
 
 //    @Component
 //    protected MavenProjectBuilder projectBuilder;
 //    @Component
 //    protected DefaultProjectBuilder projectBuilder;
 //    /**
 //     * @parameter property="plugin"
 //     * @required
 //     */
 //    @Component
 //    protected PluginDescriptor pluginDescriptor;
 //
     /**
      * The projects in the reactor.
      */
     @Parameter(defaultValue = "${reactorProjects}", readonly = true, required = true)
     protected List<MavenProject> reactorProjects;
 
     /**
      * The project builder
      */
     @Component
     private ProjectBuilder projectBuilder;
 
     /**
      * The project currently being build.
      *
      * @parameter expression="${project}"
      * @required
      * @readonly
      */
     @Component
     protected MavenProject project;
 
     /**
      * The current Maven session.
      *
      * @parameter expression="${session}"
      * @required
      * @readonly
      */
     @Component
     protected MavenSession session;
 
     /**
      * The Maven BuildPluginManager component.
      *
      * @component
      * @required
      */
     @Component
     protected BuildPluginManager pluginManager;
 
+//    @Parameter(defaultValue = "${basedir}", readonly = true, required = true)
+//    protected File basedir;
+//    @Component
+//    protected Settings settings;
     private GitflowInit init;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     public void execute() throws MojoExecutionException, MojoFailureException {
         StaticLoggerBinder.getSingleton().setMavenLog(this.getLog());
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             LOG.debug("Gitflow pom  '" + project.getBasedir() + "'");
         }
 
         GitflowInit gitflowInit = getGitflowInit();
 
         gitflowInit.requireGitRepo();
 
         if (!gitflowInit.gitflowIsInitialized()) {
             try {
                 gitflowInit.cmdDefault();
             } catch (GitflowException ex) {
                 throw new MojoExecutionException("Failed to inintialise Gitflow " + ex.getMessage(), ex);
             }
         }
 
         gitflowInit.requireCleanWorkingTree();
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     protected final GitflowInit getGitflowInit() {
         if (null == init) {
             LOG.info("Initialising Gitflow");
             init = new GitflowInit();
             init.setRepoDir(getProject().getBasedir());
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
 
             /* root Git directory may not be the pom directory */
             String dotGitDir = init.executeLocal("git rev-parse --git-dir");
             File dotGitFolder = new File(dotGitDir);
             assert dotGitFolder.exists();
             init.setRepoDir(dotGitFolder.getParentFile());
         }
         return init;
     }
 
     protected final void setVersion(String version) throws MojoExecutionException, MojoFailureException {
         LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
 
         for (MavenProject mavenProject : reactorProjects) {
             LOG.debug("Calling versions-maven-plugin:set on " + mavenProject.getArtifactId());
             session.setCurrentProject(mavenProject);
             executeMojo(
                     plugin(
                             groupId("org.codehaus.mojo"),
                             artifactId("versions-maven-plugin"),
                             version("2.1")
                     ),
                     goal("set"),
                     configuration(
                             element(name("generateBackupPoms"), "false"),
                             element(name("newVersion"), version)
                     ),
                     executionEnvironment(
                             mavenProject,
                             session,
                             pluginManager
                     )
             );
         }
         LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change " + version + " to origin. ExitCode:" + exitCode);
                 }
             }
         }
         /* We don't want to fail maybe the version was manually set correctly */
 //        else {
 //            throw new MojoFailureException("Failed to update poms to version " + version);
 //        }
     }
 
     protected final void setNextVersions(Boolean allowSnapshots, Boolean updateParent) throws MojoExecutionException, MojoFailureException {
         LOG.debug("setNextVersions");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
 
         if (updateParent) {
             LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:update-parent updateParent={}", updateParent);
             executeMojo(
                     plugin(
                             groupId("org.codehaus.mojo"),
                             artifactId("versions-maven-plugin"),
                             version("2.1")
                     ),
                     goal("update-parent"),
                     configuration(
                             element(name("generateBackupPoms"), "false"),
                             element(name("allowSnapshots"), allowSnapshots.toString())
                     ),
                     executionEnvironment(
                             rootProject,
                             session,
                             pluginManager
                     )
             );
             LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:update-parent");
         }
 
         LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:use-next-versions allowSnapshots={}", allowSnapshots);
         for (MavenProject mavenProject : reactorProjects) {
             LOG.debug("Calling use-next-versions on " + mavenProject.getArtifactId());
             session.setCurrentProject(mavenProject);
             executeMojo(
                     plugin(
                             groupId("org.codehaus.mojo"),
                             artifactId("versions-maven-plugin"),
                             version("2.1")
                     ),
                     goal("use-next-versions"),
                     configuration(
                             element(name("generateBackupPoms"), "false"),
                             element(name("allowSnapshots"), allowSnapshots.toString())
                     ),
                     executionEnvironment(
                             mavenProject,
                             session,
                             pluginManager
                     )
             );
         }
         LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:use-next-versions");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg;
             if (allowSnapshots) {
                 msg = getMsgPrefix() + "Replaces any release versions with the next snapshot version (if it has been deployed)." + getMsgSuffix();
             } else {
                 msg = getMsgPrefix() + "Replaces snapshot versions with the corresponding release version" + getMsgSuffix();
             }
 
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change to origin. ExitCode:" + exitCode);
                 }
             }
         }
     }
 
-    protected final void clean() throws MojoExecutionException, MojoFailureException {
-        LOG.debug("START org.apache.maven.plugins:maven-clean-plugin:2.5:clean");
-        MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
-        session.setCurrentProject(rootProject);
-        session.setProjects(reactorProjects);
-        for (MavenProject mavenProject : reactorProjects) {
-            LOG.debug("Calling maven-clean-plugin on " + mavenProject.getArtifactId());
-            session.setCurrentProject(mavenProject);
-            executeMojo(
-                    plugin(
-                            groupId("org.apache.maven.plugins"),
-                            artifactId("maven-clean-plugin"),
-                            version("2.5")
-                    ),
-                    goal("clean"),
-                    configuration(
-                            element(name("skip"), "false")
-                    ),
-                    executionEnvironment(
-                            mavenProject,
-                            session,
-                            pluginManager
-                    )
-            );
-        }
-        LOG.debug("DONE org.apache.maven.plugins:maven-clean-plugin:2.5:clean");
-    }
-
-    protected final void install() throws MojoExecutionException, MojoFailureException {
-        LOG.debug("START org.apache.maven.plugins:maven-install-plugin:2.5.1:install");
-        MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
-        session.setCurrentProject(rootProject);
-        session.setProjects(reactorProjects);
-        for (MavenProject mavenProject : reactorProjects) {
-            LOG.debug("Calling maven-install-plugin on " + mavenProject.getArtifactId());
-            session.setCurrentProject(mavenProject);
-            executeMojo(
-                    plugin(
-                            groupId("org.apache.maven.plugins"),
-                            artifactId("maven-install-plugin"),
-                            version("2.5.1")
-                    ),
-                    goal("install"),
-                    configuration(
-                            element(name("skip"), "false")
-                    ),
-                    executionEnvironment(
-                            mavenProject,
-                            session,
-                            pluginManager
-                    )
-            );
-        }
-        LOG.debug("DONE org.apache.maven.plugins:maven-install-plugin:2.5.1:install");
-    }
+    protected final void runGoals(String goals, List<String> additionalArgs) throws MojoExecutionException, MojoFailureException {
+        LOG.debug("START executing " + goals + " with args " + additionalArgs);
 
-    protected final void deploy() throws MojoExecutionException, MojoFailureException {
-        LOG.debug("START org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
-        session.setCurrentProject(rootProject);
-        session.setProjects(reactorProjects);
-        for (MavenProject mavenProject : reactorProjects) {
-            LOG.debug("Calling maven-deploy-plugin on " + mavenProject.getArtifactId());
-            session.setCurrentProject(mavenProject);
-            executeMojo(
-                    plugin(
-                            groupId("org.apache.maven.plugins"),
-                            artifactId("maven-deploy-plugin"),
-                            version("2.8.1")
-                    ),
-                    goal("deploy"),
-                    configuration(
-                            element(name("skip"), "false"),
-                            element(name("retryFailedDeploymentCount"), "1")
-                    ),
-                    executionEnvironment(
-                            mavenProject,
-                            session,
-                            pluginManager
-                    )
-            );
+        File basedir = rootProject.getBasedir();
+
+        ReleaseResult result = new ReleaseResult();
+        ReleaseEnvironment env = new DefaultReleaseEnvironment();
+        env.setSettings(session.getSettings());
+        MavenExecutor mavenExecutor = mavenExecutors.get(env.getMavenExecutorId());
+        
+        Joiner joiner = Joiner.on(" ").skipNulls();
+        String additionalArguments = joiner.join(additionalArgs);
+        LOG.debug("additionalArguments " + additionalArguments);
+        
+        try {
+            mavenExecutor.executeGoals(basedir, goals, env, false, additionalArguments, result);
+        } catch (MavenExecutorException ex) {
+            throw new MojoExecutionException(result.getOutput(), ex);
         }
-        LOG.debug("DONE org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy");
+        LOG.debug("DONE executing" + goals);
     }
 
     protected final String getReleaseVersion(String version) throws MojoFailureException {
         LOG.debug("Current Develop version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
             LOG.debug("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
     protected final void checkForSnapshotDependencies() throws MojoExecutionException {
         LOG.info("Checking for SNAPSHOT dependencies");
         for (MavenProject mavenProject : reactorProjects) {
             DependencyManagement dependencyManagement = mavenProject.getDependencyManagement();
             if (null != dependencyManagement) {
                 checkForSnapshot(dependencyManagement.getDependencies());
             }
             checkForSnapshot(mavenProject.getDependencies());
         }
     }
 
     private void checkForSnapshot(List<Dependency> dependencies) throws MojoExecutionException {
         Boolean hasSnapshotDependency = false;
         for (Dependency dependency : dependencies) {
             String version = dependency.getVersion();
             Matcher versionMatcher = matchSnapshotRegex.matcher(version);
             if (versionMatcher.find() && versionMatcher.end() == version.length()) {
                 LOG.error("Found SNAPSHOT dependency " + dependency.getGroupId() + ":" + dependency.getArtifactId() + ":" + version);
                 hasSnapshotDependency = true;
             }
         }
         if (hasSnapshotDependency) {
             throw new MojoExecutionException("Cannot start release because SNAPSHOT dependencies exist");
         }
     }
 
     protected final void reloadReactorProjects() throws MojoExecutionException {
         LOG.debug("Reloading poms...");
 
         List<MavenProject> newReactorProjects;
         try {
             newReactorProjects = buildReactorProjects();
         } catch (ProjectBuildingException e) {
             LOG.error("Re-parse aborted due to malformed pom.xml file(s)", e);
             throw new MojoExecutionException("Re-parse aborted due to malformed pom.xml file(s)", e);
         } catch (CycleDetectedException e) {
             LOG.error("Re-parse aborted due to dependency cycle in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to dependency cycle in project model", e);
         } catch (DuplicateProjectException e) {
             LOG.error("Re-parse aborted due to duplicate projects in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to duplicate projects in project model", e);
         } catch (Exception e) {
             LOG.error("Re-parse aborted due a problem that prevented sorting the project model", e);
             throw new MojoExecutionException("Re-parse aborted due a problem that prevented sorting the project model", e);
         }
         MavenProject newProject = findProject(newReactorProjects, this.project);
         if (newProject == null) {
             throw new MojoExecutionException("A pom.xml change appears to have removed " + this.project.getId() + " from the build plan.");
         }
 
         this.project = newProject;
         this.reactorProjects = newReactorProjects;
 
         LOG.debug("Reloading poms complete...");
     }
 
     private List<MavenProject> buildReactorProjects() throws Exception {
 
         List<MavenProject> projects = new ArrayList<MavenProject>();
         for (MavenProject p : reactorProjects) {
             ProjectBuildingRequest request = new DefaultProjectBuildingRequest();
 
             request.setProcessPlugins(true);
             request.setProfiles(request.getProfiles());
             request.setActiveProfileIds(session.getRequest().getActiveProfiles());
             request.setInactiveProfileIds(session.getRequest().getInactiveProfiles());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setSystemProperties(session.getSystemProperties());
             request.setUserProperties(session.getUserProperties());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setPluginArtifactRepositories(session.getRequest().getPluginArtifactRepositories());
             request.setRepositorySession(session.getRepositorySession());
             request.setLocalRepository(localRepository);
             request.setBuildStartTime(session.getRequest().getStartTime());
             request.setResolveDependencies(true);
             request.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_STRICT);
             projects.add(projectBuilder.build(p.getFile(), request).getProject());
         }
         return new ProjectSorter(projects).getSortedProjects();
     }
 
     private MavenProject findProject(List<MavenProject> newReactorProjects, MavenProject oldProject) {
         for (MavenProject newProject : newReactorProjects) {
             if (oldProject.getGroupId().equals(newProject.getGroupId())
                     && oldProject.getArtifactId().equals(newProject.getArtifactId())) {
                 return newProject;
             }
         }
         return null;
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/DebuggingMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/DebuggingMojo.java
new file mode 100644
index 0000000..f0c6fdd
--- /dev/null
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/DebuggingMojo.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2014 Desmond Kirrane.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.dkirrane.maven.plugins.ggitflow;
+
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.plugin.MojoFailureException;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ * Mojo used for Testing
+ */
+//@Mojo(name = "debug-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
+public class DebuggingMojo extends AbstractGitflowMojo {
+
+    private static final Logger LOG = LoggerFactory.getLogger(DebuggingMojo.class.getName());
+
+    @Override
+    public void execute() throws MojoExecutionException, MojoFailureException {
+        super.execute();
+        
+        reloadReactorProjects();
+        
+        setVersion("1.4");
+        
+        runGoals("clean deploy", DEFAULT_DEPLOY_ARGS);  
+    }
+}
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
index 39bd22c..3c944c4 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
@@ -20,2 +20,3 @@ import com.dkirrane.gitflow.groovy.ex.GitflowException;
 import com.dkirrane.gitflow.groovy.ex.GitflowMergeConflictException;
+import com.google.common.collect.ImmutableList;
 import java.util.List;
@@ -31,134 +32,146 @@ import org.slf4j.LoggerFactory;
 /**
  * Merges a feature branch back into the develop.
  */
 @Mojo(name = "feature-finish", aggregator = true)
 public class FeatureFinishMojo extends AbstractFeatureMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(FeatureFinishMojo.class.getName());
 
     /**
      * If <code>true</code>, the feature branch will be rebased onto develop,
      * then finish will fast-forward merge the feature branch back onto develop.
      *
      * @since 1.2
      */
     @Parameter(property = "isRebase", defaultValue = "false", required = false)
     private boolean isRebase;
 
 //    No good way to handle Interactive rebase from a Maven plugin
 //    /**
 //     * If <code>true</code>, and <code>isRebase</code> is true, then an interactive rebase is
 //     * performed for the feature branch.
 //     *
 //     * @since 1.2
 //     */
 //    @Parameter(property = "isInteractive", defaultValue = "false", required = false)
     private final boolean isInteractive = false;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "false", required = false)
     private Boolean skipBuild;
+    
+    /**
+     * Skips any tests during <code>mvn install</code>
+     *
+     * @since 1.2
+     */
+    @Parameter(property = "skipTests", defaultValue = "false", required = false)
+    private Boolean skipTests;    
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the branch will not be deleted after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keep;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         LOG.debug("Finishing feature");
 
         List<String> featureBranches = getGitflowInit().gitLocalFeatureBranches();
 
         if (null == featureBranches || featureBranches.isEmpty()) {
             throw new MojoFailureException("No local feature branches exit!");
         }
 
         String featureBranchPrefix = getFeatureBranchPrefix();
         if (StringUtils.isBlank(featureName)) {
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (currentBranch.startsWith(featureBranchPrefix)) {
                 featureName = currentBranch;
             } else {
                 featureName = featureBranches.get(0);
             }
         } else {
             featureName = getFeatureName(featureName);
         }
 
         featureName = promptForExistingFeatureName(featureBranches, featureName);
 
         LOG.info("Finishing feature '{}'", featureName);
 
         if (enableFeatureVersions) {
             /* Switch to develop branch and get its current version */
             getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
             reloadReactorProjects();
             String developVersion = project.getVersion();
             LOG.debug("develop version = " + developVersion);
 
             /* Switch to feature branch and get its current version */
             getGitflowInit().executeLocal("git checkout " + featureName);
             reloadReactorProjects();
             String featureVersion = project.getVersion();
             LOG.debug("feature version = " + featureVersion);
 
             setVersion(developVersion);
         }
 
-        if (!skipBuild) {
-            clean();
-            install();
+        if (skipBuild == false) {
+            ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
+            additionalArgs.addAll(DEFAULT_INSTALL_ARGS);
+            if (skipTests) {
+                additionalArgs.add("-DskipTests=true");
+            }              
+            runGoals("clean install", additionalArgs.build());
         } else {
-            LOG.debug("Skipping both install and deploy");
-        }
+            LOG.debug("Skipping mvn install for feature " + featureName);
+        }        
 
         GitflowFeature gitflowFeature = new GitflowFeature();
         gitflowFeature.setInit(getGitflowInit());
         gitflowFeature.setMsgPrefix(getMsgPrefix());
         gitflowFeature.setMsgSuffix(getMsgSuffix());
         gitflowFeature.setSquash(squash);
         gitflowFeature.setKeep(keep);
         gitflowFeature.setIsRebase(isRebase);
         gitflowFeature.setIsInteractive(isInteractive);
 
         try {
             gitflowFeature.finish(featureName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
     }
 
     private String promptForExistingFeatureName(List<String> featureBranches, String defaultFeatureName) throws MojoFailureException {
         String message = "Please select a feature branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, featureBranches, defaultFeatureName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading feature name from command line " + e.getMessage());
         }
 
         return name.trim();
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
index 8b005f3..a813363 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
@@ -20,2 +20,4 @@ import com.dkirrane.gitflow.groovy.ex.GitflowException;
 import com.dkirrane.gitflow.groovy.ex.GitflowMergeConflictException;
+import static com.dkirrane.maven.plugins.ggitflow.AbstractGitflowMojo.DEFAULT_DEPLOY_ARGS;
+import com.google.common.collect.ImmutableList;
 import java.util.List;
@@ -27,2 +29,3 @@ import org.apache.maven.plugins.annotations.Parameter;
 import org.codehaus.plexus.components.interactivity.PrompterException;
+import org.codehaus.plexus.util.StringUtils;
 import org.slf4j.Logger;
@@ -31,181 +34,232 @@ import org.slf4j.LoggerFactory;
 /**
  * Merges a hotfix branch back into the develop and master branch and then
  * creates a tag for the hotfix on master.
  */
 @Mojo(name = "hotfix-finish", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class HotfixFinishMojo extends AbstractHotfixMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(HotfixFinishMojo.class.getName());
 
     protected String hotfixName;
 
     /**
      * If <code>true</code>, the hotfix can still finish even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private boolean allowSnapshots;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "false", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any calls to <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipDeploy", defaultValue = "false", required = false)
     private Boolean skipDeploy;
 
+    /**
+     * Skips any tests during <code>mvn install</code> and
+     * <code>mvn deploy</code>
+     *
+     * @since 1.2
+     */
+    @Parameter(property = "skipTests", defaultValue = "false", required = false)
+    private Boolean skipTests;
+
+    /**
+     * Whether to use the release profile that adds sources and javadoc to the
+     * released artifact, if appropriate. If set to true, the hotfix-finish will
+     * set the property "performRelease" to true, which activates the profile
+     * "release-profile", which is inherited from the super pom.
+     *
+     * @since 1.2
+     */
+    @Parameter(property = "useReleaseProfile", defaultValue = "true", required = false)
+    private Boolean useReleaseProfile;
+
+    /**
+     * Comma separated profiles to enable on deployment, in addition to active
+     * profiles for project execution.
+     *
+     * @since 1.2
+     */
+    @Parameter(property = "releaseProfiles", defaultValue = "", required = false)
+    private String releaseProfiles;
+
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the branch will not be deleted after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keep;
 
     /**
      * If <code>true</code>, the hotfix tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         LOG.debug("Finishing hotfix");
 
         /* Get hotfix branch name */
         List<String> hotfixBranches = getGitflowInit().gitLocalHotfixBranches();
         if (hotfixBranches.isEmpty()) {
             throw new MojoFailureException("Could not find hotfix branch!");
         } else if (hotfixBranches.size() == 1) {
             hotfixName = hotfixBranches.get(0);
         } else {
             hotfixName = promptForExistingHotfixName(hotfixBranches, hotfixName);
         }
 
         LOG.info("Finishing hotfix '{}'", hotfixName);
 
         /* Switch to hotfix branch and set poms to hotfix version */
         getGitflowInit().executeLocal("git checkout " + hotfixName);
         reloadReactorProjects();
         String hotfixVersion = project.getVersion();
         LOG.debug("hotfix snapshot version = " + hotfixVersion);
         String hotfixReleaseVersion = getReleaseVersion(hotfixVersion);
         LOG.debug("hotfix release version = " + hotfixReleaseVersion);
         setVersion(hotfixReleaseVersion);
 
         /* Switch to develop branch and get current develop version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         LOG.debug("develop version = " + developVersion);
 
         /* Set develop branch to hotfix version to prevent merge conflicts */
         setVersion(hotfixReleaseVersion);
 
         if (!allowSnapshots) {
             checkForSnapshotDependencies();
         }
 
         /* finish hotfix */
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
         gitflowHotfix.setSquash(squash);
         gitflowHotfix.setKeep(keep);
         gitflowHotfix.setSign(sign);
         gitflowHotfix.setSigningkey(signingkey);
 
         try {
             gitflowHotfix.finish(hotfixName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             LOG.error("Merge conflicts exist.", gmce);
             throw new MojoFailureException(gmce.getMessage());
 
 //            LOG.info("Attempting to auto-resolve any pom version conflicts.", gmce);
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            fixPomMergeConflicts.setInit(getGitflowInit());
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
         /* Set develop branch back to original develop version */
         setVersion(developVersion);
         if (getGitflowInit().gitRemoteBranchExists(developBranch)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + developBranch);
         }
 
         /* Switch to hotfix tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + hotfixReleaseVersion);
         reloadReactorProjects();
 
         /* install or deploy */
         if (skipDeploy == false) {
-            clean();
-            deploy();
+            String goals = "clean deploy";
+            if (project.getDistributionManagement() != null
+                    && project.getDistributionManagement().getSite() != null) {
+                goals += " site-deploy";
+            }
+
+            ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
+            additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
+            if (skipTests) {
+                additionalArgs.add("-DskipTests=true");
+            }
+            if (useReleaseProfile) {
+                additionalArgs.add("-DperformRelease=true");
+            }
+            if (StringUtils.isNotBlank(releaseProfiles)) {
+                Iterable<String> profiles = PROFILES_SPLITTER.split(releaseProfiles);                
+                additionalArgs.add("-P " + PROFILES_JOINER.join(profiles));
+            }
+            runGoals(goals, additionalArgs.build());
         } else if (skipBuild == false) {
-            clean();
-            install();
+            ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
+            additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
+            if (skipTests) {
+                additionalArgs.add("-DskipTests=true");
+            }
+            runGoals("clean install", additionalArgs.build());
         } else {
-            LOG.debug("Skipping both install and deploy");
+            LOG.debug("Skipping both install and deploy for hotfix tag " + hotfixName);
         }
+
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingHotfixName(List<String> hotfixBranches, String defaultHotfixName) throws MojoFailureException {
         String message = "Please select a hotfix branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, hotfixBranches, defaultHotfixName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading hotfix name from command line " + e.getMessage());
         }
 
         return name;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index 7aed200..03a4410 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -20,2 +20,5 @@ import com.dkirrane.gitflow.groovy.ex.GitflowException;
 import com.dkirrane.gitflow.groovy.ex.GitflowMergeConflictException;
+import static com.dkirrane.maven.plugins.ggitflow.AbstractGitflowMojo.DEFAULT_DEPLOY_ARGS;
+import static com.dkirrane.maven.plugins.ggitflow.AbstractGitflowMojo.PROFILES_SPLITTER;
+import com.google.common.collect.ImmutableList;
 import java.util.List;
@@ -26,2 +29,3 @@ import org.apache.maven.plugins.annotations.Parameter;
 import org.codehaus.plexus.components.interactivity.PrompterException;
+import org.codehaus.plexus.util.StringUtils;
 import org.jfrog.hudson.util.GenericArtifactVersion;
@@ -29,228 +33,278 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
-import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 
 /**
  * Merges a release branch back into the develop and master branch and then
  * creates a tag for the release on master.
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(ReleaseFinishMojo.class.getName());
 
     /**
      * If <code>true</code>, the release can still finish even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private boolean allowSnapshots;
 
     /**
      * If the project has a parent with a release version it will be replaced
      * with the next <code>-SNAPSHOT</code> version (if it has been deployed).
      * This action is performed on the develop branch after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "updateParent", defaultValue = "true", required = false)
     private boolean updateParent;
 
     /**
      * On the release branch before finish is called any dependencies with a
      * <code>-SNAPSHOT</code> version are replaced with the corresponding
      * release version (if it has been released).
      *
      * On the develop branch after the merge any dependencies with a release
      * version are replaced with the next <code>-SNAPSHOT</code> version (if it
      * has been deployed).
      *
      * @since 1.2
      */
     @Parameter(property = "updateDependencies", defaultValue = "true", required = false)
     private boolean updateDependencies;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "false", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any calls to <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipDeploy", defaultValue = "false", required = false)
     private Boolean skipDeploy;
 
+    /**
+     * Skips any tests during <code>mvn install</code> and
+     * <code>mvn deploy</code>
+     *
+     * @since 1.2
+     */
+    @Parameter(property = "skipTests", defaultValue = "false", required = false)
+    private Boolean skipTests;
+
+    /**
+     * Whether to use the release profile that adds sources and javadoc to the
+     * released artifact, if appropriate. If set to true, the release-finish
+     * will set the property "performRelease" to true, which activates the
+     * profile "release-profile", which is inherited from the super pom.
+     *
+     * @since 1.2
+     */
+    @Parameter(property = "useReleaseProfile", defaultValue = "true", required = false)
+    private Boolean useReleaseProfile;
+
+    /**
+     * Comma separated profiles to enable on deployment, in addition to active
+     * profiles for project execution.
+     *
+     * @since 1.2
+     */
+    @Parameter(property = "releaseProfiles", defaultValue = "", required = false)
+    private String releaseProfiles;
+
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the branch will not be deleted after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keep;
 
     /**
      * If <code>true</code>, the release tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         LOG.debug("Finishing release");
 
         /* Get release branch name */
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
         if (releaseBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         } else if (releaseBranches.size() == 1) {
             releaseName = releaseBranches.get(0);
         } else {
             releaseName = promptForExistingReleaseName(releaseBranches, releaseName);
         }
 
         LOG.info("Finishing release '{}'", releaseName);
 
         /* Switch to develop branch and get its current version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         LOG.debug("develop version = " + developVersion);
 
         /* Switch to release branch and set poms to release version */
         getGitflowInit().executeLocal("git checkout " + releaseName);
         reloadReactorProjects();
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(project.getVersion());
         String releaseVersion;
-        if("SNAPSHOT".equals(artifactVersion.getBuildSpecifier())){
+        if ("SNAPSHOT".equals(artifactVersion.getBuildSpecifier())) {
             releaseVersion = getReleaseVersion(project.getVersion());
         } else {
             releaseVersion = project.getVersion();
         }
         LOG.debug("release version = " + releaseVersion);
 
         setVersion(releaseVersion);
 
         /* Update release branch dependencies to release version */
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions(false, updateParent);
         }
 
         if (!allowSnapshots) {
             reloadReactorProjects();
             checkForSnapshotDependencies();
         }
 
         /* finish release */
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setSquash(squash);
         gitflowRelease.setKeep(keep);
         gitflowRelease.setSign(sign);
         gitflowRelease.setSigningkey(signingkey);
 
         /* 1. merge to master */
         try {
             gitflowRelease.finishToMaster(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
 
         /* 2. make versions in release and develop branches match to avoid conflicts */
         getGitflowInit().executeLocal("git checkout " + releaseName);
         reloadReactorProjects();
         setVersion(developVersion);
 
         /* 3. merge to develop */
         try {
             gitflowRelease.finishToDevelop(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
         /* Update develop branch dependencies to next snapshot version (if deployed) */
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions(true, updateParent);
         }
 
         /* Switch to release tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);
         reloadReactorProjects();
         String tagVersion = project.getVersion();
         LOG.debug("tag version = " + tagVersion);
 
         /* install or deploy */
         if (skipDeploy == false) {
-            clean();
-            deploy();
+            String goals = "clean deploy";
+            if (project.getDistributionManagement() != null
+                    && project.getDistributionManagement().getSite() != null) {
+                goals += " site-deploy";
+            }
+
+            ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
+            additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
+            if (skipTests) {
+                additionalArgs.add("-DskipTests=true");
+            }
+            if (useReleaseProfile) {
+                additionalArgs.add("-DperformRelease=true");
+            }
+            if (StringUtils.isNotBlank(releaseProfiles)) {
+                Iterable<String> profiles = PROFILES_SPLITTER.split(releaseProfiles);                
+                additionalArgs.add("-P " + PROFILES_JOINER.join(profiles));
+            }
+            runGoals(goals, additionalArgs.build());
         } else if (skipBuild == false) {
-            clean();
-            install();
+            ImmutableList.Builder<String> additionalArgs = new ImmutableList.Builder<String>();
+            additionalArgs.addAll(DEFAULT_DEPLOY_ARGS);
+            if (skipTests) {
+                additionalArgs.add("-DskipTests=true");
+            }
+            runGoals("clean install", additionalArgs.build());
         } else {
-            LOG.debug("Skipping both install and deploy for tag " + tagVersion);
+            LOG.debug("Skipping both install and deploy for release tag " + releaseName);
         }
+
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingReleaseName(List<String> releaseBranches, String defaultReleaseName) throws MojoFailureException {
         String message = "Please select a release branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, releaseBranches, defaultReleaseName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading release name from command line " + e.getMessage());
         }
 
         return name;
     }
 }

commit cb3b9735c7206db94e34975f8caa4b0b0ed8513a
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Fri Mar 14 00:59:27 2014 +0000

    Updates to support pumping both develop and release version on release start.

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index e6af76c..956e59b 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -66,474 +66,493 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 public class AbstractGitflowMojo extends AbstractMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(AbstractGitflowMojo.class.getName());
 
     public final Pattern matchSnapshotRegex = Pattern.compile("-SNAPSHOT");
 
     /**
      * Gitflow branches and prefixes to use.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
     /**
      * Message prefix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgPrefix", defaultValue = "", required = false)
     protected String msgPrefix;
 
     /**
      * Message suffix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgSuffix", defaultValue = "", required = false)
     protected String msgSuffix;
 
     /**
      * Component used to prompt for input.
      */
     @Component
     protected Prompter prompter;
 
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
     @Component
     protected ArtifactResolver artifactResolver;
 
     /**
      * @parameter default-value="${project.artifacts}"
      * @required
      * @readonly
      */
     protected Collection artifacts;
 
     /**
      * @parameter expression="${localRepository}"
      */
     protected ArtifactRepository localRepository;
 
     /**
      * @parameter expression="${project.remoteArtifactRepositories}"
      */
     protected List remoteArtifactRepositories;
 
 //    @Component
 //    protected MavenProjectBuilder projectBuilder;
 //    @Component
 //    protected DefaultProjectBuilder projectBuilder;
 //    /**
 //     * @parameter property="plugin"
 //     * @required
 //     */
 //    @Component
 //    protected PluginDescriptor pluginDescriptor;
 //
     /**
      * The projects in the reactor.
      */
     @Parameter(defaultValue = "${reactorProjects}", readonly = true, required = true)
     protected List<MavenProject> reactorProjects;
 
     /**
      * The project builder
      */
     @Component
     private ProjectBuilder projectBuilder;
 
     /**
      * The project currently being build.
      *
      * @parameter expression="${project}"
      * @required
      * @readonly
      */
     @Component
     protected MavenProject project;
 
     /**
      * The current Maven session.
      *
      * @parameter expression="${session}"
      * @required
      * @readonly
      */
     @Component
     protected MavenSession session;
 
     /**
      * The Maven BuildPluginManager component.
      *
      * @component
      * @required
      */
     @Component
     protected BuildPluginManager pluginManager;
 
     private GitflowInit init;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     public void execute() throws MojoExecutionException, MojoFailureException {
         StaticLoggerBinder.getSingleton().setMavenLog(this.getLog());
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             LOG.debug("Gitflow pom  '" + project.getBasedir() + "'");
         }
 
         GitflowInit gitflowInit = getGitflowInit();
 
         gitflowInit.requireGitRepo();
 
         if (!gitflowInit.gitflowIsInitialized()) {
             try {
                 gitflowInit.cmdDefault();
             } catch (GitflowException ex) {
                 throw new MojoExecutionException("Failed to inintialise Gitflow " + ex.getMessage(), ex);
             }
         }
 
         gitflowInit.requireCleanWorkingTree();
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     protected final GitflowInit getGitflowInit() {
         if (null == init) {
             LOG.info("Initialising Gitflow");
             init = new GitflowInit();
             init.setRepoDir(getProject().getBasedir());
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
 
             /* root Git directory may not be the pom directory */
             String dotGitDir = init.executeLocal("git rev-parse --git-dir");
             File dotGitFolder = new File(dotGitDir);
             assert dotGitFolder.exists();
             init.setRepoDir(dotGitFolder.getParentFile());
         }
         return init;
     }
 
     protected final void setVersion(String version) throws MojoExecutionException, MojoFailureException {
         LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
-        executeMojo(
-                plugin(
-                        groupId("org.codehaus.mojo"),
-                        artifactId("versions-maven-plugin"),
-                        version("2.1")
-                ),
-                goal("set"),
-                configuration(
-                        element(name("generateBackupPoms"), "false"),
-                        element(name("newVersion"), version)
-                ),
-                executionEnvironment(
-                        rootProject,
-                        session,
-                        pluginManager
-                )
-        );
+        session.setCurrentProject(rootProject);
+        session.setProjects(reactorProjects);
+
+        for (MavenProject mavenProject : reactorProjects) {
+            LOG.debug("Calling versions-maven-plugin:set on " + mavenProject.getArtifactId());
+            session.setCurrentProject(mavenProject);
+            executeMojo(
+                    plugin(
+                            groupId("org.codehaus.mojo"),
+                            artifactId("versions-maven-plugin"),
+                            version("2.1")
+                    ),
+                    goal("set"),
+                    configuration(
+                            element(name("generateBackupPoms"), "false"),
+                            element(name("newVersion"), version)
+                    ),
+                    executionEnvironment(
+                            mavenProject,
+                            session,
+                            pluginManager
+                    )
+            );
+        }
         LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change " + version + " to origin. ExitCode:" + exitCode);
                 }
             }
         }
         /* We don't want to fail maybe the version was manually set correctly */
 //        else {
 //            throw new MojoFailureException("Failed to update poms to version " + version);
 //        }
     }
 
     protected final void setNextVersions(Boolean allowSnapshots, Boolean updateParent) throws MojoExecutionException, MojoFailureException {
         LOG.debug("setNextVersions");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
 
         if (updateParent) {
             LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:update-parent updateParent={}", updateParent);
             executeMojo(
                     plugin(
                             groupId("org.codehaus.mojo"),
                             artifactId("versions-maven-plugin"),
                             version("2.1")
                     ),
                     goal("update-parent"),
                     configuration(
                             element(name("generateBackupPoms"), "false"),
                             element(name("allowSnapshots"), allowSnapshots.toString())
                     ),
                     executionEnvironment(
                             rootProject,
                             session,
                             pluginManager
                     )
             );
             LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:update-parent");
         }
 
         LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:use-next-versions allowSnapshots={}", allowSnapshots);
         for (MavenProject mavenProject : reactorProjects) {
             LOG.debug("Calling use-next-versions on " + mavenProject.getArtifactId());
             session.setCurrentProject(mavenProject);
             executeMojo(
                     plugin(
                             groupId("org.codehaus.mojo"),
                             artifactId("versions-maven-plugin"),
                             version("2.1")
                     ),
                     goal("use-next-versions"),
                     configuration(
                             element(name("generateBackupPoms"), "false"),
                             element(name("allowSnapshots"), allowSnapshots.toString())
                     ),
                     executionEnvironment(
                             mavenProject,
                             session,
                             pluginManager
                     )
             );
         }
         LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:use-next-versions");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg;
             if (allowSnapshots) {
                 msg = getMsgPrefix() + "Replaces any release versions with the next snapshot version (if it has been deployed)." + getMsgSuffix();
             } else {
                 msg = getMsgPrefix() + "Replaces snapshot versions with the corresponding release version" + getMsgSuffix();
             }
 
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change to origin. ExitCode:" + exitCode);
                 }
             }
         }
     }
 
     protected final void clean() throws MojoExecutionException, MojoFailureException {
         LOG.debug("START org.apache.maven.plugins:maven-clean-plugin:2.5:clean");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
-        executeMojo(
-                plugin(
-                        groupId("org.apache.maven.plugins"),
-                        artifactId("maven-clean-plugin"),
-                        version("2.5")
-                ),
-                goal("clean"),
-                configuration(
-                        element(name("skip"), "false")
-                ),
-                executionEnvironment(
-                        rootProject,
-                        session,
-                        pluginManager
-                )
-        );
+        for (MavenProject mavenProject : reactorProjects) {
+            LOG.debug("Calling maven-clean-plugin on " + mavenProject.getArtifactId());
+            session.setCurrentProject(mavenProject);
+            executeMojo(
+                    plugin(
+                            groupId("org.apache.maven.plugins"),
+                            artifactId("maven-clean-plugin"),
+                            version("2.5")
+                    ),
+                    goal("clean"),
+                    configuration(
+                            element(name("skip"), "false")
+                    ),
+                    executionEnvironment(
+                            mavenProject,
+                            session,
+                            pluginManager
+                    )
+            );
+        }
         LOG.debug("DONE org.apache.maven.plugins:maven-clean-plugin:2.5:clean");
     }
 
     protected final void install() throws MojoExecutionException, MojoFailureException {
         LOG.debug("START org.apache.maven.plugins:maven-install-plugin:2.5.1:install");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
-        executeMojo(
-                plugin(
-                        groupId("org.apache.maven.plugins"),
-                        artifactId("maven-install-plugin"),
-                        version("2.5.1")
-                ),
-                goal("install"),
-                configuration(
-                        element(name("skip"), "false")
-                ),
-                executionEnvironment(
-                        rootProject,
-                        session,
-                        pluginManager
-                )
-        );
+        for (MavenProject mavenProject : reactorProjects) {
+            LOG.debug("Calling maven-install-plugin on " + mavenProject.getArtifactId());
+            session.setCurrentProject(mavenProject);
+            executeMojo(
+                    plugin(
+                            groupId("org.apache.maven.plugins"),
+                            artifactId("maven-install-plugin"),
+                            version("2.5.1")
+                    ),
+                    goal("install"),
+                    configuration(
+                            element(name("skip"), "false")
+                    ),
+                    executionEnvironment(
+                            mavenProject,
+                            session,
+                            pluginManager
+                    )
+            );
+        }
         LOG.debug("DONE org.apache.maven.plugins:maven-install-plugin:2.5.1:install");
     }
 
     protected final void deploy() throws MojoExecutionException, MojoFailureException {
         LOG.debug("START org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
-        executeMojo(
-                plugin(
-                        groupId("org.apache.maven.plugins"),
-                        artifactId("maven-deploy-plugin"),
-                        version("2.8.1")
-                ),
-                goal("deploy"),
-                configuration(
-                        element(name("skip"), "false"),
-                        element(name("retryFailedDeploymentCount"), "1")
-                ),
-                executionEnvironment(
-                        rootProject,
-                        session,
-                        pluginManager
-                )
-        );
+        for (MavenProject mavenProject : reactorProjects) {
+            LOG.debug("Calling maven-deploy-plugin on " + mavenProject.getArtifactId());
+            session.setCurrentProject(mavenProject);
+            executeMojo(
+                    plugin(
+                            groupId("org.apache.maven.plugins"),
+                            artifactId("maven-deploy-plugin"),
+                            version("2.8.1")
+                    ),
+                    goal("deploy"),
+                    configuration(
+                            element(name("skip"), "false"),
+                            element(name("retryFailedDeploymentCount"), "1")
+                    ),
+                    executionEnvironment(
+                            mavenProject,
+                            session,
+                            pluginManager
+                    )
+            );
+        }
         LOG.debug("DONE org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy");
     }
 
     protected final String getReleaseVersion(String version) throws MojoFailureException {
         LOG.debug("Current Develop version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
             LOG.debug("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
     protected final void checkForSnapshotDependencies() throws MojoExecutionException {
         LOG.info("Checking for SNAPSHOT dependencies");
         for (MavenProject mavenProject : reactorProjects) {
             DependencyManagement dependencyManagement = mavenProject.getDependencyManagement();
             if (null != dependencyManagement) {
                 checkForSnapshot(dependencyManagement.getDependencies());
             }
             checkForSnapshot(mavenProject.getDependencies());
         }
     }
 
     private void checkForSnapshot(List<Dependency> dependencies) throws MojoExecutionException {
         Boolean hasSnapshotDependency = false;
         for (Dependency dependency : dependencies) {
             String version = dependency.getVersion();
             Matcher versionMatcher = matchSnapshotRegex.matcher(version);
             if (versionMatcher.find() && versionMatcher.end() == version.length()) {
                 LOG.error("Found SNAPSHOT dependency " + dependency.getGroupId() + ":" + dependency.getArtifactId() + ":" + version);
                 hasSnapshotDependency = true;
             }
         }
         if (hasSnapshotDependency) {
             throw new MojoExecutionException("Cannot start release because SNAPSHOT dependencies exist");
         }
     }
 
     protected final void reloadReactorProjects() throws MojoExecutionException {
         LOG.debug("Reloading poms...");
 
         List<MavenProject> newReactorProjects;
         try {
             newReactorProjects = buildReactorProjects();
         } catch (ProjectBuildingException e) {
             LOG.error("Re-parse aborted due to malformed pom.xml file(s)", e);
             throw new MojoExecutionException("Re-parse aborted due to malformed pom.xml file(s)", e);
         } catch (CycleDetectedException e) {
             LOG.error("Re-parse aborted due to dependency cycle in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to dependency cycle in project model", e);
         } catch (DuplicateProjectException e) {
             LOG.error("Re-parse aborted due to duplicate projects in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to duplicate projects in project model", e);
         } catch (Exception e) {
             LOG.error("Re-parse aborted due a problem that prevented sorting the project model", e);
             throw new MojoExecutionException("Re-parse aborted due a problem that prevented sorting the project model", e);
         }
         MavenProject newProject = findProject(newReactorProjects, this.project);
         if (newProject == null) {
             throw new MojoExecutionException("A pom.xml change appears to have removed " + this.project.getId() + " from the build plan.");
         }
 
         this.project = newProject;
         this.reactorProjects = newReactorProjects;
 
         LOG.debug("Reloading poms complete...");
     }
 
     private List<MavenProject> buildReactorProjects() throws Exception {
 
         List<MavenProject> projects = new ArrayList<MavenProject>();
         for (MavenProject p : reactorProjects) {
             ProjectBuildingRequest request = new DefaultProjectBuildingRequest();
 
             request.setProcessPlugins(true);
             request.setProfiles(request.getProfiles());
             request.setActiveProfileIds(session.getRequest().getActiveProfiles());
             request.setInactiveProfileIds(session.getRequest().getInactiveProfiles());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setSystemProperties(session.getSystemProperties());
             request.setUserProperties(session.getUserProperties());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setPluginArtifactRepositories(session.getRequest().getPluginArtifactRepositories());
             request.setRepositorySession(session.getRepositorySession());
             request.setLocalRepository(localRepository);
             request.setBuildStartTime(session.getRequest().getStartTime());
             request.setResolveDependencies(true);
             request.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_STRICT);
             projects.add(projectBuilder.build(p.getFile(), request).getProject());
         }
         return new ProjectSorter(projects).getSortedProjects();
     }
 
     private MavenProject findProject(List<MavenProject> newReactorProjects, MavenProject oldProject) {
         for (MavenProject newProject : newReactorProjects) {
             if (oldProject.getGroupId().equals(newProject.getGroupId())
                     && oldProject.getArtifactId().equals(newProject.getArtifactId())) {
                 return newProject;
             }
         }
         return null;
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index 2462854..7aed200 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -29,220 +29,228 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
+import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 
 /**
  * Merges a release branch back into the develop and master branch and then
  * creates a tag for the release on master.
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(ReleaseFinishMojo.class.getName());
 
     /**
      * If <code>true</code>, the release can still finish even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private boolean allowSnapshots;
 
     /**
      * If the project has a parent with a release version it will be replaced
      * with the next <code>-SNAPSHOT</code> version (if it has been deployed).
      * This action is performed on the develop branch after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "updateParent", defaultValue = "true", required = false)
     private boolean updateParent;
 
     /**
      * On the release branch before finish is called any dependencies with a
      * <code>-SNAPSHOT</code> version are replaced with the corresponding
      * release version (if it has been released).
      *
      * On the develop branch after the merge any dependencies with a release
      * version are replaced with the next <code>-SNAPSHOT</code> version (if it
      * has been deployed).
      *
      * @since 1.2
      */
     @Parameter(property = "updateDependencies", defaultValue = "true", required = false)
     private boolean updateDependencies;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "false", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any calls to <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipDeploy", defaultValue = "false", required = false)
     private Boolean skipDeploy;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the branch will not be deleted after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keep;
 
     /**
      * If <code>true</code>, the release tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         LOG.debug("Finishing release");
 
         /* Get release branch name */
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
         if (releaseBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         } else if (releaseBranches.size() == 1) {
             releaseName = releaseBranches.get(0);
         } else {
             releaseName = promptForExistingReleaseName(releaseBranches, releaseName);
         }
 
         LOG.info("Finishing release '{}'", releaseName);
 
         /* Switch to develop branch and get its current version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         LOG.debug("develop version = " + developVersion);
 
         /* Switch to release branch and set poms to release version */
         getGitflowInit().executeLocal("git checkout " + releaseName);
         reloadReactorProjects();
-        String releaseVersion = getReleaseVersion(project.getVersion());
+        GenericArtifactVersion artifactVersion = new GenericArtifactVersion(project.getVersion());
+        String releaseVersion;
+        if("SNAPSHOT".equals(artifactVersion.getBuildSpecifier())){
+            releaseVersion = getReleaseVersion(project.getVersion());
+        } else {
+            releaseVersion = project.getVersion();
+        }
         LOG.debug("release version = " + releaseVersion);
 
         setVersion(releaseVersion);
 
-        /* Update dependencies to release version */
+        /* Update release branch dependencies to release version */
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions(false, updateParent);
         }
 
         if (!allowSnapshots) {
             reloadReactorProjects();
             checkForSnapshotDependencies();
         }
 
         /* finish release */
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setSquash(squash);
         gitflowRelease.setKeep(keep);
         gitflowRelease.setSign(sign);
         gitflowRelease.setSigningkey(signingkey);
 
+        /* 1. merge to master */
+        try {
+            gitflowRelease.finishToMaster(releaseName);
+        } catch (GitflowException ge) {
+            throw new MojoFailureException(ge.getMessage());
+        } catch (GitflowMergeConflictException gmce) {
+            throw new MojoFailureException(gmce.getMessage());
+        }
+
+        /* 2. make versions in release and develop branches match to avoid conflicts */
+        getGitflowInit().executeLocal("git checkout " + releaseName);
+        reloadReactorProjects();
+        setVersion(developVersion);
+
+        /* 3. merge to develop */
         try {
-            gitflowRelease.finish(releaseName);
+            gitflowRelease.finishToDevelop(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
-        /* set poms to next develop version */
-        String nextDevelopVersion = getNextDevelopVersion(developVersion);
-        reloadReactorProjects();
-        setVersion(nextDevelopVersion);
 
-        /* Update dependencies to next snapshot version if deployed */
+        /* Update develop branch dependencies to next snapshot version (if deployed) */
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions(true, updateParent);
         }
 
         /* Switch to release tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);
         reloadReactorProjects();
         String tagVersion = project.getVersion();
         LOG.debug("tag version = " + tagVersion);
 
         /* install or deploy */
         if (skipDeploy == false) {
             clean();
             deploy();
         } else if (skipBuild == false) {
             clean();
             install();
         } else {
             LOG.debug("Skipping both install and deploy for tag " + tagVersion);
         }
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingReleaseName(List<String> releaseBranches, String defaultReleaseName) throws MojoFailureException {
         String message = "Please select a release branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, releaseBranches, defaultReleaseName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading release name from command line " + e.getMessage());
         }
 
         return name;
     }
-
-    private String getNextDevelopVersion(String developVersion) {
-        LOG.debug("Current Develop version '" + developVersion + "'");
-
-        GenericArtifactVersion artifactVersion = new GenericArtifactVersion(developVersion);
-        artifactVersion.upgradeLeastSignificantPrimaryNumber();
-
-        return artifactVersion.toString();
-    }
-
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
index 90b9903..b0a2858 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
@@ -32,126 +32,136 @@ import org.slf4j.LoggerFactory;
 /**
  * Creates a new release branch off of the develop branch.
  */
 @Mojo(name = "release-start", aggregator = true, requiresDependencyResolution = ResolutionScope.COMPILE_PLUS_RUNTIME, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class ReleaseStartMojo extends AbstractReleaseMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(ReleaseStartMojo.class.getName());
 
     /**
      * Whether to run the plugin in interactive mode or not. The default is to
      * run without interaction when possible.
      *
      * @since 1.2
      */
     @Parameter(property = "interactive", defaultValue = "false", required = false)
     protected boolean interactive;
 
     /**
      * If the project has a parent with a <code>-SNAPSHOT</code> version it will
      * be replaced with the corresponding release version (if it has been
      * released). This action is performed on the release branch after it is
      * created.
      *
      * @since 1.2
      */
     @Parameter(property = "updateParent", defaultValue = "false", required = false)
     private boolean updateParent;
 
     /**
      * Any dependencies with a <code>-SNAPSHOT</code> version are replaced with
      * the corresponding release version (if it has been released). This action
      * is performed on the release branch after it is created.
      *
      * @since 1.2
      */
     @Parameter(property = "updateDependencies", defaultValue = "false", required = false)
     private boolean updateDependencies;
 
     /**
      * The commit to start the release branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     private String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         /* Switch to develop branch and get its current version */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
         reloadReactorProjects();
+
         String developVersion = project.getVersion();
-        LOG.debug("develop version = " + developVersion);
+        LOG.debug("current develop version = " + developVersion);
+
+        String nextDevelopVersion = getNextDevelopVersion(developVersion);
+        LOG.debug("next develop version = " + developVersion);
 
         /* Get suggested release version */
         String releaseVersion = getReleaseVersion(developVersion);
         LOG.debug("release version = " + releaseVersion);
-//        String nextDevelopmentVersion = getNextDevelopmentVersion(project.getVersion());
 
         /* create release branch */
         String prefix = getReleaseBranchPrefix();
         if (interactive && StringUtils.isBlank(releaseName)) {
             String message = "What is the release branch name? " + prefix;
             try {
                 releaseName = prompter.prompt(message, releaseVersion);
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading release name from command line " + ex.getMessage(), ex);
             }
         } else {
             releaseName = releaseVersion;
         }
 
         if (StringUtils.isBlank(releaseName)) {
             throw new MojoFailureException("Parameter <releaseName> cannot be null or empty.");
         }
 
         try {
             new GenericArtifactVersion(releaseName);
         } catch (IllegalArgumentException e) {
             throw new MojoExecutionException("Provided releaseName " + releaseName + " is not a valid Maven version.");
         }
 
         LOG.info("Starting release '" + releaseName + "'");
         LOG.debug("msgPrefix '" + getMsgPrefix() + "'");
         LOG.debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setPush(pushReleases);
         gitflowRelease.setStartCommit(startCommit);
 
         try {
             gitflowRelease.start(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         // current branch should be the release branch
         String releaseBranch = getGitflowInit().gitCurrentBranch();
         if (!releaseBranch.startsWith(prefix)) {
             throw new MojoFailureException("Failed to create release version.");
         }
 
-        /* Update dependencies to release version */
+        /* Update release branch dependencies to release version */
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions(false, updateParent);
         }
 
-//        // checkout develop branch and update it's version
-//        String developBranch = (String) getGitflowInit().getDevelopBrnName();
-//        getGitflowInit().executeLocal("git checkout " + developBranch);
-//        setVersion(nextDevelopmentVersion);
-//
-//        // checkout release branch again
-//        getGitflowInit().executeLocal("git checkout " + releaseBranch);
+        // checkout develop branch and update it's version
+        String developBranch = (String) getGitflowInit().getDevelopBrnName();
+        getGitflowInit().executeLocal("git checkout " + developBranch);
+        setVersion(nextDevelopVersion);
+
+        // checkout release branch again
+        getGitflowInit().executeLocal("git checkout " + releaseBranch);
     }
 
     public String getReleaseName() {
         return releaseName;
     }
+
+    private String getNextDevelopVersion(String developVersion) {
+        GenericArtifactVersion artifactVersion = new GenericArtifactVersion(developVersion);
+        artifactVersion.upgradeLeastSignificantPrimaryNumber();
+
+        return artifactVersion.toString();
+    }
 }

commit 55829fe619092be6390a20153a86fa4b38056043
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Thu Mar 13 20:39:26 2014 +0000

    update parent no

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
index e93c3ce..90b9903 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
@@ -32,126 +32,126 @@ import org.slf4j.LoggerFactory;
 /**
  * Creates a new release branch off of the develop branch.
  */
 @Mojo(name = "release-start", aggregator = true, requiresDependencyResolution = ResolutionScope.COMPILE_PLUS_RUNTIME, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class ReleaseStartMojo extends AbstractReleaseMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(ReleaseStartMojo.class.getName());
 
     /**
      * Whether to run the plugin in interactive mode or not. The default is to
      * run without interaction when possible.
      *
      * @since 1.2
      */
     @Parameter(property = "interactive", defaultValue = "false", required = false)
     protected boolean interactive;
 
     /**
      * If the project has a parent with a <code>-SNAPSHOT</code> version it will
      * be replaced with the corresponding release version (if it has been
      * released). This action is performed on the release branch after it is
      * created.
      *
      * @since 1.2
      */
-    @Parameter(property = "updateParent", defaultValue = "true", required = false)
+    @Parameter(property = "updateParent", defaultValue = "false", required = false)
     private boolean updateParent;
 
     /**
      * Any dependencies with a <code>-SNAPSHOT</code> version are replaced with
      * the corresponding release version (if it has been released). This action
      * is performed on the release branch after it is created.
      *
      * @since 1.2
      */
     @Parameter(property = "updateDependencies", defaultValue = "false", required = false)
     private boolean updateDependencies;
 
     /**
      * The commit to start the release branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     private String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         /* Switch to develop branch and get its current version */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
         reloadReactorProjects();
         String developVersion = project.getVersion();
         LOG.debug("develop version = " + developVersion);
 
         /* Get suggested release version */
         String releaseVersion = getReleaseVersion(developVersion);
         LOG.debug("release version = " + releaseVersion);
 //        String nextDevelopmentVersion = getNextDevelopmentVersion(project.getVersion());
 
         /* create release branch */
         String prefix = getReleaseBranchPrefix();
         if (interactive && StringUtils.isBlank(releaseName)) {
             String message = "What is the release branch name? " + prefix;
             try {
                 releaseName = prompter.prompt(message, releaseVersion);
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading release name from command line " + ex.getMessage(), ex);
             }
         } else {
             releaseName = releaseVersion;
         }
 
         if (StringUtils.isBlank(releaseName)) {
             throw new MojoFailureException("Parameter <releaseName> cannot be null or empty.");
         }
 
         try {
             new GenericArtifactVersion(releaseName);
         } catch (IllegalArgumentException e) {
             throw new MojoExecutionException("Provided releaseName " + releaseName + " is not a valid Maven version.");
         }
 
         LOG.info("Starting release '" + releaseName + "'");
         LOG.debug("msgPrefix '" + getMsgPrefix() + "'");
         LOG.debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setPush(pushReleases);
         gitflowRelease.setStartCommit(startCommit);
 
         try {
             gitflowRelease.start(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         // current branch should be the release branch
         String releaseBranch = getGitflowInit().gitCurrentBranch();
         if (!releaseBranch.startsWith(prefix)) {
             throw new MojoFailureException("Failed to create release version.");
         }
 
         /* Update dependencies to release version */
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions(false, updateParent);
         }
 
 //        // checkout develop branch and update it's version
 //        String developBranch = (String) getGitflowInit().getDevelopBrnName();
 //        getGitflowInit().executeLocal("git checkout " + developBranch);
 //        setVersion(nextDevelopmentVersion);
 //
 //        // checkout release branch again
 //        getGitflowInit().executeLocal("git checkout " + releaseBranch);
     }
 
     public String getReleaseName() {
         return releaseName;
     }
 }

commit 8cf618bd98f7afac6dcd90d559cb1fcced1e02e6
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Thu Mar 13 20:36:16 2014 +0000

    Only updateDependencies when we run release finish

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index df3bfde..2462854 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -31,207 +31,218 @@ import org.slf4j.LoggerFactory;
 /**
  * Merges a release branch back into the develop and master branch and then
  * creates a tag for the release on master.
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(ReleaseFinishMojo.class.getName());
 
     /**
      * If <code>true</code>, the release can still finish even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private boolean allowSnapshots;
 
     /**
      * If the project has a parent with a release version it will be replaced
      * with the next <code>-SNAPSHOT</code> version (if it has been deployed).
      * This action is performed on the develop branch after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "updateParent", defaultValue = "true", required = false)
     private boolean updateParent;
 
     /**
-     * Any dependencies with a release version are replaced with the next
-     * <code>-SNAPSHOT</code> version (if it has been deployed). This action is
-     * performed on the develop branch after the merge.
+     * On the release branch before finish is called any dependencies with a
+     * <code>-SNAPSHOT</code> version are replaced with the corresponding
+     * release version (if it has been released).
+     *
+     * On the develop branch after the merge any dependencies with a release
+     * version are replaced with the next <code>-SNAPSHOT</code> version (if it
+     * has been deployed).
      *
      * @since 1.2
      */
     @Parameter(property = "updateDependencies", defaultValue = "true", required = false)
     private boolean updateDependencies;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "false", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any calls to <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipDeploy", defaultValue = "false", required = false)
     private Boolean skipDeploy;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the branch will not be deleted after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keep;
 
     /**
      * If <code>true</code>, the release tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         LOG.debug("Finishing release");
 
         /* Get release branch name */
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
         if (releaseBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         } else if (releaseBranches.size() == 1) {
             releaseName = releaseBranches.get(0);
         } else {
             releaseName = promptForExistingReleaseName(releaseBranches, releaseName);
         }
 
         LOG.info("Finishing release '{}'", releaseName);
 
         /* Switch to develop branch and get its current version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         LOG.debug("develop version = " + developVersion);
 
         /* Switch to release branch and set poms to release version */
         getGitflowInit().executeLocal("git checkout " + releaseName);
         reloadReactorProjects();
         String releaseVersion = getReleaseVersion(project.getVersion());
         LOG.debug("release version = " + releaseVersion);
 
         setVersion(releaseVersion);
 
+        /* Update dependencies to release version */
+        if (updateDependencies) {
+            reloadReactorProjects();
+            setNextVersions(false, updateParent);
+        }
+
         if (!allowSnapshots) {
+            reloadReactorProjects();
             checkForSnapshotDependencies();
         }
 
         /* finish release */
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setSquash(squash);
         gitflowRelease.setKeep(keep);
         gitflowRelease.setSign(sign);
         gitflowRelease.setSigningkey(signingkey);
 
         try {
             gitflowRelease.finish(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
         /* set poms to next develop version */
         String nextDevelopVersion = getNextDevelopVersion(developVersion);
         reloadReactorProjects();
         setVersion(nextDevelopVersion);
 
         /* Update dependencies to next snapshot version if deployed */
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions(true, updateParent);
         }
 
         /* Switch to release tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);
         reloadReactorProjects();
         String tagVersion = project.getVersion();
         LOG.debug("tag version = " + tagVersion);
 
         /* install or deploy */
         if (skipDeploy == false) {
             clean();
             deploy();
         } else if (skipBuild == false) {
             clean();
             install();
         } else {
             LOG.debug("Skipping both install and deploy for tag " + tagVersion);
         }
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingReleaseName(List<String> releaseBranches, String defaultReleaseName) throws MojoFailureException {
         String message = "Please select a release branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, releaseBranches, defaultReleaseName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading release name from command line " + e.getMessage());
         }
 
         return name;
     }
 
     private String getNextDevelopVersion(String developVersion) {
         LOG.debug("Current Develop version '" + developVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(developVersion);
         artifactVersion.upgradeLeastSignificantPrimaryNumber();
 
         return artifactVersion.toString();
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
index 75f6417..e93c3ce 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
@@ -32,126 +32,126 @@ import org.slf4j.LoggerFactory;
 /**
  * Creates a new release branch off of the develop branch.
  */
 @Mojo(name = "release-start", aggregator = true, requiresDependencyResolution = ResolutionScope.COMPILE_PLUS_RUNTIME, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class ReleaseStartMojo extends AbstractReleaseMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(ReleaseStartMojo.class.getName());
 
     /**
      * Whether to run the plugin in interactive mode or not. The default is to
      * run without interaction when possible.
      *
      * @since 1.2
      */
     @Parameter(property = "interactive", defaultValue = "false", required = false)
     protected boolean interactive;
 
     /**
      * If the project has a parent with a <code>-SNAPSHOT</code> version it will
      * be replaced with the corresponding release version (if it has been
      * released). This action is performed on the release branch after it is
      * created.
      *
      * @since 1.2
      */
     @Parameter(property = "updateParent", defaultValue = "true", required = false)
     private boolean updateParent;
 
     /**
      * Any dependencies with a <code>-SNAPSHOT</code> version are replaced with
      * the corresponding release version (if it has been released). This action
      * is performed on the release branch after it is created.
      *
      * @since 1.2
      */
-    @Parameter(property = "updateDependencies", defaultValue = "true", required = false)
+    @Parameter(property = "updateDependencies", defaultValue = "false", required = false)
     private boolean updateDependencies;
 
     /**
      * The commit to start the release branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     private String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         /* Switch to develop branch and get its current version */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
         reloadReactorProjects();
         String developVersion = project.getVersion();
         LOG.debug("develop version = " + developVersion);
 
         /* Get suggested release version */
         String releaseVersion = getReleaseVersion(developVersion);
         LOG.debug("release version = " + releaseVersion);
 //        String nextDevelopmentVersion = getNextDevelopmentVersion(project.getVersion());
 
         /* create release branch */
         String prefix = getReleaseBranchPrefix();
         if (interactive && StringUtils.isBlank(releaseName)) {
             String message = "What is the release branch name? " + prefix;
             try {
                 releaseName = prompter.prompt(message, releaseVersion);
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading release name from command line " + ex.getMessage(), ex);
             }
         } else {
             releaseName = releaseVersion;
         }
 
         if (StringUtils.isBlank(releaseName)) {
             throw new MojoFailureException("Parameter <releaseName> cannot be null or empty.");
         }
 
         try {
             new GenericArtifactVersion(releaseName);
         } catch (IllegalArgumentException e) {
             throw new MojoExecutionException("Provided releaseName " + releaseName + " is not a valid Maven version.");
         }
 
         LOG.info("Starting release '" + releaseName + "'");
         LOG.debug("msgPrefix '" + getMsgPrefix() + "'");
         LOG.debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setPush(pushReleases);
         gitflowRelease.setStartCommit(startCommit);
 
         try {
             gitflowRelease.start(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         // current branch should be the release branch
         String releaseBranch = getGitflowInit().gitCurrentBranch();
         if (!releaseBranch.startsWith(prefix)) {
             throw new MojoFailureException("Failed to create release version.");
         }
 
         /* Update dependencies to release version */
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions(false, updateParent);
         }
 
 //        // checkout develop branch and update it's version
 //        String developBranch = (String) getGitflowInit().getDevelopBrnName();
 //        getGitflowInit().executeLocal("git checkout " + developBranch);
 //        setVersion(nextDevelopmentVersion);
 //
 //        // checkout release branch again
 //        getGitflowInit().executeLocal("git checkout " + releaseBranch);
     }
 
     public String getReleaseName() {
         return releaseName;
     }
 }

commit 60a58d3488334525b274fdddc93c8c65d24fc2e4
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Thu Mar 13 20:16:52 2014 +0000

    non interactive release start by default

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
index 174910c..8b005f3 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
@@ -31,181 +31,181 @@ import org.slf4j.LoggerFactory;
 /**
  * Merges a hotfix branch back into the develop and master branch and then
  * creates a tag for the hotfix on master.
  */
 @Mojo(name = "hotfix-finish", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class HotfixFinishMojo extends AbstractHotfixMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(HotfixFinishMojo.class.getName());
 
     protected String hotfixName;
 
     /**
      * If <code>true</code>, the hotfix can still finish even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private boolean allowSnapshots;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "false", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any calls to <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipDeploy", defaultValue = "false", required = false)
     private Boolean skipDeploy;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the branch will not be deleted after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keep;
 
     /**
      * If <code>true</code>, the hotfix tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         LOG.debug("Finishing hotfix");
 
         /* Get hotfix branch name */
         List<String> hotfixBranches = getGitflowInit().gitLocalHotfixBranches();
         if (hotfixBranches.isEmpty()) {
-            throw new MojoFailureException("Could not find release branch!");
+            throw new MojoFailureException("Could not find hotfix branch!");
         } else if (hotfixBranches.size() == 1) {
             hotfixName = hotfixBranches.get(0);
         } else {
             hotfixName = promptForExistingHotfixName(hotfixBranches, hotfixName);
         }
 
         LOG.info("Finishing hotfix '{}'", hotfixName);
 
         /* Switch to hotfix branch and set poms to hotfix version */
         getGitflowInit().executeLocal("git checkout " + hotfixName);
         reloadReactorProjects();
         String hotfixVersion = project.getVersion();
         LOG.debug("hotfix snapshot version = " + hotfixVersion);
         String hotfixReleaseVersion = getReleaseVersion(hotfixVersion);
         LOG.debug("hotfix release version = " + hotfixReleaseVersion);
         setVersion(hotfixReleaseVersion);
 
         /* Switch to develop branch and get current develop version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         LOG.debug("develop version = " + developVersion);
 
         /* Set develop branch to hotfix version to prevent merge conflicts */
         setVersion(hotfixReleaseVersion);
 
         if (!allowSnapshots) {
             checkForSnapshotDependencies();
         }
 
         /* finish hotfix */
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
         gitflowHotfix.setSquash(squash);
         gitflowHotfix.setKeep(keep);
         gitflowHotfix.setSign(sign);
         gitflowHotfix.setSigningkey(signingkey);
 
         try {
             gitflowHotfix.finish(hotfixName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             LOG.error("Merge conflicts exist.", gmce);
             throw new MojoFailureException(gmce.getMessage());
 
 //            LOG.info("Attempting to auto-resolve any pom version conflicts.", gmce);
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            fixPomMergeConflicts.setInit(getGitflowInit());
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
         /* Set develop branch back to original develop version */
         setVersion(developVersion);
         if (getGitflowInit().gitRemoteBranchExists(developBranch)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + developBranch);
         }
 
         /* Switch to hotfix tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + hotfixReleaseVersion);
         reloadReactorProjects();
 
         /* install or deploy */
         if (skipDeploy == false) {
             clean();
             deploy();
         } else if (skipBuild == false) {
             clean();
             install();
         } else {
             LOG.debug("Skipping both install and deploy");
         }
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingHotfixName(List<String> hotfixBranches, String defaultHotfixName) throws MojoFailureException {
         String message = "Please select a hotfix branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, hotfixBranches, defaultHotfixName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading hotfix name from command line " + e.getMessage());
         }
 
         return name;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
index 1ca7592..75f6417 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
@@ -32,114 +32,126 @@ import org.slf4j.LoggerFactory;
 /**
  * Creates a new release branch off of the develop branch.
  */
 @Mojo(name = "release-start", aggregator = true, requiresDependencyResolution = ResolutionScope.COMPILE_PLUS_RUNTIME, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class ReleaseStartMojo extends AbstractReleaseMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(ReleaseStartMojo.class.getName());
 
+    /**
+     * Whether to run the plugin in interactive mode or not. The default is to
+     * run without interaction when possible.
+     *
+     * @since 1.2
+     */
+    @Parameter(property = "interactive", defaultValue = "false", required = false)
+    protected boolean interactive;
+
     /**
      * If the project has a parent with a <code>-SNAPSHOT</code> version it will
      * be replaced with the corresponding release version (if it has been
      * released). This action is performed on the release branch after it is
      * created.
      *
      * @since 1.2
      */
     @Parameter(property = "updateParent", defaultValue = "true", required = false)
     private boolean updateParent;
 
     /**
      * Any dependencies with a <code>-SNAPSHOT</code> version are replaced with
      * the corresponding release version (if it has been released). This action
      * is performed on the release branch after it is created.
      *
      * @since 1.2
      */
     @Parameter(property = "updateDependencies", defaultValue = "true", required = false)
     private boolean updateDependencies;
 
     /**
      * The commit to start the release branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     private String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         /* Switch to develop branch and get its current version */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
         reloadReactorProjects();
         String developVersion = project.getVersion();
         LOG.debug("develop version = " + developVersion);
 
         /* Get suggested release version */
         String releaseVersion = getReleaseVersion(developVersion);
         LOG.debug("release version = " + releaseVersion);
 //        String nextDevelopmentVersion = getNextDevelopmentVersion(project.getVersion());
 
         /* create release branch */
         String prefix = getReleaseBranchPrefix();
-        if (StringUtils.isBlank(releaseName)) {
+        if (interactive && StringUtils.isBlank(releaseName)) {
             String message = "What is the release branch name? " + prefix;
             try {
                 releaseName = prompter.prompt(message, releaseVersion);
-                if (StringUtils.isBlank(releaseName)) {
-                    throw new MojoFailureException("Parameter <releaseName> cannot be null or empty.");
-                }
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading release name from command line " + ex.getMessage(), ex);
             }
+        } else {
+            releaseName = releaseVersion;
+        }
+
+        if (StringUtils.isBlank(releaseName)) {
+            throw new MojoFailureException("Parameter <releaseName> cannot be null or empty.");
         }
 
         try {
             new GenericArtifactVersion(releaseName);
         } catch (IllegalArgumentException e) {
             throw new MojoExecutionException("Provided releaseName " + releaseName + " is not a valid Maven version.");
         }
 
         LOG.info("Starting release '" + releaseName + "'");
         LOG.debug("msgPrefix '" + getMsgPrefix() + "'");
         LOG.debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setPush(pushReleases);
         gitflowRelease.setStartCommit(startCommit);
 
         try {
             gitflowRelease.start(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         // current branch should be the release branch
         String releaseBranch = getGitflowInit().gitCurrentBranch();
         if (!releaseBranch.startsWith(prefix)) {
             throw new MojoFailureException("Failed to create release version.");
-        }        
+        }
 
         /* Update dependencies to release version */
         if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions(false, updateParent);
         }
 
 //        // checkout develop branch and update it's version
 //        String developBranch = (String) getGitflowInit().getDevelopBrnName();
 //        getGitflowInit().executeLocal("git checkout " + developBranch);
 //        setVersion(nextDevelopmentVersion);
 //
 //        // checkout release branch again
 //        getGitflowInit().executeLocal("git checkout " + releaseBranch);
     }
 
     public String getReleaseName() {
         return releaseName;
     }
 }

commit 99d94c9ebea310e6e2d3e27770b8004c3e5fca77
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Thu Mar 13 01:07:08 2014 +0000

    Update parent version

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index 7da261f..e6af76c 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -66,452 +66,474 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 public class AbstractGitflowMojo extends AbstractMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(AbstractGitflowMojo.class.getName());
 
     public final Pattern matchSnapshotRegex = Pattern.compile("-SNAPSHOT");
 
     /**
      * Gitflow branches and prefixes to use.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
     /**
      * Message prefix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgPrefix", defaultValue = "", required = false)
     protected String msgPrefix;
 
     /**
      * Message suffix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgSuffix", defaultValue = "", required = false)
     protected String msgSuffix;
 
     /**
      * Component used to prompt for input.
      */
     @Component
     protected Prompter prompter;
 
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
     @Component
     protected ArtifactResolver artifactResolver;
 
     /**
      * @parameter default-value="${project.artifacts}"
      * @required
      * @readonly
      */
     protected Collection artifacts;
 
     /**
      * @parameter expression="${localRepository}"
      */
     protected ArtifactRepository localRepository;
 
     /**
      * @parameter expression="${project.remoteArtifactRepositories}"
      */
     protected List remoteArtifactRepositories;
 
 //    @Component
 //    protected MavenProjectBuilder projectBuilder;
 //    @Component
 //    protected DefaultProjectBuilder projectBuilder;
 //    /**
 //     * @parameter property="plugin"
 //     * @required
 //     */
 //    @Component
 //    protected PluginDescriptor pluginDescriptor;
 //
     /**
      * The projects in the reactor.
      */
     @Parameter(defaultValue = "${reactorProjects}", readonly = true, required = true)
     protected List<MavenProject> reactorProjects;
 
     /**
      * The project builder
      */
     @Component
     private ProjectBuilder projectBuilder;
 
     /**
      * The project currently being build.
      *
      * @parameter expression="${project}"
      * @required
      * @readonly
      */
     @Component
     protected MavenProject project;
 
     /**
      * The current Maven session.
      *
      * @parameter expression="${session}"
      * @required
      * @readonly
      */
     @Component
     protected MavenSession session;
 
     /**
      * The Maven BuildPluginManager component.
      *
      * @component
      * @required
      */
     @Component
     protected BuildPluginManager pluginManager;
 
     private GitflowInit init;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     public void execute() throws MojoExecutionException, MojoFailureException {
         StaticLoggerBinder.getSingleton().setMavenLog(this.getLog());
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             LOG.debug("Gitflow pom  '" + project.getBasedir() + "'");
         }
 
         GitflowInit gitflowInit = getGitflowInit();
 
         gitflowInit.requireGitRepo();
 
         if (!gitflowInit.gitflowIsInitialized()) {
             try {
                 gitflowInit.cmdDefault();
             } catch (GitflowException ex) {
                 throw new MojoExecutionException("Failed to inintialise Gitflow " + ex.getMessage(), ex);
             }
         }
 
         gitflowInit.requireCleanWorkingTree();
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     protected final GitflowInit getGitflowInit() {
         if (null == init) {
             LOG.info("Initialising Gitflow");
             init = new GitflowInit();
             init.setRepoDir(getProject().getBasedir());
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
 
             /* root Git directory may not be the pom directory */
             String dotGitDir = init.executeLocal("git rev-parse --git-dir");
             File dotGitFolder = new File(dotGitDir);
             assert dotGitFolder.exists();
             init.setRepoDir(dotGitFolder.getParentFile());
         }
         return init;
     }
 
     protected final void setVersion(String version) throws MojoExecutionException, MojoFailureException {
         LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.codehaus.mojo"),
                         artifactId("versions-maven-plugin"),
                         version("2.1")
                 ),
                 goal("set"),
                 configuration(
                         element(name("generateBackupPoms"), "false"),
                         element(name("newVersion"), version)
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
         LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change " + version + " to origin. ExitCode:" + exitCode);
                 }
             }
         }
         /* We don't want to fail maybe the version was manually set correctly */
 //        else {
 //            throw new MojoFailureException("Failed to update poms to version " + version);
 //        }
     }
 
-    protected final void setNextVersions(Boolean allowSnapshots) throws MojoExecutionException, MojoFailureException {
-        LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:use-next-versions -DallowSnapshots=" + allowSnapshots);
+    protected final void setNextVersions(Boolean allowSnapshots, Boolean updateParent) throws MojoExecutionException, MojoFailureException {
+        LOG.debug("setNextVersions");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
+
+        if (updateParent) {
+            LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:update-parent updateParent={}", updateParent);
+            executeMojo(
+                    plugin(
+                            groupId("org.codehaus.mojo"),
+                            artifactId("versions-maven-plugin"),
+                            version("2.1")
+                    ),
+                    goal("update-parent"),
+                    configuration(
+                            element(name("generateBackupPoms"), "false"),
+                            element(name("allowSnapshots"), allowSnapshots.toString())
+                    ),
+                    executionEnvironment(
+                            rootProject,
+                            session,
+                            pluginManager
+                    )
+            );
+            LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:update-parent");
+        }
+
+        LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:use-next-versions allowSnapshots={}", allowSnapshots);
         for (MavenProject mavenProject : reactorProjects) {
             LOG.debug("Calling use-next-versions on " + mavenProject.getArtifactId());
             session.setCurrentProject(mavenProject);
             executeMojo(
                     plugin(
                             groupId("org.codehaus.mojo"),
                             artifactId("versions-maven-plugin"),
                             version("2.1")
                     ),
                     goal("use-next-versions"),
                     configuration(
                             element(name("generateBackupPoms"), "false"),
-//                            element(name("processDependencies"), "true"),
-//                            element(name("processDependencyManagement"), "true"),
                             element(name("allowSnapshots"), allowSnapshots.toString())
                     ),
                     executionEnvironment(
                             mavenProject,
                             session,
                             pluginManager
                     )
             );
         }
         LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:use-next-versions");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg;
             if (allowSnapshots) {
                 msg = getMsgPrefix() + "Replaces any release versions with the next snapshot version (if it has been deployed)." + getMsgSuffix();
             } else {
                 msg = getMsgPrefix() + "Replaces snapshot versions with the corresponding release version" + getMsgSuffix();
             }
 
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change to origin. ExitCode:" + exitCode);
                 }
             }
         }
     }
 
     protected final void clean() throws MojoExecutionException, MojoFailureException {
         LOG.debug("START org.apache.maven.plugins:maven-clean-plugin:2.5:clean");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-clean-plugin"),
                         version("2.5")
                 ),
                 goal("clean"),
                 configuration(
                         element(name("skip"), "false")
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
         LOG.debug("DONE org.apache.maven.plugins:maven-clean-plugin:2.5:clean");
     }
 
     protected final void install() throws MojoExecutionException, MojoFailureException {
         LOG.debug("START org.apache.maven.plugins:maven-install-plugin:2.5.1:install");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-install-plugin"),
                         version("2.5.1")
                 ),
                 goal("install"),
                 configuration(
                         element(name("skip"), "false")
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
         LOG.debug("DONE org.apache.maven.plugins:maven-install-plugin:2.5.1:install");
     }
 
     protected final void deploy() throws MojoExecutionException, MojoFailureException {
         LOG.debug("START org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-deploy-plugin"),
                         version("2.8.1")
                 ),
                 goal("deploy"),
                 configuration(
                         element(name("skip"), "false"),
                         element(name("retryFailedDeploymentCount"), "1")
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
         LOG.debug("DONE org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy");
     }
 
     protected final String getReleaseVersion(String version) throws MojoFailureException {
         LOG.debug("Current Develop version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
             LOG.debug("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
     protected final void checkForSnapshotDependencies() throws MojoExecutionException {
-        LOG.info("Checking for SNAPSHOT dependencies");       
+        LOG.info("Checking for SNAPSHOT dependencies");
         for (MavenProject mavenProject : reactorProjects) {
             DependencyManagement dependencyManagement = mavenProject.getDependencyManagement();
             if (null != dependencyManagement) {
                 checkForSnapshot(dependencyManagement.getDependencies());
             }
             checkForSnapshot(mavenProject.getDependencies());
         }
     }
 
     private void checkForSnapshot(List<Dependency> dependencies) throws MojoExecutionException {
         Boolean hasSnapshotDependency = false;
         for (Dependency dependency : dependencies) {
             String version = dependency.getVersion();
             Matcher versionMatcher = matchSnapshotRegex.matcher(version);
             if (versionMatcher.find() && versionMatcher.end() == version.length()) {
                 LOG.error("Found SNAPSHOT dependency " + dependency.getGroupId() + ":" + dependency.getArtifactId() + ":" + version);
                 hasSnapshotDependency = true;
             }
         }
         if (hasSnapshotDependency) {
             throw new MojoExecutionException("Cannot start release because SNAPSHOT dependencies exist");
         }
     }
 
     protected final void reloadReactorProjects() throws MojoExecutionException {
         LOG.debug("Reloading poms...");
 
         List<MavenProject> newReactorProjects;
         try {
             newReactorProjects = buildReactorProjects();
         } catch (ProjectBuildingException e) {
             LOG.error("Re-parse aborted due to malformed pom.xml file(s)", e);
             throw new MojoExecutionException("Re-parse aborted due to malformed pom.xml file(s)", e);
         } catch (CycleDetectedException e) {
             LOG.error("Re-parse aborted due to dependency cycle in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to dependency cycle in project model", e);
         } catch (DuplicateProjectException e) {
             LOG.error("Re-parse aborted due to duplicate projects in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to duplicate projects in project model", e);
         } catch (Exception e) {
             LOG.error("Re-parse aborted due a problem that prevented sorting the project model", e);
             throw new MojoExecutionException("Re-parse aborted due a problem that prevented sorting the project model", e);
         }
         MavenProject newProject = findProject(newReactorProjects, this.project);
         if (newProject == null) {
             throw new MojoExecutionException("A pom.xml change appears to have removed " + this.project.getId() + " from the build plan.");
         }
 
         this.project = newProject;
         this.reactorProjects = newReactorProjects;
 
         LOG.debug("Reloading poms complete...");
     }
 
     private List<MavenProject> buildReactorProjects() throws Exception {
 
         List<MavenProject> projects = new ArrayList<MavenProject>();
         for (MavenProject p : reactorProjects) {
             ProjectBuildingRequest request = new DefaultProjectBuildingRequest();
 
             request.setProcessPlugins(true);
             request.setProfiles(request.getProfiles());
             request.setActiveProfileIds(session.getRequest().getActiveProfiles());
             request.setInactiveProfileIds(session.getRequest().getInactiveProfiles());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setSystemProperties(session.getSystemProperties());
             request.setUserProperties(session.getUserProperties());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setPluginArtifactRepositories(session.getRequest().getPluginArtifactRepositories());
             request.setRepositorySession(session.getRepositorySession());
             request.setLocalRepository(localRepository);
             request.setBuildStartTime(session.getRequest().getStartTime());
             request.setResolveDependencies(true);
             request.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_STRICT);
             projects.add(projectBuilder.build(p.getFile(), request).getProject());
         }
         return new ProjectSorter(projects).getSortedProjects();
     }
 
     private MavenProject findProject(List<MavenProject> newReactorProjects, MavenProject oldProject) {
         for (MavenProject newProject : newReactorProjects) {
             if (oldProject.getGroupId().equals(newProject.getGroupId())
                     && oldProject.getArtifactId().equals(newProject.getArtifactId())) {
                 return newProject;
             }
         }
         return null;
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index b295bd3..df3bfde 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -31,197 +31,207 @@ import org.slf4j.LoggerFactory;
 /**
  * Merges a release branch back into the develop and master branch and then
  * creates a tag for the release on master.
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(ReleaseFinishMojo.class.getName());
 
     /**
      * If <code>true</code>, the release can still finish even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private boolean allowSnapshots;
 
+    /**
+     * If the project has a parent with a release version it will be replaced
+     * with the next <code>-SNAPSHOT</code> version (if it has been deployed).
+     * This action is performed on the develop branch after the merge.
+     *
+     * @since 1.2
+     */
+    @Parameter(property = "updateParent", defaultValue = "true", required = false)
+    private boolean updateParent;
+
     /**
      * Any dependencies with a release version are replaced with the next
      * <code>-SNAPSHOT</code> version (if it has been deployed). This action is
      * performed on the develop branch after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "updateDependencies", defaultValue = "true", required = false)
     private boolean updateDependencies;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "false", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any calls to <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipDeploy", defaultValue = "false", required = false)
     private Boolean skipDeploy;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the branch will not be deleted after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keep;
 
     /**
      * If <code>true</code>, the release tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         LOG.debug("Finishing release");
 
         /* Get release branch name */
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
         if (releaseBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         } else if (releaseBranches.size() == 1) {
             releaseName = releaseBranches.get(0);
         } else {
             releaseName = promptForExistingReleaseName(releaseBranches, releaseName);
         }
 
         LOG.info("Finishing release '{}'", releaseName);
 
         /* Switch to develop branch and get its current version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         LOG.debug("develop version = " + developVersion);
 
         /* Switch to release branch and set poms to release version */
         getGitflowInit().executeLocal("git checkout " + releaseName);
         reloadReactorProjects();
         String releaseVersion = getReleaseVersion(project.getVersion());
         LOG.debug("release version = " + releaseVersion);
 
         setVersion(releaseVersion);
 
         if (!allowSnapshots) {
             checkForSnapshotDependencies();
         }
 
         /* finish release */
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setSquash(squash);
         gitflowRelease.setKeep(keep);
         gitflowRelease.setSign(sign);
         gitflowRelease.setSigningkey(signingkey);
 
         try {
             gitflowRelease.finish(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
         /* set poms to next develop version */
         String nextDevelopVersion = getNextDevelopVersion(developVersion);
         reloadReactorProjects();
         setVersion(nextDevelopVersion);
 
         /* Update dependencies to next snapshot version if deployed */
         if (updateDependencies) {
             reloadReactorProjects();
-            setNextVersions(true);
+            setNextVersions(true, updateParent);
         }
 
         /* Switch to release tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);
         reloadReactorProjects();
         String tagVersion = project.getVersion();
         LOG.debug("tag version = " + tagVersion);
 
         /* install or deploy */
         if (skipDeploy == false) {
             clean();
             deploy();
         } else if (skipBuild == false) {
             clean();
             install();
         } else {
             LOG.debug("Skipping both install and deploy for tag " + tagVersion);
         }
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingReleaseName(List<String> releaseBranches, String defaultReleaseName) throws MojoFailureException {
         String message = "Please select a release branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, releaseBranches, defaultReleaseName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading release name from command line " + e.getMessage());
         }
 
         return name;
     }
 
     private String getNextDevelopVersion(String developVersion) {
         LOG.debug("Current Develop version '" + developVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(developVersion);
         artifactVersion.upgradeLeastSignificantPrimaryNumber();
 
         return artifactVersion.toString();
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
index 6bb223f..1ca7592 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
@@ -32,103 +32,114 @@ import org.slf4j.LoggerFactory;
 /**
  * Creates a new release branch off of the develop branch.
  */
 @Mojo(name = "release-start", aggregator = true, requiresDependencyResolution = ResolutionScope.COMPILE_PLUS_RUNTIME, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class ReleaseStartMojo extends AbstractReleaseMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(ReleaseStartMojo.class.getName());
 
+    /**
+     * If the project has a parent with a <code>-SNAPSHOT</code> version it will
+     * be replaced with the corresponding release version (if it has been
+     * released). This action is performed on the release branch after it is
+     * created.
+     *
+     * @since 1.2
+     */
+    @Parameter(property = "updateParent", defaultValue = "true", required = false)
+    private boolean updateParent;
+
     /**
      * Any dependencies with a <code>-SNAPSHOT</code> version are replaced with
      * the corresponding release version (if it has been released). This action
      * is performed on the release branch after it is created.
      *
      * @since 1.2
      */
     @Parameter(property = "updateDependencies", defaultValue = "true", required = false)
     private boolean updateDependencies;
 
     /**
      * The commit to start the release branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     private String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         /* Switch to develop branch and get its current version */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
         reloadReactorProjects();
         String developVersion = project.getVersion();
         LOG.debug("develop version = " + developVersion);
 
         /* Get suggested release version */
         String releaseVersion = getReleaseVersion(developVersion);
         LOG.debug("release version = " + releaseVersion);
 //        String nextDevelopmentVersion = getNextDevelopmentVersion(project.getVersion());
 
         /* create release branch */
         String prefix = getReleaseBranchPrefix();
         if (StringUtils.isBlank(releaseName)) {
             String message = "What is the release branch name? " + prefix;
             try {
                 releaseName = prompter.prompt(message, releaseVersion);
                 if (StringUtils.isBlank(releaseName)) {
                     throw new MojoFailureException("Parameter <releaseName> cannot be null or empty.");
                 }
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading release name from command line " + ex.getMessage(), ex);
             }
         }
 
         try {
             new GenericArtifactVersion(releaseName);
         } catch (IllegalArgumentException e) {
             throw new MojoExecutionException("Provided releaseName " + releaseName + " is not a valid Maven version.");
         }
 
         LOG.info("Starting release '" + releaseName + "'");
         LOG.debug("msgPrefix '" + getMsgPrefix() + "'");
         LOG.debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setPush(pushReleases);
         gitflowRelease.setStartCommit(startCommit);
 
         try {
             gitflowRelease.start(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         // current branch should be the release branch
         String releaseBranch = getGitflowInit().gitCurrentBranch();
         if (!releaseBranch.startsWith(prefix)) {
             throw new MojoFailureException("Failed to create release version.");
-        }
+        }        
 
         /* Update dependencies to release version */
         if (updateDependencies) {
             reloadReactorProjects();
-            setNextVersions(false);
+            setNextVersions(false, updateParent);
         }
 
 //        // checkout develop branch and update it's version
 //        String developBranch = (String) getGitflowInit().getDevelopBrnName();
 //        getGitflowInit().executeLocal("git checkout " + developBranch);
 //        setVersion(nextDevelopmentVersion);
 //
 //        // checkout release branch again
 //        getGitflowInit().executeLocal("git checkout " + releaseBranch);
     }
 
     public String getReleaseName() {
         return releaseName;
     }
 }

commit 7fa75da9289a6413054c67d646cc3a86c5d7ad95
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Thu Mar 13 00:26:08 2014 +0000

    fix to update child dependencies

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index 4bbed57..7da261f 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -66,451 +66,452 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 public class AbstractGitflowMojo extends AbstractMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(AbstractGitflowMojo.class.getName());
 
     public final Pattern matchSnapshotRegex = Pattern.compile("-SNAPSHOT");
 
     /**
      * Gitflow branches and prefixes to use.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
     /**
      * Message prefix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgPrefix", defaultValue = "", required = false)
     protected String msgPrefix;
 
     /**
      * Message suffix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgSuffix", defaultValue = "", required = false)
     protected String msgSuffix;
 
     /**
      * Component used to prompt for input.
      */
     @Component
     protected Prompter prompter;
 
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
     @Component
     protected ArtifactResolver artifactResolver;
 
     /**
      * @parameter default-value="${project.artifacts}"
      * @required
      * @readonly
      */
     protected Collection artifacts;
 
     /**
      * @parameter expression="${localRepository}"
      */
     protected ArtifactRepository localRepository;
 
     /**
      * @parameter expression="${project.remoteArtifactRepositories}"
      */
     protected List remoteArtifactRepositories;
 
 //    @Component
 //    protected MavenProjectBuilder projectBuilder;
 //    @Component
 //    protected DefaultProjectBuilder projectBuilder;
 //    /**
 //     * @parameter property="plugin"
 //     * @required
 //     */
 //    @Component
 //    protected PluginDescriptor pluginDescriptor;
 //
     /**
      * The projects in the reactor.
      */
     @Parameter(defaultValue = "${reactorProjects}", readonly = true, required = true)
     protected List<MavenProject> reactorProjects;
 
     /**
      * The project builder
      */
     @Component
     private ProjectBuilder projectBuilder;
 
     /**
      * The project currently being build.
      *
      * @parameter expression="${project}"
      * @required
      * @readonly
      */
     @Component
     protected MavenProject project;
 
     /**
      * The current Maven session.
      *
      * @parameter expression="${session}"
      * @required
      * @readonly
      */
     @Component
     protected MavenSession session;
 
     /**
      * The Maven BuildPluginManager component.
      *
      * @component
      * @required
      */
     @Component
     protected BuildPluginManager pluginManager;
 
     private GitflowInit init;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     public void execute() throws MojoExecutionException, MojoFailureException {
         StaticLoggerBinder.getSingleton().setMavenLog(this.getLog());
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             LOG.debug("Gitflow pom  '" + project.getBasedir() + "'");
         }
 
         GitflowInit gitflowInit = getGitflowInit();
 
         gitflowInit.requireGitRepo();
 
         if (!gitflowInit.gitflowIsInitialized()) {
             try {
                 gitflowInit.cmdDefault();
             } catch (GitflowException ex) {
                 throw new MojoExecutionException("Failed to inintialise Gitflow " + ex.getMessage(), ex);
             }
         }
 
         gitflowInit.requireCleanWorkingTree();
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     protected final GitflowInit getGitflowInit() {
         if (null == init) {
             LOG.info("Initialising Gitflow");
             init = new GitflowInit();
             init.setRepoDir(getProject().getBasedir());
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
 
             /* root Git directory may not be the pom directory */
             String dotGitDir = init.executeLocal("git rev-parse --git-dir");
             File dotGitFolder = new File(dotGitDir);
             assert dotGitFolder.exists();
             init.setRepoDir(dotGitFolder.getParentFile());
         }
         return init;
     }
 
     protected final void setVersion(String version) throws MojoExecutionException, MojoFailureException {
         LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.codehaus.mojo"),
                         artifactId("versions-maven-plugin"),
                         version("2.1")
                 ),
                 goal("set"),
                 configuration(
                         element(name("generateBackupPoms"), "false"),
                         element(name("newVersion"), version)
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
         LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change " + version + " to origin. ExitCode:" + exitCode);
                 }
             }
         }
         /* We don't want to fail maybe the version was manually set correctly */
 //        else {
 //            throw new MojoFailureException("Failed to update poms to version " + version);
 //        }
     }
 
     protected final void setNextVersions(Boolean allowSnapshots) throws MojoExecutionException, MojoFailureException {
         LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:use-next-versions -DallowSnapshots=" + allowSnapshots);
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         for (MavenProject mavenProject : reactorProjects) {
             LOG.debug("Calling use-next-versions on " + mavenProject.getArtifactId());
+            session.setCurrentProject(mavenProject);
             executeMojo(
                     plugin(
                             groupId("org.codehaus.mojo"),
                             artifactId("versions-maven-plugin"),
                             version("2.1")
                     ),
                     goal("use-next-versions"),
                     configuration(
                             element(name("generateBackupPoms"), "false"),
 //                            element(name("processDependencies"), "true"),
 //                            element(name("processDependencyManagement"), "true"),
                             element(name("allowSnapshots"), allowSnapshots.toString())
                     ),
                     executionEnvironment(
                             mavenProject,
                             session,
                             pluginManager
                     )
             );
         }
         LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:use-next-versions");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg;
             if (allowSnapshots) {
                 msg = getMsgPrefix() + "Replaces any release versions with the next snapshot version (if it has been deployed)." + getMsgSuffix();
             } else {
                 msg = getMsgPrefix() + "Replaces snapshot versions with the corresponding release version" + getMsgSuffix();
             }
 
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change to origin. ExitCode:" + exitCode);
                 }
             }
         }
     }
 
     protected final void clean() throws MojoExecutionException, MojoFailureException {
         LOG.debug("START org.apache.maven.plugins:maven-clean-plugin:2.5:clean");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-clean-plugin"),
                         version("2.5")
                 ),
                 goal("clean"),
                 configuration(
                         element(name("skip"), "false")
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
         LOG.debug("DONE org.apache.maven.plugins:maven-clean-plugin:2.5:clean");
     }
 
     protected final void install() throws MojoExecutionException, MojoFailureException {
         LOG.debug("START org.apache.maven.plugins:maven-install-plugin:2.5.1:install");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-install-plugin"),
                         version("2.5.1")
                 ),
                 goal("install"),
                 configuration(
                         element(name("skip"), "false")
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
         LOG.debug("DONE org.apache.maven.plugins:maven-install-plugin:2.5.1:install");
     }
 
     protected final void deploy() throws MojoExecutionException, MojoFailureException {
         LOG.debug("START org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-deploy-plugin"),
                         version("2.8.1")
                 ),
                 goal("deploy"),
                 configuration(
                         element(name("skip"), "false"),
                         element(name("retryFailedDeploymentCount"), "1")
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
         LOG.debug("DONE org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy");
     }
 
     protected final String getReleaseVersion(String version) throws MojoFailureException {
         LOG.debug("Current Develop version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
             LOG.debug("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
     protected final void checkForSnapshotDependencies() throws MojoExecutionException {
         LOG.info("Checking for SNAPSHOT dependencies");       
         for (MavenProject mavenProject : reactorProjects) {
             DependencyManagement dependencyManagement = mavenProject.getDependencyManagement();
             if (null != dependencyManagement) {
                 checkForSnapshot(dependencyManagement.getDependencies());
             }
             checkForSnapshot(mavenProject.getDependencies());
         }
     }
 
     private void checkForSnapshot(List<Dependency> dependencies) throws MojoExecutionException {
         Boolean hasSnapshotDependency = false;
         for (Dependency dependency : dependencies) {
             String version = dependency.getVersion();
             Matcher versionMatcher = matchSnapshotRegex.matcher(version);
             if (versionMatcher.find() && versionMatcher.end() == version.length()) {
                 LOG.error("Found SNAPSHOT dependency " + dependency.getGroupId() + ":" + dependency.getArtifactId() + ":" + version);
                 hasSnapshotDependency = true;
             }
         }
         if (hasSnapshotDependency) {
             throw new MojoExecutionException("Cannot start release because SNAPSHOT dependencies exist");
         }
     }
 
     protected final void reloadReactorProjects() throws MojoExecutionException {
         LOG.debug("Reloading poms...");
 
         List<MavenProject> newReactorProjects;
         try {
             newReactorProjects = buildReactorProjects();
         } catch (ProjectBuildingException e) {
             LOG.error("Re-parse aborted due to malformed pom.xml file(s)", e);
             throw new MojoExecutionException("Re-parse aborted due to malformed pom.xml file(s)", e);
         } catch (CycleDetectedException e) {
             LOG.error("Re-parse aborted due to dependency cycle in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to dependency cycle in project model", e);
         } catch (DuplicateProjectException e) {
             LOG.error("Re-parse aborted due to duplicate projects in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to duplicate projects in project model", e);
         } catch (Exception e) {
             LOG.error("Re-parse aborted due a problem that prevented sorting the project model", e);
             throw new MojoExecutionException("Re-parse aborted due a problem that prevented sorting the project model", e);
         }
         MavenProject newProject = findProject(newReactorProjects, this.project);
         if (newProject == null) {
             throw new MojoExecutionException("A pom.xml change appears to have removed " + this.project.getId() + " from the build plan.");
         }
 
         this.project = newProject;
         this.reactorProjects = newReactorProjects;
 
         LOG.debug("Reloading poms complete...");
     }
 
     private List<MavenProject> buildReactorProjects() throws Exception {
 
         List<MavenProject> projects = new ArrayList<MavenProject>();
         for (MavenProject p : reactorProjects) {
             ProjectBuildingRequest request = new DefaultProjectBuildingRequest();
 
             request.setProcessPlugins(true);
             request.setProfiles(request.getProfiles());
             request.setActiveProfileIds(session.getRequest().getActiveProfiles());
             request.setInactiveProfileIds(session.getRequest().getInactiveProfiles());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setSystemProperties(session.getSystemProperties());
             request.setUserProperties(session.getUserProperties());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setPluginArtifactRepositories(session.getRequest().getPluginArtifactRepositories());
             request.setRepositorySession(session.getRepositorySession());
             request.setLocalRepository(localRepository);
             request.setBuildStartTime(session.getRequest().getStartTime());
             request.setResolveDependencies(true);
             request.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_STRICT);
             projects.add(projectBuilder.build(p.getFile(), request).getProject());
         }
         return new ProjectSorter(projects).getSortedProjects();
     }
 
     private MavenProject findProject(List<MavenProject> newReactorProjects, MavenProject oldProject) {
         for (MavenProject newProject : newReactorProjects) {
             if (oldProject.getGroupId().equals(newProject.getGroupId())
                     && oldProject.getArtifactId().equals(newProject.getArtifactId())) {
                 return newProject;
             }
         }
         return null;
     }
 
 }

commit 24d6481efae9a6893f32ee64644247fb2508cd5b
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Wed Mar 12 23:34:51 2014 +0000

    Renaming to updateDependencies

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index 06699b4..b295bd3 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -31,197 +31,197 @@ import org.slf4j.LoggerFactory;
 /**
  * Merges a release branch back into the develop and master branch and then
  * creates a tag for the release on master.
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(ReleaseFinishMojo.class.getName());
 
     /**
      * If <code>true</code>, the release can still finish even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private boolean allowSnapshots;
 
     /**
      * Any dependencies with a release version are replaced with the next
      * <code>-SNAPSHOT</code> version (if it has been deployed). This action is
      * performed on the develop branch after the merge.
      *
      * @since 1.2
      */
-    @Parameter(property = "useSnapshots", defaultValue = "true", required = false)
-    private boolean useSnapshots;
+    @Parameter(property = "updateDependencies", defaultValue = "true", required = false)
+    private boolean updateDependencies;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "false", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any calls to <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipDeploy", defaultValue = "false", required = false)
     private Boolean skipDeploy;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the branch will not be deleted after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keep;
 
     /**
      * If <code>true</code>, the release tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         LOG.debug("Finishing release");
 
         /* Get release branch name */
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
         if (releaseBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         } else if (releaseBranches.size() == 1) {
             releaseName = releaseBranches.get(0);
         } else {
             releaseName = promptForExistingReleaseName(releaseBranches, releaseName);
         }
 
         LOG.info("Finishing release '{}'", releaseName);
 
         /* Switch to develop branch and get its current version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         LOG.debug("develop version = " + developVersion);
 
         /* Switch to release branch and set poms to release version */
         getGitflowInit().executeLocal("git checkout " + releaseName);
         reloadReactorProjects();
         String releaseVersion = getReleaseVersion(project.getVersion());
         LOG.debug("release version = " + releaseVersion);
 
         setVersion(releaseVersion);
 
         if (!allowSnapshots) {
             checkForSnapshotDependencies();
         }
 
         /* finish release */
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setSquash(squash);
         gitflowRelease.setKeep(keep);
         gitflowRelease.setSign(sign);
         gitflowRelease.setSigningkey(signingkey);
 
         try {
             gitflowRelease.finish(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
         /* set poms to next develop version */
         String nextDevelopVersion = getNextDevelopVersion(developVersion);
         reloadReactorProjects();
         setVersion(nextDevelopVersion);
 
         /* Update dependencies to next snapshot version if deployed */
-        if (useSnapshots) {
+        if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions(true);
         }
 
         /* Switch to release tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);
         reloadReactorProjects();
         String tagVersion = project.getVersion();
         LOG.debug("tag version = " + tagVersion);
 
         /* install or deploy */
         if (skipDeploy == false) {
             clean();
             deploy();
         } else if (skipBuild == false) {
             clean();
             install();
         } else {
             LOG.debug("Skipping both install and deploy for tag " + tagVersion);
         }
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingReleaseName(List<String> releaseBranches, String defaultReleaseName) throws MojoFailureException {
         String message = "Please select a release branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, releaseBranches, defaultReleaseName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading release name from command line " + e.getMessage());
         }
 
         return name;
     }
 
     private String getNextDevelopVersion(String developVersion) {
         LOG.debug("Current Develop version '" + developVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(developVersion);
         artifactVersion.upgradeLeastSignificantPrimaryNumber();
 
         return artifactVersion.toString();
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
index e4c90a5..6bb223f 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
@@ -32,103 +32,103 @@ import org.slf4j.LoggerFactory;
 /**
  * Creates a new release branch off of the develop branch.
  */
 @Mojo(name = "release-start", aggregator = true, requiresDependencyResolution = ResolutionScope.COMPILE_PLUS_RUNTIME, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class ReleaseStartMojo extends AbstractReleaseMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(ReleaseStartMojo.class.getName());
 
     /**
      * Any dependencies with a <code>-SNAPSHOT</code> version are replaced with
      * the corresponding release version (if it has been released). This action
      * is performed on the release branch after it is created.
      *
      * @since 1.2
      */
-    @Parameter(property = "useReleases", defaultValue = "true", required = false)
-    private boolean useReleases;
+    @Parameter(property = "updateDependencies", defaultValue = "true", required = false)
+    private boolean updateDependencies;
 
     /**
      * The commit to start the release branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     private String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         /* Switch to develop branch and get its current version */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
         reloadReactorProjects();
         String developVersion = project.getVersion();
         LOG.debug("develop version = " + developVersion);
 
         /* Get suggested release version */
         String releaseVersion = getReleaseVersion(developVersion);
         LOG.debug("release version = " + releaseVersion);
 //        String nextDevelopmentVersion = getNextDevelopmentVersion(project.getVersion());
 
         /* create release branch */
         String prefix = getReleaseBranchPrefix();
         if (StringUtils.isBlank(releaseName)) {
             String message = "What is the release branch name? " + prefix;
             try {
                 releaseName = prompter.prompt(message, releaseVersion);
                 if (StringUtils.isBlank(releaseName)) {
                     throw new MojoFailureException("Parameter <releaseName> cannot be null or empty.");
                 }
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading release name from command line " + ex.getMessage(), ex);
             }
         }
 
         try {
             new GenericArtifactVersion(releaseName);
         } catch (IllegalArgumentException e) {
             throw new MojoExecutionException("Provided releaseName " + releaseName + " is not a valid Maven version.");
         }
 
         LOG.info("Starting release '" + releaseName + "'");
         LOG.debug("msgPrefix '" + getMsgPrefix() + "'");
         LOG.debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setPush(pushReleases);
         gitflowRelease.setStartCommit(startCommit);
 
         try {
             gitflowRelease.start(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         // current branch should be the release branch
         String releaseBranch = getGitflowInit().gitCurrentBranch();
         if (!releaseBranch.startsWith(prefix)) {
             throw new MojoFailureException("Failed to create release version.");
         }
 
         /* Update dependencies to release version */
-        if (useReleases) {
+        if (updateDependencies) {
             reloadReactorProjects();
             setNextVersions(false);
         }
 
 //        // checkout develop branch and update it's version
 //        String developBranch = (String) getGitflowInit().getDevelopBrnName();
 //        getGitflowInit().executeLocal("git checkout " + developBranch);
 //        setVersion(nextDevelopmentVersion);
 //
 //        // checkout release branch again
 //        getGitflowInit().executeLocal("git checkout " + releaseBranch);
     }
 
     public String getReleaseName() {
         return releaseName;
     }
 }

commit 1f8cb9410fb623a63575a83c7dfb967237c01f04
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Wed Mar 12 23:17:27 2014 +0000

    check for SNAPSHOTS

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index 63ec05b..4bbed57 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -66,443 +66,451 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 public class AbstractGitflowMojo extends AbstractMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(AbstractGitflowMojo.class.getName());
 
     public final Pattern matchSnapshotRegex = Pattern.compile("-SNAPSHOT");
 
     /**
      * Gitflow branches and prefixes to use.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
     /**
      * Message prefix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgPrefix", defaultValue = "", required = false)
     protected String msgPrefix;
 
     /**
      * Message suffix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgSuffix", defaultValue = "", required = false)
     protected String msgSuffix;
 
     /**
      * Component used to prompt for input.
      */
     @Component
     protected Prompter prompter;
 
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
     @Component
     protected ArtifactResolver artifactResolver;
 
     /**
      * @parameter default-value="${project.artifacts}"
      * @required
      * @readonly
      */
     protected Collection artifacts;
 
     /**
      * @parameter expression="${localRepository}"
      */
     protected ArtifactRepository localRepository;
 
     /**
      * @parameter expression="${project.remoteArtifactRepositories}"
      */
     protected List remoteArtifactRepositories;
 
 //    @Component
 //    protected MavenProjectBuilder projectBuilder;
 //    @Component
 //    protected DefaultProjectBuilder projectBuilder;
 //    /**
 //     * @parameter property="plugin"
 //     * @required
 //     */
 //    @Component
 //    protected PluginDescriptor pluginDescriptor;
 //
     /**
      * The projects in the reactor.
      */
     @Parameter(defaultValue = "${reactorProjects}", readonly = true, required = true)
     protected List<MavenProject> reactorProjects;
 
     /**
      * The project builder
      */
     @Component
     private ProjectBuilder projectBuilder;
 
     /**
      * The project currently being build.
      *
      * @parameter expression="${project}"
      * @required
      * @readonly
      */
     @Component
     protected MavenProject project;
 
     /**
      * The current Maven session.
      *
      * @parameter expression="${session}"
      * @required
      * @readonly
      */
     @Component
     protected MavenSession session;
 
     /**
      * The Maven BuildPluginManager component.
      *
      * @component
      * @required
      */
     @Component
     protected BuildPluginManager pluginManager;
 
     private GitflowInit init;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     public void execute() throws MojoExecutionException, MojoFailureException {
         StaticLoggerBinder.getSingleton().setMavenLog(this.getLog());
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             LOG.debug("Gitflow pom  '" + project.getBasedir() + "'");
         }
 
         GitflowInit gitflowInit = getGitflowInit();
 
         gitflowInit.requireGitRepo();
 
         if (!gitflowInit.gitflowIsInitialized()) {
             try {
                 gitflowInit.cmdDefault();
             } catch (GitflowException ex) {
                 throw new MojoExecutionException("Failed to inintialise Gitflow " + ex.getMessage(), ex);
             }
         }
 
         gitflowInit.requireCleanWorkingTree();
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     protected final GitflowInit getGitflowInit() {
         if (null == init) {
             LOG.info("Initialising Gitflow");
             init = new GitflowInit();
             init.setRepoDir(getProject().getBasedir());
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
 
             /* root Git directory may not be the pom directory */
             String dotGitDir = init.executeLocal("git rev-parse --git-dir");
             File dotGitFolder = new File(dotGitDir);
             assert dotGitFolder.exists();
             init.setRepoDir(dotGitFolder.getParentFile());
         }
         return init;
     }
 
     protected final void setVersion(String version) throws MojoExecutionException, MojoFailureException {
         LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.codehaus.mojo"),
                         artifactId("versions-maven-plugin"),
                         version("2.1")
                 ),
                 goal("set"),
                 configuration(
                         element(name("generateBackupPoms"), "false"),
                         element(name("newVersion"), version)
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
         LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change " + version + " to origin. ExitCode:" + exitCode);
                 }
             }
         }
         /* We don't want to fail maybe the version was manually set correctly */
 //        else {
 //            throw new MojoFailureException("Failed to update poms to version " + version);
 //        }
     }
 
     protected final void setNextVersions(Boolean allowSnapshots) throws MojoExecutionException, MojoFailureException {
         LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:use-next-versions -DallowSnapshots=" + allowSnapshots);
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
-        executeMojo(
-                plugin(
-                        groupId("org.codehaus.mojo"),
-                        artifactId("versions-maven-plugin"),
-                        version("2.1")
-                ),
-                goal("use-next-versions"),
-                configuration(
-                        element(name("generateBackupPoms"), "false"),
-                        element(name("allowSnapshots"), allowSnapshots.toString())
-                ),
-                executionEnvironment(
-                        rootProject,
-                        session,
-                        pluginManager
-                )
-        );
+        for (MavenProject mavenProject : reactorProjects) {
+            LOG.debug("Calling use-next-versions on " + mavenProject.getArtifactId());
+            executeMojo(
+                    plugin(
+                            groupId("org.codehaus.mojo"),
+                            artifactId("versions-maven-plugin"),
+                            version("2.1")
+                    ),
+                    goal("use-next-versions"),
+                    configuration(
+                            element(name("generateBackupPoms"), "false"),
+//                            element(name("processDependencies"), "true"),
+//                            element(name("processDependencyManagement"), "true"),
+                            element(name("allowSnapshots"), allowSnapshots.toString())
+                    ),
+                    executionEnvironment(
+                            mavenProject,
+                            session,
+                            pluginManager
+                    )
+            );
+        }
         LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:use-next-versions");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg;
             if (allowSnapshots) {
                 msg = getMsgPrefix() + "Replaces any release versions with the next snapshot version (if it has been deployed)." + getMsgSuffix();
             } else {
                 msg = getMsgPrefix() + "Replaces snapshot versions with the corresponding release version" + getMsgSuffix();
             }
 
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change to origin. ExitCode:" + exitCode);
                 }
             }
         }
     }
 
     protected final void clean() throws MojoExecutionException, MojoFailureException {
         LOG.debug("START org.apache.maven.plugins:maven-clean-plugin:2.5:clean");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-clean-plugin"),
                         version("2.5")
                 ),
                 goal("clean"),
                 configuration(
                         element(name("skip"), "false")
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
         LOG.debug("DONE org.apache.maven.plugins:maven-clean-plugin:2.5:clean");
     }
 
     protected final void install() throws MojoExecutionException, MojoFailureException {
         LOG.debug("START org.apache.maven.plugins:maven-install-plugin:2.5.1:install");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-install-plugin"),
                         version("2.5.1")
                 ),
                 goal("install"),
                 configuration(
                         element(name("skip"), "false")
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
         LOG.debug("DONE org.apache.maven.plugins:maven-install-plugin:2.5.1:install");
     }
 
     protected final void deploy() throws MojoExecutionException, MojoFailureException {
         LOG.debug("START org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-deploy-plugin"),
                         version("2.8.1")
                 ),
                 goal("deploy"),
                 configuration(
                         element(name("skip"), "false"),
                         element(name("retryFailedDeploymentCount"), "1")
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
         LOG.debug("DONE org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy");
     }
 
     protected final String getReleaseVersion(String version) throws MojoFailureException {
         LOG.debug("Current Develop version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
             LOG.debug("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
     protected final void checkForSnapshotDependencies() throws MojoExecutionException {
-        LOG.info("Checking for SNAPSHOT dependencies");
-        DependencyManagement dependencyManagement = getProject().getDependencyManagement();
-        if (null != dependencyManagement) {
-            checkForSnapshot(dependencyManagement.getDependencies());
+        LOG.info("Checking for SNAPSHOT dependencies");       
+        for (MavenProject mavenProject : reactorProjects) {
+            DependencyManagement dependencyManagement = mavenProject.getDependencyManagement();
+            if (null != dependencyManagement) {
+                checkForSnapshot(dependencyManagement.getDependencies());
+            }
+            checkForSnapshot(mavenProject.getDependencies());
         }
-        checkForSnapshot(getProject().getDependencies());
     }
 
     private void checkForSnapshot(List<Dependency> dependencies) throws MojoExecutionException {
         Boolean hasSnapshotDependency = false;
         for (Dependency dependency : dependencies) {
             String version = dependency.getVersion();
             Matcher versionMatcher = matchSnapshotRegex.matcher(version);
             if (versionMatcher.find() && versionMatcher.end() == version.length()) {
-                LOG.error("Found SNAPSHOT depednency " + dependency.getGroupId() + ":" + dependency.getArtifactId() + ":" + version);
+                LOG.error("Found SNAPSHOT dependency " + dependency.getGroupId() + ":" + dependency.getArtifactId() + ":" + version);
+                hasSnapshotDependency = true;
             }
         }
         if (hasSnapshotDependency) {
             throw new MojoExecutionException("Cannot start release because SNAPSHOT dependencies exist");
         }
     }
 
     protected final void reloadReactorProjects() throws MojoExecutionException {
         LOG.debug("Reloading poms...");
 
         List<MavenProject> newReactorProjects;
         try {
             newReactorProjects = buildReactorProjects();
         } catch (ProjectBuildingException e) {
             LOG.error("Re-parse aborted due to malformed pom.xml file(s)", e);
             throw new MojoExecutionException("Re-parse aborted due to malformed pom.xml file(s)", e);
         } catch (CycleDetectedException e) {
             LOG.error("Re-parse aborted due to dependency cycle in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to dependency cycle in project model", e);
         } catch (DuplicateProjectException e) {
             LOG.error("Re-parse aborted due to duplicate projects in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to duplicate projects in project model", e);
         } catch (Exception e) {
             LOG.error("Re-parse aborted due a problem that prevented sorting the project model", e);
             throw new MojoExecutionException("Re-parse aborted due a problem that prevented sorting the project model", e);
         }
         MavenProject newProject = findProject(newReactorProjects, this.project);
         if (newProject == null) {
             throw new MojoExecutionException("A pom.xml change appears to have removed " + this.project.getId() + " from the build plan.");
         }
 
         this.project = newProject;
         this.reactorProjects = newReactorProjects;
 
         LOG.debug("Reloading poms complete...");
     }
 
     private List<MavenProject> buildReactorProjects() throws Exception {
 
         List<MavenProject> projects = new ArrayList<MavenProject>();
         for (MavenProject p : reactorProjects) {
             ProjectBuildingRequest request = new DefaultProjectBuildingRequest();
 
             request.setProcessPlugins(true);
             request.setProfiles(request.getProfiles());
             request.setActiveProfileIds(session.getRequest().getActiveProfiles());
             request.setInactiveProfileIds(session.getRequest().getInactiveProfiles());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setSystemProperties(session.getSystemProperties());
             request.setUserProperties(session.getUserProperties());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setPluginArtifactRepositories(session.getRequest().getPluginArtifactRepositories());
             request.setRepositorySession(session.getRepositorySession());
             request.setLocalRepository(localRepository);
             request.setBuildStartTime(session.getRequest().getStartTime());
             request.setResolveDependencies(true);
             request.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_STRICT);
             projects.add(projectBuilder.build(p.getFile(), request).getProject());
         }
         return new ProjectSorter(projects).getSortedProjects();
     }
 
     private MavenProject findProject(List<MavenProject> newReactorProjects, MavenProject oldProject) {
         for (MavenProject newProject : newReactorProjects) {
             if (oldProject.getGroupId().equals(newProject.getGroupId())
                     && oldProject.getArtifactId().equals(newProject.getArtifactId())) {
                 return newProject;
             }
         }
         return null;
     }
 
 }

commit 957e2473489e4b1b094a4369d308eb8a7382b2dc
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Sat Mar 8 22:42:46 2014 +0000

    Parameter comments

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index 85d5634..06699b4 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -31,197 +31,197 @@ import org.slf4j.LoggerFactory;
 /**
  * Merges a release branch back into the develop and master branch and then
  * creates a tag for the release on master.
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(ReleaseFinishMojo.class.getName());
 
     /**
      * If <code>true</code>, the release can still finish even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private boolean allowSnapshots;
 
     /**
-     * Replaces any dependencies with a release version with the next
+     * Any dependencies with a release version are replaced with the next
      * <code>-SNAPSHOT</code> version (if it has been deployed). This action is
      * performed on the develop branch after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "useSnapshots", defaultValue = "true", required = false)
     private boolean useSnapshots;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "false", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any calls to <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipDeploy", defaultValue = "false", required = false)
     private Boolean skipDeploy;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the branch will not be deleted after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keep;
 
     /**
      * If <code>true</code>, the release tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         LOG.debug("Finishing release");
 
         /* Get release branch name */
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
         if (releaseBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         } else if (releaseBranches.size() == 1) {
             releaseName = releaseBranches.get(0);
         } else {
             releaseName = promptForExistingReleaseName(releaseBranches, releaseName);
         }
 
         LOG.info("Finishing release '{}'", releaseName);
 
         /* Switch to develop branch and get its current version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         LOG.debug("develop version = " + developVersion);
 
         /* Switch to release branch and set poms to release version */
         getGitflowInit().executeLocal("git checkout " + releaseName);
         reloadReactorProjects();
         String releaseVersion = getReleaseVersion(project.getVersion());
         LOG.debug("release version = " + releaseVersion);
 
         setVersion(releaseVersion);
 
         if (!allowSnapshots) {
             checkForSnapshotDependencies();
         }
 
         /* finish release */
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setSquash(squash);
         gitflowRelease.setKeep(keep);
         gitflowRelease.setSign(sign);
         gitflowRelease.setSigningkey(signingkey);
 
         try {
             gitflowRelease.finish(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
         /* set poms to next develop version */
         String nextDevelopVersion = getNextDevelopVersion(developVersion);
         reloadReactorProjects();
         setVersion(nextDevelopVersion);
 
         /* Update dependencies to next snapshot version if deployed */
         if (useSnapshots) {
             reloadReactorProjects();
             setNextVersions(true);
         }
 
         /* Switch to release tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);
         reloadReactorProjects();
         String tagVersion = project.getVersion();
         LOG.debug("tag version = " + tagVersion);
 
         /* install or deploy */
         if (skipDeploy == false) {
             clean();
             deploy();
         } else if (skipBuild == false) {
             clean();
             install();
         } else {
             LOG.debug("Skipping both install and deploy for tag " + tagVersion);
         }
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingReleaseName(List<String> releaseBranches, String defaultReleaseName) throws MojoFailureException {
         String message = "Please select a release branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, releaseBranches, defaultReleaseName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading release name from command line " + e.getMessage());
         }
 
         return name;
     }
 
     private String getNextDevelopVersion(String developVersion) {
         LOG.debug("Current Develop version '" + developVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(developVersion);
         artifactVersion.upgradeLeastSignificantPrimaryNumber();
 
         return artifactVersion.toString();
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
index 93622f8..e4c90a5 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
@@ -32,103 +32,103 @@ import org.slf4j.LoggerFactory;
 /**
  * Creates a new release branch off of the develop branch.
  */
 @Mojo(name = "release-start", aggregator = true, requiresDependencyResolution = ResolutionScope.COMPILE_PLUS_RUNTIME, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class ReleaseStartMojo extends AbstractReleaseMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(ReleaseStartMojo.class.getName());
 
     /**
-     * Replaces any <code>-SNAPSHOT</code> versions with the corresponding
-     * release version (if it has been released). This action is performed on
-     * the release branch after it is created.
+     * Any dependencies with a <code>-SNAPSHOT</code> version are replaced with
+     * the corresponding release version (if it has been released). This action
+     * is performed on the release branch after it is created.
      *
      * @since 1.2
      */
     @Parameter(property = "useReleases", defaultValue = "true", required = false)
     private boolean useReleases;
 
     /**
      * The commit to start the release branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     private String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         /* Switch to develop branch and get its current version */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
         reloadReactorProjects();
         String developVersion = project.getVersion();
         LOG.debug("develop version = " + developVersion);
 
         /* Get suggested release version */
         String releaseVersion = getReleaseVersion(developVersion);
         LOG.debug("release version = " + releaseVersion);
 //        String nextDevelopmentVersion = getNextDevelopmentVersion(project.getVersion());
 
         /* create release branch */
         String prefix = getReleaseBranchPrefix();
         if (StringUtils.isBlank(releaseName)) {
             String message = "What is the release branch name? " + prefix;
             try {
                 releaseName = prompter.prompt(message, releaseVersion);
                 if (StringUtils.isBlank(releaseName)) {
                     throw new MojoFailureException("Parameter <releaseName> cannot be null or empty.");
                 }
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading release name from command line " + ex.getMessage(), ex);
             }
         }
 
         try {
             new GenericArtifactVersion(releaseName);
         } catch (IllegalArgumentException e) {
             throw new MojoExecutionException("Provided releaseName " + releaseName + " is not a valid Maven version.");
         }
 
         LOG.info("Starting release '" + releaseName + "'");
         LOG.debug("msgPrefix '" + getMsgPrefix() + "'");
         LOG.debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setPush(pushReleases);
         gitflowRelease.setStartCommit(startCommit);
 
         try {
             gitflowRelease.start(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         // current branch should be the release branch
         String releaseBranch = getGitflowInit().gitCurrentBranch();
         if (!releaseBranch.startsWith(prefix)) {
             throw new MojoFailureException("Failed to create release version.");
         }
 
         /* Update dependencies to release version */
         if (useReleases) {
             reloadReactorProjects();
             setNextVersions(false);
         }
 
 //        // checkout develop branch and update it's version
 //        String developBranch = (String) getGitflowInit().getDevelopBrnName();
 //        getGitflowInit().executeLocal("git checkout " + developBranch);
 //        setVersion(nextDevelopmentVersion);
 //
 //        // checkout release branch again
 //        getGitflowInit().executeLocal("git checkout " + releaseBranch);
     }
 
     public String getReleaseName() {
         return releaseName;
     }
 }

commit 2aca7e4bd0acd9b7e0a3367e10cf1d450525b78a
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Sat Mar 8 22:37:11 2014 +0000

    Parameter comments

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index 6395c15..85d5634 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -31,196 +31,197 @@ import org.slf4j.LoggerFactory;
 /**
  * Merges a release branch back into the develop and master branch and then
  * creates a tag for the release on master.
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(ReleaseFinishMojo.class.getName());
 
     /**
      * If <code>true</code>, the release can still finish even if
      * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private boolean allowSnapshots;
 
     /**
-     * Replaces any release versions with the next <code>-SNAPSHOT</code>
-     * version (if it has been deployed).
+     * Replaces any dependencies with a release version with the next
+     * <code>-SNAPSHOT</code> version (if it has been deployed). This action is
+     * performed on the develop branch after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "useSnapshots", defaultValue = "true", required = false)
     private boolean useSnapshots;
 
     /**
      * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "false", required = false)
     private Boolean skipBuild;
 
     /**
      * Skips any calls to <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipDeploy", defaultValue = "false", required = false)
     private Boolean skipDeploy;
 
     /**
      * If <code>true</code>, all commits to the branch will be squashed into a
      * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
      * If <code>true</code>, the branch will not be deleted after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keep;
 
     /**
      * If <code>true</code>, the release tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
      * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         LOG.debug("Finishing release");
 
         /* Get release branch name */
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
         if (releaseBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         } else if (releaseBranches.size() == 1) {
             releaseName = releaseBranches.get(0);
         } else {
             releaseName = promptForExistingReleaseName(releaseBranches, releaseName);
         }
 
         LOG.info("Finishing release '{}'", releaseName);
 
         /* Switch to develop branch and get its current version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         LOG.debug("develop version = " + developVersion);
 
         /* Switch to release branch and set poms to release version */
         getGitflowInit().executeLocal("git checkout " + releaseName);
         reloadReactorProjects();
         String releaseVersion = getReleaseVersion(project.getVersion());
         LOG.debug("release version = " + releaseVersion);
 
         setVersion(releaseVersion);
 
         if (!allowSnapshots) {
             checkForSnapshotDependencies();
         }
 
         /* finish release */
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setSquash(squash);
         gitflowRelease.setKeep(keep);
         gitflowRelease.setSign(sign);
         gitflowRelease.setSigningkey(signingkey);
 
         try {
             gitflowRelease.finish(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
         /* set poms to next develop version */
         String nextDevelopVersion = getNextDevelopVersion(developVersion);
         reloadReactorProjects();
         setVersion(nextDevelopVersion);
 
         /* Update dependencies to next snapshot version if deployed */
         if (useSnapshots) {
             reloadReactorProjects();
             setNextVersions(true);
         }
 
         /* Switch to release tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);
         reloadReactorProjects();
         String tagVersion = project.getVersion();
         LOG.debug("tag version = " + tagVersion);
 
         /* install or deploy */
         if (skipDeploy == false) {
             clean();
             deploy();
         } else if (skipBuild == false) {
             clean();
             install();
         } else {
             LOG.debug("Skipping both install and deploy for tag " + tagVersion);
         }
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingReleaseName(List<String> releaseBranches, String defaultReleaseName) throws MojoFailureException {
         String message = "Please select a release branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, releaseBranches, defaultReleaseName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading release name from command line " + e.getMessage());
         }
 
         return name;
     }
 
     private String getNextDevelopVersion(String developVersion) {
         LOG.debug("Current Develop version '" + developVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(developVersion);
         artifactVersion.upgradeLeastSignificantPrimaryNumber();
 
         return artifactVersion.toString();
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
index 9dfd4c7..93622f8 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
@@ -32,102 +32,103 @@ import org.slf4j.LoggerFactory;
 /**
  * Creates a new release branch off of the develop branch.
  */
 @Mojo(name = "release-start", aggregator = true, requiresDependencyResolution = ResolutionScope.COMPILE_PLUS_RUNTIME, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class ReleaseStartMojo extends AbstractReleaseMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(ReleaseStartMojo.class.getName());
 
     /**
      * Replaces any <code>-SNAPSHOT</code> versions with the corresponding
-     * release version (if it has been released).
+     * release version (if it has been released). This action is performed on
+     * the release branch after it is created.
      *
      * @since 1.2
      */
     @Parameter(property = "useReleases", defaultValue = "true", required = false)
     private boolean useReleases;
 
     /**
      * The commit to start the release branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     private String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         /* Switch to develop branch and get its current version */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
         reloadReactorProjects();
         String developVersion = project.getVersion();
         LOG.debug("develop version = " + developVersion);
 
         /* Get suggested release version */
         String releaseVersion = getReleaseVersion(developVersion);
         LOG.debug("release version = " + releaseVersion);
 //        String nextDevelopmentVersion = getNextDevelopmentVersion(project.getVersion());
 
         /* create release branch */
         String prefix = getReleaseBranchPrefix();
         if (StringUtils.isBlank(releaseName)) {
             String message = "What is the release branch name? " + prefix;
             try {
                 releaseName = prompter.prompt(message, releaseVersion);
                 if (StringUtils.isBlank(releaseName)) {
                     throw new MojoFailureException("Parameter <releaseName> cannot be null or empty.");
                 }
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading release name from command line " + ex.getMessage(), ex);
             }
         }
 
         try {
             new GenericArtifactVersion(releaseName);
         } catch (IllegalArgumentException e) {
             throw new MojoExecutionException("Provided releaseName " + releaseName + " is not a valid Maven version.");
         }
 
         LOG.info("Starting release '" + releaseName + "'");
         LOG.debug("msgPrefix '" + getMsgPrefix() + "'");
         LOG.debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setPush(pushReleases);
         gitflowRelease.setStartCommit(startCommit);
 
         try {
             gitflowRelease.start(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         // current branch should be the release branch
         String releaseBranch = getGitflowInit().gitCurrentBranch();
         if (!releaseBranch.startsWith(prefix)) {
             throw new MojoFailureException("Failed to create release version.");
         }
 
         /* Update dependencies to release version */
         if (useReleases) {
             reloadReactorProjects();
             setNextVersions(false);
         }
 
 //        // checkout develop branch and update it's version
 //        String developBranch = (String) getGitflowInit().getDevelopBrnName();
 //        getGitflowInit().executeLocal("git checkout " + developBranch);
 //        setVersion(nextDevelopmentVersion);
 //
 //        // checkout release branch again
 //        getGitflowInit().executeLocal("git checkout " + releaseBranch);
     }
 
     public String getReleaseName() {
         return releaseName;
     }
 }

commit 797320107ecc69a93db91a984bc5f0e5ca0416f2
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Sat Mar 8 22:20:04 2014 +0000

    Parameter comments

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
index c306e78..c8d0af6 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
@@ -26,121 +26,123 @@ import org.slf4j.LoggerFactory;
 /**
  *
  */
 public class AbstractFeatureMojo extends AbstractGitflowMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(AbstractFeatureMojo.class.getName());
 
     /**
      * The name for the feature branch
      *
      * @since 1.2
      */
     @Parameter(property = "featureName", required = false)
     protected String featureName;
 
     /**
-     * If true, the feature branch name is added to the pom versions
+     * If <code>true</code>, the feature branch name is added to the pom
+     * versions
      *
      * @since 1.2
      */
     @Parameter(property = "enableFeatureVersions", defaultValue = "false", required = false)
     protected boolean enableFeatureVersions;
 
     /**
-     * If true, the feature branch is pushed to the remote repository
+     * If <code>true</code>, the feature branch is pushed to the remote
+     * repository
      *
      * @since 1.2
      */
     @Parameter(property = "pushFeatures", defaultValue = "false", required = false)
     protected boolean pushFeatures;
 
     public String getFeatureBranchPrefix() {
         String prefix = getGitflowInit().getFeatureBranchPrefix();
         if (StringUtils.isBlank(prefix)) {
             prefix = DEFAULT_FEATURE_BRN_PREFIX;
         }
         return prefix;
     }
 
     public String getFeatureName(String featureLabel) throws MojoFailureException {
         if (StringUtils.isBlank(featureLabel)) {
             throw new MojoFailureException("Missing argument <featureName>");
         }
 
         featureLabel = featureLabel.replaceAll("\\s+", "");
 //        featureLabel = featureLabel.replaceAll("-+", "_");
         return featureLabel;
     }
 
     public String getFeatureVersion(String currentVersion, String featureLabel) throws MojoFailureException {
         LOG.debug("getFeatureVersion from '" + currentVersion + "'");
         featureLabel = getValidFeatureVersionAnnotation(featureLabel);
         LOG.debug("Feature version annotation '" + featureLabel + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         Character annotationSeparator = artifactVersion.getAnnotationRevisionSeparator();
         String buildSpecifier = artifactVersion.getBuildSpecifier();
         Character buildSpecifierSeparator = artifactVersion.getBuildSpecifierSeparator();
 
         LOG.debug("Parsed version = " + artifactVersion.toString());
         if (!StringUtils.isBlank(annotationAsString)) {
             throw new MojoFailureException("Cannot add feature name to version. An annotation " + annotationAsString + " already exists");
         }
 
         final StringBuilder result = new StringBuilder(30);
 
         result.append(primaryNumbersAsString).append(annotationSeparator).append(featureLabel);
 
         if (buildSpecifier != null) {
             if (buildSpecifierSeparator != null) {
                 result.append(buildSpecifierSeparator);
             }
             result.append(buildSpecifier);
         }
 
         return result.toString();
     }
 
     public String getNonFeatureVersion(String version, String featureLabel) {
         LOG.debug("getNonFeatureVersion from '" + version + "'");
         featureLabel = getValidFeatureVersionAnnotation(featureLabel);
         LOG.debug("Feature version annotation '" + featureLabel + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifier = artifactVersion.getBuildSpecifier();
         Character buildSpecifierSeparator = artifactVersion.getBuildSpecifierSeparator();
 
         LOG.debug("Parsed version = " + artifactVersion.toString());
         if (StringUtils.isBlank(annotationAsString)) {
             LOG.warn("Cannot remove feature name from pom version. The version annotation does not exists");
             return version;
         }
 
         if (('-' + featureLabel).equals(annotationAsString)) {
             final StringBuilder result = new StringBuilder(30);
             result.append(primaryNumbersAsString);
 
             if (buildSpecifier != null) {
                 if (buildSpecifierSeparator != null) {
                     result.append(buildSpecifierSeparator);
                 }
                 result.append(buildSpecifier);
             }
 
             return result.toString();
         } else {
             LOG.warn("Cannot remove feature name from pom version. The version annotation [" + annotationAsString + "] does not match the feature label [" + featureLabel + "]");
             return version;
         }
     }
 
     private String getValidFeatureVersionAnnotation(String featureLabel) {
         featureLabel = featureLabel.trim().replaceAll("\\s+", "_");
         featureLabel = featureLabel.trim().replaceAll("-+", "_");
         return featureLabel;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractHotfixMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractHotfixMojo.java
index c083588..7bb7d98 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractHotfixMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractHotfixMojo.java
@@ -20,10 +20,11 @@ import org.apache.maven.plugins.annotations.Parameter;
 public class AbstractHotfixMojo extends AbstractGitflowMojo {
 
     /**
-     * If true, the hotfix branch is pushed to the remote repository
+     * If <code>true</code>, the hotfix branch is pushed to the remote
+     * repository
      *
      * @since 1.2
      */
     @Parameter(property = "pushHotfixes", defaultValue = "false", required = false)
     protected boolean pushHotfixes;
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java
index 7fe700f..7a694c8 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java
@@ -26,38 +26,39 @@ import org.slf4j.LoggerFactory;
 public class AbstractReleaseMojo extends AbstractGitflowMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(AbstractReleaseMojo.class.getName());
 
     /**
      * The name for the release branch.
      *
      * @since 1.2
      */
     @Parameter(property = "releaseName", required = false)
     protected String releaseName;
 
     /**
-     * If true, the release branch is pushed to the remote repository.
+     * If <code>true</code>, the release branch is pushed to the remote
+     * repository.
      *
      * @since 1.2
      */
     @Parameter(property = "pushReleases", defaultValue = "false", required = false)
     protected boolean pushReleases;
 
     public String getReleaseBranchPrefix() {
         String prefix = getGitflowInit().getReleaseBranchPrefix();
         if (StringUtils.isBlank(prefix)) {
             prefix = DEFAULT_RELEASE_BRN_PREFIX;
         }
         return prefix;
     }
 
     public String getNextDevelopmentVersion(String version) throws MojoFailureException {
         LOG.debug("Project version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
         GenericArtifactVersion nextDevelopVersion = artifactVersion.upgradeLeastSignificantNumber();
 
         LOG.debug("Project version '" + nextDevelopVersion + "'");
         return nextDevelopVersion.toString();
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
index 8b846f3..39bd22c 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
@@ -31,134 +31,134 @@ import org.slf4j.LoggerFactory;
 /**
  * Merges a feature branch back into the develop.
  */
 @Mojo(name = "feature-finish", aggregator = true)
 public class FeatureFinishMojo extends AbstractFeatureMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(FeatureFinishMojo.class.getName());
 
     /**
-     * If true, the feature branch will be rebased onto develop, then finish
-     * will fast-forward merge the feature branch back onto develop.
+     * If <code>true</code>, the feature branch will be rebased onto develop,
+     * then finish will fast-forward merge the feature branch back onto develop.
      *
      * @since 1.2
      */
     @Parameter(property = "isRebase", defaultValue = "false", required = false)
     private boolean isRebase;
 
 //    No good way to handle Interactive rebase from a Maven plugin
 //    /**
-//     * If true, and <code>isRebase</code> is true, then an interactive rebase is
+//     * If <code>true</code>, and <code>isRebase</code> is true, then an interactive rebase is
 //     * performed for the feature branch.
 //     *
 //     * @since 1.2
 //     */
 //    @Parameter(property = "isInteractive", defaultValue = "false", required = false)
     private final boolean isInteractive = false;
 
     /**
-     * Skips any calls to mvn install
+     * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "false", required = false)
     private Boolean skipBuild;
 
     /**
-     * If true, all commits to the branch will be squashed into a single commit
-     * before the merge.
+     * If <code>true</code>, all commits to the branch will be squashed into a
+     * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
-     * If true, the branch will not be deleted after the merge.
+     * If <code>true</code>, the branch will not be deleted after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keep;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         LOG.debug("Finishing feature");
 
         List<String> featureBranches = getGitflowInit().gitLocalFeatureBranches();
 
         if (null == featureBranches || featureBranches.isEmpty()) {
             throw new MojoFailureException("No local feature branches exit!");
         }
 
         String featureBranchPrefix = getFeatureBranchPrefix();
         if (StringUtils.isBlank(featureName)) {
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (currentBranch.startsWith(featureBranchPrefix)) {
                 featureName = currentBranch;
             } else {
                 featureName = featureBranches.get(0);
             }
         } else {
             featureName = getFeatureName(featureName);
         }
 
         featureName = promptForExistingFeatureName(featureBranches, featureName);
 
         LOG.info("Finishing feature '{}'", featureName);
 
         if (enableFeatureVersions) {
             /* Switch to develop branch and get its current version */
             getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
             reloadReactorProjects();
             String developVersion = project.getVersion();
             LOG.debug("develop version = " + developVersion);
 
             /* Switch to feature branch and get its current version */
             getGitflowInit().executeLocal("git checkout " + featureName);
             reloadReactorProjects();
             String featureVersion = project.getVersion();
             LOG.debug("feature version = " + featureVersion);
 
             setVersion(developVersion);
         }
 
         if (!skipBuild) {
             clean();
             install();
         } else {
             LOG.debug("Skipping both install and deploy");
         }
 
         GitflowFeature gitflowFeature = new GitflowFeature();
         gitflowFeature.setInit(getGitflowInit());
         gitflowFeature.setMsgPrefix(getMsgPrefix());
         gitflowFeature.setMsgSuffix(getMsgSuffix());
         gitflowFeature.setSquash(squash);
         gitflowFeature.setKeep(keep);
         gitflowFeature.setIsRebase(isRebase);
         gitflowFeature.setIsInteractive(isInteractive);
 
         try {
             gitflowFeature.finish(featureName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
     }
 
     private String promptForExistingFeatureName(List<String> featureBranches, String defaultFeatureName) throws MojoFailureException {
         String message = "Please select a feature branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, featureBranches, defaultFeatureName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading feature name from command line " + e.getMessage());
         }
 
         return name.trim();
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
index 4491ff6..174910c 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
@@ -31,181 +31,181 @@ import org.slf4j.LoggerFactory;
 /**
  * Merges a hotfix branch back into the develop and master branch and then
  * creates a tag for the hotfix on master.
  */
 @Mojo(name = "hotfix-finish", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class HotfixFinishMojo extends AbstractHotfixMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(HotfixFinishMojo.class.getName());
 
     protected String hotfixName;
 
     /**
-     * If true, the hotfix can still finish even when SNAPSHOT dependencies
-     * exists in the pom.
+     * If <code>true</code>, the hotfix can still finish even if
+     * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private boolean allowSnapshots;
 
     /**
-     * Skips any calls to mvn install
+     * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "false", required = false)
     private Boolean skipBuild;
 
     /**
-     * Skips any calls to mvn deploy
+     * Skips any calls to <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipDeploy", defaultValue = "false", required = false)
     private Boolean skipDeploy;
 
     /**
-     * If true, all commits to the branch will be squashed into a single commit
-     * before the merge.
+     * If <code>true</code>, all commits to the branch will be squashed into a
+     * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
-     * If true, the branch will not be deleted after the merge.
+     * If <code>true</code>, the branch will not be deleted after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keep;
 
     /**
-     * If true, any Git tags created will be signed.
+     * If <code>true</code>, the hotfix tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
-     * If GPG key used to sign the tag.
+     * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         LOG.debug("Finishing hotfix");
 
         /* Get hotfix branch name */
         List<String> hotfixBranches = getGitflowInit().gitLocalHotfixBranches();
         if (hotfixBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         } else if (hotfixBranches.size() == 1) {
             hotfixName = hotfixBranches.get(0);
         } else {
             hotfixName = promptForExistingHotfixName(hotfixBranches, hotfixName);
         }
 
         LOG.info("Finishing hotfix '{}'", hotfixName);
 
         /* Switch to hotfix branch and set poms to hotfix version */
         getGitflowInit().executeLocal("git checkout " + hotfixName);
         reloadReactorProjects();
         String hotfixVersion = project.getVersion();
         LOG.debug("hotfix snapshot version = " + hotfixVersion);
         String hotfixReleaseVersion = getReleaseVersion(hotfixVersion);
         LOG.debug("hotfix release version = " + hotfixReleaseVersion);
         setVersion(hotfixReleaseVersion);
 
         /* Switch to develop branch and get current develop version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         LOG.debug("develop version = " + developVersion);
 
         /* Set develop branch to hotfix version to prevent merge conflicts */
         setVersion(hotfixReleaseVersion);
 
         if (!allowSnapshots) {
             checkForSnapshotDependencies();
         }
 
         /* finish hotfix */
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
         gitflowHotfix.setSquash(squash);
         gitflowHotfix.setKeep(keep);
         gitflowHotfix.setSign(sign);
         gitflowHotfix.setSigningkey(signingkey);
 
         try {
             gitflowHotfix.finish(hotfixName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             LOG.error("Merge conflicts exist.", gmce);
             throw new MojoFailureException(gmce.getMessage());
 
 //            LOG.info("Attempting to auto-resolve any pom version conflicts.", gmce);
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            fixPomMergeConflicts.setInit(getGitflowInit());
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
         /* Set develop branch back to original develop version */
         setVersion(developVersion);
         if (getGitflowInit().gitRemoteBranchExists(developBranch)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + developBranch);
         }
 
         /* Switch to hotfix tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + hotfixReleaseVersion);
         reloadReactorProjects();
 
         /* install or deploy */
         if (skipDeploy == false) {
             clean();
             deploy();
         } else if (skipBuild == false) {
             clean();
             install();
         } else {
             LOG.debug("Skipping both install and deploy");
         }
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingHotfixName(List<String> hotfixBranches, String defaultHotfixName) throws MojoFailureException {
         String message = "Please select a hotfix branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, hotfixBranches, defaultHotfixName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading hotfix name from command line " + e.getMessage());
         }
 
         return name;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index d758cc7..6395c15 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -31,196 +31,196 @@ import org.slf4j.LoggerFactory;
 /**
  * Merges a release branch back into the develop and master branch and then
  * creates a tag for the release on master.
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(ReleaseFinishMojo.class.getName());
 
     /**
-     * If true, the release can still finish even when SNAPSHOT dependencies
-     * exists in the pom.
+     * If <code>true</code>, the release can still finish even if
+     * <code>-SNAPSHOT</code> dependencies exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
     private boolean allowSnapshots;
 
     /**
      * Replaces any release versions with the next <code>-SNAPSHOT</code>
      * version (if it has been deployed).
      *
      * @since 1.2
      */
     @Parameter(property = "useSnapshots", defaultValue = "true", required = false)
     private boolean useSnapshots;
 
     /**
-     * Skips any calls to mvn install
+     * Skips any calls to <code>mvn install</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "false", required = false)
     private Boolean skipBuild;
 
     /**
-     * Skips any calls to mvn deploy
+     * Skips any calls to <code>mvn deploy</code>
      *
      * @since 1.2
      */
     @Parameter(property = "skipDeploy", defaultValue = "false", required = false)
     private Boolean skipDeploy;
 
     /**
-     * If true, all commits to the branch will be squashed into a single commit
-     * before the merge.
+     * If <code>true</code>, all commits to the branch will be squashed into a
+     * single commit before the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     private Boolean squash;
 
     /**
-     * If true, the branch will not be deleted after the merge.
+     * If <code>true</code>, the branch will not be deleted after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     private Boolean keep;
 
     /**
-     * If true, any Git tags created will be signed.
+     * If <code>true</code>, the release tag will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     private Boolean sign;
 
     /**
-     * If GPG key used to sign the tag.
+     * The GNU Privacy Guard (GPG) private key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         LOG.debug("Finishing release");
 
         /* Get release branch name */
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
         if (releaseBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         } else if (releaseBranches.size() == 1) {
             releaseName = releaseBranches.get(0);
         } else {
             releaseName = promptForExistingReleaseName(releaseBranches, releaseName);
         }
 
         LOG.info("Finishing release '{}'", releaseName);
 
         /* Switch to develop branch and get its current version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         LOG.debug("develop version = " + developVersion);
 
         /* Switch to release branch and set poms to release version */
         getGitflowInit().executeLocal("git checkout " + releaseName);
         reloadReactorProjects();
         String releaseVersion = getReleaseVersion(project.getVersion());
         LOG.debug("release version = " + releaseVersion);
 
         setVersion(releaseVersion);
 
         if (!allowSnapshots) {
             checkForSnapshotDependencies();
         }
 
         /* finish release */
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setSquash(squash);
         gitflowRelease.setKeep(keep);
         gitflowRelease.setSign(sign);
         gitflowRelease.setSigningkey(signingkey);
 
         try {
             gitflowRelease.finish(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
         /* set poms to next develop version */
         String nextDevelopVersion = getNextDevelopVersion(developVersion);
         reloadReactorProjects();
         setVersion(nextDevelopVersion);
-        
+
         /* Update dependencies to next snapshot version if deployed */
         if (useSnapshots) {
             reloadReactorProjects();
             setNextVersions(true);
         }
 
         /* Switch to release tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);
         reloadReactorProjects();
         String tagVersion = project.getVersion();
         LOG.debug("tag version = " + tagVersion);
 
         /* install or deploy */
         if (skipDeploy == false) {
             clean();
             deploy();
         } else if (skipBuild == false) {
             clean();
             install();
         } else {
             LOG.debug("Skipping both install and deploy for tag " + tagVersion);
         }
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingReleaseName(List<String> releaseBranches, String defaultReleaseName) throws MojoFailureException {
         String message = "Please select a release branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, releaseBranches, defaultReleaseName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading release name from command line " + e.getMessage());
         }
 
         return name;
     }
 
     private String getNextDevelopVersion(String developVersion) {
         LOG.debug("Current Develop version '" + developVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(developVersion);
         artifactVersion.upgradeLeastSignificantPrimaryNumber();
 
         return artifactVersion.toString();
     }
 
 }

commit aca5a29fc039bee4e7cf2666ea5bc67a47d38ef8
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Sat Mar 8 17:28:26 2014 +0000

    orgianising parameters
    
    No good way to handle Interactive rebase from a Maven plugin
    
    version pumps
    
    version pumps

diff --git a/ggitflow-maven-archetype/pom.xml b/ggitflow-maven-archetype/pom.xml
index 6d8cba8..5def8de 100644
--- a/ggitflow-maven-archetype/pom.xml
+++ b/ggitflow-maven-archetype/pom.xml
@@ -1,35 +1,45 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
         <version>1.2-SNAPSHOT</version>
     </parent>
 
     <groupId>com.dkirrane.maven.archetype</groupId>
     <artifactId>ggitflow-maven-archetype</artifactId>
     <version>1.2-SNAPSHOT</version>
     <packaging>maven-archetype</packaging>
     <name>ggitflow-maven-archetype</name>
 
     <build>
         <extensions>
             <extension>
                 <groupId>org.apache.maven.archetype</groupId>
                 <artifactId>archetype-packaging</artifactId>
                 <version>2.2</version>
             </extension>
         </extensions>
 
         <pluginManagement>
             <plugins>
                 <plugin>
                     <artifactId>maven-archetype-plugin</artifactId>
                     <version>2.2</version>
                 </plugin>
             </plugins>
         </pluginManagement>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-site-plugin</artifactId>
+                <version>3.0</version>
+                <configuration>
+                    <skip>true</skip>
+                </configuration>
+            </plugin>
+        </plugins>
     </build>
 </project>
diff --git a/ggitflow-maven-plugin/nbactions.xml b/ggitflow-maven-plugin/nbactions.xml
index ff57148..46d173b 100644
--- a/ggitflow-maven-plugin/nbactions.xml
+++ b/ggitflow-maven-plugin/nbactions.xml
@@ -1,44 +1,19 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <actions>
     <action>
         <actionName>rebuild</actionName>
         <packagings>
             <packaging>*</packaging>
         </packagings>
         <goals>
             <goal>clean</goal>
             <goal>install</goal>
         </goals>
         <properties>
             <skipTests>true</skipTests>
         </properties>
     </action>
-    <action>
-        <actionName>CUSTOM-clean deploy</actionName>
-        <displayName>clean deploy</displayName>
-        <goals>
-            <goal>clean</goal>
-            <goal>deploy</goal>
-        </goals>
-        <properties>
-            <skipTests>true</skipTests>
-        </properties>
-    </action>
-    <action>
-        <actionName>CUSTOM-versions:set</actionName>
-        <displayName>versions:set</displayName>
-        <goals>
-            <goal>versions:set</goal>
-        </goals>
-        <properties>
-            <generateBackupPoms>false</generateBackupPoms>
-        </properties>
-    </action>
-    <action>
-        <actionName>CUSTOM-site</actionName>
-        <displayName>site</displayName>
-        <goals>
-            <goal>site:site</goal>
-        </goals>
-    </action>
+    
+    
+    
 </actions>
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
index cee3191..c306e78 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
@@ -26,121 +26,121 @@ import org.slf4j.LoggerFactory;
 /**
  *
  */
 public class AbstractFeatureMojo extends AbstractGitflowMojo {
-    
+
     private static final Logger LOG = LoggerFactory.getLogger(AbstractFeatureMojo.class.getName());
 
     /**
      * The name for the feature branch
      *
      * @since 1.2
      */
     @Parameter(property = "featureName", required = false)
     protected String featureName;
 
     /**
      * If true, the feature branch name is added to the pom versions
      *
      * @since 1.2
      */
-    @Parameter(defaultValue = "false", property = "enableFeatureVersions", required = false)
-    protected boolean enableFeatureVersions = false;
+    @Parameter(property = "enableFeatureVersions", defaultValue = "false", required = false)
+    protected boolean enableFeatureVersions;
 
     /**
      * If true, the feature branch is pushed to the remote repository
      *
      * @since 1.2
      */
-    @Parameter(defaultValue = "false", property = "pushFeatures", required = false)
-    protected boolean pushFeatures = false;
+    @Parameter(property = "pushFeatures", defaultValue = "false", required = false)
+    protected boolean pushFeatures;
 
     public String getFeatureBranchPrefix() {
         String prefix = getGitflowInit().getFeatureBranchPrefix();
         if (StringUtils.isBlank(prefix)) {
             prefix = DEFAULT_FEATURE_BRN_PREFIX;
         }
         return prefix;
     }
 
     public String getFeatureName(String featureLabel) throws MojoFailureException {
         if (StringUtils.isBlank(featureLabel)) {
             throw new MojoFailureException("Missing argument <featureName>");
         }
 
         featureLabel = featureLabel.replaceAll("\\s+", "");
 //        featureLabel = featureLabel.replaceAll("-+", "_");
         return featureLabel;
     }
 
     public String getFeatureVersion(String currentVersion, String featureLabel) throws MojoFailureException {
         LOG.debug("getFeatureVersion from '" + currentVersion + "'");
         featureLabel = getValidFeatureVersionAnnotation(featureLabel);
         LOG.debug("Feature version annotation '" + featureLabel + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         Character annotationSeparator = artifactVersion.getAnnotationRevisionSeparator();
         String buildSpecifier = artifactVersion.getBuildSpecifier();
         Character buildSpecifierSeparator = artifactVersion.getBuildSpecifierSeparator();
 
         LOG.debug("Parsed version = " + artifactVersion.toString());
         if (!StringUtils.isBlank(annotationAsString)) {
             throw new MojoFailureException("Cannot add feature name to version. An annotation " + annotationAsString + " already exists");
         }
 
         final StringBuilder result = new StringBuilder(30);
 
         result.append(primaryNumbersAsString).append(annotationSeparator).append(featureLabel);
 
         if (buildSpecifier != null) {
             if (buildSpecifierSeparator != null) {
                 result.append(buildSpecifierSeparator);
             }
             result.append(buildSpecifier);
         }
 
         return result.toString();
     }
 
     public String getNonFeatureVersion(String version, String featureLabel) {
         LOG.debug("getNonFeatureVersion from '" + version + "'");
         featureLabel = getValidFeatureVersionAnnotation(featureLabel);
         LOG.debug("Feature version annotation '" + featureLabel + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifier = artifactVersion.getBuildSpecifier();
         Character buildSpecifierSeparator = artifactVersion.getBuildSpecifierSeparator();
 
         LOG.debug("Parsed version = " + artifactVersion.toString());
         if (StringUtils.isBlank(annotationAsString)) {
             LOG.warn("Cannot remove feature name from pom version. The version annotation does not exists");
             return version;
         }
 
         if (('-' + featureLabel).equals(annotationAsString)) {
             final StringBuilder result = new StringBuilder(30);
             result.append(primaryNumbersAsString);
 
             if (buildSpecifier != null) {
                 if (buildSpecifierSeparator != null) {
                     result.append(buildSpecifierSeparator);
                 }
                 result.append(buildSpecifier);
             }
 
             return result.toString();
         } else {
             LOG.warn("Cannot remove feature name from pom version. The version annotation [" + annotationAsString + "] does not match the feature label [" + featureLabel + "]");
             return version;
         }
     }
 
     private String getValidFeatureVersionAnnotation(String featureLabel) {
         featureLabel = featureLabel.trim().replaceAll("\\s+", "_");
         featureLabel = featureLabel.trim().replaceAll("-+", "_");
         return featureLabel;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index bdc8952..63ec05b 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -64,496 +64,445 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.plugin;
 import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 
-/**
- *
- */
 public class AbstractGitflowMojo extends AbstractMojo {
-    
+
     private static final Logger LOG = LoggerFactory.getLogger(AbstractGitflowMojo.class.getName());
 
     public final Pattern matchSnapshotRegex = Pattern.compile("-SNAPSHOT");
 
     /**
      * Gitflow branches and prefixes to use.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
     /**
      * Message prefix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgPrefix", defaultValue = "", required = false)
     protected String msgPrefix;
 
     /**
      * Message suffix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgSuffix", defaultValue = "", required = false)
     protected String msgSuffix;
 
-    /**
-     * Skips any calls to mvn install
-     *
-     * @since 1.2
-     */
-    @Parameter(property = "skipBuild", defaultValue = "false", required = false)
-    protected Boolean skipBuild;
-
-    /**
-     * Skips any calls to mvn deploy
-     *
-     * @since 1.2
-     */
-    @Parameter(property = "skipDeploy", defaultValue = "false", required = false)
-    protected Boolean skipDeploy;
-
-    /**
-     * The commit to start the branch from.
-     *
-     * @since 1.2
-     */
-    @Parameter(property = "startCommit", defaultValue = "", required = false)
-    protected String startCommit;
-
-    /**
-     * If true, all branch commits will be squashed into a single commit before
-     * the merge.
-     *
-     * @since 1.2
-     */
-    @Parameter(property = "squash", defaultValue = "false", required = false)
-    protected Boolean squash;
-
-    /**
-     * If true, the branch will not be deleted after the merge.
-     *
-     * @since 1.2
-     */
-    @Parameter(property = "keep", defaultValue = "false", required = false)
-    protected Boolean keep;
-
-    /**
-     * If true, any Git tags created will be signed.
-     *
-     * @since 1.2
-     */
-    @Parameter(property = "sign", defaultValue = "false", required = false)
-    protected Boolean sign;
-
-    /**
-     * If GPG key used to sign the tag.
-     *
-     * @since 1.2
-     */
-    @Parameter(property = "signingkey", defaultValue = "", required = false)
-    protected String signingkey;
-
     /**
      * Component used to prompt for input.
      */
     @Component
     protected Prompter prompter;
 
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
     @Component
     protected ArtifactResolver artifactResolver;
 
     /**
      * @parameter default-value="${project.artifacts}"
      * @required
      * @readonly
      */
     protected Collection artifacts;
 
     /**
      * @parameter expression="${localRepository}"
      */
     protected ArtifactRepository localRepository;
 
     /**
      * @parameter expression="${project.remoteArtifactRepositories}"
      */
     protected List remoteArtifactRepositories;
 
 //    @Component
 //    protected MavenProjectBuilder projectBuilder;
 //    @Component
 //    protected DefaultProjectBuilder projectBuilder;
 //    /**
 //     * @parameter property="plugin"
 //     * @required
 //     */
 //    @Component
 //    protected PluginDescriptor pluginDescriptor;
 //
     /**
      * The projects in the reactor.
      */
     @Parameter(defaultValue = "${reactorProjects}", readonly = true, required = true)
     protected List<MavenProject> reactorProjects;
 
     /**
      * The project builder
      */
     @Component
     private ProjectBuilder projectBuilder;
 
     /**
      * The project currently being build.
      *
      * @parameter expression="${project}"
      * @required
      * @readonly
      */
     @Component
     protected MavenProject project;
 
     /**
      * The current Maven session.
      *
      * @parameter expression="${session}"
      * @required
      * @readonly
      */
     @Component
     protected MavenSession session;
 
     /**
      * The Maven BuildPluginManager component.
      *
      * @component
      * @required
      */
     @Component
     protected BuildPluginManager pluginManager;
 
     private GitflowInit init;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     public void execute() throws MojoExecutionException, MojoFailureException {
         StaticLoggerBinder.getSingleton().setMavenLog(this.getLog());
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             LOG.debug("Gitflow pom  '" + project.getBasedir() + "'");
         }
 
         GitflowInit gitflowInit = getGitflowInit();
 
         gitflowInit.requireGitRepo();
 
         if (!gitflowInit.gitflowIsInitialized()) {
             try {
                 gitflowInit.cmdDefault();
             } catch (GitflowException ex) {
                 throw new MojoExecutionException("Failed to inintialise Gitflow " + ex.getMessage(), ex);
             }
         }
 
         gitflowInit.requireCleanWorkingTree();
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     protected final GitflowInit getGitflowInit() {
         if (null == init) {
             LOG.info("Initialising Gitflow");
             init = new GitflowInit();
             init.setRepoDir(getProject().getBasedir());
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
 
             /* root Git directory may not be the pom directory */
             String dotGitDir = init.executeLocal("git rev-parse --git-dir");
             File dotGitFolder = new File(dotGitDir);
             assert dotGitFolder.exists();
             init.setRepoDir(dotGitFolder.getParentFile());
         }
         return init;
     }
 
     protected final void setVersion(String version) throws MojoExecutionException, MojoFailureException {
         LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.codehaus.mojo"),
                         artifactId("versions-maven-plugin"),
                         version("2.1")
                 ),
                 goal("set"),
                 configuration(
                         element(name("generateBackupPoms"), "false"),
                         element(name("newVersion"), version)
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
         LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change " + version + " to origin. ExitCode:" + exitCode);
                 }
             }
         }
         /* We don't want to fail maybe the version was manually set correctly */
 //        else {
 //            throw new MojoFailureException("Failed to update poms to version " + version);
 //        }
     }
 
-    protected final void setReleaseVersions() throws MojoExecutionException, MojoFailureException {
-        LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:use-releases");
+    protected final void setNextVersions(Boolean allowSnapshots) throws MojoExecutionException, MojoFailureException {
+        LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:use-next-versions -DallowSnapshots=" + allowSnapshots);
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
+        session.setCurrentProject(rootProject);
+        session.setProjects(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.codehaus.mojo"),
                         artifactId("versions-maven-plugin"),
                         version("2.1")
                 ),
-                goal("use-releases"),
+                goal("use-next-versions"),
                 configuration(
-                        element(name("generateBackupPoms"), "false")
+                        element(name("generateBackupPoms"), "false"),
+                        element(name("allowSnapshots"), allowSnapshots.toString())
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
-        LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:use-releases");
+        LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:use-next-versions");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
-            String msg = getMsgPrefix() + "Replacing -SNAPSHOT versions with their corresponding releases" + getMsgSuffix();
+            String msg;
+            if (allowSnapshots) {
+                msg = getMsgPrefix() + "Replaces any release versions with the next snapshot version (if it has been deployed)." + getMsgSuffix();
+            } else {
+                msg = getMsgPrefix() + "Replaces snapshot versions with the corresponding release version" + getMsgSuffix();
+            }
+
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
-                    throw new MojoExecutionException("Failed to push release version change to origin. ExitCode:" + exitCode);
+                    throw new MojoExecutionException("Failed to push version change to origin. ExitCode:" + exitCode);
                 }
             }
         }
     }
 
     protected final void clean() throws MojoExecutionException, MojoFailureException {
         LOG.debug("START org.apache.maven.plugins:maven-clean-plugin:2.5:clean");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-clean-plugin"),
                         version("2.5")
                 ),
                 goal("clean"),
                 configuration(
                         element(name("skip"), "false")
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
         LOG.debug("DONE org.apache.maven.plugins:maven-clean-plugin:2.5:clean");
     }
 
     protected final void install() throws MojoExecutionException, MojoFailureException {
         LOG.debug("START org.apache.maven.plugins:maven-install-plugin:2.5.1:install");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-install-plugin"),
                         version("2.5.1")
                 ),
                 goal("install"),
                 configuration(
                         element(name("skip"), "false")
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
         LOG.debug("DONE org.apache.maven.plugins:maven-install-plugin:2.5.1:install");
     }
 
     protected final void deploy() throws MojoExecutionException, MojoFailureException {
         LOG.debug("START org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-deploy-plugin"),
                         version("2.8.1")
                 ),
                 goal("deploy"),
                 configuration(
                         element(name("skip"), "false"),
                         element(name("retryFailedDeploymentCount"), "1")
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
         LOG.debug("DONE org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy");
     }
 
     protected final String getReleaseVersion(String version) throws MojoFailureException {
         LOG.debug("Current Develop version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
             LOG.debug("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
     protected final void checkForSnapshotDependencies() throws MojoExecutionException {
         LOG.info("Checking for SNAPSHOT dependencies");
         DependencyManagement dependencyManagement = getProject().getDependencyManagement();
         if (null != dependencyManagement) {
             checkForSnapshot(dependencyManagement.getDependencies());
         }
         checkForSnapshot(getProject().getDependencies());
     }
 
     private void checkForSnapshot(List<Dependency> dependencies) throws MojoExecutionException {
         Boolean hasSnapshotDependency = false;
         for (Dependency dependency : dependencies) {
             String version = dependency.getVersion();
             Matcher versionMatcher = matchSnapshotRegex.matcher(version);
             if (versionMatcher.find() && versionMatcher.end() == version.length()) {
                 LOG.error("Found SNAPSHOT depednency " + dependency.getGroupId() + ":" + dependency.getArtifactId() + ":" + version);
             }
         }
         if (hasSnapshotDependency) {
             throw new MojoExecutionException("Cannot start release because SNAPSHOT dependencies exist");
         }
     }
 
     protected final void reloadReactorProjects() throws MojoExecutionException {
         LOG.debug("Reloading poms...");
 
         List<MavenProject> newReactorProjects;
         try {
             newReactorProjects = buildReactorProjects();
         } catch (ProjectBuildingException e) {
             LOG.error("Re-parse aborted due to malformed pom.xml file(s)", e);
             throw new MojoExecutionException("Re-parse aborted due to malformed pom.xml file(s)", e);
         } catch (CycleDetectedException e) {
             LOG.error("Re-parse aborted due to dependency cycle in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to dependency cycle in project model", e);
         } catch (DuplicateProjectException e) {
             LOG.error("Re-parse aborted due to duplicate projects in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to duplicate projects in project model", e);
         } catch (Exception e) {
             LOG.error("Re-parse aborted due a problem that prevented sorting the project model", e);
             throw new MojoExecutionException("Re-parse aborted due a problem that prevented sorting the project model", e);
         }
         MavenProject newProject = findProject(newReactorProjects, this.project);
         if (newProject == null) {
             throw new MojoExecutionException("A pom.xml change appears to have removed " + this.project.getId() + " from the build plan.");
         }
 
         this.project = newProject;
         this.reactorProjects = newReactorProjects;
 
         LOG.debug("Reloading poms complete...");
     }
 
     private List<MavenProject> buildReactorProjects() throws Exception {
 
         List<MavenProject> projects = new ArrayList<MavenProject>();
         for (MavenProject p : reactorProjects) {
             ProjectBuildingRequest request = new DefaultProjectBuildingRequest();
 
             request.setProcessPlugins(true);
             request.setProfiles(request.getProfiles());
             request.setActiveProfileIds(session.getRequest().getActiveProfiles());
             request.setInactiveProfileIds(session.getRequest().getInactiveProfiles());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setSystemProperties(session.getSystemProperties());
             request.setUserProperties(session.getUserProperties());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setPluginArtifactRepositories(session.getRequest().getPluginArtifactRepositories());
             request.setRepositorySession(session.getRepositorySession());
             request.setLocalRepository(localRepository);
             request.setBuildStartTime(session.getRequest().getStartTime());
             request.setResolveDependencies(true);
             request.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_STRICT);
             projects.add(projectBuilder.build(p.getFile(), request).getProject());
         }
         return new ProjectSorter(projects).getSortedProjects();
     }
 
     private MavenProject findProject(List<MavenProject> newReactorProjects, MavenProject oldProject) {
         for (MavenProject newProject : newReactorProjects) {
             if (oldProject.getGroupId().equals(newProject.getGroupId())
                     && oldProject.getArtifactId().equals(newProject.getArtifactId())) {
                 return newProject;
             }
         }
         return null;
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractHotfixMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractHotfixMojo.java
index d6d4e23..c083588 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractHotfixMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractHotfixMojo.java
@@ -18,15 +18,12 @@ package com.dkirrane.maven.plugins.ggitflow;
 import org.apache.maven.plugins.annotations.Parameter;
 
-/**
- *
- */
 public class AbstractHotfixMojo extends AbstractGitflowMojo {
 
     /**
      * If true, the hotfix branch is pushed to the remote repository
      *
      * @since 1.2
      */
-    @Parameter(defaultValue = "false", property = "pushHotfixes")
-    protected boolean pushHotfixes = false;
+    @Parameter(property = "pushHotfixes", defaultValue = "false", required = false)
+    protected boolean pushHotfixes;
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java
index fbe57e0..7fe700f 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java
@@ -24,43 +24,40 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-/**
- *
- */
 public class AbstractReleaseMojo extends AbstractGitflowMojo {
-    
+
     private static final Logger LOG = LoggerFactory.getLogger(AbstractReleaseMojo.class.getName());
 
     /**
      * The name for the release branch.
      *
      * @since 1.2
      */
-    @Parameter(property = "releaseName")
+    @Parameter(property = "releaseName", required = false)
     protected String releaseName;
 
     /**
      * If true, the release branch is pushed to the remote repository.
      *
      * @since 1.2
      */
-    @Parameter(defaultValue = "false", property = "pushReleases")
-    protected boolean pushReleases = false;
+    @Parameter(property = "pushReleases", defaultValue = "false", required = false)
+    protected boolean pushReleases;
 
     public String getReleaseBranchPrefix() {
         String prefix = getGitflowInit().getReleaseBranchPrefix();
         if (StringUtils.isBlank(prefix)) {
             prefix = DEFAULT_RELEASE_BRN_PREFIX;
         }
         return prefix;
     }
 
     public String getNextDevelopmentVersion(String version) throws MojoFailureException {
         LOG.debug("Project version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
         GenericArtifactVersion nextDevelopVersion = artifactVersion.upgradeLeastSignificantNumber();
 
         LOG.debug("Project version '" + nextDevelopVersion + "'");
         return nextDevelopVersion.toString();
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
index c199ab5..8b846f3 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
@@ -31,108 +31,134 @@ import org.slf4j.LoggerFactory;
 /**
  * Merges a feature branch back into the develop.
  */
 @Mojo(name = "feature-finish", aggregator = true)
 public class FeatureFinishMojo extends AbstractFeatureMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(FeatureFinishMojo.class.getName());
 
     /**
-     * If true, the feature branch rebases onto develop, then finish can
-     * fast-forward merge the feature branch back into develop.
+     * If true, the feature branch will be rebased onto develop, then finish
+     * will fast-forward merge the feature branch back onto develop.
      *
      * @since 1.2
      */
-    @Parameter(defaultValue = "false", property = "isRebase")
-    private boolean isRebase = false;
+    @Parameter(property = "isRebase", defaultValue = "false", required = false)
+    private boolean isRebase;
+
+//    No good way to handle Interactive rebase from a Maven plugin
+//    /**
+//     * If true, and <code>isRebase</code> is true, then an interactive rebase is
+//     * performed for the feature branch.
+//     *
+//     * @since 1.2
+//     */
+//    @Parameter(property = "isInteractive", defaultValue = "false", required = false)
+    private final boolean isInteractive = false;
 
     /**
-     * If true, and isRebase parameter is also true, then an interactive rebase
-     * is performed for the feature branch.
+     * Skips any calls to mvn install
      *
      * @since 1.2
      */
-    @Parameter(defaultValue = "false", property = "isInteractive")
-    private boolean isInteractive = false;
+    @Parameter(property = "skipBuild", defaultValue = "false", required = false)
+    private Boolean skipBuild;
+
+    /**
+     * If true, all commits to the branch will be squashed into a single commit
+     * before the merge.
+     *
+     * @since 1.2
+     */
+    @Parameter(property = "squash", defaultValue = "false", required = false)
+    private Boolean squash;
+
+    /**
+     * If true, the branch will not be deleted after the merge.
+     *
+     * @since 1.2
+     */
+    @Parameter(property = "keep", defaultValue = "false", required = false)
+    private Boolean keep;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         LOG.debug("Finishing feature");
-        
+
         List<String> featureBranches = getGitflowInit().gitLocalFeatureBranches();
 
         if (null == featureBranches || featureBranches.isEmpty()) {
-            throw new MojoFailureException("No local feature branches exit!");            
-        }        
+            throw new MojoFailureException("No local feature branches exit!");
+        }
 
         String featureBranchPrefix = getFeatureBranchPrefix();
         if (StringUtils.isBlank(featureName)) {
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (currentBranch.startsWith(featureBranchPrefix)) {
                 featureName = currentBranch;
             } else {
                 featureName = featureBranches.get(0);
             }
         } else {
             featureName = getFeatureName(featureName);
         }
 
         featureName = promptForExistingFeatureName(featureBranches, featureName);
-        
+
         LOG.info("Finishing feature '{}'", featureName);
 
         if (enableFeatureVersions) {
             /* Switch to develop branch and get its current version */
             getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
             reloadReactorProjects();
             String developVersion = project.getVersion();
             LOG.debug("develop version = " + developVersion);
 
             /* Switch to feature branch and get its current version */
             getGitflowInit().executeLocal("git checkout " + featureName);
             reloadReactorProjects();
             String featureVersion = project.getVersion();
             LOG.debug("feature version = " + featureVersion);
 
             setVersion(developVersion);
         }
 
         if (!skipBuild) {
             clean();
             install();
         } else {
             LOG.debug("Skipping both install and deploy");
         }
 
         GitflowFeature gitflowFeature = new GitflowFeature();
         gitflowFeature.setInit(getGitflowInit());
         gitflowFeature.setMsgPrefix(getMsgPrefix());
         gitflowFeature.setMsgSuffix(getMsgSuffix());
         gitflowFeature.setSquash(squash);
         gitflowFeature.setKeep(keep);
         gitflowFeature.setIsRebase(isRebase);
         gitflowFeature.setIsInteractive(isInteractive);
 
         try {
             gitflowFeature.finish(featureName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
     }
 
     private String promptForExistingFeatureName(List<String> featureBranches, String defaultFeatureName) throws MojoFailureException {
         String message = "Please select a feature branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, featureBranches, defaultFeatureName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading feature name from command line " + e.getMessage());
         }
 
         return name.trim();
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
index 6c8fc9d..454ca66 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
@@ -25,2 +25,3 @@ import org.apache.maven.plugins.annotations.LifecyclePhase;
 import org.apache.maven.plugins.annotations.Mojo;
+import org.apache.maven.plugins.annotations.Parameter;
 import org.codehaus.plexus.components.interactivity.PrompterException;
@@ -31,66 +32,74 @@ import org.slf4j.LoggerFactory;
 /**
  * Creates a new feature branch off of the develop branch.
  */
 @Mojo(name = "feature-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class FeatureStartMojo extends AbstractFeatureMojo {
-    
+
     private static final Logger LOG = LoggerFactory.getLogger(FeatureStartMojo.class.getName());
 
+    /**
+     * The commit to start the feature branch from.
+     *
+     * @since 1.2
+     */
+    @Parameter(property = "startCommit", defaultValue = "", required = false)
+    protected String startCommit;
+
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         String prefix = getFeatureBranchPrefix();
         if (StringUtils.isBlank(featureName)) {
             String message = "What is the feature branch name? " + prefix;
             try {
                 featureName = prompter.prompt(message);
                 if (StringUtils.isBlank(featureName)) {
                     throw new MojoFailureException("Parameter <featureName> cannot be null or empty.");
                 }
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading feature name from command line " + ex.getMessage(), ex);
             }
         }
         featureName = getFeatureName(featureName);
 
         LOG.info("Starting feature '" + featureName + "'");
         LOG.debug("msgPrefix '" + getMsgPrefix() + "'");
         LOG.debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowFeature gitflowFeature = new GitflowFeature();
         gitflowFeature.setInit(getGitflowInit());
         gitflowFeature.setMsgPrefix(getMsgPrefix());
         gitflowFeature.setMsgSuffix(getMsgSuffix());
         gitflowFeature.setPush(pushFeatures);
         gitflowFeature.setStartCommit(startCommit);
 
         try {
             gitflowFeature.start(featureName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         if (enableFeatureVersions) {
             /* Already on feature branch so just get its current version */
             Model model = MavenUtil.readPom(reactorProjects);
             String currentVersion = model.getVersion();
 
             String featureVersion = getFeatureVersion(currentVersion, featureName);
             setVersion(featureVersion);
 
             if (getGitflowInit().gitRemoteBranchExists(prefix + featureName)) {
                 getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + featureName);
             }
 
             /* print feature version */
             reloadReactorProjects();
             LOG.debug("project = " + project.getVersion());
         }
     }
 
     public String getFeatureName() {
         return featureName;
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
index fd515b2..4491ff6 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
@@ -31,133 +31,181 @@ import org.slf4j.LoggerFactory;
 /**
  * Merges a hotfix branch back into the develop and master branch and then
  * creates a tag for the hotfix on master.
  */
 @Mojo(name = "hotfix-finish", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class HotfixFinishMojo extends AbstractHotfixMojo {
-    
+
     private static final Logger LOG = LoggerFactory.getLogger(HotfixFinishMojo.class.getName());
 
     protected String hotfixName;
-    
+
     /**
      * If true, the hotfix can still finish even when SNAPSHOT dependencies
      * exists in the pom.
      *
      * @since 1.2
      */
-    @Parameter(defaultValue = "false", property = "allowSnapshots")
-    private boolean allowSnapshots = false;  
-    
+    @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
+    private boolean allowSnapshots;
+
+    /**
+     * Skips any calls to mvn install
+     *
+     * @since 1.2
+     */
+    @Parameter(property = "skipBuild", defaultValue = "false", required = false)
+    private Boolean skipBuild;
+
+    /**
+     * Skips any calls to mvn deploy
+     *
+     * @since 1.2
+     */
+    @Parameter(property = "skipDeploy", defaultValue = "false", required = false)
+    private Boolean skipDeploy;
+
+    /**
+     * If true, all commits to the branch will be squashed into a single commit
+     * before the merge.
+     *
+     * @since 1.2
+     */
+    @Parameter(property = "squash", defaultValue = "false", required = false)
+    private Boolean squash;
+
+    /**
+     * If true, the branch will not be deleted after the merge.
+     *
+     * @since 1.2
+     */
+    @Parameter(property = "keep", defaultValue = "false", required = false)
+    private Boolean keep;
+
+    /**
+     * If true, any Git tags created will be signed.
+     *
+     * @since 1.2
+     */
+    @Parameter(property = "sign", defaultValue = "false", required = false)
+    private Boolean sign;
+
+    /**
+     * If GPG key used to sign the tag.
+     *
+     * @since 1.2
+     */
+    @Parameter(property = "signingkey", defaultValue = "", required = false)
+    private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         LOG.debug("Finishing hotfix");
 
         /* Get hotfix branch name */
         List<String> hotfixBranches = getGitflowInit().gitLocalHotfixBranches();
         if (hotfixBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         } else if (hotfixBranches.size() == 1) {
             hotfixName = hotfixBranches.get(0);
         } else {
             hotfixName = promptForExistingHotfixName(hotfixBranches, hotfixName);
         }
-        
+
         LOG.info("Finishing hotfix '{}'", hotfixName);
 
         /* Switch to hotfix branch and set poms to hotfix version */
         getGitflowInit().executeLocal("git checkout " + hotfixName);
         reloadReactorProjects();
         String hotfixVersion = project.getVersion();
         LOG.debug("hotfix snapshot version = " + hotfixVersion);
         String hotfixReleaseVersion = getReleaseVersion(hotfixVersion);
         LOG.debug("hotfix release version = " + hotfixReleaseVersion);
         setVersion(hotfixReleaseVersion);
 
         /* Switch to develop branch and get current develop version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         LOG.debug("develop version = " + developVersion);
 
         /* Set develop branch to hotfix version to prevent merge conflicts */
         setVersion(hotfixReleaseVersion);
-        
+
         if (!allowSnapshots) {
             checkForSnapshotDependencies();
-        }            
+        }
 
         /* finish hotfix */
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
         gitflowHotfix.setSquash(squash);
         gitflowHotfix.setKeep(keep);
         gitflowHotfix.setSign(sign);
         gitflowHotfix.setSigningkey(signingkey);
 
         try {
             gitflowHotfix.finish(hotfixName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             LOG.error("Merge conflicts exist.", gmce);
             throw new MojoFailureException(gmce.getMessage());
 
 //            LOG.info("Attempting to auto-resolve any pom version conflicts.", gmce);
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            fixPomMergeConflicts.setInit(getGitflowInit());
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
         /* Set develop branch back to original develop version */
         setVersion(developVersion);
         if (getGitflowInit().gitRemoteBranchExists(developBranch)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + developBranch);
         }
 
         /* Switch to hotfix tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + hotfixReleaseVersion);
         reloadReactorProjects();
 
         /* install or deploy */
         if (skipDeploy == false) {
             clean();
             deploy();
         } else if (skipBuild == false) {
             clean();
             install();
         } else {
             LOG.debug("Skipping both install and deploy");
         }
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingHotfixName(List<String> hotfixBranches, String defaultHotfixName) throws MojoFailureException {
         String message = "Please select a hotfix branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, hotfixBranches, defaultHotfixName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading hotfix name from command line " + e.getMessage());
         }
 
         return name;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index f9be77a..d758cc7 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -31,132 +31,196 @@ import org.slf4j.LoggerFactory;
 /**
  * Merges a release branch back into the develop and master branch and then
  * creates a tag for the release on master.
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
-    
+
     private static final Logger LOG = LoggerFactory.getLogger(ReleaseFinishMojo.class.getName());
-    
+
     /**
      * If true, the release can still finish even when SNAPSHOT dependencies
      * exists in the pom.
      *
      * @since 1.2
      */
-    @Parameter(defaultValue = "false", property = "allowSnapshots")
-    private boolean allowSnapshots = false;    
+    @Parameter(property = "allowSnapshots", defaultValue = "false", required = false)
+    private boolean allowSnapshots;
+
+    /**
+     * Replaces any release versions with the next <code>-SNAPSHOT</code>
+     * version (if it has been deployed).
+     *
+     * @since 1.2
+     */
+    @Parameter(property = "useSnapshots", defaultValue = "true", required = false)
+    private boolean useSnapshots;
+
+    /**
+     * Skips any calls to mvn install
+     *
+     * @since 1.2
+     */
+    @Parameter(property = "skipBuild", defaultValue = "false", required = false)
+    private Boolean skipBuild;
+
+    /**
+     * Skips any calls to mvn deploy
+     *
+     * @since 1.2
+     */
+    @Parameter(property = "skipDeploy", defaultValue = "false", required = false)
+    private Boolean skipDeploy;
+
+    /**
+     * If true, all commits to the branch will be squashed into a single commit
+     * before the merge.
+     *
+     * @since 1.2
+     */
+    @Parameter(property = "squash", defaultValue = "false", required = false)
+    private Boolean squash;
+
+    /**
+     * If true, the branch will not be deleted after the merge.
+     *
+     * @since 1.2
+     */
+    @Parameter(property = "keep", defaultValue = "false", required = false)
+    private Boolean keep;
+
+    /**
+     * If true, any Git tags created will be signed.
+     *
+     * @since 1.2
+     */
+    @Parameter(property = "sign", defaultValue = "false", required = false)
+    private Boolean sign;
+
+    /**
+     * If GPG key used to sign the tag.
+     *
+     * @since 1.2
+     */
+    @Parameter(property = "signingkey", defaultValue = "", required = false)
+    private String signingkey;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         LOG.debug("Finishing release");
 
         /* Get release branch name */
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
         if (releaseBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         } else if (releaseBranches.size() == 1) {
             releaseName = releaseBranches.get(0);
         } else {
             releaseName = promptForExistingReleaseName(releaseBranches, releaseName);
         }
-        
+
         LOG.info("Finishing release '{}'", releaseName);
 
         /* Switch to develop branch and get its current version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         LOG.debug("develop version = " + developVersion);
 
         /* Switch to release branch and set poms to release version */
         getGitflowInit().executeLocal("git checkout " + releaseName);
         reloadReactorProjects();
         String releaseVersion = getReleaseVersion(project.getVersion());
         LOG.debug("release version = " + releaseVersion);
 
         setVersion(releaseVersion);
-                
+
         if (!allowSnapshots) {
             checkForSnapshotDependencies();
-        }        
+        }
 
         /* finish release */
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setSquash(squash);
         gitflowRelease.setKeep(keep);
         gitflowRelease.setSign(sign);
         gitflowRelease.setSigningkey(signingkey);
 
         try {
             gitflowRelease.finish(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
         /* set poms to next develop version */
         String nextDevelopVersion = getNextDevelopVersion(developVersion);
         reloadReactorProjects();
         setVersion(nextDevelopVersion);
+        
+        /* Update dependencies to next snapshot version if deployed */
+        if (useSnapshots) {
+            reloadReactorProjects();
+            setNextVersions(true);
+        }
 
         /* Switch to release tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);
         reloadReactorProjects();
         String tagVersion = project.getVersion();
         LOG.debug("tag version = " + tagVersion);
 
         /* install or deploy */
         if (skipDeploy == false) {
             clean();
             deploy();
         } else if (skipBuild == false) {
             clean();
             install();
         } else {
             LOG.debug("Skipping both install and deploy for tag " + tagVersion);
         }
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingReleaseName(List<String> releaseBranches, String defaultReleaseName) throws MojoFailureException {
         String message = "Please select a release branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, releaseBranches, defaultReleaseName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading release name from command line " + e.getMessage());
         }
 
         return name;
     }
 
     private String getNextDevelopVersion(String developVersion) {
         LOG.debug("Current Develop version '" + developVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(developVersion);
         artifactVersion.upgradeLeastSignificantPrimaryNumber();
 
         return artifactVersion.toString();
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
index 4b48dc4..9dfd4c7 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
@@ -24,2 +24,3 @@ import org.apache.maven.plugins.annotations.Mojo;
 import org.apache.maven.plugins.annotations.Parameter;
+import org.apache.maven.plugins.annotations.ResolutionScope;
 import org.codehaus.plexus.components.interactivity.PrompterException;
@@ -29,93 +30,104 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
 /**
  * Creates a new release branch off of the develop branch.
  */
-@Mojo(name = "release-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
+@Mojo(name = "release-start", aggregator = true, requiresDependencyResolution = ResolutionScope.COMPILE_PLUS_RUNTIME, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class ReleaseStartMojo extends AbstractReleaseMojo {
-    
+
     private static final Logger LOG = LoggerFactory.getLogger(ReleaseStartMojo.class.getName());
 
     /**
-     * Replaces any -SNAPSHOT versions with their corresponding releases.
+     * Replaces any <code>-SNAPSHOT</code> versions with the corresponding
+     * release version (if it has been released).
+     *
+     * @since 1.2
+     */
+    @Parameter(property = "useReleases", defaultValue = "true", required = false)
+    private boolean useReleases;
+
+    /**
+     * The commit to start the release branch from.
      *
      * @since 1.2
      */
-    @Parameter(defaultValue = "true", property = "useReleases")
-    private boolean useReleases = true;
+    @Parameter(property = "startCommit", defaultValue = "", required = false)
+    private String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         /* Switch to develop branch and get its current version */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
         reloadReactorProjects();
         String developVersion = project.getVersion();
         LOG.debug("develop version = " + developVersion);
 
         /* Get suggested release version */
         String releaseVersion = getReleaseVersion(developVersion);
         LOG.debug("release version = " + releaseVersion);
 //        String nextDevelopmentVersion = getNextDevelopmentVersion(project.getVersion());
 
         /* create release branch */
         String prefix = getReleaseBranchPrefix();
         if (StringUtils.isBlank(releaseName)) {
             String message = "What is the release branch name? " + prefix;
             try {
                 releaseName = prompter.prompt(message, releaseVersion);
                 if (StringUtils.isBlank(releaseName)) {
                     throw new MojoFailureException("Parameter <releaseName> cannot be null or empty.");
                 }
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading release name from command line " + ex.getMessage(), ex);
             }
         }
 
         try {
             new GenericArtifactVersion(releaseName);
         } catch (IllegalArgumentException e) {
             throw new MojoExecutionException("Provided releaseName " + releaseName + " is not a valid Maven version.");
         }
 
         LOG.info("Starting release '" + releaseName + "'");
         LOG.debug("msgPrefix '" + getMsgPrefix() + "'");
         LOG.debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setPush(pushReleases);
         gitflowRelease.setStartCommit(startCommit);
 
         try {
             gitflowRelease.start(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         // current branch should be the release branch
         String releaseBranch = getGitflowInit().gitCurrentBranch();
         if (!releaseBranch.startsWith(prefix)) {
             throw new MojoFailureException("Failed to create release version.");
         }
 
+        /* Update dependencies to release version */
         if (useReleases) {
-            setReleaseVersions();
+            reloadReactorProjects();
+            setNextVersions(false);
         }
 
 //        // checkout develop branch and update it's version
 //        String developBranch = (String) getGitflowInit().getDevelopBrnName();
 //        getGitflowInit().executeLocal("git checkout " + developBranch);
 //        setVersion(nextDevelopmentVersion);
 //
 //        // checkout release branch again
 //        getGitflowInit().executeLocal("git checkout " + releaseBranch);
     }
 
     public String getReleaseName() {
         return releaseName;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
index eed01f6..2fef444 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
@@ -24,2 +24,3 @@ import org.apache.maven.plugins.annotations.LifecyclePhase;
 import org.apache.maven.plugins.annotations.Mojo;
+import org.apache.maven.plugins.annotations.Parameter;
 import org.codehaus.plexus.components.interactivity.PrompterException;
@@ -32,102 +33,110 @@ import org.slf4j.LoggerFactory;
 /**
  * Creates a new support branch from a specific commit on the master branch.
  */
 @Mojo(name = "support-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class SupportStartMojo extends AbstractGitflowMojo {
-    
+
     private static final Logger LOG = LoggerFactory.getLogger(SupportStartMojo.class.getName());
 
+    /**
+     * The commit to start the support branch from.
+     *
+     * @since 1.2
+     */
+    @Parameter(property = "startCommit", defaultValue = "", required = false)
+    protected String startCommit;
+
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         String prefix = getGitflowInit().getSupportBranchPrefix();
 
         List<String> tags = getGitflowInit().gitAllTags();
         if (tags.isEmpty()) {
             throw new MojoFailureException("Could not find any tags to create support branch from!");
         }
 
         String baseName = promptForExistingTagName(tags, tags.get(tags.size() - 1));
 
         getGitflowInit().executeLocal("git checkout " + baseName);
 
         String supportVersion = getSupportVersion(project.getVersion());
         String supportSnapshotVersion = getSupportSnapshotVersion(project.getVersion());
 
         LOG.info("Starting support branch '" + supportVersion + "'");
         LOG.debug("msgPrefix '" + getMsgPrefix() + "'");
         LOG.debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowSupport gitflowSupport = new GitflowSupport();
         gitflowSupport.setInit(getGitflowInit());
         gitflowSupport.setMsgPrefix(getMsgPrefix());
         gitflowSupport.setMsgSuffix(getMsgSuffix());
         gitflowSupport.setStartCommit(startCommit);
 
         try {
             gitflowSupport.start(supportVersion);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         setVersion(supportSnapshotVersion);
 
         if (getGitflowInit().gitRemoteBranchExists(prefix + supportVersion)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + supportVersion);
         }
     }
 
     private String promptForExistingTagName(List<String> branches, String defaultBrnName) throws MojoFailureException {
         String message = "Please select the Tag to create the support branch from?";
 
         String name = "";
         try {
             name = prompter.prompt(message, branches, defaultBrnName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading selected Tag name from command line " + e.getMessage());
         }
 
         return name;
     }
 
     private String getSupportVersion(String currentVersion) throws MojoFailureException {
         LOG.debug("getSupportVersion from '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         StringBuilder sb = new StringBuilder(10);
 //        int pCount = artifactVersion.getPrimaryNumberCount();
 //        for (int i = 0; i < pCount; i++) {
 //            Integer primaryNumber = artifactVersion.getPrimaryNumber(i);
 //            if (i == (pCount - 1)) {
 //                sb.append('x');
 //            } else {
 //                sb.append(primaryNumber);
 //            }
 //        }
         sb.append(artifactVersion.getPrimaryNumbersAsString()).append('.').append('x');
         sb.append(artifactVersion.getAnnotationAsString()).append(artifactVersion.getBuildSpecifierAsString());
 
         return sb.toString();
     }
 
     private String getSupportSnapshotVersion(String currentVersion) throws MojoFailureException {
         LOG.debug("getSupportSnapshotVersion from '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         final StringBuilder result = new StringBuilder(30);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         if (null == artifactVersion.getAnnotation()) {
             result.append(primaryNumbersAsString).append('.').append('0');
         } else {
             artifactVersion.upgradeAnnotationRevision();
             result.append(artifactVersion.toString());
         }
         result.append(DEFAULT_VERSION_COMPONENT_SEPARATOR).append(SNAPSHOT_QUALIFIER);
 
         return result.toString();
     }
 }
diff --git a/pom.xml b/pom.xml
index 1a01a14..75208c3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,169 +1,169 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven</artifactId>
     <version>1.2-SNAPSHOT</version>
     <packaging>pom</packaging>
 
     <modules>
         <module>ggitflow-maven-plugin</module>
         <module>ggitflow-maven-archetype</module>
     </modules>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
     </properties>
 
     <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
 
     <scm>
         <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
         <connection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</connection>
         <developerConnection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</developerConnection>
     </scm>
 
     <description>Maven Archetype for the Gitflow Maven Plugin</description>
     <developers>
         <developer>
             <id>dkirrane</id>
             <name>Desmond Kirrane</name>
             <email>desmond.kirrane@gmail.com</email>
         </developer>
     </developers>
     <licenses>
         <license>
             <name>Apache License Version 2.0, January 2004</name>
             <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
             <distribution>repo</distribution>
         </license>
     </licenses>
 
     <build>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <version>2.3.2</version>
                 <configuration>
                     <source>1.5</source>
                     <target>1.5</target>
                 </configuration>
-            </plugin>
+            </plugin>          
         </plugins>
     </build>
 
     <profiles>
         <!-- Deploy to https://oss.sonatype.org/index.html -->
         <!-- mvn clean deploy -Prelease-sign-artifacts -->
         <profile>
             <id>release-sign-artifacts</id>
             <activation>
                 <property>
                     <name>performRelease</name>
                     <value>true</value>
                 </property>
             </activation>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-gpg-plugin</artifactId>
                         <executions>
                             <execution>
                                 <id>sign-artifacts</id>
                                 <phase>verify</phase>
                                 <goals>
                                     <goal>sign</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
             </build>
         </profile>
         <profile>
             <id>run-its</id>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-invoker-plugin</artifactId>
                         <version>1.8</version>
                         <configuration>
                             <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
                             <settingsFile>src/it/settings.xml</settingsFile>
                             <debug>true</debug>
                             <showErrors>true</showErrors>
                             <detail>true</detail>
                             <streamLogs>true</streamLogs>
                             <projectsDirectory>src/it/projects</projectsDirectory>
                             <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
                             <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
                             <addTestClassPath>true</addTestClassPath>
                             <preBuildHookScript>setup</preBuildHookScript>
                             <postBuildHookScript>verify</postBuildHookScript>
                             <pomIncludes>
                                 <pomInclude>*/pom.xml</pomInclude>
                             </pomIncludes>
                             <goals>
                                 <goal>clean</goal>
                                 <goal>test-compile</goal>
                             </goals>
                         </configuration>
                         <executions>
                             <execution>
                                 <id>integration-test</id>
                                 <goals>
                                     <goal>install</goal>
                                     <goal>integration-test</goal>
                                     <goal>verify</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
 
             </build>
         </profile>
     </profiles>
 
     <!--
         Sonatype upload details:
         http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
         https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
         https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
         https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
 
             - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
             - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
             - Promote staged artifacts into repository 'Releases'
             - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
             - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
     -->
 
     <distributionManagement>
         <snapshotRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
         </snapshotRepository>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
         </repository>
     </distributionManagement>
     <repositories>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
             <snapshots>
                 <enabled>true</enabled>
             </snapshots>
         </repository>
     </repositories>
 </project>

commit 3f7dda42a53a3ca9ee769719784c53264386aa7c
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Sat Mar 8 14:48:45 2014 +0000

    Logging improvements

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index 8f60a9a..bdc8952 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -66,494 +66,494 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 /**
  *
  */
 public class AbstractGitflowMojo extends AbstractMojo {
     
     private static final Logger LOG = LoggerFactory.getLogger(AbstractGitflowMojo.class.getName());
 
     public final Pattern matchSnapshotRegex = Pattern.compile("-SNAPSHOT");
 
     /**
      * Gitflow branches and prefixes to use.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
     /**
      * Message prefix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgPrefix", defaultValue = "", required = false)
     protected String msgPrefix;
 
     /**
      * Message suffix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgSuffix", defaultValue = "", required = false)
     protected String msgSuffix;
 
     /**
      * Skips any calls to mvn install
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "false", required = false)
     protected Boolean skipBuild;
 
     /**
      * Skips any calls to mvn deploy
      *
      * @since 1.2
      */
     @Parameter(property = "skipDeploy", defaultValue = "false", required = false)
     protected Boolean skipDeploy;
 
     /**
      * The commit to start the branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     protected String startCommit;
 
     /**
      * If true, all branch commits will be squashed into a single commit before
      * the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     protected Boolean squash;
 
     /**
      * If true, the branch will not be deleted after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     protected Boolean keep;
 
     /**
      * If true, any Git tags created will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     protected Boolean sign;
 
     /**
      * If GPG key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     protected String signingkey;
 
     /**
      * Component used to prompt for input.
      */
     @Component
     protected Prompter prompter;
 
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
     @Component
     protected ArtifactResolver artifactResolver;
 
     /**
      * @parameter default-value="${project.artifacts}"
      * @required
      * @readonly
      */
     protected Collection artifacts;
 
     /**
      * @parameter expression="${localRepository}"
      */
     protected ArtifactRepository localRepository;
 
     /**
      * @parameter expression="${project.remoteArtifactRepositories}"
      */
     protected List remoteArtifactRepositories;
 
 //    @Component
 //    protected MavenProjectBuilder projectBuilder;
 //    @Component
 //    protected DefaultProjectBuilder projectBuilder;
 //    /**
 //     * @parameter property="plugin"
 //     * @required
 //     */
 //    @Component
 //    protected PluginDescriptor pluginDescriptor;
 //
     /**
      * The projects in the reactor.
      */
     @Parameter(defaultValue = "${reactorProjects}", readonly = true, required = true)
     protected List<MavenProject> reactorProjects;
 
     /**
      * The project builder
      */
     @Component
     private ProjectBuilder projectBuilder;
 
     /**
      * The project currently being build.
      *
      * @parameter expression="${project}"
      * @required
      * @readonly
      */
     @Component
     protected MavenProject project;
 
     /**
      * The current Maven session.
      *
      * @parameter expression="${session}"
      * @required
      * @readonly
      */
     @Component
     protected MavenSession session;
 
     /**
      * The Maven BuildPluginManager component.
      *
      * @component
      * @required
      */
     @Component
     protected BuildPluginManager pluginManager;
 
     private GitflowInit init;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     public void execute() throws MojoExecutionException, MojoFailureException {
         StaticLoggerBinder.getSingleton().setMavenLog(this.getLog());
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             LOG.debug("Gitflow pom  '" + project.getBasedir() + "'");
         }
 
         GitflowInit gitflowInit = getGitflowInit();
 
         gitflowInit.requireGitRepo();
 
         if (!gitflowInit.gitflowIsInitialized()) {
             try {
                 gitflowInit.cmdDefault();
             } catch (GitflowException ex) {
                 throw new MojoExecutionException("Failed to inintialise Gitflow " + ex.getMessage(), ex);
             }
         }
 
         gitflowInit.requireCleanWorkingTree();
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     protected final GitflowInit getGitflowInit() {
         if (null == init) {
             LOG.info("Initialising Gitflow");
             init = new GitflowInit();
             init.setRepoDir(getProject().getBasedir());
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
 
             /* root Git directory may not be the pom directory */
             String dotGitDir = init.executeLocal("git rev-parse --git-dir");
             File dotGitFolder = new File(dotGitDir);
             assert dotGitFolder.exists();
             init.setRepoDir(dotGitFolder.getParentFile());
         }
         return init;
     }
 
     protected final void setVersion(String version) throws MojoExecutionException, MojoFailureException {
         LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.codehaus.mojo"),
                         artifactId("versions-maven-plugin"),
                         version("2.1")
                 ),
                 goal("set"),
                 configuration(
                         element(name("generateBackupPoms"), "false"),
                         element(name("newVersion"), version)
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
         LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change " + version + " to origin. ExitCode:" + exitCode);
                 }
             }
         }
         /* We don't want to fail maybe the version was manually set correctly */
 //        else {
 //            throw new MojoFailureException("Failed to update poms to version " + version);
 //        }
     }
 
     protected final void setReleaseVersions() throws MojoExecutionException, MojoFailureException {
         LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:use-releases");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.codehaus.mojo"),
                         artifactId("versions-maven-plugin"),
                         version("2.1")
                 ),
                 goal("use-releases"),
                 configuration(
                         element(name("generateBackupPoms"), "false")
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
         LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:use-releases");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Replacing -SNAPSHOT versions with their corresponding releases" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push release version change to origin. ExitCode:" + exitCode);
                 }
             }
         }
     }
 
     protected final void clean() throws MojoExecutionException, MojoFailureException {
         LOG.debug("START org.apache.maven.plugins:maven-clean-plugin:2.5:clean");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-clean-plugin"),
                         version("2.5")
                 ),
                 goal("clean"),
                 configuration(
                         element(name("skip"), "false")
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
         LOG.debug("DONE org.apache.maven.plugins:maven-clean-plugin:2.5:clean");
     }
 
     protected final void install() throws MojoExecutionException, MojoFailureException {
         LOG.debug("START org.apache.maven.plugins:maven-install-plugin:2.5.1:install");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-install-plugin"),
                         version("2.5.1")
                 ),
                 goal("install"),
                 configuration(
                         element(name("skip"), "false")
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
         LOG.debug("DONE org.apache.maven.plugins:maven-install-plugin:2.5.1:install");
     }
 
     protected final void deploy() throws MojoExecutionException, MojoFailureException {
         LOG.debug("START org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-deploy-plugin"),
                         version("2.8.1")
                 ),
                 goal("deploy"),
                 configuration(
                         element(name("skip"), "false"),
                         element(name("retryFailedDeploymentCount"), "1")
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
         LOG.debug("DONE org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy");
     }
 
     protected final String getReleaseVersion(String version) throws MojoFailureException {
         LOG.debug("Current Develop version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
-            LOG.warn("Removing build specifier " + buildSpecifierAsString + " from version " + version);
+            LOG.debug("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
     protected final void checkForSnapshotDependencies() throws MojoExecutionException {
         LOG.info("Checking for SNAPSHOT dependencies");
         DependencyManagement dependencyManagement = getProject().getDependencyManagement();
         if (null != dependencyManagement) {
             checkForSnapshot(dependencyManagement.getDependencies());
         }
         checkForSnapshot(getProject().getDependencies());
     }
 
     private void checkForSnapshot(List<Dependency> dependencies) throws MojoExecutionException {
         Boolean hasSnapshotDependency = false;
         for (Dependency dependency : dependencies) {
             String version = dependency.getVersion();
             Matcher versionMatcher = matchSnapshotRegex.matcher(version);
             if (versionMatcher.find() && versionMatcher.end() == version.length()) {
                 LOG.error("Found SNAPSHOT depednency " + dependency.getGroupId() + ":" + dependency.getArtifactId() + ":" + version);
             }
         }
         if (hasSnapshotDependency) {
             throw new MojoExecutionException("Cannot start release because SNAPSHOT dependencies exist");
         }
     }
 
     protected final void reloadReactorProjects() throws MojoExecutionException {
         LOG.debug("Reloading poms...");
 
         List<MavenProject> newReactorProjects;
         try {
             newReactorProjects = buildReactorProjects();
         } catch (ProjectBuildingException e) {
             LOG.error("Re-parse aborted due to malformed pom.xml file(s)", e);
             throw new MojoExecutionException("Re-parse aborted due to malformed pom.xml file(s)", e);
         } catch (CycleDetectedException e) {
             LOG.error("Re-parse aborted due to dependency cycle in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to dependency cycle in project model", e);
         } catch (DuplicateProjectException e) {
             LOG.error("Re-parse aborted due to duplicate projects in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to duplicate projects in project model", e);
         } catch (Exception e) {
             LOG.error("Re-parse aborted due a problem that prevented sorting the project model", e);
             throw new MojoExecutionException("Re-parse aborted due a problem that prevented sorting the project model", e);
         }
         MavenProject newProject = findProject(newReactorProjects, this.project);
         if (newProject == null) {
             throw new MojoExecutionException("A pom.xml change appears to have removed " + this.project.getId() + " from the build plan.");
         }
 
         this.project = newProject;
         this.reactorProjects = newReactorProjects;
 
         LOG.debug("Reloading poms complete...");
     }
 
     private List<MavenProject> buildReactorProjects() throws Exception {
 
         List<MavenProject> projects = new ArrayList<MavenProject>();
         for (MavenProject p : reactorProjects) {
             ProjectBuildingRequest request = new DefaultProjectBuildingRequest();
 
             request.setProcessPlugins(true);
             request.setProfiles(request.getProfiles());
             request.setActiveProfileIds(session.getRequest().getActiveProfiles());
             request.setInactiveProfileIds(session.getRequest().getInactiveProfiles());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setSystemProperties(session.getSystemProperties());
             request.setUserProperties(session.getUserProperties());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setPluginArtifactRepositories(session.getRequest().getPluginArtifactRepositories());
             request.setRepositorySession(session.getRepositorySession());
             request.setLocalRepository(localRepository);
             request.setBuildStartTime(session.getRequest().getStartTime());
             request.setResolveDependencies(true);
             request.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_STRICT);
             projects.add(projectBuilder.build(p.getFile(), request).getProject());
         }
         return new ProjectSorter(projects).getSortedProjects();
     }
 
     private MavenProject findProject(List<MavenProject> newReactorProjects, MavenProject oldProject) {
         for (MavenProject newProject : newReactorProjects) {
             if (oldProject.getGroupId().equals(newProject.getGroupId())
                     && oldProject.getArtifactId().equals(newProject.getArtifactId())) {
                 return newProject;
             }
         }
         return null;
     }
 
 }

commit a6eb61abb5d82d041824c224afc1af16371026a9
Merge: aabd7be 07b350c
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Sat Mar 8 02:24:46 2014 +0000

    Merge branch 'feature/use_slf4j_logger' into develop

commit 07b350c72f9d9e87eec1a5e8d961de2a172b242b
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Sat Mar 8 02:24:36 2014 +0000

    fix hot fix number

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
index 4e3b415..f646077 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
@@ -30,67 +30,76 @@ import org.slf4j.LoggerFactory;
 /**
  * Creates a new hotfix branch off of the master branch.
  */
 @Mojo(name = "hotfix-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class HotfixStartMojo extends AbstractHotfixMojo {
-    
+
     private static final Logger LOG = LoggerFactory.getLogger(HotfixStartMojo.class.getName());
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         /* Switch to master branch and get current version i.e. lastest tag */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getMasterBrnName());
         reloadReactorProjects();
         String masterVersion = project.getVersion();
         LOG.debug("master version = " + masterVersion);
 
         String hotfixVersion = getHotfixVersion(masterVersion);
         String hotfixSnapshotVersion = getHotfixSnapshotVersion(masterVersion);
 
         LOG.info("Starting hotfix '" + hotfixVersion + "'");
         LOG.debug("msgPrefix '" + getMsgPrefix() + "'");
         LOG.debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
         gitflowHotfix.setPush(pushHotfixes);
 
         try {
             gitflowHotfix.start(hotfixVersion);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         setVersion(hotfixSnapshotVersion);
 
         String prefix = getGitflowInit().getHotfixBranchPrefix();
         if (getGitflowInit().gitRemoteBranchExists(prefix + hotfixVersion)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + hotfixVersion);
         }
     }
 
     private String getHotfixVersion(String currentVersion) throws MojoFailureException {
         LOG.debug("getHotfixVersion from '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
-        artifactVersion.upgradeLeastSignificantNumber();
 
-        return artifactVersion.toString();
+        final StringBuilder result = new StringBuilder(30);
+        if (artifactVersion.getPrimaryNumberCount() < 3) {
+            String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
+            String annotationAsString = artifactVersion.getAnnotationAsString();
+            result.append(primaryNumbersAsString).append('.').append('0');
+            result.append(annotationAsString);
+        } else {
+            artifactVersion.upgradeAnnotationRevision();
+            result.append(artifactVersion.toString());
+        }
+        return result.toString();
     }
 
     private String getHotfixSnapshotVersion(String currentVersion) throws MojoFailureException {
         LOG.debug("getHotfixSnapshotVersion from '" + currentVersion + "'");
 
         final StringBuilder result = new StringBuilder(30);
 
         String hotfixVersion = getHotfixVersion(currentVersion);
         result.append(hotfixVersion);
 
         result.append(DEFAULT_VERSION_COMPONENT_SEPARATOR).append(SNAPSHOT_QUALIFIER);
 
         return result.toString();
     }
 }

commit 0b9d2f88b96fd352bbad5a365ed67c1c0978530d
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Sat Mar 8 01:04:28 2014 +0000

    Logging improvements

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
index e5eb7bc..c199ab5 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
@@ -31,106 +31,108 @@ import org.slf4j.LoggerFactory;
 /**
  * Merges a feature branch back into the develop.
  */
 @Mojo(name = "feature-finish", aggregator = true)
 public class FeatureFinishMojo extends AbstractFeatureMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(FeatureFinishMojo.class.getName());
 
     /**
      * If true, the feature branch rebases onto develop, then finish can
      * fast-forward merge the feature branch back into develop.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "false", property = "isRebase")
     private boolean isRebase = false;
 
     /**
      * If true, and isRebase parameter is also true, then an interactive rebase
      * is performed for the feature branch.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "false", property = "isInteractive")
     private boolean isInteractive = false;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
-        LOG.info("Finishing feature");
+        LOG.debug("Finishing feature");
+        
+        List<String> featureBranches = getGitflowInit().gitLocalFeatureBranches();
+
+        if (null == featureBranches || featureBranches.isEmpty()) {
+            throw new MojoFailureException("No local feature branches exit!");            
+        }        
 
         String featureBranchPrefix = getFeatureBranchPrefix();
         if (StringUtils.isBlank(featureName)) {
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (currentBranch.startsWith(featureBranchPrefix)) {
                 featureName = currentBranch;
             } else {
-                featureName = "";
+                featureName = featureBranches.get(0);
             }
         } else {
             featureName = getFeatureName(featureName);
         }
 
-        List<String> featureBranches = getGitflowInit().gitLocalFeatureBranches();
-
-        if (null == featureBranches || featureBranches.isEmpty()) {
-            throw new MojoFailureException("No feature branches exit");            
-        }
-
         featureName = promptForExistingFeatureName(featureBranches, featureName);
+        
+        LOG.info("Finishing feature '{}'", featureName);
 
         if (enableFeatureVersions) {
             /* Switch to develop branch and get its current version */
             getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
             reloadReactorProjects();
             String developVersion = project.getVersion();
             LOG.debug("develop version = " + developVersion);
 
             /* Switch to feature branch and get its current version */
             getGitflowInit().executeLocal("git checkout " + featureName);
             reloadReactorProjects();
             String featureVersion = project.getVersion();
             LOG.debug("feature version = " + featureVersion);
 
             setVersion(developVersion);
         }
 
         if (!skipBuild) {
             clean();
             install();
         } else {
             LOG.debug("Skipping both install and deploy");
         }
 
         GitflowFeature gitflowFeature = new GitflowFeature();
         gitflowFeature.setInit(getGitflowInit());
         gitflowFeature.setMsgPrefix(getMsgPrefix());
         gitflowFeature.setMsgSuffix(getMsgSuffix());
         gitflowFeature.setSquash(squash);
         gitflowFeature.setKeep(keep);
         gitflowFeature.setIsRebase(isRebase);
         gitflowFeature.setIsInteractive(isInteractive);
 
         try {
             gitflowFeature.finish(featureName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
     }
 
     private String promptForExistingFeatureName(List<String> featureBranches, String defaultFeatureName) throws MojoFailureException {
         String message = "Please select a feature branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, featureBranches, defaultFeatureName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading feature name from command line " + e.getMessage());
         }
 
         return name.trim();
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
index 6449232..fd515b2 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
@@ -31,131 +31,133 @@ import org.slf4j.LoggerFactory;
 /**
  * Merges a hotfix branch back into the develop and master branch and then
  * creates a tag for the hotfix on master.
  */
 @Mojo(name = "hotfix-finish", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class HotfixFinishMojo extends AbstractHotfixMojo {
     
     private static final Logger LOG = LoggerFactory.getLogger(HotfixFinishMojo.class.getName());
 
     protected String hotfixName;
     
     /**
      * If true, the hotfix can still finish even when SNAPSHOT dependencies
      * exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "false", property = "allowSnapshots")
     private boolean allowSnapshots = false;  
     
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
-        LOG.info("Finishing hotfix");
+        LOG.debug("Finishing hotfix");
 
         /* Get hotfix branch name */
         List<String> hotfixBranches = getGitflowInit().gitLocalHotfixBranches();
         if (hotfixBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         } else if (hotfixBranches.size() == 1) {
             hotfixName = hotfixBranches.get(0);
         } else {
             hotfixName = promptForExistingHotfixName(hotfixBranches, hotfixName);
         }
+        
+        LOG.info("Finishing hotfix '{}'", hotfixName);
 
         /* Switch to hotfix branch and set poms to hotfix version */
         getGitflowInit().executeLocal("git checkout " + hotfixName);
         reloadReactorProjects();
         String hotfixVersion = project.getVersion();
         LOG.debug("hotfix snapshot version = " + hotfixVersion);
         String hotfixReleaseVersion = getReleaseVersion(hotfixVersion);
         LOG.debug("hotfix release version = " + hotfixReleaseVersion);
         setVersion(hotfixReleaseVersion);
 
         /* Switch to develop branch and get current develop version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         LOG.debug("develop version = " + developVersion);
 
         /* Set develop branch to hotfix version to prevent merge conflicts */
         setVersion(hotfixReleaseVersion);
         
         if (!allowSnapshots) {
             checkForSnapshotDependencies();
         }            
 
         /* finish hotfix */
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
         gitflowHotfix.setSquash(squash);
         gitflowHotfix.setKeep(keep);
         gitflowHotfix.setSign(sign);
         gitflowHotfix.setSigningkey(signingkey);
 
         try {
             gitflowHotfix.finish(hotfixName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             LOG.error("Merge conflicts exist.", gmce);
             throw new MojoFailureException(gmce.getMessage());
 
 //            LOG.info("Attempting to auto-resolve any pom version conflicts.", gmce);
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            fixPomMergeConflicts.setInit(getGitflowInit());
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
         /* Set develop branch back to original develop version */
         setVersion(developVersion);
         if (getGitflowInit().gitRemoteBranchExists(developBranch)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + developBranch);
         }
 
         /* Switch to hotfix tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + hotfixReleaseVersion);
         reloadReactorProjects();
 
         /* install or deploy */
         if (skipDeploy == false) {
             clean();
             deploy();
         } else if (skipBuild == false) {
             clean();
             install();
         } else {
             LOG.debug("Skipping both install and deploy");
         }
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingHotfixName(List<String> hotfixBranches, String defaultHotfixName) throws MojoFailureException {
         String message = "Please select a hotfix branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, hotfixBranches, defaultHotfixName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading hotfix name from command line " + e.getMessage());
         }
 
         return name;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index 7711bbc..f9be77a 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -31,130 +31,132 @@ import org.slf4j.LoggerFactory;
 /**
  * Merges a release branch back into the develop and master branch and then
  * creates a tag for the release on master.
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
     
     private static final Logger LOG = LoggerFactory.getLogger(ReleaseFinishMojo.class.getName());
     
     /**
      * If true, the release can still finish even when SNAPSHOT dependencies
      * exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "false", property = "allowSnapshots")
     private boolean allowSnapshots = false;    
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
-        LOG.info("Finishing release");
+        LOG.debug("Finishing release");
 
         /* Get release branch name */
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
         if (releaseBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         } else if (releaseBranches.size() == 1) {
             releaseName = releaseBranches.get(0);
         } else {
             releaseName = promptForExistingReleaseName(releaseBranches, releaseName);
         }
+        
+        LOG.info("Finishing release '{}'", releaseName);
 
         /* Switch to develop branch and get its current version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         LOG.debug("develop version = " + developVersion);
 
         /* Switch to release branch and set poms to release version */
         getGitflowInit().executeLocal("git checkout " + releaseName);
         reloadReactorProjects();
         String releaseVersion = getReleaseVersion(project.getVersion());
         LOG.debug("release version = " + releaseVersion);
 
         setVersion(releaseVersion);
                 
         if (!allowSnapshots) {
             checkForSnapshotDependencies();
         }        
 
         /* finish release */
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setSquash(squash);
         gitflowRelease.setKeep(keep);
         gitflowRelease.setSign(sign);
         gitflowRelease.setSigningkey(signingkey);
 
         try {
             gitflowRelease.finish(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
         /* set poms to next develop version */
         String nextDevelopVersion = getNextDevelopVersion(developVersion);
         reloadReactorProjects();
         setVersion(nextDevelopVersion);
 
         /* Switch to release tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);
         reloadReactorProjects();
         String tagVersion = project.getVersion();
         LOG.debug("tag version = " + tagVersion);
 
         /* install or deploy */
         if (skipDeploy == false) {
             clean();
             deploy();
         } else if (skipBuild == false) {
             clean();
             install();
         } else {
             LOG.debug("Skipping both install and deploy for tag " + tagVersion);
         }
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingReleaseName(List<String> releaseBranches, String defaultReleaseName) throws MojoFailureException {
         String message = "Please select a release branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, releaseBranches, defaultReleaseName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading release name from command line " + e.getMessage());
         }
 
         return name;
     }
 
     private String getNextDevelopVersion(String developVersion) {
         LOG.debug("Current Develop version '" + developVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(developVersion);
         artifactVersion.upgradeLeastSignificantPrimaryNumber();
 
         return artifactVersion.toString();
     }
 
 }

commit 9190ec40404939e9570943c418a237d1447c0936
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Sat Mar 8 00:26:12 2014 +0000

    Logging improvements

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
index e042fd7..e5eb7bc 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
@@ -31,102 +31,106 @@ import org.slf4j.LoggerFactory;
 /**
  * Merges a feature branch back into the develop.
  */
 @Mojo(name = "feature-finish", aggregator = true)
 public class FeatureFinishMojo extends AbstractFeatureMojo {
 
     private static final Logger LOG = LoggerFactory.getLogger(FeatureFinishMojo.class.getName());
 
     /**
      * If true, the feature branch rebases onto develop, then finish can
      * fast-forward merge the feature branch back into develop.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "false", property = "isRebase")
     private boolean isRebase = false;
 
     /**
      * If true, and isRebase parameter is also true, then an interactive rebase
      * is performed for the feature branch.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "false", property = "isInteractive")
     private boolean isInteractive = false;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
-        LOG.info("Finishing feature '" + featureName + "'");
+        LOG.info("Finishing feature");
 
         String featureBranchPrefix = getFeatureBranchPrefix();
         if (StringUtils.isBlank(featureName)) {
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (currentBranch.startsWith(featureBranchPrefix)) {
                 featureName = currentBranch;
             } else {
                 featureName = "";
             }
         } else {
             featureName = getFeatureName(featureName);
         }
 
         List<String> featureBranches = getGitflowInit().gitLocalFeatureBranches();
 
+        if (null == featureBranches || featureBranches.isEmpty()) {
+            throw new MojoFailureException("No feature branches exit");            
+        }
+
         featureName = promptForExistingFeatureName(featureBranches, featureName);
 
         if (enableFeatureVersions) {
             /* Switch to develop branch and get its current version */
             getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
             reloadReactorProjects();
             String developVersion = project.getVersion();
             LOG.debug("develop version = " + developVersion);
 
             /* Switch to feature branch and get its current version */
             getGitflowInit().executeLocal("git checkout " + featureName);
             reloadReactorProjects();
             String featureVersion = project.getVersion();
             LOG.debug("feature version = " + featureVersion);
 
             setVersion(developVersion);
         }
 
         if (!skipBuild) {
             clean();
             install();
         } else {
             LOG.debug("Skipping both install and deploy");
         }
 
         GitflowFeature gitflowFeature = new GitflowFeature();
         gitflowFeature.setInit(getGitflowInit());
         gitflowFeature.setMsgPrefix(getMsgPrefix());
         gitflowFeature.setMsgSuffix(getMsgSuffix());
         gitflowFeature.setSquash(squash);
         gitflowFeature.setKeep(keep);
         gitflowFeature.setIsRebase(isRebase);
         gitflowFeature.setIsInteractive(isInteractive);
 
         try {
             gitflowFeature.finish(featureName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
     }
 
     private String promptForExistingFeatureName(List<String> featureBranches, String defaultFeatureName) throws MojoFailureException {
         String message = "Please select a feature branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, featureBranches, defaultFeatureName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading feature name from command line " + e.getMessage());
         }
 
-        return name;
+        return name.trim();
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
index 1de75de..6449232 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
@@ -31,131 +31,131 @@ import org.slf4j.LoggerFactory;
 /**
  * Merges a hotfix branch back into the develop and master branch and then
  * creates a tag for the hotfix on master.
  */
 @Mojo(name = "hotfix-finish", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class HotfixFinishMojo extends AbstractHotfixMojo {
     
     private static final Logger LOG = LoggerFactory.getLogger(HotfixFinishMojo.class.getName());
 
     protected String hotfixName;
     
     /**
      * If true, the hotfix can still finish even when SNAPSHOT dependencies
      * exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "false", property = "allowSnapshots")
     private boolean allowSnapshots = false;  
     
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
-        LOG.info("Finishing hotfix '" + hotfixName + "'");
+        LOG.info("Finishing hotfix");
 
         /* Get hotfix branch name */
         List<String> hotfixBranches = getGitflowInit().gitLocalHotfixBranches();
         if (hotfixBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         } else if (hotfixBranches.size() == 1) {
             hotfixName = hotfixBranches.get(0);
         } else {
             hotfixName = promptForExistingHotfixName(hotfixBranches, hotfixName);
         }
 
         /* Switch to hotfix branch and set poms to hotfix version */
         getGitflowInit().executeLocal("git checkout " + hotfixName);
         reloadReactorProjects();
         String hotfixVersion = project.getVersion();
         LOG.debug("hotfix snapshot version = " + hotfixVersion);
         String hotfixReleaseVersion = getReleaseVersion(hotfixVersion);
         LOG.debug("hotfix release version = " + hotfixReleaseVersion);
         setVersion(hotfixReleaseVersion);
 
         /* Switch to develop branch and get current develop version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         LOG.debug("develop version = " + developVersion);
 
         /* Set develop branch to hotfix version to prevent merge conflicts */
         setVersion(hotfixReleaseVersion);
         
         if (!allowSnapshots) {
             checkForSnapshotDependencies();
         }            
 
         /* finish hotfix */
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
         gitflowHotfix.setSquash(squash);
         gitflowHotfix.setKeep(keep);
         gitflowHotfix.setSign(sign);
         gitflowHotfix.setSigningkey(signingkey);
 
         try {
             gitflowHotfix.finish(hotfixName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             LOG.error("Merge conflicts exist.", gmce);
             throw new MojoFailureException(gmce.getMessage());
 
 //            LOG.info("Attempting to auto-resolve any pom version conflicts.", gmce);
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            fixPomMergeConflicts.setInit(getGitflowInit());
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
         /* Set develop branch back to original develop version */
         setVersion(developVersion);
         if (getGitflowInit().gitRemoteBranchExists(developBranch)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + developBranch);
         }
 
         /* Switch to hotfix tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + hotfixReleaseVersion);
         reloadReactorProjects();
 
         /* install or deploy */
         if (skipDeploy == false) {
             clean();
             deploy();
         } else if (skipBuild == false) {
             clean();
             install();
         } else {
             LOG.debug("Skipping both install and deploy");
         }
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingHotfixName(List<String> hotfixBranches, String defaultHotfixName) throws MojoFailureException {
         String message = "Please select a hotfix branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, hotfixBranches, defaultHotfixName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading hotfix name from command line " + e.getMessage());
         }
 
         return name;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index 6b29262..7711bbc 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -31,130 +31,130 @@ import org.slf4j.LoggerFactory;
 /**
  * Merges a release branch back into the develop and master branch and then
  * creates a tag for the release on master.
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
     
     private static final Logger LOG = LoggerFactory.getLogger(ReleaseFinishMojo.class.getName());
     
     /**
      * If true, the release can still finish even when SNAPSHOT dependencies
      * exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "false", property = "allowSnapshots")
     private boolean allowSnapshots = false;    
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
-        LOG.info("Finishing release '" + releaseName + "'");
+        LOG.info("Finishing release");
 
         /* Get release branch name */
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
         if (releaseBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         } else if (releaseBranches.size() == 1) {
             releaseName = releaseBranches.get(0);
         } else {
             releaseName = promptForExistingReleaseName(releaseBranches, releaseName);
         }
 
         /* Switch to develop branch and get its current version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         LOG.debug("develop version = " + developVersion);
 
         /* Switch to release branch and set poms to release version */
         getGitflowInit().executeLocal("git checkout " + releaseName);
         reloadReactorProjects();
         String releaseVersion = getReleaseVersion(project.getVersion());
         LOG.debug("release version = " + releaseVersion);
 
         setVersion(releaseVersion);
                 
         if (!allowSnapshots) {
             checkForSnapshotDependencies();
         }        
 
         /* finish release */
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setSquash(squash);
         gitflowRelease.setKeep(keep);
         gitflowRelease.setSign(sign);
         gitflowRelease.setSigningkey(signingkey);
 
         try {
             gitflowRelease.finish(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
         /* set poms to next develop version */
         String nextDevelopVersion = getNextDevelopVersion(developVersion);
         reloadReactorProjects();
         setVersion(nextDevelopVersion);
 
         /* Switch to release tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);
         reloadReactorProjects();
         String tagVersion = project.getVersion();
         LOG.debug("tag version = " + tagVersion);
 
         /* install or deploy */
         if (skipDeploy == false) {
             clean();
             deploy();
         } else if (skipBuild == false) {
             clean();
             install();
         } else {
             LOG.debug("Skipping both install and deploy for tag " + tagVersion);
         }
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingReleaseName(List<String> releaseBranches, String defaultReleaseName) throws MojoFailureException {
         String message = "Please select a release branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, releaseBranches, defaultReleaseName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading release name from command line " + e.getMessage());
         }
 
         return name;
     }
 
     private String getNextDevelopVersion(String developVersion) {
         LOG.debug("Current Develop version '" + developVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(developVersion);
         artifactVersion.upgradeLeastSignificantPrimaryNumber();
 
         return artifactVersion.toString();
     }
 
 }

commit f16045763b31afe52042a99819819bc041936521
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Fri Mar 7 22:30:32 2014 +0000

    Logging improvements

diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index e403031..c463b82 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,171 +1,181 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
         <groupId>com.dkirrane.maven.plugins</groupId>
         <artifactId>ggitflow-maven</artifactId>
         <version>1.2-SNAPSHOT</version>
     </parent>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
     <version>1.2-SNAPSHOT</version>
     <packaging>maven-plugin</packaging>
     <name>ggitflow-maven-plugin</name>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
-            <version>1.0</version>
+            <version>1.1-SNAPSHOT</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
         <dependency>
             <groupId>jline</groupId>
             <artifactId>jline</artifactId>
             <version>2.11</version>
             <type>jar</type>
         </dependency>
+        <dependency>
+            <groupId>com.jcabi</groupId>
+            <artifactId>jcabi-maven-slf4j</artifactId>
+            <version>0.8</version>
+        </dependency>
+        <dependency>
+            <groupId>ch.qos.logback</groupId>
+            <artifactId>logback-classic</artifactId>
+            <version>1.0.13</version>
+        </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>3.2</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>3.0.8</version>
         </dependency>
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-interactivity-api</artifactId>
             <version>1.0-alpha-5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>2.4</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-project</artifactId>
             <version>2.2.1</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-clean-plugin</artifactId>
             <version>2.5</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-install-plugin</artifactId>
             <version>2.5.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-deploy-plugin</artifactId>
             <version>2.8.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-artifact</artifactId>
             <version>2.2.1</version>
         </dependency>
     </dependencies>
 
     <build>
         <resources>
             <resource>
                 <directory>src/it</directory>
                 <includes>
                     <include>**/**</include>
                 </includes>
             </resource>
         </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>3.2</version>
                 <configuration>
                     <goalPrefix>ggitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                     <!--                    <execution>
                         <id>help-goal</id>
                         <goals>
                             <goal>helpmojo</goal>
                         </goals>
                     </execution>-->
                     <!--                    <execution>
                         <id>report</id>
                         <goals>
                             <goal>report</goal>
                         </goals>
                     </execution>                    -->
                 </executions>
             </plugin>
             <plugin>
                 <groupId>com.github.github</groupId>
                 <artifactId>site-maven-plugin</artifactId>
                 <version>0.9</version>
                 <configuration>
                     <message>Creating site for ${project.version}</message>
                     <server>github</server>
                     <merge>true</merge>
                 </configuration>
                 <executions>
                     <execution>
                         <goals>
                             <goal>site</goal>
                         </goals>
                         <phase>site</phase>
                     </execution>
                 </executions>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <reportPlugins>
                         <plugin>
                             <groupId>org.apache.maven.plugins</groupId>
                             <artifactId>maven-plugin-plugin</artifactId>
                             <version>3.2</version>
                         </plugin>
                     </reportPlugins>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
index 8cd3b1e..cee3191 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
@@ -22,121 +22,125 @@ import org.codehaus.plexus.util.StringUtils;
 import org.jfrog.hudson.util.GenericArtifactVersion;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 /**
  *
  */
 public class AbstractFeatureMojo extends AbstractGitflowMojo {
+    
+    private static final Logger LOG = LoggerFactory.getLogger(AbstractFeatureMojo.class.getName());
 
     /**
      * The name for the feature branch
      *
      * @since 1.2
      */
-    @Parameter(property = "featureName", required = true)
+    @Parameter(property = "featureName", required = false)
     protected String featureName;
 
     /**
      * If true, the feature branch name is added to the pom versions
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "false", property = "enableFeatureVersions", required = false)
     protected boolean enableFeatureVersions = false;
 
     /**
      * If true, the feature branch is pushed to the remote repository
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "false", property = "pushFeatures", required = false)
     protected boolean pushFeatures = false;
 
     public String getFeatureBranchPrefix() {
         String prefix = getGitflowInit().getFeatureBranchPrefix();
         if (StringUtils.isBlank(prefix)) {
             prefix = DEFAULT_FEATURE_BRN_PREFIX;
         }
         return prefix;
     }
 
     public String getFeatureName(String featureLabel) throws MojoFailureException {
         if (StringUtils.isBlank(featureLabel)) {
             throw new MojoFailureException("Missing argument <featureName>");
         }
 
         featureLabel = featureLabel.replaceAll("\\s+", "");
 //        featureLabel = featureLabel.replaceAll("-+", "_");
         return featureLabel;
     }
 
     public String getFeatureVersion(String currentVersion, String featureLabel) throws MojoFailureException {
-        getLog().debug("getFeatureVersion from '" + currentVersion + "'");
+        LOG.debug("getFeatureVersion from '" + currentVersion + "'");
         featureLabel = getValidFeatureVersionAnnotation(featureLabel);
-        getLog().debug("Feature version annotation '" + featureLabel + "'");
+        LOG.debug("Feature version annotation '" + featureLabel + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         Character annotationSeparator = artifactVersion.getAnnotationRevisionSeparator();
         String buildSpecifier = artifactVersion.getBuildSpecifier();
         Character buildSpecifierSeparator = artifactVersion.getBuildSpecifierSeparator();
 
-        getLog().debug("Parsed version = " + artifactVersion.toString());
+        LOG.debug("Parsed version = " + artifactVersion.toString());
         if (!StringUtils.isBlank(annotationAsString)) {
             throw new MojoFailureException("Cannot add feature name to version. An annotation " + annotationAsString + " already exists");
         }
 
         final StringBuilder result = new StringBuilder(30);
 
         result.append(primaryNumbersAsString).append(annotationSeparator).append(featureLabel);
 
         if (buildSpecifier != null) {
             if (buildSpecifierSeparator != null) {
                 result.append(buildSpecifierSeparator);
             }
             result.append(buildSpecifier);
         }
 
         return result.toString();
     }
 
     public String getNonFeatureVersion(String version, String featureLabel) {
-        getLog().debug("getNonFeatureVersion from '" + version + "'");
+        LOG.debug("getNonFeatureVersion from '" + version + "'");
         featureLabel = getValidFeatureVersionAnnotation(featureLabel);
-        getLog().debug("Feature version annotation '" + featureLabel + "'");
+        LOG.debug("Feature version annotation '" + featureLabel + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifier = artifactVersion.getBuildSpecifier();
         Character buildSpecifierSeparator = artifactVersion.getBuildSpecifierSeparator();
 
-        getLog().debug("Parsed version = " + artifactVersion.toString());
+        LOG.debug("Parsed version = " + artifactVersion.toString());
         if (StringUtils.isBlank(annotationAsString)) {
-            getLog().warn("Cannot remove feature name from pom version. The version annotation does not exists");
+            LOG.warn("Cannot remove feature name from pom version. The version annotation does not exists");
             return version;
         }
 
         if (('-' + featureLabel).equals(annotationAsString)) {
             final StringBuilder result = new StringBuilder(30);
             result.append(primaryNumbersAsString);
 
             if (buildSpecifier != null) {
                 if (buildSpecifierSeparator != null) {
                     result.append(buildSpecifierSeparator);
                 }
                 result.append(buildSpecifier);
             }
 
             return result.toString();
         } else {
-            getLog().warn("Cannot remove feature name from pom version. The version annotation [" + annotationAsString + "] does not match the feature label [" + featureLabel + "]");
+            LOG.warn("Cannot remove feature name from pom version. The version annotation [" + annotationAsString + "] does not match the feature label [" + featureLabel + "]");
             return version;
         }
     }
 
     private String getValidFeatureVersionAnnotation(String featureLabel) {
         featureLabel = featureLabel.trim().replaceAll("\\s+", "_");
         featureLabel = featureLabel.trim().replaceAll("-+", "_");
         return featureLabel;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index 6a3894b..8f60a9a 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -51,2 +51,5 @@ import org.codehaus.plexus.util.dag.CycleDetectedException;
 import org.jfrog.hudson.util.GenericArtifactVersion;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.slf4j.impl.StaticLoggerBinder;
 import static org.twdata.maven.mojoexecutor.MojoExecutor.artifactId;
@@ -63,490 +66,494 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 /**
  *
  */
 public class AbstractGitflowMojo extends AbstractMojo {
+    
+    private static final Logger LOG = LoggerFactory.getLogger(AbstractGitflowMojo.class.getName());
 
     public final Pattern matchSnapshotRegex = Pattern.compile("-SNAPSHOT");
 
     /**
      * Gitflow branches and prefixes to use.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
     /**
      * Message prefix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgPrefix", defaultValue = "", required = false)
     protected String msgPrefix;
 
     /**
      * Message suffix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgSuffix", defaultValue = "", required = false)
     protected String msgSuffix;
 
     /**
      * Skips any calls to mvn install
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "false", required = false)
     protected Boolean skipBuild;
 
     /**
      * Skips any calls to mvn deploy
      *
      * @since 1.2
      */
     @Parameter(property = "skipDeploy", defaultValue = "false", required = false)
     protected Boolean skipDeploy;
 
     /**
      * The commit to start the branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     protected String startCommit;
 
     /**
      * If true, all branch commits will be squashed into a single commit before
      * the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     protected Boolean squash;
 
     /**
      * If true, the branch will not be deleted after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     protected Boolean keep;
 
     /**
      * If true, any Git tags created will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     protected Boolean sign;
 
     /**
      * If GPG key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     protected String signingkey;
 
     /**
      * Component used to prompt for input.
      */
     @Component
     protected Prompter prompter;
 
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
     @Component
     protected ArtifactResolver artifactResolver;
 
     /**
      * @parameter default-value="${project.artifacts}"
      * @required
      * @readonly
      */
     protected Collection artifacts;
 
     /**
      * @parameter expression="${localRepository}"
      */
     protected ArtifactRepository localRepository;
 
     /**
      * @parameter expression="${project.remoteArtifactRepositories}"
      */
     protected List remoteArtifactRepositories;
 
 //    @Component
 //    protected MavenProjectBuilder projectBuilder;
 //    @Component
 //    protected DefaultProjectBuilder projectBuilder;
 //    /**
 //     * @parameter property="plugin"
 //     * @required
 //     */
 //    @Component
 //    protected PluginDescriptor pluginDescriptor;
 //
     /**
      * The projects in the reactor.
      */
     @Parameter(defaultValue = "${reactorProjects}", readonly = true, required = true)
     protected List<MavenProject> reactorProjects;
 
     /**
      * The project builder
      */
     @Component
     private ProjectBuilder projectBuilder;
 
     /**
      * The project currently being build.
      *
      * @parameter expression="${project}"
      * @required
      * @readonly
      */
     @Component
     protected MavenProject project;
 
     /**
      * The current Maven session.
      *
      * @parameter expression="${session}"
      * @required
      * @readonly
      */
     @Component
     protected MavenSession session;
 
     /**
      * The Maven BuildPluginManager component.
      *
      * @component
      * @required
      */
     @Component
     protected BuildPluginManager pluginManager;
 
     private GitflowInit init;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     public void execute() throws MojoExecutionException, MojoFailureException {
+        StaticLoggerBinder.getSingleton().setMavenLog(this.getLog());
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
-            getLog().debug("Gitflow pom  '" + project.getBasedir() + "'");
+            LOG.debug("Gitflow pom  '" + project.getBasedir() + "'");
         }
 
         GitflowInit gitflowInit = getGitflowInit();
 
         gitflowInit.requireGitRepo();
 
         if (!gitflowInit.gitflowIsInitialized()) {
             try {
                 gitflowInit.cmdDefault();
             } catch (GitflowException ex) {
                 throw new MojoExecutionException("Failed to inintialise Gitflow " + ex.getMessage(), ex);
             }
         }
 
         gitflowInit.requireCleanWorkingTree();
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     protected final GitflowInit getGitflowInit() {
         if (null == init) {
+            LOG.info("Initialising Gitflow");
             init = new GitflowInit();
             init.setRepoDir(getProject().getBasedir());
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
 
             /* root Git directory may not be the pom directory */
             String dotGitDir = init.executeLocal("git rev-parse --git-dir");
             File dotGitFolder = new File(dotGitDir);
             assert dotGitFolder.exists();
             init.setRepoDir(dotGitFolder.getParentFile());
         }
         return init;
     }
 
     protected final void setVersion(String version) throws MojoExecutionException, MojoFailureException {
-        getLog().debug("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
+        LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.codehaus.mojo"),
                         artifactId("versions-maven-plugin"),
                         version("2.1")
                 ),
                 goal("set"),
                 configuration(
                         element(name("generateBackupPoms"), "false"),
                         element(name("newVersion"), version)
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
-        getLog().debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
+        LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change " + version + " to origin. ExitCode:" + exitCode);
                 }
             }
         }
         /* We don't want to fail maybe the version was manually set correctly */
 //        else {
 //            throw new MojoFailureException("Failed to update poms to version " + version);
 //        }
     }
 
     protected final void setReleaseVersions() throws MojoExecutionException, MojoFailureException {
-        getLog().debug("START org.codehaus.mojo:versions-maven-plugin:2.1:use-releases");
+        LOG.debug("START org.codehaus.mojo:versions-maven-plugin:2.1:use-releases");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.codehaus.mojo"),
                         artifactId("versions-maven-plugin"),
                         version("2.1")
                 ),
                 goal("use-releases"),
                 configuration(
                         element(name("generateBackupPoms"), "false")
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
-        getLog().debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:use-releases");
+        LOG.debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:use-releases");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Replacing -SNAPSHOT versions with their corresponding releases" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push release version change to origin. ExitCode:" + exitCode);
                 }
             }
         }
     }
 
     protected final void clean() throws MojoExecutionException, MojoFailureException {
-        getLog().debug("START org.apache.maven.plugins:maven-clean-plugin:2.5:clean");
+        LOG.debug("START org.apache.maven.plugins:maven-clean-plugin:2.5:clean");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-clean-plugin"),
                         version("2.5")
                 ),
                 goal("clean"),
                 configuration(
                         element(name("skip"), "false")
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
-        getLog().debug("DONE org.apache.maven.plugins:maven-clean-plugin:2.5:clean");
+        LOG.debug("DONE org.apache.maven.plugins:maven-clean-plugin:2.5:clean");
     }
 
     protected final void install() throws MojoExecutionException, MojoFailureException {
-        getLog().debug("START org.apache.maven.plugins:maven-install-plugin:2.5.1:install");
+        LOG.debug("START org.apache.maven.plugins:maven-install-plugin:2.5.1:install");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-install-plugin"),
                         version("2.5.1")
                 ),
                 goal("install"),
                 configuration(
                         element(name("skip"), "false")
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
-        getLog().debug("DONE org.apache.maven.plugins:maven-install-plugin:2.5.1:install");
+        LOG.debug("DONE org.apache.maven.plugins:maven-install-plugin:2.5.1:install");
     }
 
     protected final void deploy() throws MojoExecutionException, MojoFailureException {
-        getLog().debug("START org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy");
+        LOG.debug("START org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-deploy-plugin"),
                         version("2.8.1")
                 ),
                 goal("deploy"),
                 configuration(
                         element(name("skip"), "false"),
                         element(name("retryFailedDeploymentCount"), "1")
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
-        getLog().debug("DONE org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy");
+        LOG.debug("DONE org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy");
     }
 
     protected final String getReleaseVersion(String version) throws MojoFailureException {
-        getLog().debug("Current Develop version '" + version + "'");
+        LOG.debug("Current Develop version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
-            getLog().warn("Removing build specifier " + buildSpecifierAsString + " from version " + version);
+            LOG.warn("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
     protected final void checkForSnapshotDependencies() throws MojoExecutionException {
-        getLog().info("Checking for SNAPSHOT dependencies");
+        LOG.info("Checking for SNAPSHOT dependencies");
         DependencyManagement dependencyManagement = getProject().getDependencyManagement();
         if (null != dependencyManagement) {
             checkForSnapshot(dependencyManagement.getDependencies());
         }
         checkForSnapshot(getProject().getDependencies());
     }
 
     private void checkForSnapshot(List<Dependency> dependencies) throws MojoExecutionException {
         Boolean hasSnapshotDependency = false;
         for (Dependency dependency : dependencies) {
             String version = dependency.getVersion();
             Matcher versionMatcher = matchSnapshotRegex.matcher(version);
             if (versionMatcher.find() && versionMatcher.end() == version.length()) {
-                getLog().error("Found SNAPSHOT depednency " + dependency.getGroupId() + ":" + dependency.getArtifactId() + ":" + version);
+                LOG.error("Found SNAPSHOT depednency " + dependency.getGroupId() + ":" + dependency.getArtifactId() + ":" + version);
             }
         }
         if (hasSnapshotDependency) {
             throw new MojoExecutionException("Cannot start release because SNAPSHOT dependencies exist");
         }
     }
 
     protected final void reloadReactorProjects() throws MojoExecutionException {
-        getLog().debug("Reloading poms...");
+        LOG.debug("Reloading poms...");
 
         List<MavenProject> newReactorProjects;
         try {
             newReactorProjects = buildReactorProjects();
         } catch (ProjectBuildingException e) {
-            getLog().error("Re-parse aborted due to malformed pom.xml file(s)", e);
+            LOG.error("Re-parse aborted due to malformed pom.xml file(s)", e);
             throw new MojoExecutionException("Re-parse aborted due to malformed pom.xml file(s)", e);
         } catch (CycleDetectedException e) {
-            getLog().error("Re-parse aborted due to dependency cycle in project model", e);
+            LOG.error("Re-parse aborted due to dependency cycle in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to dependency cycle in project model", e);
         } catch (DuplicateProjectException e) {
-            getLog().error("Re-parse aborted due to duplicate projects in project model", e);
+            LOG.error("Re-parse aborted due to duplicate projects in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to duplicate projects in project model", e);
         } catch (Exception e) {
-            getLog().error("Re-parse aborted due a problem that prevented sorting the project model", e);
+            LOG.error("Re-parse aborted due a problem that prevented sorting the project model", e);
             throw new MojoExecutionException("Re-parse aborted due a problem that prevented sorting the project model", e);
         }
         MavenProject newProject = findProject(newReactorProjects, this.project);
         if (newProject == null) {
             throw new MojoExecutionException("A pom.xml change appears to have removed " + this.project.getId() + " from the build plan.");
         }
 
         this.project = newProject;
         this.reactorProjects = newReactorProjects;
 
-        getLog().debug("Reloading poms complete...");
+        LOG.debug("Reloading poms complete...");
     }
 
     private List<MavenProject> buildReactorProjects() throws Exception {
 
         List<MavenProject> projects = new ArrayList<MavenProject>();
         for (MavenProject p : reactorProjects) {
             ProjectBuildingRequest request = new DefaultProjectBuildingRequest();
 
             request.setProcessPlugins(true);
             request.setProfiles(request.getProfiles());
             request.setActiveProfileIds(session.getRequest().getActiveProfiles());
             request.setInactiveProfileIds(session.getRequest().getInactiveProfiles());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setSystemProperties(session.getSystemProperties());
             request.setUserProperties(session.getUserProperties());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setPluginArtifactRepositories(session.getRequest().getPluginArtifactRepositories());
             request.setRepositorySession(session.getRepositorySession());
             request.setLocalRepository(localRepository);
             request.setBuildStartTime(session.getRequest().getStartTime());
             request.setResolveDependencies(true);
             request.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_STRICT);
             projects.add(projectBuilder.build(p.getFile(), request).getProject());
         }
         return new ProjectSorter(projects).getSortedProjects();
     }
 
     private MavenProject findProject(List<MavenProject> newReactorProjects, MavenProject oldProject) {
         for (MavenProject newProject : newReactorProjects) {
             if (oldProject.getGroupId().equals(newProject.getGroupId())
                     && oldProject.getArtifactId().equals(newProject.getArtifactId())) {
                 return newProject;
             }
         }
         return null;
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java
index d515073..fbe57e0 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java
@@ -22,41 +22,45 @@ import org.codehaus.plexus.util.StringUtils;
 import org.jfrog.hudson.util.GenericArtifactVersion;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 /**
  *
  */
 public class AbstractReleaseMojo extends AbstractGitflowMojo {
+    
+    private static final Logger LOG = LoggerFactory.getLogger(AbstractReleaseMojo.class.getName());
 
     /**
      * The name for the release branch.
      *
      * @since 1.2
      */
     @Parameter(property = "releaseName")
     protected String releaseName;
 
     /**
      * If true, the release branch is pushed to the remote repository.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "false", property = "pushReleases")
     protected boolean pushReleases = false;
 
     public String getReleaseBranchPrefix() {
         String prefix = getGitflowInit().getReleaseBranchPrefix();
         if (StringUtils.isBlank(prefix)) {
             prefix = DEFAULT_RELEASE_BRN_PREFIX;
         }
         return prefix;
     }
 
     public String getNextDevelopmentVersion(String version) throws MojoFailureException {
-        getLog().debug("Project version '" + version + "'");
+        LOG.debug("Project version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
         GenericArtifactVersion nextDevelopVersion = artifactVersion.upgradeLeastSignificantNumber();
 
-        getLog().debug("Project version '" + nextDevelopVersion + "'");
+        LOG.debug("Project version '" + nextDevelopVersion + "'");
         return nextDevelopVersion.toString();
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
index 5a04ff7..e042fd7 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
@@ -27,102 +27,106 @@ import org.codehaus.plexus.components.interactivity.PrompterException;
 import org.codehaus.plexus.util.StringUtils;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 /**
  * Merges a feature branch back into the develop.
  */
 @Mojo(name = "feature-finish", aggregator = true)
 public class FeatureFinishMojo extends AbstractFeatureMojo {
 
+    private static final Logger LOG = LoggerFactory.getLogger(FeatureFinishMojo.class.getName());
+
     /**
      * If true, the feature branch rebases onto develop, then finish can
      * fast-forward merge the feature branch back into develop.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "false", property = "isRebase")
     private boolean isRebase = false;
 
     /**
      * If true, and isRebase parameter is also true, then an interactive rebase
      * is performed for the feature branch.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "false", property = "isInteractive")
     private boolean isInteractive = false;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
-        getLog().info("Finishing feature '" + featureName + "'");
+        LOG.info("Finishing feature '" + featureName + "'");
 
         String featureBranchPrefix = getFeatureBranchPrefix();
         if (StringUtils.isBlank(featureName)) {
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (currentBranch.startsWith(featureBranchPrefix)) {
                 featureName = currentBranch;
             } else {
                 featureName = "";
             }
         } else {
             featureName = getFeatureName(featureName);
         }
 
         List<String> featureBranches = getGitflowInit().gitLocalFeatureBranches();
 
         featureName = promptForExistingFeatureName(featureBranches, featureName);
 
         if (enableFeatureVersions) {
             /* Switch to develop branch and get its current version */
             getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
             reloadReactorProjects();
             String developVersion = project.getVersion();
-            getLog().debug("develop version = " + developVersion);
+            LOG.debug("develop version = " + developVersion);
 
             /* Switch to feature branch and get its current version */
             getGitflowInit().executeLocal("git checkout " + featureName);
             reloadReactorProjects();
             String featureVersion = project.getVersion();
-            getLog().debug("feature version = " + featureVersion);
+            LOG.debug("feature version = " + featureVersion);
 
             setVersion(developVersion);
         }
 
         if (!skipBuild) {
             clean();
             install();
         } else {
-            getLog().debug("Skipping both install and deploy");
+            LOG.debug("Skipping both install and deploy");
         }
 
         GitflowFeature gitflowFeature = new GitflowFeature();
         gitflowFeature.setInit(getGitflowInit());
         gitflowFeature.setMsgPrefix(getMsgPrefix());
         gitflowFeature.setMsgSuffix(getMsgSuffix());
         gitflowFeature.setSquash(squash);
         gitflowFeature.setKeep(keep);
         gitflowFeature.setIsRebase(isRebase);
         gitflowFeature.setIsInteractive(isInteractive);
 
         try {
             gitflowFeature.finish(featureName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
     }
 
     private String promptForExistingFeatureName(List<String> featureBranches, String defaultFeatureName) throws MojoFailureException {
         String message = "Please select a feature branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, featureBranches, defaultFeatureName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading feature name from command line " + e.getMessage());
         }
 
         return name;
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
index 362325f..6c8fc9d 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
@@ -27,69 +27,70 @@ import org.codehaus.plexus.components.interactivity.PrompterException;
 import org.codehaus.plexus.util.StringUtils;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 /**
  * Creates a new feature branch off of the develop branch.
  */
 @Mojo(name = "feature-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class FeatureStartMojo extends AbstractFeatureMojo {
+    
+    private static final Logger LOG = LoggerFactory.getLogger(FeatureStartMojo.class.getName());
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         String prefix = getFeatureBranchPrefix();
         if (StringUtils.isBlank(featureName)) {
-            System.out.println("prefix = " + prefix);
-            System.out.println("prompter = " + prompter);
             String message = "What is the feature branch name? " + prefix;
-            System.out.println("message = " + message);
             try {
                 featureName = prompter.prompt(message);
                 if (StringUtils.isBlank(featureName)) {
                     throw new MojoFailureException("Parameter <featureName> cannot be null or empty.");
                 }
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading feature name from command line " + ex.getMessage(), ex);
             }
         }
         featureName = getFeatureName(featureName);
 
-        getLog().info("Starting feature '" + featureName + "'");
-        getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
-        getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
+        LOG.info("Starting feature '" + featureName + "'");
+        LOG.debug("msgPrefix '" + getMsgPrefix() + "'");
+        LOG.debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowFeature gitflowFeature = new GitflowFeature();
         gitflowFeature.setInit(getGitflowInit());
         gitflowFeature.setMsgPrefix(getMsgPrefix());
         gitflowFeature.setMsgSuffix(getMsgSuffix());
         gitflowFeature.setPush(pushFeatures);
         gitflowFeature.setStartCommit(startCommit);
 
         try {
             gitflowFeature.start(featureName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         if (enableFeatureVersions) {
             /* Already on feature branch so just get its current version */
             Model model = MavenUtil.readPom(reactorProjects);
             String currentVersion = model.getVersion();
 
             String featureVersion = getFeatureVersion(currentVersion, featureName);
             setVersion(featureVersion);
 
             if (getGitflowInit().gitRemoteBranchExists(prefix + featureName)) {
                 getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + featureName);
             }
 
             /* print feature version */
             reloadReactorProjects();
-            getLog().debug("project = " + project.getVersion());
+            LOG.debug("project = " + project.getVersion());
         }
     }
 
     public String getFeatureName() {
         return featureName;
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
index 9e0e720..1de75de 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
@@ -27,131 +27,135 @@ import org.apache.maven.plugins.annotations.Parameter;
 import org.codehaus.plexus.components.interactivity.PrompterException;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 /**
  * Merges a hotfix branch back into the develop and master branch and then
  * creates a tag for the hotfix on master.
  */
 @Mojo(name = "hotfix-finish", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class HotfixFinishMojo extends AbstractHotfixMojo {
+    
+    private static final Logger LOG = LoggerFactory.getLogger(HotfixFinishMojo.class.getName());
 
     protected String hotfixName;
     
     /**
      * If true, the hotfix can still finish even when SNAPSHOT dependencies
      * exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "false", property = "allowSnapshots")
     private boolean allowSnapshots = false;  
     
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
-        getLog().info("Finishing hotfix '" + hotfixName + "'");
+        LOG.info("Finishing hotfix '" + hotfixName + "'");
 
         /* Get hotfix branch name */
         List<String> hotfixBranches = getGitflowInit().gitLocalHotfixBranches();
         if (hotfixBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         } else if (hotfixBranches.size() == 1) {
             hotfixName = hotfixBranches.get(0);
         } else {
             hotfixName = promptForExistingHotfixName(hotfixBranches, hotfixName);
         }
 
         /* Switch to hotfix branch and set poms to hotfix version */
         getGitflowInit().executeLocal("git checkout " + hotfixName);
         reloadReactorProjects();
         String hotfixVersion = project.getVersion();
-        getLog().debug("hotfix snapshot version = " + hotfixVersion);
+        LOG.debug("hotfix snapshot version = " + hotfixVersion);
         String hotfixReleaseVersion = getReleaseVersion(hotfixVersion);
-        getLog().debug("hotfix release version = " + hotfixReleaseVersion);
+        LOG.debug("hotfix release version = " + hotfixReleaseVersion);
         setVersion(hotfixReleaseVersion);
 
         /* Switch to develop branch and get current develop version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
-        getLog().debug("develop version = " + developVersion);
+        LOG.debug("develop version = " + developVersion);
 
         /* Set develop branch to hotfix version to prevent merge conflicts */
         setVersion(hotfixReleaseVersion);
         
         if (!allowSnapshots) {
             checkForSnapshotDependencies();
         }            
 
         /* finish hotfix */
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
         gitflowHotfix.setSquash(squash);
         gitflowHotfix.setKeep(keep);
         gitflowHotfix.setSign(sign);
         gitflowHotfix.setSigningkey(signingkey);
 
         try {
             gitflowHotfix.finish(hotfixName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
-            getLog().error("Merge conflicts exist.", gmce);
+            LOG.error("Merge conflicts exist.", gmce);
             throw new MojoFailureException(gmce.getMessage());
 
-//            getLog().info("Attempting to auto-resolve any pom version conflicts.", gmce);
+//            LOG.info("Attempting to auto-resolve any pom version conflicts.", gmce);
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            fixPomMergeConflicts.setInit(getGitflowInit());
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
         /* Set develop branch back to original develop version */
         setVersion(developVersion);
         if (getGitflowInit().gitRemoteBranchExists(developBranch)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + developBranch);
         }
 
         /* Switch to hotfix tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + hotfixReleaseVersion);
         reloadReactorProjects();
 
         /* install or deploy */
         if (skipDeploy == false) {
             clean();
             deploy();
         } else if (skipBuild == false) {
             clean();
             install();
         } else {
-            getLog().debug("Skipping both install and deploy");
+            LOG.debug("Skipping both install and deploy");
         }
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingHotfixName(List<String> hotfixBranches, String defaultHotfixName) throws MojoFailureException {
         String message = "Please select a hotfix branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, hotfixBranches, defaultHotfixName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading hotfix name from command line " + e.getMessage());
         }
 
         return name;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
index 2a68619..4e3b415 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
@@ -26,67 +26,71 @@ import static org.jfrog.hudson.util.GenericArtifactVersion.DEFAULT_VERSION_COMPO
 import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 /**
  * Creates a new hotfix branch off of the master branch.
  */
 @Mojo(name = "hotfix-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class HotfixStartMojo extends AbstractHotfixMojo {
+    
+    private static final Logger LOG = LoggerFactory.getLogger(HotfixStartMojo.class.getName());
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         /* Switch to master branch and get current version i.e. lastest tag */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getMasterBrnName());
         reloadReactorProjects();
         String masterVersion = project.getVersion();
-        getLog().debug("master version = " + masterVersion);
+        LOG.debug("master version = " + masterVersion);
 
         String hotfixVersion = getHotfixVersion(masterVersion);
         String hotfixSnapshotVersion = getHotfixSnapshotVersion(masterVersion);
 
-        getLog().info("Starting hotfix '" + hotfixVersion + "'");
-        getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
-        getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
+        LOG.info("Starting hotfix '" + hotfixVersion + "'");
+        LOG.debug("msgPrefix '" + getMsgPrefix() + "'");
+        LOG.debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
         gitflowHotfix.setPush(pushHotfixes);
 
         try {
             gitflowHotfix.start(hotfixVersion);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         setVersion(hotfixSnapshotVersion);
 
         String prefix = getGitflowInit().getHotfixBranchPrefix();
         if (getGitflowInit().gitRemoteBranchExists(prefix + hotfixVersion)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + hotfixVersion);
         }
     }
 
     private String getHotfixVersion(String currentVersion) throws MojoFailureException {
-        getLog().debug("getHotfixVersion from '" + currentVersion + "'");
+        LOG.debug("getHotfixVersion from '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
         artifactVersion.upgradeLeastSignificantNumber();
 
         return artifactVersion.toString();
     }
 
     private String getHotfixSnapshotVersion(String currentVersion) throws MojoFailureException {
-        getLog().debug("getHotfixSnapshotVersion from '" + currentVersion + "'");
+        LOG.debug("getHotfixSnapshotVersion from '" + currentVersion + "'");
 
         final StringBuilder result = new StringBuilder(30);
 
         String hotfixVersion = getHotfixVersion(currentVersion);
         result.append(hotfixVersion);
 
         result.append(DEFAULT_VERSION_COMPONENT_SEPARATOR).append(SNAPSHOT_QUALIFIER);
 
         return result.toString();
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index a44dd44..6b29262 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -27,130 +27,134 @@ import org.codehaus.plexus.components.interactivity.PrompterException;
 import org.jfrog.hudson.util.GenericArtifactVersion;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 /**
  * Merges a release branch back into the develop and master branch and then
  * creates a tag for the release on master.
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
     
+    private static final Logger LOG = LoggerFactory.getLogger(ReleaseFinishMojo.class.getName());
+    
     /**
      * If true, the release can still finish even when SNAPSHOT dependencies
      * exists in the pom.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "false", property = "allowSnapshots")
     private boolean allowSnapshots = false;    
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
-        getLog().info("Finishing release '" + releaseName + "'");
+        LOG.info("Finishing release '" + releaseName + "'");
 
         /* Get release branch name */
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
         if (releaseBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         } else if (releaseBranches.size() == 1) {
             releaseName = releaseBranches.get(0);
         } else {
             releaseName = promptForExistingReleaseName(releaseBranches, releaseName);
         }
 
         /* Switch to develop branch and get its current version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
-        getLog().debug("develop version = " + developVersion);
+        LOG.debug("develop version = " + developVersion);
 
         /* Switch to release branch and set poms to release version */
         getGitflowInit().executeLocal("git checkout " + releaseName);
         reloadReactorProjects();
         String releaseVersion = getReleaseVersion(project.getVersion());
-        getLog().debug("release version = " + releaseVersion);
+        LOG.debug("release version = " + releaseVersion);
 
         setVersion(releaseVersion);
                 
         if (!allowSnapshots) {
             checkForSnapshotDependencies();
         }        
 
         /* finish release */
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setSquash(squash);
         gitflowRelease.setKeep(keep);
         gitflowRelease.setSign(sign);
         gitflowRelease.setSigningkey(signingkey);
 
         try {
             gitflowRelease.finish(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
         /* set poms to next develop version */
         String nextDevelopVersion = getNextDevelopVersion(developVersion);
         reloadReactorProjects();
         setVersion(nextDevelopVersion);
 
         /* Switch to release tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);
         reloadReactorProjects();
         String tagVersion = project.getVersion();
-        getLog().debug("tag version = " + tagVersion);
+        LOG.debug("tag version = " + tagVersion);
 
         /* install or deploy */
         if (skipDeploy == false) {
             clean();
             deploy();
         } else if (skipBuild == false) {
             clean();
             install();
         } else {
-            getLog().debug("Skipping both install and deploy for tag " + tagVersion);
+            LOG.debug("Skipping both install and deploy for tag " + tagVersion);
         }
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingReleaseName(List<String> releaseBranches, String defaultReleaseName) throws MojoFailureException {
         String message = "Please select a release branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, releaseBranches, defaultReleaseName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading release name from command line " + e.getMessage());
         }
 
         return name;
     }
 
     private String getNextDevelopVersion(String developVersion) {
-        getLog().debug("Current Develop version '" + developVersion + "'");
+        LOG.debug("Current Develop version '" + developVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(developVersion);
         artifactVersion.upgradeLeastSignificantPrimaryNumber();
 
         return artifactVersion.toString();
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
index 166450e..4b48dc4 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
@@ -27,91 +27,95 @@ import org.codehaus.plexus.util.StringUtils;
 import org.jfrog.hudson.util.GenericArtifactVersion;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 /**
  * Creates a new release branch off of the develop branch.
  */
 @Mojo(name = "release-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class ReleaseStartMojo extends AbstractReleaseMojo {
+    
+    private static final Logger LOG = LoggerFactory.getLogger(ReleaseStartMojo.class.getName());
 
     /**
      * Replaces any -SNAPSHOT versions with their corresponding releases.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "true", property = "useReleases")
     private boolean useReleases = true;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         /* Switch to develop branch and get its current version */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
         reloadReactorProjects();
         String developVersion = project.getVersion();
-        getLog().debug("develop version = " + developVersion);
+        LOG.debug("develop version = " + developVersion);
 
         /* Get suggested release version */
         String releaseVersion = getReleaseVersion(developVersion);
-        getLog().debug("release version = " + releaseVersion);
+        LOG.debug("release version = " + releaseVersion);
 //        String nextDevelopmentVersion = getNextDevelopmentVersion(project.getVersion());
 
         /* create release branch */
         String prefix = getReleaseBranchPrefix();
         if (StringUtils.isBlank(releaseName)) {
             String message = "What is the release branch name? " + prefix;
             try {
                 releaseName = prompter.prompt(message, releaseVersion);
                 if (StringUtils.isBlank(releaseName)) {
                     throw new MojoFailureException("Parameter <releaseName> cannot be null or empty.");
                 }
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading release name from command line " + ex.getMessage(), ex);
             }
         }
 
         try {
             new GenericArtifactVersion(releaseName);
         } catch (IllegalArgumentException e) {
             throw new MojoExecutionException("Provided releaseName " + releaseName + " is not a valid Maven version.");
         }
 
-        getLog().info("Starting release '" + releaseName + "'");
-        getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
-        getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
+        LOG.info("Starting release '" + releaseName + "'");
+        LOG.debug("msgPrefix '" + getMsgPrefix() + "'");
+        LOG.debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setPush(pushReleases);
         gitflowRelease.setStartCommit(startCommit);
 
         try {
             gitflowRelease.start(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         // current branch should be the release branch
         String releaseBranch = getGitflowInit().gitCurrentBranch();
         if (!releaseBranch.startsWith(prefix)) {
             throw new MojoFailureException("Failed to create release version.");
         }
 
         if (useReleases) {
             setReleaseVersions();
         }
 
 //        // checkout develop branch and update it's version
 //        String developBranch = (String) getGitflowInit().getDevelopBrnName();
 //        getGitflowInit().executeLocal("git checkout " + developBranch);
 //        setVersion(nextDevelopmentVersion);
 //
 //        // checkout release branch again
 //        getGitflowInit().executeLocal("git checkout " + releaseBranch);
     }
 
     public String getReleaseName() {
         return releaseName;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
index 425539f..eed01f6 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
@@ -28,102 +28,106 @@ import static org.jfrog.hudson.util.GenericArtifactVersion.DEFAULT_VERSION_COMPO
 import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 /**
  * Creates a new support branch from a specific commit on the master branch.
  */
 @Mojo(name = "support-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class SupportStartMojo extends AbstractGitflowMojo {
+    
+    private static final Logger LOG = LoggerFactory.getLogger(SupportStartMojo.class.getName());
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         String prefix = getGitflowInit().getSupportBranchPrefix();
 
         List<String> tags = getGitflowInit().gitAllTags();
         if (tags.isEmpty()) {
             throw new MojoFailureException("Could not find any tags to create support branch from!");
         }
 
         String baseName = promptForExistingTagName(tags, tags.get(tags.size() - 1));
 
         getGitflowInit().executeLocal("git checkout " + baseName);
 
         String supportVersion = getSupportVersion(project.getVersion());
         String supportSnapshotVersion = getSupportSnapshotVersion(project.getVersion());
 
-        getLog().info("Starting support branch '" + supportVersion + "'");
-        getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
-        getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
+        LOG.info("Starting support branch '" + supportVersion + "'");
+        LOG.debug("msgPrefix '" + getMsgPrefix() + "'");
+        LOG.debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowSupport gitflowSupport = new GitflowSupport();
         gitflowSupport.setInit(getGitflowInit());
         gitflowSupport.setMsgPrefix(getMsgPrefix());
         gitflowSupport.setMsgSuffix(getMsgSuffix());
         gitflowSupport.setStartCommit(startCommit);
 
         try {
             gitflowSupport.start(supportVersion);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         setVersion(supportSnapshotVersion);
 
         if (getGitflowInit().gitRemoteBranchExists(prefix + supportVersion)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + supportVersion);
         }
     }
 
     private String promptForExistingTagName(List<String> branches, String defaultBrnName) throws MojoFailureException {
         String message = "Please select the Tag to create the support branch from?";
 
         String name = "";
         try {
             name = prompter.prompt(message, branches, defaultBrnName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading selected Tag name from command line " + e.getMessage());
         }
 
         return name;
     }
 
     private String getSupportVersion(String currentVersion) throws MojoFailureException {
-        getLog().debug("getSupportVersion from '" + currentVersion + "'");
+        LOG.debug("getSupportVersion from '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         StringBuilder sb = new StringBuilder(10);
 //        int pCount = artifactVersion.getPrimaryNumberCount();
 //        for (int i = 0; i < pCount; i++) {
 //            Integer primaryNumber = artifactVersion.getPrimaryNumber(i);
 //            if (i == (pCount - 1)) {
 //                sb.append('x');
 //            } else {
 //                sb.append(primaryNumber);
 //            }
 //        }
         sb.append(artifactVersion.getPrimaryNumbersAsString()).append('.').append('x');
         sb.append(artifactVersion.getAnnotationAsString()).append(artifactVersion.getBuildSpecifierAsString());
 
         return sb.toString();
     }
 
     private String getSupportSnapshotVersion(String currentVersion) throws MojoFailureException {
-        getLog().debug("getSupportSnapshotVersion from '" + currentVersion + "'");
+        LOG.debug("getSupportSnapshotVersion from '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         final StringBuilder result = new StringBuilder(30);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         if (null == artifactVersion.getAnnotation()) {
             result.append(primaryNumbersAsString).append('.').append('0');
         } else {
             artifactVersion.upgradeAnnotationRevision();
             result.append(artifactVersion.toString());
         }
         result.append(DEFAULT_VERSION_COMPONENT_SEPARATOR).append(SNAPSHOT_QUALIFIER);
 
         return result.toString();
     }
 }
diff --git a/nbactions.xml b/nbactions.xml
index 61b3efc..4975122 100644
--- a/nbactions.xml
+++ b/nbactions.xml
@@ -1,20 +1,31 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <actions>
     <action>
         <actionName>CUSTOM-versions:set</actionName>
         <displayName>versions:set</displayName>
         <goals>
             <goal>versions:set</goal>
         </goals>
         <properties>
             <generateBackupPoms>false</generateBackupPoms>
         </properties>
     </action>
     <action>
         <actionName>CUSTOM-site</actionName>
         <displayName>site</displayName>
         <goals>
             <goal>site</goal>
         </goals>
     </action>
+    <action>
+            <actionName>CUSTOM-clean deploy</actionName>
+            <displayName>clean deploy</displayName>
+            <goals>
+                <goal>clean</goal>
+                <goal>deploy</goal>
+            </goals>
+            <properties>
+                <skipTests>true</skipTests>
+            </properties>
+        </action>
 </actions>

commit aabd7be6d1c0d4da7e91c539dc684f1677f955fb
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Wed Mar 5 20:56:35 2014 +0000

    GitHub doc deployment to GitHub Pages

diff --git a/ggitflow-maven-archetype/pom.xml b/ggitflow-maven-archetype/pom.xml
index 2d384da..6d8cba8 100644
--- a/ggitflow-maven-archetype/pom.xml
+++ b/ggitflow-maven-archetype/pom.xml
@@ -1,96 +1,35 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
+    <parent>
+        <groupId>com.dkirrane.maven.plugins</groupId>
+        <artifactId>ggitflow-maven</artifactId>
+        <version>1.2-SNAPSHOT</version>
+    </parent>
+
     <groupId>com.dkirrane.maven.archetype</groupId>
     <artifactId>ggitflow-maven-archetype</artifactId>
     <version>1.2-SNAPSHOT</version>
     <packaging>maven-archetype</packaging>
     <name>ggitflow-maven-archetype</name>
 
-    <url>http://dkirrane.github.io/ggitflow-maven-plugin/</url>
-
-    <scm>
-        <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
-        <connection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</connection>
-        <developerConnection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</developerConnection>
-    </scm>
-
-    <description>Maven Archetype for the Gitflow Maven Plugin</description>
-    <developers>
-        <developer>
-            <id>dkirrane</id>
-            <name>Desmond Kirrane</name>
-            <email>desmond.kirrane@gmail.com</email>
-        </developer>
-    </developers>
-    <licenses>
-        <license>
-            <name>Apache License Version 2.0, January 2004</name>
-            <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
-            <distribution>repo</distribution>
-        </license>
-    </licenses>
-
-    <properties>
-        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-        <netbeans.hint.license>apache20</netbeans.hint.license>
-    </properties>
-
     <build>
         <extensions>
             <extension>
                 <groupId>org.apache.maven.archetype</groupId>
                 <artifactId>archetype-packaging</artifactId>
                 <version>2.2</version>
             </extension>
         </extensions>
 
         <pluginManagement>
             <plugins>
                 <plugin>
                     <artifactId>maven-archetype-plugin</artifactId>
                     <version>2.2</version>
                 </plugin>
             </plugins>
         </pluginManagement>
     </build>
-
-
-    <!--
-        Sonatype upload details:
-        http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
-        https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
-        https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
-        https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
-
-            - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
-            - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
-            - Promote staged artifacts into repository 'Releases'
-            - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
-            - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
-    -->
-
-    <distributionManagement>
-        <snapshotRepository>
-            <id>sonatype</id>
-            <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
-        </snapshotRepository>
-        <repository>
-            <id>sonatype</id>
-            <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
-        </repository>
-    </distributionManagement>
-    <repositories>
-        <repository>
-            <id>sonatype</id>
-            <url>https://oss.sonatype.org/content/groups/public</url>
-            <releases>
-                <enabled>true</enabled>
-            </releases>
-            <snapshots>
-                <enabled>true</enabled>
-            </snapshots>
-        </repository>
-    </repositories>
 </project>
diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index 8098834..e403031 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,181 +1,171 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
+    <parent>
+        <groupId>com.dkirrane.maven.plugins</groupId>
+        <artifactId>ggitflow-maven</artifactId>
+        <version>1.2-SNAPSHOT</version>
+    </parent>
+
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
     <version>1.2-SNAPSHOT</version>
     <packaging>maven-plugin</packaging>
     <name>ggitflow-maven-plugin</name>
 
-    <properties>
-        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-        <netbeans.hint.license>apache20</netbeans.hint.license>
-        <!--<github.global.server>github</github.global.server>-->
-    </properties>
-
-    <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
-
-    <scm>
-        <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
-        <connection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</connection>
-        <developerConnection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</developerConnection>
-    </scm>
-
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
             <version>1.0</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
         <dependency>
             <groupId>jline</groupId>
             <artifactId>jline</artifactId>
             <version>2.11</version>
             <type>jar</type>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>3.2</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>3.0.8</version>
         </dependency>
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-interactivity-api</artifactId>
             <version>1.0-alpha-5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>2.4</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-project</artifactId>
             <version>2.2.1</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-clean-plugin</artifactId>
             <version>2.5</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-install-plugin</artifactId>
             <version>2.5.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-deploy-plugin</artifactId>
             <version>2.8.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-artifact</artifactId>
             <version>2.2.1</version>
         </dependency>
     </dependencies>
 
     <build>
         <resources>
             <resource>
                 <directory>src/it</directory>
                 <includes>
                     <include>**/**</include>
                 </includes>
             </resource>
         </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>3.2</version>
                 <configuration>
                     <goalPrefix>ggitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                     <!--                    <execution>
                         <id>help-goal</id>
                         <goals>
                             <goal>helpmojo</goal>
                         </goals>
                     </execution>-->
                     <!--                    <execution>
                         <id>report</id>
                         <goals>
                             <goal>report</goal>
                         </goals>
                     </execution>                    -->
                 </executions>
             </plugin>
-<!--            <plugin>
+            <plugin>
                 <groupId>com.github.github</groupId>
                 <artifactId>site-maven-plugin</artifactId>
-                <version>0.7</version>
+                <version>0.9</version>
                 <configuration>
                     <message>Creating site for ${project.version}</message>
                     <server>github</server>
-                    <includes>
-                        <include>plugin-info.html</include>
-                    </includes>
+                    <merge>true</merge>
                 </configuration>
                 <executions>
                     <execution>
                         <goals>
                             <goal>site</goal>
                         </goals>
                         <phase>site</phase>
                     </execution>
                 </executions>
-            </plugin>-->
+            </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-site-plugin</artifactId>
                 <version>3.0</version>
                 <configuration>
                     <reportPlugins>
                         <plugin>
                             <groupId>org.apache.maven.plugins</groupId>
                             <artifactId>maven-plugin-plugin</artifactId>
                             <version>3.2</version>
                         </plugin>
                     </reportPlugins>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/nbactions.xml b/nbactions.xml
new file mode 100644
index 0000000..61b3efc
--- /dev/null
+++ b/nbactions.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<actions>
+    <action>
+        <actionName>CUSTOM-versions:set</actionName>
+        <displayName>versions:set</displayName>
+        <goals>
+            <goal>versions:set</goal>
+        </goals>
+        <properties>
+            <generateBackupPoms>false</generateBackupPoms>
+        </properties>
+    </action>
+    <action>
+        <actionName>CUSTOM-site</actionName>
+        <displayName>site</displayName>
+        <goals>
+            <goal>site</goal>
+        </goals>
+    </action>
+</actions>
diff --git a/pom.xml b/pom.xml
index ef31b8d..1a01a14 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,150 +1,169 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven</artifactId>
     <version>1.2-SNAPSHOT</version>
     <packaging>pom</packaging>
 
     <modules>
         <module>ggitflow-maven-plugin</module>
         <module>ggitflow-maven-archetype</module>
     </modules>
 
-    <url>http://dkirrane.github.io/ggitflow-maven-plugin/</url>
+    <properties>
+        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+        <netbeans.hint.license>apache20</netbeans.hint.license>
+    </properties>
+
+    <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
 
     <scm>
         <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
         <connection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</connection>
         <developerConnection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</developerConnection>
     </scm>
 
     <description>Maven Archetype for the Gitflow Maven Plugin</description>
     <developers>
         <developer>
             <id>dkirrane</id>
             <name>Desmond Kirrane</name>
             <email>desmond.kirrane@gmail.com</email>
         </developer>
     </developers>
     <licenses>
         <license>
             <name>Apache License Version 2.0, January 2004</name>
             <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
             <distribution>repo</distribution>
         </license>
     </licenses>
 
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <version>2.3.2</version>
+                <configuration>
+                    <source>1.5</source>
+                    <target>1.5</target>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
     <profiles>
         <!-- Deploy to https://oss.sonatype.org/index.html -->
         <!-- mvn clean deploy -Prelease-sign-artifacts -->
         <profile>
             <id>release-sign-artifacts</id>
             <activation>
                 <property>
                     <name>performRelease</name>
                     <value>true</value>
                 </property>
             </activation>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-gpg-plugin</artifactId>
                         <executions>
                             <execution>
                                 <id>sign-artifacts</id>
                                 <phase>verify</phase>
                                 <goals>
                                     <goal>sign</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
             </build>
         </profile>
         <profile>
             <id>run-its</id>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-invoker-plugin</artifactId>
                         <version>1.8</version>
                         <configuration>
                             <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
                             <settingsFile>src/it/settings.xml</settingsFile>
                             <debug>true</debug>
                             <showErrors>true</showErrors>
                             <detail>true</detail>
                             <streamLogs>true</streamLogs>
                             <projectsDirectory>src/it/projects</projectsDirectory>
                             <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
                             <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
                             <addTestClassPath>true</addTestClassPath>
                             <preBuildHookScript>setup</preBuildHookScript>
                             <postBuildHookScript>verify</postBuildHookScript>
                             <pomIncludes>
                                 <pomInclude>*/pom.xml</pomInclude>
                             </pomIncludes>
                             <goals>
                                 <goal>clean</goal>
                                 <goal>test-compile</goal>
                             </goals>
                         </configuration>
                         <executions>
                             <execution>
                                 <id>integration-test</id>
                                 <goals>
                                     <goal>install</goal>
                                     <goal>integration-test</goal>
                                     <goal>verify</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
 
             </build>
         </profile>
     </profiles>
 
     <!--
         Sonatype upload details:
         http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
         https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
         https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
         https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
 
             - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
             - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
             - Promote staged artifacts into repository 'Releases'
             - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
             - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
     -->
 
     <distributionManagement>
         <snapshotRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
         </snapshotRepository>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
         </repository>
     </distributionManagement>
     <repositories>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
             <snapshots>
                 <enabled>true</enabled>
             </snapshots>
         </repository>
     </repositories>
 </project>

commit 1bddeae382c19062fde3bc8e771a0ec21f231640
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Wed Mar 5 20:23:06 2014 +0000

    Check for SNAPSHOT dependencies

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index 1a02854..6a3894b 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -25,2 +25,4 @@ import java.util.List;
 import java.util.Map;
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
 import org.apache.maven.artifact.repository.ArtifactRepository;
@@ -28,2 +30,4 @@ import org.apache.maven.artifact.resolver.ArtifactResolver;
 import org.apache.maven.execution.MavenSession;
+import org.apache.maven.model.Dependency;
+import org.apache.maven.model.DependencyManagement;
 import org.apache.maven.model.building.ModelBuildingRequest;
@@ -59,465 +63,490 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 /**
  *
  */
 public class AbstractGitflowMojo extends AbstractMojo {
 
+    public final Pattern matchSnapshotRegex = Pattern.compile("-SNAPSHOT");
+
     /**
      * Gitflow branches and prefixes to use.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
     /**
      * Message prefix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgPrefix", defaultValue = "", required = false)
     protected String msgPrefix;
 
     /**
      * Message suffix used for any commits made by this plugin.
      *
      * @since 1.2
      */
     @Parameter(property = "msgSuffix", defaultValue = "", required = false)
     protected String msgSuffix;
 
     /**
      * Skips any calls to mvn install
      *
      * @since 1.2
      */
     @Parameter(property = "skipBuild", defaultValue = "false", required = false)
     protected Boolean skipBuild;
 
     /**
      * Skips any calls to mvn deploy
      *
      * @since 1.2
      */
     @Parameter(property = "skipDeploy", defaultValue = "false", required = false)
     protected Boolean skipDeploy;
 
     /**
      * The commit to start the branch from.
      *
      * @since 1.2
      */
     @Parameter(property = "startCommit", defaultValue = "", required = false)
     protected String startCommit;
 
     /**
      * If true, all branch commits will be squashed into a single commit before
      * the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "squash", defaultValue = "false", required = false)
     protected Boolean squash;
 
     /**
      * If true, the branch will not be deleted after the merge.
      *
      * @since 1.2
      */
     @Parameter(property = "keep", defaultValue = "false", required = false)
     protected Boolean keep;
 
     /**
      * If true, any Git tags created will be signed.
      *
      * @since 1.2
      */
     @Parameter(property = "sign", defaultValue = "false", required = false)
     protected Boolean sign;
 
     /**
      * If GPG key used to sign the tag.
      *
      * @since 1.2
      */
     @Parameter(property = "signingkey", defaultValue = "", required = false)
     protected String signingkey;
 
     /**
      * Component used to prompt for input.
      */
     @Component
     protected Prompter prompter;
 
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
     @Component
     protected ArtifactResolver artifactResolver;
 
     /**
      * @parameter default-value="${project.artifacts}"
      * @required
      * @readonly
      */
     protected Collection artifacts;
 
     /**
      * @parameter expression="${localRepository}"
      */
     protected ArtifactRepository localRepository;
 
     /**
      * @parameter expression="${project.remoteArtifactRepositories}"
      */
     protected List remoteArtifactRepositories;
 
 //    @Component
 //    protected MavenProjectBuilder projectBuilder;
 //    @Component
 //    protected DefaultProjectBuilder projectBuilder;
 //    /**
 //     * @parameter property="plugin"
 //     * @required
 //     */
 //    @Component
 //    protected PluginDescriptor pluginDescriptor;
 //
     /**
      * The projects in the reactor.
      */
     @Parameter(defaultValue = "${reactorProjects}", readonly = true, required = true)
     protected List<MavenProject> reactorProjects;
 
     /**
      * The project builder
      */
     @Component
     private ProjectBuilder projectBuilder;
 
     /**
      * The project currently being build.
      *
      * @parameter expression="${project}"
      * @required
      * @readonly
      */
     @Component
     protected MavenProject project;
 
     /**
      * The current Maven session.
      *
      * @parameter expression="${session}"
      * @required
      * @readonly
      */
     @Component
     protected MavenSession session;
 
     /**
      * The Maven BuildPluginManager component.
      *
      * @component
      * @required
      */
     @Component
     protected BuildPluginManager pluginManager;
 
     private GitflowInit init;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     public void execute() throws MojoExecutionException, MojoFailureException {
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             getLog().debug("Gitflow pom  '" + project.getBasedir() + "'");
         }
 
         GitflowInit gitflowInit = getGitflowInit();
 
         gitflowInit.requireGitRepo();
 
         if (!gitflowInit.gitflowIsInitialized()) {
             try {
                 gitflowInit.cmdDefault();
             } catch (GitflowException ex) {
                 throw new MojoExecutionException("Failed to inintialise Gitflow " + ex.getMessage(), ex);
             }
         }
 
         gitflowInit.requireCleanWorkingTree();
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
-    public GitflowInit getGitflowInit() {
+    protected final GitflowInit getGitflowInit() {
         if (null == init) {
             init = new GitflowInit();
             init.setRepoDir(getProject().getBasedir());
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
 
             /* root Git directory may not be the pom directory */
             String dotGitDir = init.executeLocal("git rev-parse --git-dir");
             File dotGitFolder = new File(dotGitDir);
             assert dotGitFolder.exists();
             init.setRepoDir(dotGitFolder.getParentFile());
         }
         return init;
     }
 
-    public void setVersion(String version) throws MojoExecutionException, MojoFailureException {
+    protected final void setVersion(String version) throws MojoExecutionException, MojoFailureException {
         getLog().debug("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.codehaus.mojo"),
                         artifactId("versions-maven-plugin"),
                         version("2.1")
                 ),
                 goal("set"),
                 configuration(
                         element(name("generateBackupPoms"), "false"),
                         element(name("newVersion"), version)
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
         getLog().debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change " + version + " to origin. ExitCode:" + exitCode);
                 }
             }
         }
         /* We don't want to fail maybe the version was manually set correctly */
 //        else {
 //            throw new MojoFailureException("Failed to update poms to version " + version);
 //        }
     }
 
-    public void setReleaseVersions() throws MojoExecutionException, MojoFailureException {
+    protected final void setReleaseVersions() throws MojoExecutionException, MojoFailureException {
         getLog().debug("START org.codehaus.mojo:versions-maven-plugin:2.1:use-releases");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.codehaus.mojo"),
                         artifactId("versions-maven-plugin"),
                         version("2.1")
                 ),
                 goal("use-releases"),
                 configuration(
                         element(name("generateBackupPoms"), "false")
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
         getLog().debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:use-releases");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Replacing -SNAPSHOT versions with their corresponding releases" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push release version change to origin. ExitCode:" + exitCode);
                 }
             }
         }
     }
 
-    public void clean() throws MojoExecutionException, MojoFailureException {
+    protected final void clean() throws MojoExecutionException, MojoFailureException {
         getLog().debug("START org.apache.maven.plugins:maven-clean-plugin:2.5:clean");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-clean-plugin"),
                         version("2.5")
                 ),
                 goal("clean"),
                 configuration(
                         element(name("skip"), "false")
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
         getLog().debug("DONE org.apache.maven.plugins:maven-clean-plugin:2.5:clean");
     }
 
-    public void install() throws MojoExecutionException, MojoFailureException {
+    protected final void install() throws MojoExecutionException, MojoFailureException {
         getLog().debug("START org.apache.maven.plugins:maven-install-plugin:2.5.1:install");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-install-plugin"),
                         version("2.5.1")
                 ),
                 goal("install"),
                 configuration(
                         element(name("skip"), "false")
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
         getLog().debug("DONE org.apache.maven.plugins:maven-install-plugin:2.5.1:install");
     }
 
-    public void deploy() throws MojoExecutionException, MojoFailureException {
+    protected final void deploy() throws MojoExecutionException, MojoFailureException {
         getLog().debug("START org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-deploy-plugin"),
                         version("2.8.1")
                 ),
                 goal("deploy"),
                 configuration(
                         element(name("skip"), "false"),
                         element(name("retryFailedDeploymentCount"), "1")
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
         getLog().debug("DONE org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy");
     }
 
-    public String getReleaseVersion(String version) throws MojoFailureException {
+    protected final String getReleaseVersion(String version) throws MojoFailureException {
         getLog().debug("Current Develop version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
             getLog().warn("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
-    public void reloadReactorProjects() throws MojoExecutionException {
+    protected final void checkForSnapshotDependencies() throws MojoExecutionException {
+        getLog().info("Checking for SNAPSHOT dependencies");
+        DependencyManagement dependencyManagement = getProject().getDependencyManagement();
+        if (null != dependencyManagement) {
+            checkForSnapshot(dependencyManagement.getDependencies());
+        }
+        checkForSnapshot(getProject().getDependencies());
+    }
+
+    private void checkForSnapshot(List<Dependency> dependencies) throws MojoExecutionException {
+        Boolean hasSnapshotDependency = false;
+        for (Dependency dependency : dependencies) {
+            String version = dependency.getVersion();
+            Matcher versionMatcher = matchSnapshotRegex.matcher(version);
+            if (versionMatcher.find() && versionMatcher.end() == version.length()) {
+                getLog().error("Found SNAPSHOT depednency " + dependency.getGroupId() + ":" + dependency.getArtifactId() + ":" + version);
+            }
+        }
+        if (hasSnapshotDependency) {
+            throw new MojoExecutionException("Cannot start release because SNAPSHOT dependencies exist");
+        }
+    }
+
+    protected final void reloadReactorProjects() throws MojoExecutionException {
         getLog().debug("Reloading poms...");
 
         List<MavenProject> newReactorProjects;
         try {
             newReactorProjects = buildReactorProjects();
         } catch (ProjectBuildingException e) {
             getLog().error("Re-parse aborted due to malformed pom.xml file(s)", e);
             throw new MojoExecutionException("Re-parse aborted due to malformed pom.xml file(s)", e);
         } catch (CycleDetectedException e) {
             getLog().error("Re-parse aborted due to dependency cycle in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to dependency cycle in project model", e);
         } catch (DuplicateProjectException e) {
             getLog().error("Re-parse aborted due to duplicate projects in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to duplicate projects in project model", e);
         } catch (Exception e) {
             getLog().error("Re-parse aborted due a problem that prevented sorting the project model", e);
             throw new MojoExecutionException("Re-parse aborted due a problem that prevented sorting the project model", e);
         }
         MavenProject newProject = findProject(newReactorProjects, this.project);
         if (newProject == null) {
             throw new MojoExecutionException("A pom.xml change appears to have removed " + this.project.getId() + " from the build plan.");
         }
 
         this.project = newProject;
         this.reactorProjects = newReactorProjects;
 
         getLog().debug("Reloading poms complete...");
     }
 
     private List<MavenProject> buildReactorProjects() throws Exception {
 
         List<MavenProject> projects = new ArrayList<MavenProject>();
         for (MavenProject p : reactorProjects) {
             ProjectBuildingRequest request = new DefaultProjectBuildingRequest();
 
             request.setProcessPlugins(true);
             request.setProfiles(request.getProfiles());
             request.setActiveProfileIds(session.getRequest().getActiveProfiles());
             request.setInactiveProfileIds(session.getRequest().getInactiveProfiles());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setSystemProperties(session.getSystemProperties());
             request.setUserProperties(session.getUserProperties());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setPluginArtifactRepositories(session.getRequest().getPluginArtifactRepositories());
             request.setRepositorySession(session.getRepositorySession());
             request.setLocalRepository(localRepository);
             request.setBuildStartTime(session.getRequest().getStartTime());
             request.setResolveDependencies(true);
             request.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_STRICT);
             projects.add(projectBuilder.build(p.getFile(), request).getProject());
         }
         return new ProjectSorter(projects).getSortedProjects();
     }
 
     private MavenProject findProject(List<MavenProject> newReactorProjects, MavenProject oldProject) {
         for (MavenProject newProject : newReactorProjects) {
             if (oldProject.getGroupId().equals(newProject.getGroupId())
                     && oldProject.getArtifactId().equals(newProject.getArtifactId())) {
                 return newProject;
             }
         }
         return null;
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
index 389ca44..9e0e720 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
@@ -25,2 +25,3 @@ import org.apache.maven.plugins.annotations.LifecyclePhase;
 import org.apache.maven.plugins.annotations.Mojo;
+import org.apache.maven.plugins.annotations.Parameter;
 import org.codehaus.plexus.components.interactivity.PrompterException;
@@ -28,115 +29,129 @@ import org.codehaus.plexus.components.interactivity.PrompterException;
 /**
  * Merges a hotfix branch back into the develop and master branch and then
  * creates a tag for the hotfix on master.
  */
 @Mojo(name = "hotfix-finish", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class HotfixFinishMojo extends AbstractHotfixMojo {
 
     protected String hotfixName;
+    
+    /**
+     * If true, the hotfix can still finish even when SNAPSHOT dependencies
+     * exists in the pom.
+     *
+     * @since 1.2
+     */
+    @Parameter(defaultValue = "false", property = "allowSnapshots")
+    private boolean allowSnapshots = false;  
+    
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().info("Finishing hotfix '" + hotfixName + "'");
 
         /* Get hotfix branch name */
         List<String> hotfixBranches = getGitflowInit().gitLocalHotfixBranches();
         if (hotfixBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         } else if (hotfixBranches.size() == 1) {
             hotfixName = hotfixBranches.get(0);
         } else {
             hotfixName = promptForExistingHotfixName(hotfixBranches, hotfixName);
         }
 
         /* Switch to hotfix branch and set poms to hotfix version */
         getGitflowInit().executeLocal("git checkout " + hotfixName);
         reloadReactorProjects();
         String hotfixVersion = project.getVersion();
         getLog().debug("hotfix snapshot version = " + hotfixVersion);
         String hotfixReleaseVersion = getReleaseVersion(hotfixVersion);
         getLog().debug("hotfix release version = " + hotfixReleaseVersion);
         setVersion(hotfixReleaseVersion);
 
         /* Switch to develop branch and get current develop version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         getLog().debug("develop version = " + developVersion);
 
         /* Set develop branch to hotfix version to prevent merge conflicts */
         setVersion(hotfixReleaseVersion);
+        
+        if (!allowSnapshots) {
+            checkForSnapshotDependencies();
+        }            
 
         /* finish hotfix */
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
         gitflowHotfix.setSquash(squash);
         gitflowHotfix.setKeep(keep);
         gitflowHotfix.setSign(sign);
         gitflowHotfix.setSigningkey(signingkey);
 
         try {
             gitflowHotfix.finish(hotfixName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             getLog().error("Merge conflicts exist.", gmce);
             throw new MojoFailureException(gmce.getMessage());
 
 //            getLog().info("Attempting to auto-resolve any pom version conflicts.", gmce);
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            fixPomMergeConflicts.setInit(getGitflowInit());
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
         /* Set develop branch back to original develop version */
         setVersion(developVersion);
         if (getGitflowInit().gitRemoteBranchExists(developBranch)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + developBranch);
         }
 
         /* Switch to hotfix tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + hotfixReleaseVersion);
         reloadReactorProjects();
 
         /* install or deploy */
         if (skipDeploy == false) {
             clean();
             deploy();
         } else if (skipBuild == false) {
             clean();
             install();
         } else {
             getLog().debug("Skipping both install and deploy");
         }
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingHotfixName(List<String> hotfixBranches, String defaultHotfixName) throws MojoFailureException {
         String message = "Please select a hotfix branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, hotfixBranches, defaultHotfixName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading hotfix name from command line " + e.getMessage());
         }
 
         return name;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index 6c931ae..a44dd44 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -24,2 +24,3 @@ import org.apache.maven.plugin.MojoFailureException;
 import org.apache.maven.plugins.annotations.Mojo;
+import org.apache.maven.plugins.annotations.Parameter;
 import org.codehaus.plexus.components.interactivity.PrompterException;
@@ -28,115 +29,128 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  * Merges a release branch back into the develop and master branch and then
  * creates a tag for the release on master.
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
+    
+    /**
+     * If true, the release can still finish even when SNAPSHOT dependencies
+     * exists in the pom.
+     *
+     * @since 1.2
+     */
+    @Parameter(defaultValue = "false", property = "allowSnapshots")
+    private boolean allowSnapshots = false;    
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().info("Finishing release '" + releaseName + "'");
 
         /* Get release branch name */
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
         if (releaseBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         } else if (releaseBranches.size() == 1) {
             releaseName = releaseBranches.get(0);
         } else {
             releaseName = promptForExistingReleaseName(releaseBranches, releaseName);
         }
 
         /* Switch to develop branch and get its current version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         getLog().debug("develop version = " + developVersion);
 
         /* Switch to release branch and set poms to release version */
         getGitflowInit().executeLocal("git checkout " + releaseName);
         reloadReactorProjects();
         String releaseVersion = getReleaseVersion(project.getVersion());
         getLog().debug("release version = " + releaseVersion);
 
         setVersion(releaseVersion);
+                
+        if (!allowSnapshots) {
+            checkForSnapshotDependencies();
+        }        
 
         /* finish release */
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setSquash(squash);
         gitflowRelease.setKeep(keep);
         gitflowRelease.setSign(sign);
         gitflowRelease.setSigningkey(signingkey);
 
         try {
             gitflowRelease.finish(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
         /* set poms to next develop version */
         String nextDevelopVersion = getNextDevelopVersion(developVersion);
         reloadReactorProjects();
         setVersion(nextDevelopVersion);
 
         /* Switch to release tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);
         reloadReactorProjects();
         String tagVersion = project.getVersion();
         getLog().debug("tag version = " + tagVersion);
 
         /* install or deploy */
         if (skipDeploy == false) {
             clean();
             deploy();
         } else if (skipBuild == false) {
             clean();
             install();
         } else {
             getLog().debug("Skipping both install and deploy for tag " + tagVersion);
         }
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingReleaseName(List<String> releaseBranches, String defaultReleaseName) throws MojoFailureException {
         String message = "Please select a release branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, releaseBranches, defaultReleaseName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading release name from command line " + e.getMessage());
         }
 
         return name;
     }
 
     private String getNextDevelopVersion(String developVersion) {
         getLog().debug("Current Develop version '" + developVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(developVersion);
         artifactVersion.upgradeLeastSignificantPrimaryNumber();
 
         return artifactVersion.toString();
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
index 853db85..166450e 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
@@ -29,98 +29,89 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  * Creates a new release branch off of the develop branch.
  */
 @Mojo(name = "release-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class ReleaseStartMojo extends AbstractReleaseMojo {
 
     /**
      * Replaces any -SNAPSHOT versions with their corresponding releases.
      *
      * @since 1.2
      */
     @Parameter(defaultValue = "true", property = "useReleases")
     private boolean useReleases = true;
 
-    /**
-     * If true, the release can still start even when SNAPSHOT dependencies
-     * exists in the pom.
-     *
-     * @since 1.2
-     */
-    @Parameter(defaultValue = "false", property = "allowSnapshots")
-    private boolean allowSnapshots = false;
-
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         /* Switch to develop branch and get its current version */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
         reloadReactorProjects();
         String developVersion = project.getVersion();
         getLog().debug("develop version = " + developVersion);
 
         /* Get suggested release version */
         String releaseVersion = getReleaseVersion(developVersion);
         getLog().debug("release version = " + releaseVersion);
 //        String nextDevelopmentVersion = getNextDevelopmentVersion(project.getVersion());
 
         /* create release branch */
         String prefix = getReleaseBranchPrefix();
         if (StringUtils.isBlank(releaseName)) {
             String message = "What is the release branch name? " + prefix;
             try {
                 releaseName = prompter.prompt(message, releaseVersion);
                 if (StringUtils.isBlank(releaseName)) {
                     throw new MojoFailureException("Parameter <releaseName> cannot be null or empty.");
                 }
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading release name from command line " + ex.getMessage(), ex);
             }
         }
 
         try {
             new GenericArtifactVersion(releaseName);
         } catch (IllegalArgumentException e) {
             throw new MojoExecutionException("Provided releaseName " + releaseName + " is not a valid Maven version.");
         }
 
         getLog().info("Starting release '" + releaseName + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setPush(pushReleases);
         gitflowRelease.setStartCommit(startCommit);
 
         try {
             gitflowRelease.start(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         // current branch should be the release branch
         String releaseBranch = getGitflowInit().gitCurrentBranch();
         if (!releaseBranch.startsWith(prefix)) {
             throw new MojoFailureException("Failed to create release version.");
         }
 
         if (useReleases) {
             setReleaseVersions();
         }
 
 //        // checkout develop branch and update it's version
 //        String developBranch = (String) getGitflowInit().getDevelopBrnName();
 //        getGitflowInit().executeLocal("git checkout " + developBranch);
 //        setVersion(nextDevelopmentVersion);
 //
 //        // checkout release branch again
 //        getGitflowInit().executeLocal("git checkout " + releaseBranch);
     }
 
     public String getReleaseName() {
         return releaseName;
     }
 }

commit 13d9de2f01e9884002006a0a3f75872e47e49477
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Tue Mar 4 22:17:03 2014 +0000

    Commenting Parameters and fixing any missing parameters

diff --git a/ggitflow-maven-plugin/nbactions.xml b/ggitflow-maven-plugin/nbactions.xml
index a943054..ff57148 100644
--- a/ggitflow-maven-plugin/nbactions.xml
+++ b/ggitflow-maven-plugin/nbactions.xml
@@ -1,37 +1,44 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <actions>
     <action>
         <actionName>rebuild</actionName>
         <packagings>
             <packaging>*</packaging>
         </packagings>
         <goals>
             <goal>clean</goal>
             <goal>install</goal>
         </goals>
         <properties>
             <skipTests>true</skipTests>
         </properties>
     </action>
     <action>
         <actionName>CUSTOM-clean deploy</actionName>
         <displayName>clean deploy</displayName>
         <goals>
             <goal>clean</goal>
             <goal>deploy</goal>
         </goals>
         <properties>
             <skipTests>true</skipTests>
         </properties>
     </action>
     <action>
         <actionName>CUSTOM-versions:set</actionName>
         <displayName>versions:set</displayName>
         <goals>
             <goal>versions:set</goal>
         </goals>
         <properties>
             <generateBackupPoms>false</generateBackupPoms>
         </properties>
     </action>
+    <action>
+        <actionName>CUSTOM-site</actionName>
+        <displayName>site</displayName>
+        <goals>
+            <goal>site:site</goal>
+        </goals>
+    </action>
 </actions>
diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index 6a2a073..8098834 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,132 +1,181 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
     <version>1.2-SNAPSHOT</version>
     <packaging>maven-plugin</packaging>
     <name>ggitflow-maven-plugin</name>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
+        <!--<github.global.server>github</github.global.server>-->
     </properties>
 
+    <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
+
+    <scm>
+        <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
+        <connection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</connection>
+        <developerConnection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</developerConnection>
+    </scm>
+
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
             <version>1.0</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
         <dependency>
             <groupId>jline</groupId>
             <artifactId>jline</artifactId>
             <version>2.11</version>
             <type>jar</type>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>3.2</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>3.0.8</version>
         </dependency>
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-interactivity-api</artifactId>
             <version>1.0-alpha-5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>2.4</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-project</artifactId>
             <version>2.2.1</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-clean-plugin</artifactId>
             <version>2.5</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-install-plugin</artifactId>
             <version>2.5.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-deploy-plugin</artifactId>
             <version>2.8.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-artifact</artifactId>
             <version>2.2.1</version>
         </dependency>
     </dependencies>
 
     <build>
         <resources>
             <resource>
                 <directory>src/it</directory>
                 <includes>
                     <include>**/**</include>
                 </includes>
             </resource>
         </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>3.2</version>
                 <configuration>
                     <goalPrefix>ggitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
-                    <execution>
+                    <!--                    <execution>
                         <id>help-goal</id>
                         <goals>
                             <goal>helpmojo</goal>
                         </goals>
+                    </execution>-->
+                    <!--                    <execution>
+                        <id>report</id>
+                        <goals>
+                            <goal>report</goal>
+                        </goals>
+                    </execution>                    -->
+                </executions>
+            </plugin>
+<!--            <plugin>
+                <groupId>com.github.github</groupId>
+                <artifactId>site-maven-plugin</artifactId>
+                <version>0.7</version>
+                <configuration>
+                    <message>Creating site for ${project.version}</message>
+                    <server>github</server>
+                    <includes>
+                        <include>plugin-info.html</include>
+                    </includes>
+                </configuration>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>site</goal>
+                        </goals>
+                        <phase>site</phase>
                     </execution>
                 </executions>
+            </plugin>-->
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-site-plugin</artifactId>
+                <version>3.0</version>
+                <configuration>
+                    <reportPlugins>
+                        <plugin>
+                            <groupId>org.apache.maven.plugins</groupId>
+                            <artifactId>maven-plugin-plugin</artifactId>
+                            <version>3.2</version>
+                        </plugin>
+                    </reportPlugins>
+                </configuration>
             </plugin>
         </plugins>
     </build>
 </project>
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
index 433ad81..8cd3b1e 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
@@ -24,104 +24,119 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  *
  */
 public class AbstractFeatureMojo extends AbstractGitflowMojo {
 
-    @Parameter(property = "featureName")
+    /**
+     * The name for the feature branch
+     *
+     * @since 1.2
+     */
+    @Parameter(property = "featureName", required = true)
     protected String featureName;
 
-    @Parameter(defaultValue = "false", property = "enableFeatureVersions")
+    /**
+     * If true, the feature branch name is added to the pom versions
+     *
+     * @since 1.2
+     */
+    @Parameter(defaultValue = "false", property = "enableFeatureVersions", required = false)
     protected boolean enableFeatureVersions = false;
 
-    @Parameter(defaultValue = "false", property = "pushFeatures")
+    /**
+     * If true, the feature branch is pushed to the remote repository
+     *
+     * @since 1.2
+     */
+    @Parameter(defaultValue = "false", property = "pushFeatures", required = false)
     protected boolean pushFeatures = false;
 
     public String getFeatureBranchPrefix() {
         String prefix = getGitflowInit().getFeatureBranchPrefix();
         if (StringUtils.isBlank(prefix)) {
             prefix = DEFAULT_FEATURE_BRN_PREFIX;
         }
         return prefix;
     }
 
     public String getFeatureName(String featureLabel) throws MojoFailureException {
         if (StringUtils.isBlank(featureLabel)) {
             throw new MojoFailureException("Missing argument <featureName>");
         }
 
         featureLabel = featureLabel.replaceAll("\\s+", "");
 //        featureLabel = featureLabel.replaceAll("-+", "_");
         return featureLabel;
     }
 
     public String getFeatureVersion(String currentVersion, String featureLabel) throws MojoFailureException {
         getLog().debug("getFeatureVersion from '" + currentVersion + "'");
         featureLabel = getValidFeatureVersionAnnotation(featureLabel);
         getLog().debug("Feature version annotation '" + featureLabel + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         Character annotationSeparator = artifactVersion.getAnnotationRevisionSeparator();
         String buildSpecifier = artifactVersion.getBuildSpecifier();
         Character buildSpecifierSeparator = artifactVersion.getBuildSpecifierSeparator();
 
         getLog().debug("Parsed version = " + artifactVersion.toString());
         if (!StringUtils.isBlank(annotationAsString)) {
             throw new MojoFailureException("Cannot add feature name to version. An annotation " + annotationAsString + " already exists");
         }
 
         final StringBuilder result = new StringBuilder(30);
 
         result.append(primaryNumbersAsString).append(annotationSeparator).append(featureLabel);
 
         if (buildSpecifier != null) {
             if (buildSpecifierSeparator != null) {
                 result.append(buildSpecifierSeparator);
             }
             result.append(buildSpecifier);
         }
 
         return result.toString();
     }
 
     public String getNonFeatureVersion(String version, String featureLabel) {
         getLog().debug("getNonFeatureVersion from '" + version + "'");
         featureLabel = getValidFeatureVersionAnnotation(featureLabel);
         getLog().debug("Feature version annotation '" + featureLabel + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifier = artifactVersion.getBuildSpecifier();
         Character buildSpecifierSeparator = artifactVersion.getBuildSpecifierSeparator();
 
         getLog().debug("Parsed version = " + artifactVersion.toString());
         if (StringUtils.isBlank(annotationAsString)) {
             getLog().warn("Cannot remove feature name from pom version. The version annotation does not exists");
             return version;
         }
 
         if (('-' + featureLabel).equals(annotationAsString)) {
             final StringBuilder result = new StringBuilder(30);
             result.append(primaryNumbersAsString);
 
             if (buildSpecifier != null) {
                 if (buildSpecifierSeparator != null) {
                     result.append(buildSpecifierSeparator);
                 }
                 result.append(buildSpecifier);
             }
 
             return result.toString();
         } else {
             getLog().warn("Cannot remove feature name from pom version. The version annotation [" + annotationAsString + "] does not match the feature label [" + featureLabel + "]");
             return version;
         }
     }
 
     private String getValidFeatureVersionAnnotation(String featureLabel) {
         featureLabel = featureLabel.trim().replaceAll("\\s+", "_");
         featureLabel = featureLabel.trim().replaceAll("-+", "_");
         return featureLabel;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index 8c78c5c..1a02854 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -23,3 +23,2 @@ import java.util.ArrayList;
 import java.util.Collection;
-import java.util.Iterator;
 import java.util.List;
@@ -60,375 +59,465 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 /**
  *
  */
 public class AbstractGitflowMojo extends AbstractMojo {
 
+    /**
+     * Gitflow branches and prefixes to use.
+     *
+     * @since 1.2
+     */
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
-    @Parameter(property = "msgPrefix", defaultValue = "")
+    /**
+     * Message prefix used for any commits made by this plugin.
+     *
+     * @since 1.2
+     */
+    @Parameter(property = "msgPrefix", defaultValue = "", required = false)
     protected String msgPrefix;
 
-    @Parameter(property = "msgSuffix", defaultValue = "")
+    /**
+     * Message suffix used for any commits made by this plugin.
+     *
+     * @since 1.2
+     */
+    @Parameter(property = "msgSuffix", defaultValue = "", required = false)
     protected String msgSuffix;
 
-    @Parameter(property = "skipBuild", defaultValue = "false")
+    /**
+     * Skips any calls to mvn install
+     *
+     * @since 1.2
+     */
+    @Parameter(property = "skipBuild", defaultValue = "false", required = false)
     protected Boolean skipBuild;
 
-    @Parameter(property = "skipDeploy", defaultValue = "false")
+    /**
+     * Skips any calls to mvn deploy
+     *
+     * @since 1.2
+     */
+    @Parameter(property = "skipDeploy", defaultValue = "false", required = false)
     protected Boolean skipDeploy;
 
-    @Parameter(property = "startCommit", defaultValue = "")
+    /**
+     * The commit to start the branch from.
+     *
+     * @since 1.2
+     */
+    @Parameter(property = "startCommit", defaultValue = "", required = false)
     protected String startCommit;
 
-    @Parameter(property = "squash", defaultValue = "false")
+    /**
+     * If true, all branch commits will be squashed into a single commit before
+     * the merge.
+     *
+     * @since 1.2
+     */
+    @Parameter(property = "squash", defaultValue = "false", required = false)
     protected Boolean squash;
 
-    @Parameter(property = "keep", defaultValue = "false")
+    /**
+     * If true, the branch will not be deleted after the merge.
+     *
+     * @since 1.2
+     */
+    @Parameter(property = "keep", defaultValue = "false", required = false)
     protected Boolean keep;
 
-    @Parameter(property = "sign", defaultValue = "false")
+    /**
+     * If true, any Git tags created will be signed.
+     *
+     * @since 1.2
+     */
+    @Parameter(property = "sign", defaultValue = "false", required = false)
     protected Boolean sign;
 
-    @Parameter(property = "signingkey", defaultValue = "")
+    /**
+     * If GPG key used to sign the tag.
+     *
+     * @since 1.2
+     */
+    @Parameter(property = "signingkey", defaultValue = "", required = false)
     protected String signingkey;
 
     /**
      * Component used to prompt for input.
      */
     @Component
     protected Prompter prompter;
 
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
     @Component
     protected ArtifactResolver artifactResolver;
 
     /**
      * @parameter default-value="${project.artifacts}"
      * @required
      * @readonly
      */
     protected Collection artifacts;
 
     /**
      * @parameter expression="${localRepository}"
      */
     protected ArtifactRepository localRepository;
 
     /**
      * @parameter expression="${project.remoteArtifactRepositories}"
      */
     protected List remoteArtifactRepositories;
 
 //    @Component
 //    protected MavenProjectBuilder projectBuilder;
 //    @Component
 //    protected DefaultProjectBuilder projectBuilder;
 //    /**
 //     * @parameter property="plugin"
 //     * @required
 //     */
 //    @Component
 //    protected PluginDescriptor pluginDescriptor;
 //
     /**
      * The projects in the reactor.
      */
     @Parameter(defaultValue = "${reactorProjects}", readonly = true, required = true)
     protected List<MavenProject> reactorProjects;
 
     /**
      * The project builder
      */
     @Component
     private ProjectBuilder projectBuilder;
 
     /**
      * The project currently being build.
      *
      * @parameter expression="${project}"
      * @required
      * @readonly
      */
     @Component
     protected MavenProject project;
 
     /**
      * The current Maven session.
      *
      * @parameter expression="${session}"
      * @required
      * @readonly
      */
     @Component
     protected MavenSession session;
 
     /**
      * The Maven BuildPluginManager component.
      *
      * @component
      * @required
      */
     @Component
     protected BuildPluginManager pluginManager;
 
     private GitflowInit init;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     public void execute() throws MojoExecutionException, MojoFailureException {
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             getLog().debug("Gitflow pom  '" + project.getBasedir() + "'");
         }
 
         GitflowInit gitflowInit = getGitflowInit();
 
         gitflowInit.requireGitRepo();
 
         if (!gitflowInit.gitflowIsInitialized()) {
             try {
                 gitflowInit.cmdDefault();
             } catch (GitflowException ex) {
                 throw new MojoExecutionException("Failed to inintialise Gitflow " + ex.getMessage(), ex);
             }
         }
 
         gitflowInit.requireCleanWorkingTree();
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     public GitflowInit getGitflowInit() {
         if (null == init) {
             init = new GitflowInit();
             init.setRepoDir(getProject().getBasedir());
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
 
             /* root Git directory may not be the pom directory */
             String dotGitDir = init.executeLocal("git rev-parse --git-dir");
             File dotGitFolder = new File(dotGitDir);
             assert dotGitFolder.exists();
             init.setRepoDir(dotGitFolder.getParentFile());
         }
         return init;
     }
 
     public void setVersion(String version) throws MojoExecutionException, MojoFailureException {
         getLog().debug("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.codehaus.mojo"),
                         artifactId("versions-maven-plugin"),
                         version("2.1")
                 ),
                 goal("set"),
                 configuration(
                         element(name("generateBackupPoms"), "false"),
                         element(name("newVersion"), version)
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
         getLog().debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change " + version + " to origin. ExitCode:" + exitCode);
                 }
             }
         }
         /* We don't want to fail maybe the version was manually set correctly */
 //        else {
 //            throw new MojoFailureException("Failed to update poms to version " + version);
 //        }
     }
 
+    public void setReleaseVersions() throws MojoExecutionException, MojoFailureException {
+        getLog().debug("START org.codehaus.mojo:versions-maven-plugin:2.1:use-releases");
+        MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
+        executeMojo(
+                plugin(
+                        groupId("org.codehaus.mojo"),
+                        artifactId("versions-maven-plugin"),
+                        version("2.1")
+                ),
+                goal("use-releases"),
+                configuration(
+                        element(name("generateBackupPoms"), "false")
+                ),
+                executionEnvironment(
+                        rootProject,
+                        session,
+                        pluginManager
+                )
+        );
+        getLog().debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:use-releases");
+
+        if (!getGitflowInit().gitIsCleanWorkingTree()) {
+            String msg = getMsgPrefix() + "Replacing -SNAPSHOT versions with their corresponding releases" + getMsgSuffix();
+            getGitflowInit().executeLocal("git add -A .");
+            String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
+            getGitflowInit().executeLocal(cmtPom);
+
+            String currentBranch = getGitflowInit().gitCurrentBranch();
+            if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
+                String origin = getGitflowInit().getOrigin();
+                String[] cmtPush = {"git", "push", origin, currentBranch};
+                Integer exitCode = getGitflowInit().executeRemote(cmtPush);
+                if (exitCode != 0) {
+                    throw new MojoExecutionException("Failed to push release version change to origin. ExitCode:" + exitCode);
+                }
+            }
+        }
+    }
+
     public void clean() throws MojoExecutionException, MojoFailureException {
         getLog().debug("START org.apache.maven.plugins:maven-clean-plugin:2.5:clean");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-clean-plugin"),
                         version("2.5")
                 ),
                 goal("clean"),
                 configuration(
                         element(name("skip"), "false")
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
         getLog().debug("DONE org.apache.maven.plugins:maven-clean-plugin:2.5:clean");
     }
 
     public void install() throws MojoExecutionException, MojoFailureException {
         getLog().debug("START org.apache.maven.plugins:maven-install-plugin:2.5.1:install");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-install-plugin"),
                         version("2.5.1")
                 ),
                 goal("install"),
                 configuration(
                         element(name("skip"), "false")
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
         getLog().debug("DONE org.apache.maven.plugins:maven-install-plugin:2.5.1:install");
     }
 
     public void deploy() throws MojoExecutionException, MojoFailureException {
         getLog().debug("START org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-deploy-plugin"),
                         version("2.8.1")
                 ),
                 goal("deploy"),
                 configuration(
                         element(name("skip"), "false"),
                         element(name("retryFailedDeploymentCount"), "1")
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
         getLog().debug("DONE org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy");
     }
 
     public String getReleaseVersion(String version) throws MojoFailureException {
         getLog().debug("Current Develop version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
             getLog().warn("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
     public void reloadReactorProjects() throws MojoExecutionException {
         getLog().debug("Reloading poms...");
 
         List<MavenProject> newReactorProjects;
         try {
             newReactorProjects = buildReactorProjects();
         } catch (ProjectBuildingException e) {
             getLog().error("Re-parse aborted due to malformed pom.xml file(s)", e);
             throw new MojoExecutionException("Re-parse aborted due to malformed pom.xml file(s)", e);
         } catch (CycleDetectedException e) {
             getLog().error("Re-parse aborted due to dependency cycle in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to dependency cycle in project model", e);
         } catch (DuplicateProjectException e) {
             getLog().error("Re-parse aborted due to duplicate projects in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to duplicate projects in project model", e);
         } catch (Exception e) {
             getLog().error("Re-parse aborted due a problem that prevented sorting the project model", e);
             throw new MojoExecutionException("Re-parse aborted due a problem that prevented sorting the project model", e);
         }
         MavenProject newProject = findProject(newReactorProjects, this.project);
         if (newProject == null) {
             throw new MojoExecutionException("A pom.xml change appears to have removed " + this.project.getId() + " from the build plan.");
         }
 
         this.project = newProject;
         this.reactorProjects = newReactorProjects;
 
         getLog().debug("Reloading poms complete...");
     }
 
     private List<MavenProject> buildReactorProjects() throws Exception {
 
         List<MavenProject> projects = new ArrayList<MavenProject>();
         for (MavenProject p : reactorProjects) {
             ProjectBuildingRequest request = new DefaultProjectBuildingRequest();
 
             request.setProcessPlugins(true);
             request.setProfiles(request.getProfiles());
             request.setActiveProfileIds(session.getRequest().getActiveProfiles());
             request.setInactiveProfileIds(session.getRequest().getInactiveProfiles());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setSystemProperties(session.getSystemProperties());
             request.setUserProperties(session.getUserProperties());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setPluginArtifactRepositories(session.getRequest().getPluginArtifactRepositories());
             request.setRepositorySession(session.getRepositorySession());
             request.setLocalRepository(localRepository);
             request.setBuildStartTime(session.getRequest().getStartTime());
             request.setResolveDependencies(true);
             request.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_STRICT);
             projects.add(projectBuilder.build(p.getFile(), request).getProject());
         }
         return new ProjectSorter(projects).getSortedProjects();
     }
 
     private MavenProject findProject(List<MavenProject> newReactorProjects, MavenProject oldProject) {
         for (MavenProject newProject : newReactorProjects) {
             if (oldProject.getGroupId().equals(newProject.getGroupId())
                     && oldProject.getArtifactId().equals(newProject.getArtifactId())) {
                 return newProject;
             }
         }
         return null;
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractHotfixMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractHotfixMojo.java
index a740f04..d6d4e23 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractHotfixMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractHotfixMojo.java
@@ -20,8 +20,13 @@ import org.apache.maven.plugins.annotations.Parameter;
 /**
  *
  */
 public class AbstractHotfixMojo extends AbstractGitflowMojo {
 
+    /**
+     * If true, the hotfix branch is pushed to the remote repository
+     *
+     * @since 1.2
+     */
     @Parameter(defaultValue = "false", property = "pushHotfixes")
     protected boolean pushHotfixes = false;
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java
index b7d864a..d515073 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java
@@ -24,29 +24,39 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  *
  */
 public class AbstractReleaseMojo extends AbstractGitflowMojo {
 
+    /**
+     * The name for the release branch.
+     *
+     * @since 1.2
+     */
     @Parameter(property = "releaseName")
     protected String releaseName;
 
+    /**
+     * If true, the release branch is pushed to the remote repository.
+     *
+     * @since 1.2
+     */
     @Parameter(defaultValue = "false", property = "pushReleases")
     protected boolean pushReleases = false;
 
     public String getReleaseBranchPrefix() {
         String prefix = getGitflowInit().getReleaseBranchPrefix();
         if (StringUtils.isBlank(prefix)) {
             prefix = DEFAULT_RELEASE_BRN_PREFIX;
         }
         return prefix;
     }
 
     public String getNextDevelopmentVersion(String version) throws MojoFailureException {
         getLog().debug("Project version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
         GenericArtifactVersion nextDevelopVersion = artifactVersion.upgradeLeastSignificantNumber();
 
         getLog().debug("Project version '" + nextDevelopVersion + "'");
         return nextDevelopVersion.toString();
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
index a7b6830..5a04ff7 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
@@ -27,90 +27,102 @@ import org.codehaus.plexus.components.interactivity.PrompterException;
 import org.codehaus.plexus.util.StringUtils;
 
 /**
- *
+ * Merges a feature branch back into the develop.
  */
 @Mojo(name = "feature-finish", aggregator = true)
 public class FeatureFinishMojo extends AbstractFeatureMojo {
 
+    /**
+     * If true, the feature branch rebases onto develop, then finish can
+     * fast-forward merge the feature branch back into develop.
+     *
+     * @since 1.2
+     */
     @Parameter(defaultValue = "false", property = "isRebase")
     private boolean isRebase = false;
 
+    /**
+     * If true, and isRebase parameter is also true, then an interactive rebase
+     * is performed for the feature branch.
+     *
+     * @since 1.2
+     */
     @Parameter(defaultValue = "false", property = "isInteractive")
     private boolean isInteractive = false;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().info("Finishing feature '" + featureName + "'");
 
         String featureBranchPrefix = getFeatureBranchPrefix();
         if (StringUtils.isBlank(featureName)) {
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (currentBranch.startsWith(featureBranchPrefix)) {
                 featureName = currentBranch;
             } else {
                 featureName = "";
             }
         } else {
             featureName = getFeatureName(featureName);
         }
 
         List<String> featureBranches = getGitflowInit().gitLocalFeatureBranches();
 
         featureName = promptForExistingFeatureName(featureBranches, featureName);
 
         if (enableFeatureVersions) {
             /* Switch to develop branch and get its current version */
             getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
             reloadReactorProjects();
             String developVersion = project.getVersion();
             getLog().debug("develop version = " + developVersion);
 
             /* Switch to feature branch and get its current version */
             getGitflowInit().executeLocal("git checkout " + featureName);
             reloadReactorProjects();
             String featureVersion = project.getVersion();
             getLog().debug("feature version = " + featureVersion);
 
             setVersion(developVersion);
         }
 
         if (!skipBuild) {
             clean();
             install();
         } else {
             getLog().debug("Skipping both install and deploy");
         }
 
         GitflowFeature gitflowFeature = new GitflowFeature();
         gitflowFeature.setInit(getGitflowInit());
         gitflowFeature.setMsgPrefix(getMsgPrefix());
         gitflowFeature.setMsgSuffix(getMsgSuffix());
         gitflowFeature.setSquash(squash);
         gitflowFeature.setKeep(keep);
         gitflowFeature.setIsRebase(isRebase);
         gitflowFeature.setIsInteractive(isInteractive);
 
         try {
             gitflowFeature.finish(featureName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
     }
 
     private String promptForExistingFeatureName(List<String> featureBranches, String defaultFeatureName) throws MojoFailureException {
         String message = "Please select a feature branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, featureBranches, defaultFeatureName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading feature name from command line " + e.getMessage());
         }
 
         return name;
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
index ec6eb35..362325f 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
@@ -25,9 +25,8 @@ import org.apache.maven.plugins.annotations.LifecyclePhase;
 import org.apache.maven.plugins.annotations.Mojo;
-import org.apache.maven.plugins.annotations.Parameter;
 import org.codehaus.plexus.components.interactivity.PrompterException;
 import org.codehaus.plexus.util.StringUtils;
 
 /**
- *
+ * Creates a new feature branch off of the develop branch.
  */
 @Mojo(name = "feature-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
index 4f0a993..389ca44 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
@@ -18,8 +18,5 @@ package com.dkirrane.maven.plugins.ggitflow;
 import com.dkirrane.gitflow.groovy.GitflowHotfix;
-import com.dkirrane.gitflow.groovy.conflicts.FixPomMergeConflicts;
 import com.dkirrane.gitflow.groovy.ex.GitflowException;
 import com.dkirrane.gitflow.groovy.ex.GitflowMergeConflictException;
-import com.dkirrane.maven.plugins.ggitflow.util.MavenUtil;
 import java.util.List;
-import org.apache.maven.model.Model;
 import org.apache.maven.plugin.MojoExecutionException;
@@ -29,6 +26,7 @@ import org.apache.maven.plugins.annotations.Mojo;
 import org.codehaus.plexus.components.interactivity.PrompterException;
 
 /**
- *
+ * Merges a hotfix branch back into the develop and master branch and then
+ * creates a tag for the hotfix on master.
  */
 @Mojo(name = "hotfix-finish", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
index 9c3a0bf..2a68619 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
@@ -19,4 +19,2 @@ import com.dkirrane.gitflow.groovy.GitflowHotfix;
 import com.dkirrane.gitflow.groovy.ex.GitflowException;
-import com.dkirrane.maven.plugins.ggitflow.util.MavenUtil;
-import org.apache.maven.model.Model;
 import org.apache.maven.plugin.MojoExecutionException;
@@ -28,6 +26,6 @@ import static org.jfrog.hudson.util.GenericArtifactVersion.DEFAULT_VERSION_COMPO
 import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
 
 /**
- *
+ * Creates a new hotfix branch off of the master branch.
  */
 @Mojo(name = "hotfix-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index 6640191..6c931ae 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -20,5 +20,3 @@ import com.dkirrane.gitflow.groovy.ex.GitflowException;
 import com.dkirrane.gitflow.groovy.ex.GitflowMergeConflictException;
-import com.dkirrane.maven.plugins.ggitflow.util.MavenUtil;
 import java.util.List;
-import org.apache.maven.model.Model;
 import org.apache.maven.plugin.MojoExecutionException;
@@ -28,6 +26,7 @@ import org.codehaus.plexus.components.interactivity.PrompterException;
 import org.jfrog.hudson.util.GenericArtifactVersion;
 
 /**
- *
+ * Merges a release branch back into the develop and master branch and then
+ * creates a tag for the release on master.
  */
 @Mojo(name = "release-finish", aggregator = true)
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
index 1afe993..853db85 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
@@ -19,4 +19,2 @@ import com.dkirrane.gitflow.groovy.GitflowRelease;
 import com.dkirrane.gitflow.groovy.ex.GitflowException;
-import com.dkirrane.maven.plugins.ggitflow.util.MavenUtil;
-import org.apache.maven.model.Model;
 import org.apache.maven.plugin.MojoExecutionException;
@@ -29,82 +27,100 @@ import org.codehaus.plexus.util.StringUtils;
 import org.jfrog.hudson.util.GenericArtifactVersion;
 
 /**
- *
+ * Creates a new release branch off of the develop branch.
  */
 @Mojo(name = "release-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class ReleaseStartMojo extends AbstractReleaseMojo {
 
+    /**
+     * Replaces any -SNAPSHOT versions with their corresponding releases.
+     *
+     * @since 1.2
+     */
+    @Parameter(defaultValue = "true", property = "useReleases")
+    private boolean useReleases = true;
+
+    /**
+     * If true, the release can still start even when SNAPSHOT dependencies
+     * exists in the pom.
+     *
+     * @since 1.2
+     */
     @Parameter(defaultValue = "false", property = "allowSnapshots")
     private boolean allowSnapshots = false;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         /* Switch to develop branch and get its current version */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
         reloadReactorProjects();
         String developVersion = project.getVersion();
         getLog().debug("develop version = " + developVersion);
 
         /* Get suggested release version */
         String releaseVersion = getReleaseVersion(developVersion);
         getLog().debug("release version = " + releaseVersion);
 //        String nextDevelopmentVersion = getNextDevelopmentVersion(project.getVersion());
 
         /* create release branch */
         String prefix = getReleaseBranchPrefix();
         if (StringUtils.isBlank(releaseName)) {
             String message = "What is the release branch name? " + prefix;
             try {
                 releaseName = prompter.prompt(message, releaseVersion);
                 if (StringUtils.isBlank(releaseName)) {
                     throw new MojoFailureException("Parameter <releaseName> cannot be null or empty.");
                 }
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading release name from command line " + ex.getMessage(), ex);
             }
         }
 
         try {
             new GenericArtifactVersion(releaseName);
         } catch (IllegalArgumentException e) {
             throw new MojoExecutionException("Provided releaseName " + releaseName + " is not a valid Maven version.");
         }
 
         getLog().info("Starting release '" + releaseName + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
         gitflowRelease.setPush(pushReleases);
         gitflowRelease.setStartCommit(startCommit);
 
         try {
             gitflowRelease.start(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         // current branch should be the release branch
         String releaseBranch = getGitflowInit().gitCurrentBranch();
         if (!releaseBranch.startsWith(prefix)) {
             throw new MojoFailureException("Failed to create release version.");
         }
 
+        if (useReleases) {
+            setReleaseVersions();
+        }
+
 //        // checkout develop branch and update it's version
 //        String developBranch = (String) getGitflowInit().getDevelopBrnName();
 //        getGitflowInit().executeLocal("git checkout " + developBranch);
 //        setVersion(nextDevelopmentVersion);
 //
 //        // checkout release branch again
 //        getGitflowInit().executeLocal("git checkout " + releaseBranch);
     }
 
     public String getReleaseName() {
         return releaseName;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
index 38b0067..425539f 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
@@ -24,5 +24,3 @@ import org.apache.maven.plugins.annotations.LifecyclePhase;
 import org.apache.maven.plugins.annotations.Mojo;
-import org.apache.maven.plugins.annotations.Parameter;
 import org.codehaus.plexus.components.interactivity.PrompterException;
-import org.codehaus.plexus.util.StringUtils;
 import org.jfrog.hudson.util.GenericArtifactVersion;
@@ -30,6 +28,6 @@ import static org.jfrog.hudson.util.GenericArtifactVersion.DEFAULT_VERSION_COMPO
 import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
 
 /**
- *
+ * Creates a new support branch from a specific commit on the master branch.
  */
 @Mojo(name = "support-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
diff --git a/ggitflow-maven-plugin/src/site/site.xml b/ggitflow-maven-plugin/src/site/site.xml
new file mode 100644
index 0000000..51b1b9c
--- /dev/null
+++ b/ggitflow-maven-plugin/src/site/site.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright 2014 desmondkirrane.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+<project name="ggitflow-maven-plugin">
+  <publishDate format="dd MMM yyyy" position="left"/>
+  <body>
+   <menu name="Overview">
+      <!--<item name="Introduction" href="index.html"/>-->
+      <item name="Goals" href="plugin-info.html"/>
+      <!--<item name="FAQ" href="faq.html"/>-->
+   </menu>
+  </body>
+</project>
\ No newline at end of file

commit a5b87790a28618b06b3d1bd3aed892f9b6995e6e
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Mon Mar 3 23:33:20 2014 +0000

    Adding missing Gitflow parameters

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
index b983e2f..433ad81 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
@@ -24,104 +24,104 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  *
  */
 public class AbstractFeatureMojo extends AbstractGitflowMojo {
 
     @Parameter(property = "featureName")
     protected String featureName;
 
     @Parameter(defaultValue = "false", property = "enableFeatureVersions")
     protected boolean enableFeatureVersions = false;
 
     @Parameter(defaultValue = "false", property = "pushFeatures")
     protected boolean pushFeatures = false;
 
     public String getFeatureBranchPrefix() {
         String prefix = getGitflowInit().getFeatureBranchPrefix();
         if (StringUtils.isBlank(prefix)) {
             prefix = DEFAULT_FEATURE_BRN_PREFIX;
         }
         return prefix;
     }
 
     public String getFeatureName(String featureLabel) throws MojoFailureException {
         if (StringUtils.isBlank(featureLabel)) {
             throw new MojoFailureException("Missing argument <featureName>");
         }
 
         featureLabel = featureLabel.replaceAll("\\s+", "");
 //        featureLabel = featureLabel.replaceAll("-+", "_");
         return featureLabel;
     }
 
     public String getFeatureVersion(String currentVersion, String featureLabel) throws MojoFailureException {
         getLog().debug("getFeatureVersion from '" + currentVersion + "'");
         featureLabel = getValidFeatureVersionAnnotation(featureLabel);
         getLog().debug("Feature version annotation '" + featureLabel + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         Character annotationSeparator = artifactVersion.getAnnotationRevisionSeparator();
         String buildSpecifier = artifactVersion.getBuildSpecifier();
         Character buildSpecifierSeparator = artifactVersion.getBuildSpecifierSeparator();
 
         getLog().debug("Parsed version = " + artifactVersion.toString());
         if (!StringUtils.isBlank(annotationAsString)) {
             throw new MojoFailureException("Cannot add feature name to version. An annotation " + annotationAsString + " already exists");
         }
 
         final StringBuilder result = new StringBuilder(30);
 
         result.append(primaryNumbersAsString).append(annotationSeparator).append(featureLabel);
 
         if (buildSpecifier != null) {
             if (buildSpecifierSeparator != null) {
                 result.append(buildSpecifierSeparator);
             }
             result.append(buildSpecifier);
         }
 
         return result.toString();
     }
 
     public String getNonFeatureVersion(String version, String featureLabel) {
         getLog().debug("getNonFeatureVersion from '" + version + "'");
         featureLabel = getValidFeatureVersionAnnotation(featureLabel);
         getLog().debug("Feature version annotation '" + featureLabel + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifier = artifactVersion.getBuildSpecifier();
         Character buildSpecifierSeparator = artifactVersion.getBuildSpecifierSeparator();
 
         getLog().debug("Parsed version = " + artifactVersion.toString());
         if (StringUtils.isBlank(annotationAsString)) {
             getLog().warn("Cannot remove feature name from pom version. The version annotation does not exists");
             return version;
         }
 
         if (('-' + featureLabel).equals(annotationAsString)) {
             final StringBuilder result = new StringBuilder(30);
             result.append(primaryNumbersAsString);
 
             if (buildSpecifier != null) {
                 if (buildSpecifierSeparator != null) {
                     result.append(buildSpecifierSeparator);
                 }
                 result.append(buildSpecifier);
             }
 
             return result.toString();
         } else {
             getLog().warn("Cannot remove feature name from pom version. The version annotation [" + annotationAsString + "] does not match the feature label [" + featureLabel + "]");
             return version;
         }
-    }      
+    }
 
     private String getValidFeatureVersionAnnotation(String featureLabel) {
         featureLabel = featureLabel.trim().replaceAll("\\s+", "_");
         featureLabel = featureLabel.trim().replaceAll("-+", "_");
         return featureLabel;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index f140c91..8c78c5c 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -60,360 +60,375 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 /**
  *
  */
 public class AbstractGitflowMojo extends AbstractMojo {
 
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
     @Parameter(property = "msgPrefix", defaultValue = "")
     protected String msgPrefix;
 
     @Parameter(property = "msgSuffix", defaultValue = "")
     protected String msgSuffix;
 
     @Parameter(property = "skipBuild", defaultValue = "false")
     protected Boolean skipBuild;
 
     @Parameter(property = "skipDeploy", defaultValue = "false")
     protected Boolean skipDeploy;
 
+    @Parameter(property = "startCommit", defaultValue = "")
+    protected String startCommit;
+
+    @Parameter(property = "squash", defaultValue = "false")
+    protected Boolean squash;
+
+    @Parameter(property = "keep", defaultValue = "false")
+    protected Boolean keep;
+
+    @Parameter(property = "sign", defaultValue = "false")
+    protected Boolean sign;
+
+    @Parameter(property = "signingkey", defaultValue = "")
+    protected String signingkey;
+
     /**
      * Component used to prompt for input.
      */
     @Component
     protected Prompter prompter;
 
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
     @Component
     protected ArtifactResolver artifactResolver;
 
     /**
      * @parameter default-value="${project.artifacts}"
      * @required
      * @readonly
      */
     protected Collection artifacts;
 
     /**
      * @parameter expression="${localRepository}"
      */
     protected ArtifactRepository localRepository;
 
     /**
      * @parameter expression="${project.remoteArtifactRepositories}"
      */
     protected List remoteArtifactRepositories;
 
 //    @Component
 //    protected MavenProjectBuilder projectBuilder;
 //    @Component
 //    protected DefaultProjectBuilder projectBuilder;
 //    /**
 //     * @parameter property="plugin"
 //     * @required
 //     */
 //    @Component
 //    protected PluginDescriptor pluginDescriptor;
 //
     /**
      * The projects in the reactor.
      */
     @Parameter(defaultValue = "${reactorProjects}", readonly = true, required = true)
     protected List<MavenProject> reactorProjects;
 
     /**
      * The project builder
      */
     @Component
     private ProjectBuilder projectBuilder;
 
     /**
      * The project currently being build.
      *
      * @parameter expression="${project}"
      * @required
      * @readonly
      */
     @Component
     protected MavenProject project;
 
     /**
      * The current Maven session.
      *
      * @parameter expression="${session}"
      * @required
      * @readonly
      */
     @Component
     protected MavenSession session;
 
     /**
      * The Maven BuildPluginManager component.
      *
      * @component
      * @required
      */
     @Component
     protected BuildPluginManager pluginManager;
 
     private GitflowInit init;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     public void execute() throws MojoExecutionException, MojoFailureException {
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             getLog().debug("Gitflow pom  '" + project.getBasedir() + "'");
         }
 
         GitflowInit gitflowInit = getGitflowInit();
 
         gitflowInit.requireGitRepo();
 
         if (!gitflowInit.gitflowIsInitialized()) {
             try {
                 gitflowInit.cmdDefault();
             } catch (GitflowException ex) {
                 throw new MojoExecutionException("Failed to inintialise Gitflow " + ex.getMessage(), ex);
             }
         }
 
         gitflowInit.requireCleanWorkingTree();
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     public GitflowInit getGitflowInit() {
         if (null == init) {
             init = new GitflowInit();
             init.setRepoDir(getProject().getBasedir());
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
 
             /* root Git directory may not be the pom directory */
             String dotGitDir = init.executeLocal("git rev-parse --git-dir");
             File dotGitFolder = new File(dotGitDir);
             assert dotGitFolder.exists();
             init.setRepoDir(dotGitFolder.getParentFile());
         }
         return init;
     }
 
     public void setVersion(String version) throws MojoExecutionException, MojoFailureException {
         getLog().debug("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.codehaus.mojo"),
                         artifactId("versions-maven-plugin"),
                         version("2.1")
                 ),
                 goal("set"),
                 configuration(
                         element(name("generateBackupPoms"), "false"),
                         element(name("newVersion"), version)
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
         getLog().debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
 
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
                 String origin = getGitflowInit().getOrigin();
                 String[] cmtPush = {"git", "push", origin, currentBranch};
                 Integer exitCode = getGitflowInit().executeRemote(cmtPush);
                 if (exitCode != 0) {
                     throw new MojoExecutionException("Failed to push version change " + version + " to origin. ExitCode:" + exitCode);
                 }
             }
         }
         /* We don't want to fail maybe the version was manually set correctly */
 //        else {
 //            throw new MojoFailureException("Failed to update poms to version " + version);
 //        }
     }
 
     public void clean() throws MojoExecutionException, MojoFailureException {
         getLog().debug("START org.apache.maven.plugins:maven-clean-plugin:2.5:clean");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-clean-plugin"),
                         version("2.5")
                 ),
                 goal("clean"),
                 configuration(
                         element(name("skip"), "false")
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
         getLog().debug("DONE org.apache.maven.plugins:maven-clean-plugin:2.5:clean");
     }
 
     public void install() throws MojoExecutionException, MojoFailureException {
         getLog().debug("START org.apache.maven.plugins:maven-install-plugin:2.5.1:install");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-install-plugin"),
                         version("2.5.1")
                 ),
                 goal("install"),
                 configuration(
                         element(name("skip"), "false")
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
         getLog().debug("DONE org.apache.maven.plugins:maven-install-plugin:2.5.1:install");
     }
 
     public void deploy() throws MojoExecutionException, MojoFailureException {
         getLog().debug("START org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-deploy-plugin"),
                         version("2.8.1")
                 ),
                 goal("deploy"),
                 configuration(
                         element(name("skip"), "false"),
                         element(name("retryFailedDeploymentCount"), "1")
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
         getLog().debug("DONE org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy");
     }
 
     public String getReleaseVersion(String version) throws MojoFailureException {
         getLog().debug("Current Develop version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
             getLog().warn("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
     public void reloadReactorProjects() throws MojoExecutionException {
         getLog().debug("Reloading poms...");
 
         List<MavenProject> newReactorProjects;
         try {
             newReactorProjects = buildReactorProjects();
         } catch (ProjectBuildingException e) {
             getLog().error("Re-parse aborted due to malformed pom.xml file(s)", e);
             throw new MojoExecutionException("Re-parse aborted due to malformed pom.xml file(s)", e);
         } catch (CycleDetectedException e) {
             getLog().error("Re-parse aborted due to dependency cycle in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to dependency cycle in project model", e);
         } catch (DuplicateProjectException e) {
             getLog().error("Re-parse aborted due to duplicate projects in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to duplicate projects in project model", e);
         } catch (Exception e) {
             getLog().error("Re-parse aborted due a problem that prevented sorting the project model", e);
             throw new MojoExecutionException("Re-parse aborted due a problem that prevented sorting the project model", e);
         }
         MavenProject newProject = findProject(newReactorProjects, this.project);
         if (newProject == null) {
             throw new MojoExecutionException("A pom.xml change appears to have removed " + this.project.getId() + " from the build plan.");
         }
 
         this.project = newProject;
         this.reactorProjects = newReactorProjects;
 
         getLog().debug("Reloading poms complete...");
     }
 
     private List<MavenProject> buildReactorProjects() throws Exception {
 
         List<MavenProject> projects = new ArrayList<MavenProject>();
         for (MavenProject p : reactorProjects) {
             ProjectBuildingRequest request = new DefaultProjectBuildingRequest();
 
             request.setProcessPlugins(true);
             request.setProfiles(request.getProfiles());
             request.setActiveProfileIds(session.getRequest().getActiveProfiles());
             request.setInactiveProfileIds(session.getRequest().getInactiveProfiles());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setSystemProperties(session.getSystemProperties());
             request.setUserProperties(session.getUserProperties());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setPluginArtifactRepositories(session.getRequest().getPluginArtifactRepositories());
             request.setRepositorySession(session.getRepositorySession());
             request.setLocalRepository(localRepository);
             request.setBuildStartTime(session.getRequest().getStartTime());
             request.setResolveDependencies(true);
             request.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_STRICT);
             projects.add(projectBuilder.build(p.getFile(), request).getProject());
         }
         return new ProjectSorter(projects).getSortedProjects();
     }
 
     private MavenProject findProject(List<MavenProject> newReactorProjects, MavenProject oldProject) {
         for (MavenProject newProject : newReactorProjects) {
             if (oldProject.getGroupId().equals(newProject.getGroupId())
                     && oldProject.getArtifactId().equals(newProject.getArtifactId())) {
                 return newProject;
             }
         }
         return null;
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixAbstractMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractHotfixMojo.java
similarity index 74%
rename from ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixAbstractMojo.java
rename to ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractHotfixMojo.java
index 1d8f41e..a740f04 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixAbstractMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractHotfixMojo.java
@@ -1,23 +1,27 @@
 /*
  * Copyright 2014 desmondkirrane.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *
  *      http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
 package com.dkirrane.maven.plugins.ggitflow;
 
+import org.apache.maven.plugins.annotations.Parameter;
+
 /**
  *
  */
-public class HotfixAbstractMojo extends AbstractGitflowMojo {
+public class AbstractHotfixMojo extends AbstractGitflowMojo {
 
+    @Parameter(defaultValue = "false", property = "pushHotfixes")
+    protected boolean pushHotfixes = false;
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java
index d6c1faf..b7d864a 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java
@@ -24,29 +24,29 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  *
  */
 public class AbstractReleaseMojo extends AbstractGitflowMojo {
 
     @Parameter(property = "releaseName")
     protected String releaseName;
 
     @Parameter(defaultValue = "false", property = "pushReleases")
-    private boolean pushReleases = false;
+    protected boolean pushReleases = false;
 
     public String getReleaseBranchPrefix() {
         String prefix = getGitflowInit().getReleaseBranchPrefix();
         if (StringUtils.isBlank(prefix)) {
             prefix = DEFAULT_RELEASE_BRN_PREFIX;
         }
         return prefix;
     }
 
     public String getNextDevelopmentVersion(String version) throws MojoFailureException {
         getLog().debug("Project version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
         GenericArtifactVersion nextDevelopVersion = artifactVersion.upgradeLeastSignificantNumber();
 
         getLog().debug("Project version '" + nextDevelopVersion + "'");
         return nextDevelopVersion.toString();
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
index 57f3503..a7b6830 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
@@ -24,2 +24,3 @@ import org.apache.maven.plugin.MojoFailureException;
 import org.apache.maven.plugins.annotations.Mojo;
+import org.apache.maven.plugins.annotations.Parameter;
 import org.codehaus.plexus.components.interactivity.PrompterException;
@@ -28,78 +29,88 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  *
  */
 @Mojo(name = "feature-finish", aggregator = true)
 public class FeatureFinishMojo extends AbstractFeatureMojo {
 
+    @Parameter(defaultValue = "false", property = "isRebase")
+    private boolean isRebase = false;
+
+    @Parameter(defaultValue = "false", property = "isInteractive")
+    private boolean isInteractive = false;
+
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().info("Finishing feature '" + featureName + "'");
 
         String featureBranchPrefix = getFeatureBranchPrefix();
         if (StringUtils.isBlank(featureName)) {
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (currentBranch.startsWith(featureBranchPrefix)) {
                 featureName = currentBranch;
             } else {
                 featureName = "";
             }
         } else {
             featureName = getFeatureName(featureName);
         }
 
         List<String> featureBranches = getGitflowInit().gitLocalFeatureBranches();
 
         featureName = promptForExistingFeatureName(featureBranches, featureName);
 
         if (enableFeatureVersions) {
             /* Switch to develop branch and get its current version */
             getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
             reloadReactorProjects();
-            String developVersion = project.getVersion(); 
-            getLog().debug("develop version = " + developVersion);                        
-            
+            String developVersion = project.getVersion();
+            getLog().debug("develop version = " + developVersion);
+
             /* Switch to feature branch and get its current version */
             getGitflowInit().executeLocal("git checkout " + featureName);
             reloadReactorProjects();
-            String featureVersion = project.getVersion();  
-            getLog().debug("feature version = " + featureVersion);                        
+            String featureVersion = project.getVersion();
+            getLog().debug("feature version = " + featureVersion);
 
             setVersion(developVersion);
         }
 
         if (!skipBuild) {
             clean();
             install();
         } else {
             getLog().debug("Skipping both install and deploy");
         }
 
         GitflowFeature gitflowFeature = new GitflowFeature();
         gitflowFeature.setInit(getGitflowInit());
         gitflowFeature.setMsgPrefix(getMsgPrefix());
         gitflowFeature.setMsgSuffix(getMsgSuffix());
+        gitflowFeature.setSquash(squash);
+        gitflowFeature.setKeep(keep);
+        gitflowFeature.setIsRebase(isRebase);
+        gitflowFeature.setIsInteractive(isInteractive);
 
         try {
             gitflowFeature.finish(featureName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
     }
 
     private String promptForExistingFeatureName(List<String> featureBranches, String defaultFeatureName) throws MojoFailureException {
         String message = "Please select a feature branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, featureBranches, defaultFeatureName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading feature name from command line " + e.getMessage());
         }
 
         return name;
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
index 42f671c..ec6eb35 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
@@ -30,68 +30,67 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  *
  */
 @Mojo(name = "feature-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class FeatureStartMojo extends AbstractFeatureMojo {
 
-    @Parameter(property = "startCommit", defaultValue = "")
-    private String startCommit;
-
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         String prefix = getFeatureBranchPrefix();
         if (StringUtils.isBlank(featureName)) {
             System.out.println("prefix = " + prefix);
             System.out.println("prompter = " + prompter);
             String message = "What is the feature branch name? " + prefix;
             System.out.println("message = " + message);
             try {
                 featureName = prompter.prompt(message);
                 if (StringUtils.isBlank(featureName)) {
                     throw new MojoFailureException("Parameter <featureName> cannot be null or empty.");
                 }
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading feature name from command line " + ex.getMessage(), ex);
             }
         }
         featureName = getFeatureName(featureName);
 
         getLog().info("Starting feature '" + featureName + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowFeature gitflowFeature = new GitflowFeature();
         gitflowFeature.setInit(getGitflowInit());
         gitflowFeature.setMsgPrefix(getMsgPrefix());
         gitflowFeature.setMsgSuffix(getMsgSuffix());
+        gitflowFeature.setPush(pushFeatures);
+        gitflowFeature.setStartCommit(startCommit);
 
         try {
             gitflowFeature.start(featureName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         if (enableFeatureVersions) {
             /* Already on feature branch so just get its current version */
             Model model = MavenUtil.readPom(reactorProjects);
             String currentVersion = model.getVersion();
 
             String featureVersion = getFeatureVersion(currentVersion, featureName);
             setVersion(featureVersion);
 
             if (getGitflowInit().gitRemoteBranchExists(prefix + featureName)) {
                 getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + featureName);
             }
 
             /* print feature version */
             reloadReactorProjects();
             getLog().debug("project = " + project.getVersion());
         }
     }
 
     public String getFeatureName() {
         return featureName;
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
index 3105f0e..4f0a993 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
@@ -31,110 +31,114 @@ import org.codehaus.plexus.components.interactivity.PrompterException;
 /**
  *
  */
 @Mojo(name = "hotfix-finish", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
-public class HotfixFinishMojo extends HotfixAbstractMojo {
+public class HotfixFinishMojo extends AbstractHotfixMojo {
 
     protected String hotfixName;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().info("Finishing hotfix '" + hotfixName + "'");
 
         /* Get hotfix branch name */
         List<String> hotfixBranches = getGitflowInit().gitLocalHotfixBranches();
         if (hotfixBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         } else if (hotfixBranches.size() == 1) {
             hotfixName = hotfixBranches.get(0);
         } else {
             hotfixName = promptForExistingHotfixName(hotfixBranches, hotfixName);
         }
-        
+
         /* Switch to hotfix branch and set poms to hotfix version */
         getGitflowInit().executeLocal("git checkout " + hotfixName);
         reloadReactorProjects();
         String hotfixVersion = project.getVersion();
         getLog().debug("hotfix snapshot version = " + hotfixVersion);
         String hotfixReleaseVersion = getReleaseVersion(hotfixVersion);
         getLog().debug("hotfix release version = " + hotfixReleaseVersion);
-        setVersion(hotfixReleaseVersion); 
+        setVersion(hotfixReleaseVersion);
 
         /* Switch to develop branch and get current develop version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         getLog().debug("develop version = " + developVersion);
-        
+
         /* Set develop branch to hotfix version to prevent merge conflicts */
         setVersion(hotfixReleaseVersion);
 
         /* finish hotfix */
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
+        gitflowHotfix.setSquash(squash);
+        gitflowHotfix.setKeep(keep);
+        gitflowHotfix.setSign(sign);
+        gitflowHotfix.setSigningkey(signingkey);
 
         try {
             gitflowHotfix.finish(hotfixName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             getLog().error("Merge conflicts exist.", gmce);
             throw new MojoFailureException(gmce.getMessage());
-            
+
 //            getLog().info("Attempting to auto-resolve any pom version conflicts.", gmce);
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            fixPomMergeConflicts.setInit(getGitflowInit());
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
-        
+
         /* Set develop branch back to original develop version */
-        setVersion(developVersion); 
+        setVersion(developVersion);
         if (getGitflowInit().gitRemoteBranchExists(developBranch)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + developBranch);
-        }        
-        
+        }
+
         /* Switch to hotfix tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + hotfixReleaseVersion);
-        reloadReactorProjects();        
+        reloadReactorProjects();
 
         /* install or deploy */
         if (skipDeploy == false) {
             clean();
             deploy();
         } else if (skipBuild == false) {
             clean();
             install();
         } else {
             getLog().debug("Skipping both install and deploy");
         }
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingHotfixName(List<String> hotfixBranches, String defaultHotfixName) throws MojoFailureException {
         String message = "Please select a hotfix branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, hotfixBranches, defaultHotfixName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading hotfix name from command line " + e.getMessage());
         }
 
         return name;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
index 678d668..9c3a0bf 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
@@ -30,64 +30,65 @@ import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
 /**
  *
  */
 @Mojo(name = "hotfix-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
-public class HotfixStartMojo extends HotfixAbstractMojo {
+public class HotfixStartMojo extends AbstractHotfixMojo {
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         /* Switch to master branch and get current version i.e. lastest tag */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getMasterBrnName());
         reloadReactorProjects();
         String masterVersion = project.getVersion();
-        getLog().debug("master version = " + masterVersion);      
+        getLog().debug("master version = " + masterVersion);
 
         String hotfixVersion = getHotfixVersion(masterVersion);
         String hotfixSnapshotVersion = getHotfixSnapshotVersion(masterVersion);
 
         getLog().info("Starting hotfix '" + hotfixVersion + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
+        gitflowHotfix.setPush(pushHotfixes);
 
         try {
             gitflowHotfix.start(hotfixVersion);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         setVersion(hotfixSnapshotVersion);
 
         String prefix = getGitflowInit().getHotfixBranchPrefix();
         if (getGitflowInit().gitRemoteBranchExists(prefix + hotfixVersion)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + hotfixVersion);
         }
     }
 
     private String getHotfixVersion(String currentVersion) throws MojoFailureException {
         getLog().debug("getHotfixVersion from '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
         artifactVersion.upgradeLeastSignificantNumber();
 
         return artifactVersion.toString();
     }
 
     private String getHotfixSnapshotVersion(String currentVersion) throws MojoFailureException {
         getLog().debug("getHotfixSnapshotVersion from '" + currentVersion + "'");
 
         final StringBuilder result = new StringBuilder(30);
 
         String hotfixVersion = getHotfixVersion(currentVersion);
         result.append(hotfixVersion);
 
         result.append(DEFAULT_VERSION_COMPONENT_SEPARATOR).append(SNAPSHOT_QUALIFIER);
 
         return result.toString();
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index 2bd1efc..6640191 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -30,110 +30,114 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  *
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().info("Finishing release '" + releaseName + "'");
 
         /* Get release branch name */
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
         if (releaseBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         } else if (releaseBranches.size() == 1) {
             releaseName = releaseBranches.get(0);
         } else {
             releaseName = promptForExistingReleaseName(releaseBranches, releaseName);
         }
 
         /* Switch to develop branch and get its current version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         getLog().debug("develop version = " + developVersion);
 
         /* Switch to release branch and set poms to release version */
         getGitflowInit().executeLocal("git checkout " + releaseName);
         reloadReactorProjects();
         String releaseVersion = getReleaseVersion(project.getVersion());
         getLog().debug("release version = " + releaseVersion);
 
         setVersion(releaseVersion);
 
         /* finish release */
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
+        gitflowRelease.setSquash(squash);
+        gitflowRelease.setKeep(keep);
+        gitflowRelease.setSign(sign);
+        gitflowRelease.setSigningkey(signingkey);
 
         try {
             gitflowRelease.finish(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
         /* set poms to next develop version */
         String nextDevelopVersion = getNextDevelopVersion(developVersion);
         reloadReactorProjects();
         setVersion(nextDevelopVersion);
 
         /* Switch to release tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);
         reloadReactorProjects();
         String tagVersion = project.getVersion();
         getLog().debug("tag version = " + tagVersion);
 
         /* install or deploy */
         if (skipDeploy == false) {
             clean();
             deploy();
         } else if (skipBuild == false) {
             clean();
             install();
         } else {
             getLog().debug("Skipping both install and deploy for tag " + tagVersion);
         }
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingReleaseName(List<String> releaseBranches, String defaultReleaseName) throws MojoFailureException {
         String message = "Please select a release branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, releaseBranches, defaultReleaseName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading release name from command line " + e.getMessage());
         }
 
         return name;
     }
 
     private String getNextDevelopVersion(String developVersion) {
         getLog().debug("Current Develop version '" + developVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(developVersion);
         artifactVersion.upgradeLeastSignificantPrimaryNumber();
 
         return artifactVersion.toString();
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
index cb97374..1afe993 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
@@ -31,81 +31,80 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  *
  */
 @Mojo(name = "release-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class ReleaseStartMojo extends AbstractReleaseMojo {
 
-    @Parameter(property = "startCommit", defaultValue = "")
-    private String startCommit;
-
     @Parameter(defaultValue = "false", property = "allowSnapshots")
     private boolean allowSnapshots = false;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         /* Switch to develop branch and get its current version */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
         reloadReactorProjects();
         String developVersion = project.getVersion();
         getLog().debug("develop version = " + developVersion);
 
         /* Get suggested release version */
         String releaseVersion = getReleaseVersion(developVersion);
         getLog().debug("release version = " + releaseVersion);
 //        String nextDevelopmentVersion = getNextDevelopmentVersion(project.getVersion());
 
         /* create release branch */
         String prefix = getReleaseBranchPrefix();
         if (StringUtils.isBlank(releaseName)) {
             String message = "What is the release branch name? " + prefix;
             try {
                 releaseName = prompter.prompt(message, releaseVersion);
                 if (StringUtils.isBlank(releaseName)) {
                     throw new MojoFailureException("Parameter <releaseName> cannot be null or empty.");
                 }
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading release name from command line " + ex.getMessage(), ex);
             }
         }
 
         try {
             new GenericArtifactVersion(releaseName);
         } catch (IllegalArgumentException e) {
             throw new MojoExecutionException("Provided releaseName " + releaseName + " is not a valid Maven version.");
         }
 
         getLog().info("Starting release '" + releaseName + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
+        gitflowRelease.setPush(pushReleases);
+        gitflowRelease.setStartCommit(startCommit);
 
         try {
             gitflowRelease.start(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         // current branch should be the release branch
         String releaseBranch = getGitflowInit().gitCurrentBranch();
         if (!releaseBranch.startsWith(prefix)) {
             throw new MojoFailureException("Failed to create release version.");
         }
 
 //        // checkout develop branch and update it's version
 //        String developBranch = (String) getGitflowInit().getDevelopBrnName();
 //        getGitflowInit().executeLocal("git checkout " + developBranch);
 //        setVersion(nextDevelopmentVersion);
 //
 //        // checkout release branch again
 //        getGitflowInit().executeLocal("git checkout " + releaseBranch);
     }
 
     public String getReleaseName() {
         return releaseName;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
index 3e00500..38b0067 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
@@ -32,106 +32,100 @@ import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
 /**
  *
  */
 @Mojo(name = "support-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class SupportStartMojo extends AbstractGitflowMojo {
 
-    @Parameter(property = "startCommit", defaultValue = "")
-    private String startCommit;
-
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         String prefix = getGitflowInit().getSupportBranchPrefix();
 
         List<String> tags = getGitflowInit().gitAllTags();
         if (tags.isEmpty()) {
             throw new MojoFailureException("Could not find any tags to create support branch from!");
         }
 
         String baseName = promptForExistingTagName(tags, tags.get(tags.size() - 1));
 
         getGitflowInit().executeLocal("git checkout " + baseName);
 
         String supportVersion = getSupportVersion(project.getVersion());
         String supportSnapshotVersion = getSupportSnapshotVersion(project.getVersion());
 
         getLog().info("Starting support branch '" + supportVersion + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowSupport gitflowSupport = new GitflowSupport();
         gitflowSupport.setInit(getGitflowInit());
         gitflowSupport.setMsgPrefix(getMsgPrefix());
         gitflowSupport.setMsgSuffix(getMsgSuffix());
-
-        if (!StringUtils.isEmpty(startCommit)) {
-            gitflowSupport.setStartCommit(startCommit);
-        }
+        gitflowSupport.setStartCommit(startCommit);
 
         try {
             gitflowSupport.start(supportVersion);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         setVersion(supportSnapshotVersion);
 
         if (getGitflowInit().gitRemoteBranchExists(prefix + supportVersion)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + supportVersion);
         }
     }
 
     private String promptForExistingTagName(List<String> branches, String defaultBrnName) throws MojoFailureException {
         String message = "Please select the Tag to create the support branch from?";
 
         String name = "";
         try {
             name = prompter.prompt(message, branches, defaultBrnName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading selected Tag name from command line " + e.getMessage());
         }
 
         return name;
     }
 
     private String getSupportVersion(String currentVersion) throws MojoFailureException {
         getLog().debug("getSupportVersion from '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         StringBuilder sb = new StringBuilder(10);
 //        int pCount = artifactVersion.getPrimaryNumberCount();
 //        for (int i = 0; i < pCount; i++) {
 //            Integer primaryNumber = artifactVersion.getPrimaryNumber(i);
 //            if (i == (pCount - 1)) {
 //                sb.append('x');
 //            } else {
 //                sb.append(primaryNumber);
 //            }
 //        }
         sb.append(artifactVersion.getPrimaryNumbersAsString()).append('.').append('x');
         sb.append(artifactVersion.getAnnotationAsString()).append(artifactVersion.getBuildSpecifierAsString());
 
         return sb.toString();
     }
 
     private String getSupportSnapshotVersion(String currentVersion) throws MojoFailureException {
         getLog().debug("getSupportSnapshotVersion from '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         final StringBuilder result = new StringBuilder(30);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         if (null == artifactVersion.getAnnotation()) {
             result.append(primaryNumbersAsString).append('.').append('0');
         } else {
             artifactVersion.upgradeAnnotationRevision();
             result.append(artifactVersion.toString());
         }
         result.append(DEFAULT_VERSION_COMPONENT_SEPARATOR).append(SNAPSHOT_QUALIFIER);
 
         return result.toString();
     }
 }

commit ab9799299f062343cb2d66ad08bc5a2e700790ce
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Mon Mar 3 22:45:16 2014 +0000

    Flatter

diff --git a/README.md b/README.md
index ac2ebb0..aaaf05f 100644
--- a/README.md
+++ b/README.md
@@ -4,2 +4,4 @@ ggitflow-maven-plugin
 
-http://dkirrane.github.io/ggitflow-maven-plugin/
\ No newline at end of file
+http://dkirrane.github.io/ggitflow-maven-plugin/
+
+[![Flattr this git repo](http://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit/auto?user_id=desmondkirrane&url=http://dkirrane.github.io/ggitflow-maven-plugin/&title=ggitflow-maven-plugin&language=&tags=github&category=software)
\ No newline at end of file

commit ace147e1091d77cbfd55e00a0f68bbe9f9ef76d3
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Mon Mar 3 22:34:11 2014 +0000

    archetype

diff --git a/ggitflow-maven-archetype/pom.xml b/ggitflow-maven-archetype/pom.xml
index 4b931c2..2d384da 100644
--- a/ggitflow-maven-archetype/pom.xml
+++ b/ggitflow-maven-archetype/pom.xml
@@ -1,75 +1,96 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.archetype</groupId>
     <artifactId>ggitflow-maven-archetype</artifactId>
-    <version>1.0-SNAPSHOT</version>
+    <version>1.2-SNAPSHOT</version>
     <packaging>maven-archetype</packaging>
-
     <name>ggitflow-maven-archetype</name>
 
-    <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
+    <url>http://dkirrane.github.io/ggitflow-maven-plugin/</url>
+
+    <scm>
+        <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
+        <connection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</connection>
+        <developerConnection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</developerConnection>
+    </scm>
+
+    <description>Maven Archetype for the Gitflow Maven Plugin</description>
+    <developers>
+        <developer>
+            <id>dkirrane</id>
+            <name>Desmond Kirrane</name>
+            <email>desmond.kirrane@gmail.com</email>
+        </developer>
+    </developers>
+    <licenses>
+        <license>
+            <name>Apache License Version 2.0, January 2004</name>
+            <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
+            <distribution>repo</distribution>
+        </license>
+    </licenses>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
     </properties>
 
     <build>
         <extensions>
             <extension>
                 <groupId>org.apache.maven.archetype</groupId>
                 <artifactId>archetype-packaging</artifactId>
                 <version>2.2</version>
             </extension>
         </extensions>
 
         <pluginManagement>
             <plugins>
                 <plugin>
                     <artifactId>maven-archetype-plugin</artifactId>
                     <version>2.2</version>
                 </plugin>
             </plugins>
         </pluginManagement>
     </build>
 
 
     <!--
         Sonatype upload details:
         http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
         https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
         https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
         https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
 
             - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
             - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
             - Promote staged artifacts into repository 'Releases'
             - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
             - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
     -->
 
     <distributionManagement>
         <snapshotRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
         </snapshotRepository>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
         </repository>
     </distributionManagement>
     <repositories>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
             <snapshots>
                 <enabled>true</enabled>
             </snapshots>
         </repository>
     </repositories>
 </project>
diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index e38ca9d..6a2a073 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,267 +1,132 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
     <version>1.2-SNAPSHOT</version>
     <packaging>maven-plugin</packaging>
     <name>ggitflow-maven-plugin</name>
 
-    <url>http://dkirrane.github.io/ggitflow-maven-plugin/</url>
-
-    <scm>
-        <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
-        <connection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</connection>
-        <developerConnection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</developerConnection>
-    </scm>
-
-    <description>Gitflow Maven Plugin that uses Groovy Gitflow</description>
-    <developers>
-        <developer>
-            <id>dkirrane</id>
-            <name>Desmond Kirrane</name>
-            <email>desmond.kirrane@gmail.com</email>
-        </developer>
-    </developers>
-    <licenses>
-        <license>
-            <name>Apache License Version 2.0, January 2004</name>
-            <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
-            <distribution>repo</distribution>
-        </license>
-    </licenses>
-
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
     </properties>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
             <version>1.0</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
         <dependency>
             <groupId>jline</groupId>
             <artifactId>jline</artifactId>
             <version>2.11</version>
             <type>jar</type>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>3.2</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>3.0.8</version>
         </dependency>
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-interactivity-api</artifactId>
             <version>1.0-alpha-5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>2.4</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-project</artifactId>
             <version>2.2.1</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-clean-plugin</artifactId>
             <version>2.5</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-install-plugin</artifactId>
             <version>2.5.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-deploy-plugin</artifactId>
             <version>2.8.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-artifact</artifactId>
             <version>2.2.1</version>
         </dependency>
     </dependencies>
 
     <build>
         <resources>
             <resource>
                 <directory>src/it</directory>
                 <includes>
                     <include>**/**</include>
                 </includes>
             </resource>
         </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>3.2</version>
                 <configuration>
                     <goalPrefix>ggitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                     <execution>
                         <id>help-goal</id>
                         <goals>
                             <goal>helpmojo</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
         </plugins>
     </build>
-    <profiles>
-        <!-- Deploy to https://oss.sonatype.org/index.html -->
-        <!-- mvn clean deploy -Prelease-sign-artifacts -->
-        <profile>
-            <id>release-sign-artifacts</id>
-            <activation>
-                <property>
-                    <name>performRelease</name>
-                    <value>true</value>
-                </property>
-            </activation>
-            <build>
-                <plugins>
-                    <plugin>
-                        <groupId>org.apache.maven.plugins</groupId>
-                        <artifactId>maven-gpg-plugin</artifactId>
-                        <executions>
-                            <execution>
-                                <id>sign-artifacts</id>
-                                <phase>verify</phase>
-                                <goals>
-                                    <goal>sign</goal>
-                                </goals>
-                            </execution>
-                        </executions>
-                    </plugin>
-                </plugins>
-            </build>
-        </profile>
-        <profile>
-            <id>run-its</id>
-            <build>
-                <plugins>
-                    <plugin>
-                        <groupId>org.apache.maven.plugins</groupId>
-                        <artifactId>maven-invoker-plugin</artifactId>
-                        <version>1.8</version>
-                        <configuration>
-                            <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
-                            <settingsFile>src/it/settings.xml</settingsFile>
-                            <debug>true</debug>
-                            <showErrors>true</showErrors>
-                            <detail>true</detail>
-                            <streamLogs>true</streamLogs>
-                            <projectsDirectory>src/it/projects</projectsDirectory>
-                            <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
-                            <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
-                            <addTestClassPath>true</addTestClassPath>
-                            <preBuildHookScript>setup</preBuildHookScript>
-                            <postBuildHookScript>verify</postBuildHookScript>
-                            <pomIncludes>
-                                <pomInclude>*/pom.xml</pomInclude>
-                            </pomIncludes>
-                            <goals>
-                                <goal>clean</goal>
-                                <goal>test-compile</goal>
-                            </goals>
-                        </configuration>
-                        <executions>
-                            <execution>
-                                <id>integration-test</id>
-                                <goals>
-                                    <goal>install</goal>
-                                    <goal>integration-test</goal>
-                                    <goal>verify</goal>
-                                </goals>
-                            </execution>
-                        </executions>
-                    </plugin>
-                </plugins>
-
-            </build>
-        </profile>
-    </profiles>
-
-    <!--
-        Sonatype upload details:
-        http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
-        https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
-        https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
-        https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
-
-            - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
-            - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
-            - Promote staged artifacts into repository 'Releases'
-            - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
-            - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
-    -->
-
-    <distributionManagement>
-        <snapshotRepository>
-            <id>sonatype</id>
-            <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
-        </snapshotRepository>
-        <repository>
-            <id>sonatype</id>
-            <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
-        </repository>
-    </distributionManagement>
-    <repositories>
-        <repository>
-            <id>sonatype</id>
-            <url>https://oss.sonatype.org/content/groups/public</url>
-            <releases>
-                <enabled>true</enabled>
-            </releases>
-            <snapshots>
-                <enabled>true</enabled>
-            </snapshots>
-        </repository>
-    </repositories>
 </project>
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..ef31b8d
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,150 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+
+    <groupId>com.dkirrane.maven.plugins</groupId>
+    <artifactId>ggitflow-maven</artifactId>
+    <version>1.2-SNAPSHOT</version>
+    <packaging>pom</packaging>
+
+    <modules>
+        <module>ggitflow-maven-plugin</module>
+        <module>ggitflow-maven-archetype</module>
+    </modules>
+
+    <url>http://dkirrane.github.io/ggitflow-maven-plugin/</url>
+
+    <scm>
+        <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
+        <connection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</connection>
+        <developerConnection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</developerConnection>
+    </scm>
+
+    <description>Maven Archetype for the Gitflow Maven Plugin</description>
+    <developers>
+        <developer>
+            <id>dkirrane</id>
+            <name>Desmond Kirrane</name>
+            <email>desmond.kirrane@gmail.com</email>
+        </developer>
+    </developers>
+    <licenses>
+        <license>
+            <name>Apache License Version 2.0, January 2004</name>
+            <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
+            <distribution>repo</distribution>
+        </license>
+    </licenses>
+
+    <profiles>
+        <!-- Deploy to https://oss.sonatype.org/index.html -->
+        <!-- mvn clean deploy -Prelease-sign-artifacts -->
+        <profile>
+            <id>release-sign-artifacts</id>
+            <activation>
+                <property>
+                    <name>performRelease</name>
+                    <value>true</value>
+                </property>
+            </activation>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-gpg-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <id>sign-artifacts</id>
+                                <phase>verify</phase>
+                                <goals>
+                                    <goal>sign</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+        <profile>
+            <id>run-its</id>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-invoker-plugin</artifactId>
+                        <version>1.8</version>
+                        <configuration>
+                            <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
+                            <settingsFile>src/it/settings.xml</settingsFile>
+                            <debug>true</debug>
+                            <showErrors>true</showErrors>
+                            <detail>true</detail>
+                            <streamLogs>true</streamLogs>
+                            <projectsDirectory>src/it/projects</projectsDirectory>
+                            <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
+                            <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
+                            <addTestClassPath>true</addTestClassPath>
+                            <preBuildHookScript>setup</preBuildHookScript>
+                            <postBuildHookScript>verify</postBuildHookScript>
+                            <pomIncludes>
+                                <pomInclude>*/pom.xml</pomInclude>
+                            </pomIncludes>
+                            <goals>
+                                <goal>clean</goal>
+                                <goal>test-compile</goal>
+                            </goals>
+                        </configuration>
+                        <executions>
+                            <execution>
+                                <id>integration-test</id>
+                                <goals>
+                                    <goal>install</goal>
+                                    <goal>integration-test</goal>
+                                    <goal>verify</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+
+            </build>
+        </profile>
+    </profiles>
+
+    <!--
+        Sonatype upload details:
+        http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
+        https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
+        https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
+        https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
+
+            - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
+            - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
+            - Promote staged artifacts into repository 'Releases'
+            - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
+            - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
+    -->
+
+    <distributionManagement>
+        <snapshotRepository>
+            <id>sonatype</id>
+            <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
+        </snapshotRepository>
+        <repository>
+            <id>sonatype</id>
+            <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
+        </repository>
+    </distributionManagement>
+    <repositories>
+        <repository>
+            <id>sonatype</id>
+            <url>https://oss.sonatype.org/content/groups/public</url>
+            <releases>
+                <enabled>true</enabled>
+            </releases>
+            <snapshots>
+                <enabled>true</enabled>
+            </snapshots>
+        </repository>
+    </repositories>
+</project>

commit 54e3f84b12b03f08e2c91e1f7cb1c215a9375802
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Mon Mar 3 22:15:50 2014 +0000

    Moving README.md

diff --git a/ggitflow-maven-plugin/README.md b/README.md
similarity index 100%
rename from ggitflow-maven-plugin/README.md
rename to README.md

commit e6662ac821eb0673563c387abe68c19a8c80790b
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Sun Mar 2 21:53:32 2014 +0000

    GitHub Pages

diff --git a/ggitflow-maven-plugin/README.md b/ggitflow-maven-plugin/README.md
index bae9233..ac2ebb0 100644
--- a/ggitflow-maven-plugin/README.md
+++ b/ggitflow-maven-plugin/README.md
@@ -4,2 +4,2 @@ ggitflow-maven-plugin
 
-http://dkirrane.github.io/ggitflow/
\ No newline at end of file
+http://dkirrane.github.io/ggitflow-maven-plugin/
\ No newline at end of file
diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index cd6a04f..e38ca9d 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,267 +1,267 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
     <version>1.2-SNAPSHOT</version>
     <packaging>maven-plugin</packaging>
     <name>ggitflow-maven-plugin</name>
 
-    <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
+    <url>http://dkirrane.github.io/ggitflow-maven-plugin/</url>
 
     <scm>
         <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
         <connection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</connection>
         <developerConnection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</developerConnection>
     </scm>
 
     <description>Gitflow Maven Plugin that uses Groovy Gitflow</description>
     <developers>
         <developer>
             <id>dkirrane</id>
             <name>Desmond Kirrane</name>
             <email>desmond.kirrane@gmail.com</email>
         </developer>
     </developers>
     <licenses>
         <license>
             <name>Apache License Version 2.0, January 2004</name>
             <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
             <distribution>repo</distribution>
         </license>
     </licenses>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
     </properties>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
             <version>1.0</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
         <dependency>
             <groupId>jline</groupId>
             <artifactId>jline</artifactId>
             <version>2.11</version>
             <type>jar</type>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>3.2</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>3.0.8</version>
         </dependency>
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-interactivity-api</artifactId>
             <version>1.0-alpha-5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>2.4</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-project</artifactId>
             <version>2.2.1</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-clean-plugin</artifactId>
             <version>2.5</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-install-plugin</artifactId>
             <version>2.5.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-deploy-plugin</artifactId>
             <version>2.8.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-artifact</artifactId>
             <version>2.2.1</version>
         </dependency>
     </dependencies>
 
     <build>
         <resources>
             <resource>
                 <directory>src/it</directory>
                 <includes>
                     <include>**/**</include>
                 </includes>
             </resource>
         </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>3.2</version>
                 <configuration>
                     <goalPrefix>ggitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                     <execution>
                         <id>help-goal</id>
                         <goals>
                             <goal>helpmojo</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
         </plugins>
     </build>
     <profiles>
         <!-- Deploy to https://oss.sonatype.org/index.html -->
         <!-- mvn clean deploy -Prelease-sign-artifacts -->
         <profile>
             <id>release-sign-artifacts</id>
             <activation>
                 <property>
                     <name>performRelease</name>
                     <value>true</value>
                 </property>
             </activation>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-gpg-plugin</artifactId>
                         <executions>
                             <execution>
                                 <id>sign-artifacts</id>
                                 <phase>verify</phase>
                                 <goals>
                                     <goal>sign</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
             </build>
         </profile>
         <profile>
             <id>run-its</id>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-invoker-plugin</artifactId>
                         <version>1.8</version>
                         <configuration>
                             <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
                             <settingsFile>src/it/settings.xml</settingsFile>
                             <debug>true</debug>
                             <showErrors>true</showErrors>
                             <detail>true</detail>
                             <streamLogs>true</streamLogs>
                             <projectsDirectory>src/it/projects</projectsDirectory>
                             <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
                             <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
                             <addTestClassPath>true</addTestClassPath>
                             <preBuildHookScript>setup</preBuildHookScript>
                             <postBuildHookScript>verify</postBuildHookScript>
                             <pomIncludes>
                                 <pomInclude>*/pom.xml</pomInclude>
                             </pomIncludes>
                             <goals>
                                 <goal>clean</goal>
                                 <goal>test-compile</goal>
                             </goals>
                         </configuration>
                         <executions>
                             <execution>
                                 <id>integration-test</id>
                                 <goals>
                                     <goal>install</goal>
                                     <goal>integration-test</goal>
                                     <goal>verify</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
 
             </build>
         </profile>
     </profiles>
 
     <!--
         Sonatype upload details:
         http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
         https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
         https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
         https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
 
             - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
             - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
             - Promote staged artifacts into repository 'Releases'
             - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
             - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
     -->
 
     <distributionManagement>
         <snapshotRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
         </snapshotRepository>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
         </repository>
     </distributionManagement>
     <repositories>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
             <snapshots>
                 <enabled>true</enabled>
             </snapshots>
         </repository>
     </repositories>
 </project>

commit 7441bc28ce176105a49d21022b85836233d08697
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Sun Mar 2 20:59:01 2014 +0000

    GitHub Pages

diff --git a/ggitflow-maven-plugin/README.md b/ggitflow-maven-plugin/README.md
index d19cf1a..bae9233 100644
--- a/ggitflow-maven-plugin/README.md
+++ b/ggitflow-maven-plugin/README.md
@@ -2,2 +2,4 @@ Gitflow Maven Plugin that uses Groovy Gitflow
 
-ggitflow-maven-plugin
\ No newline at end of file
+ggitflow-maven-plugin
+
+http://dkirrane.github.io/ggitflow/
\ No newline at end of file

commit 7667013fbcb7ff3f04f211f0d2795d6f4498ef38
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Fri Feb 28 23:44:36 2014 +0000

    Increment to next development version 1.2-SNAPSHOT

diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index 83a5483..cd6a04f 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,267 +1,267 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
-    <version>1.1</version>
+    <version>1.2-SNAPSHOT</version>
     <packaging>maven-plugin</packaging>
     <name>ggitflow-maven-plugin</name>
 
     <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
 
     <scm>
         <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
         <connection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</connection>
         <developerConnection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</developerConnection>
     </scm>
 
     <description>Gitflow Maven Plugin that uses Groovy Gitflow</description>
     <developers>
         <developer>
             <id>dkirrane</id>
             <name>Desmond Kirrane</name>
             <email>desmond.kirrane@gmail.com</email>
         </developer>
     </developers>
     <licenses>
         <license>
             <name>Apache License Version 2.0, January 2004</name>
             <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
             <distribution>repo</distribution>
         </license>
     </licenses>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
     </properties>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
             <version>1.0</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
         <dependency>
             <groupId>jline</groupId>
             <artifactId>jline</artifactId>
             <version>2.11</version>
             <type>jar</type>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>3.2</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>3.0.8</version>
         </dependency>
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-interactivity-api</artifactId>
             <version>1.0-alpha-5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>2.4</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-project</artifactId>
             <version>2.2.1</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-clean-plugin</artifactId>
             <version>2.5</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-install-plugin</artifactId>
             <version>2.5.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-deploy-plugin</artifactId>
             <version>2.8.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-artifact</artifactId>
             <version>2.2.1</version>
         </dependency>
     </dependencies>
 
     <build>
         <resources>
             <resource>
                 <directory>src/it</directory>
                 <includes>
                     <include>**/**</include>
                 </includes>
             </resource>
         </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>3.2</version>
                 <configuration>
                     <goalPrefix>ggitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                     <execution>
                         <id>help-goal</id>
                         <goals>
                             <goal>helpmojo</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
         </plugins>
     </build>
     <profiles>
         <!-- Deploy to https://oss.sonatype.org/index.html -->
         <!-- mvn clean deploy -Prelease-sign-artifacts -->
         <profile>
             <id>release-sign-artifacts</id>
             <activation>
                 <property>
                     <name>performRelease</name>
                     <value>true</value>
                 </property>
             </activation>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-gpg-plugin</artifactId>
                         <executions>
                             <execution>
                                 <id>sign-artifacts</id>
                                 <phase>verify</phase>
                                 <goals>
                                     <goal>sign</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
             </build>
         </profile>
         <profile>
             <id>run-its</id>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-invoker-plugin</artifactId>
                         <version>1.8</version>
                         <configuration>
                             <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
                             <settingsFile>src/it/settings.xml</settingsFile>
                             <debug>true</debug>
                             <showErrors>true</showErrors>
                             <detail>true</detail>
                             <streamLogs>true</streamLogs>
                             <projectsDirectory>src/it/projects</projectsDirectory>
                             <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
                             <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
                             <addTestClassPath>true</addTestClassPath>
                             <preBuildHookScript>setup</preBuildHookScript>
                             <postBuildHookScript>verify</postBuildHookScript>
                             <pomIncludes>
                                 <pomInclude>*/pom.xml</pomInclude>
                             </pomIncludes>
                             <goals>
                                 <goal>clean</goal>
                                 <goal>test-compile</goal>
                             </goals>
                         </configuration>
                         <executions>
                             <execution>
                                 <id>integration-test</id>
                                 <goals>
                                     <goal>install</goal>
                                     <goal>integration-test</goal>
                                     <goal>verify</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
 
             </build>
         </profile>
     </profiles>
 
     <!--
         Sonatype upload details:
         http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
         https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
         https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
         https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
 
             - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
             - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
             - Promote staged artifacts into repository 'Releases'
             - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
             - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
     -->
 
     <distributionManagement>
         <snapshotRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
         </snapshotRepository>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
         </repository>
     </distributionManagement>
     <repositories>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
             <snapshots>
                 <enabled>true</enabled>
             </snapshots>
         </repository>
     </repositories>
 </project>

commit 11a3578ef2b4502f8f2e8d12dfd7158272ac3fe3
Merge: 45b0eb8 4d53450
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Fri Feb 28 23:43:34 2014 +0000

    Merge branch 'release/1.1'

commit 92e448e6fc5b35507d48e87c7766173ea086f7c6
Merge: 220f481 4d53450
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Fri Feb 28 23:43:34 2014 +0000

    Merge branch 'release/1.1' into develop

commit 4d534505e21c3daf7ded55c037ae32f0ffc04b4c
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Fri Feb 28 23:39:04 2014 +0000

    1.1 release

diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index 86da2a8..83a5483 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,267 +1,267 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
-    <version>1.1-SNAPSHOT</version>
+    <version>1.1</version>
     <packaging>maven-plugin</packaging>
     <name>ggitflow-maven-plugin</name>
 
     <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
 
     <scm>
         <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
         <connection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</connection>
         <developerConnection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</developerConnection>
     </scm>
 
     <description>Gitflow Maven Plugin that uses Groovy Gitflow</description>
     <developers>
         <developer>
             <id>dkirrane</id>
             <name>Desmond Kirrane</name>
             <email>desmond.kirrane@gmail.com</email>
         </developer>
     </developers>
     <licenses>
         <license>
             <name>Apache License Version 2.0, January 2004</name>
             <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
             <distribution>repo</distribution>
         </license>
     </licenses>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
     </properties>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
             <version>1.0</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
         <dependency>
             <groupId>jline</groupId>
             <artifactId>jline</artifactId>
             <version>2.11</version>
             <type>jar</type>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>3.2</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>3.0.8</version>
         </dependency>
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-interactivity-api</artifactId>
             <version>1.0-alpha-5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>2.4</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-project</artifactId>
             <version>2.2.1</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-clean-plugin</artifactId>
             <version>2.5</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-install-plugin</artifactId>
             <version>2.5.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-deploy-plugin</artifactId>
             <version>2.8.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-artifact</artifactId>
             <version>2.2.1</version>
         </dependency>
     </dependencies>
 
     <build>
         <resources>
             <resource>
                 <directory>src/it</directory>
                 <includes>
                     <include>**/**</include>
                 </includes>
             </resource>
         </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>3.2</version>
                 <configuration>
                     <goalPrefix>ggitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                     <execution>
                         <id>help-goal</id>
                         <goals>
                             <goal>helpmojo</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
         </plugins>
     </build>
     <profiles>
         <!-- Deploy to https://oss.sonatype.org/index.html -->
         <!-- mvn clean deploy -Prelease-sign-artifacts -->
         <profile>
             <id>release-sign-artifacts</id>
             <activation>
                 <property>
                     <name>performRelease</name>
                     <value>true</value>
                 </property>
             </activation>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-gpg-plugin</artifactId>
                         <executions>
                             <execution>
                                 <id>sign-artifacts</id>
                                 <phase>verify</phase>
                                 <goals>
                                     <goal>sign</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
             </build>
         </profile>
         <profile>
             <id>run-its</id>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-invoker-plugin</artifactId>
                         <version>1.8</version>
                         <configuration>
                             <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
                             <settingsFile>src/it/settings.xml</settingsFile>
                             <debug>true</debug>
                             <showErrors>true</showErrors>
                             <detail>true</detail>
                             <streamLogs>true</streamLogs>
                             <projectsDirectory>src/it/projects</projectsDirectory>
                             <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
                             <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
                             <addTestClassPath>true</addTestClassPath>
                             <preBuildHookScript>setup</preBuildHookScript>
                             <postBuildHookScript>verify</postBuildHookScript>
                             <pomIncludes>
                                 <pomInclude>*/pom.xml</pomInclude>
                             </pomIncludes>
                             <goals>
                                 <goal>clean</goal>
                                 <goal>test-compile</goal>
                             </goals>
                         </configuration>
                         <executions>
                             <execution>
                                 <id>integration-test</id>
                                 <goals>
                                     <goal>install</goal>
                                     <goal>integration-test</goal>
                                     <goal>verify</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
 
             </build>
         </profile>
     </profiles>
 
     <!--
         Sonatype upload details:
         http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
         https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
         https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
         https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
 
             - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
             - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
             - Promote staged artifacts into repository 'Releases'
             - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
             - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
     -->
 
     <distributionManagement>
         <snapshotRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
         </snapshotRepository>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
         </repository>
     </distributionManagement>
     <repositories>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
             <snapshots>
                 <enabled>true</enabled>
             </snapshots>
         </repository>
     </repositories>
 </project>

commit 220f4819c24fd198df0c8659fe2f03465a6f4f40
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Fri Feb 28 23:36:53 2014 +0000

    push version changes if remote exists

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index ec92ed5..f140c91 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -60,350 +60,360 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 /**
  *
  */
 public class AbstractGitflowMojo extends AbstractMojo {
 
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
     @Parameter(property = "msgPrefix", defaultValue = "")
     protected String msgPrefix;
 
     @Parameter(property = "msgSuffix", defaultValue = "")
     protected String msgSuffix;
 
     @Parameter(property = "skipBuild", defaultValue = "false")
     protected Boolean skipBuild;
 
     @Parameter(property = "skipDeploy", defaultValue = "false")
     protected Boolean skipDeploy;
 
     /**
      * Component used to prompt for input.
      */
     @Component
     protected Prompter prompter;
 
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
     @Component
     protected ArtifactResolver artifactResolver;
 
     /**
      * @parameter default-value="${project.artifacts}"
      * @required
      * @readonly
      */
     protected Collection artifacts;
 
     /**
      * @parameter expression="${localRepository}"
      */
     protected ArtifactRepository localRepository;
 
     /**
      * @parameter expression="${project.remoteArtifactRepositories}"
      */
     protected List remoteArtifactRepositories;
 
 //    @Component
 //    protected MavenProjectBuilder projectBuilder;
 //    @Component
 //    protected DefaultProjectBuilder projectBuilder;
 //    /**
 //     * @parameter property="plugin"
 //     * @required
 //     */
 //    @Component
 //    protected PluginDescriptor pluginDescriptor;
 //
     /**
      * The projects in the reactor.
      */
     @Parameter(defaultValue = "${reactorProjects}", readonly = true, required = true)
     protected List<MavenProject> reactorProjects;
 
     /**
      * The project builder
      */
     @Component
     private ProjectBuilder projectBuilder;
 
     /**
      * The project currently being build.
      *
      * @parameter expression="${project}"
      * @required
      * @readonly
      */
     @Component
     protected MavenProject project;
 
     /**
      * The current Maven session.
      *
      * @parameter expression="${session}"
      * @required
      * @readonly
      */
     @Component
     protected MavenSession session;
 
     /**
      * The Maven BuildPluginManager component.
      *
      * @component
      * @required
      */
     @Component
     protected BuildPluginManager pluginManager;
 
     private GitflowInit init;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     public void execute() throws MojoExecutionException, MojoFailureException {
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             getLog().debug("Gitflow pom  '" + project.getBasedir() + "'");
         }
 
         GitflowInit gitflowInit = getGitflowInit();
 
         gitflowInit.requireGitRepo();
 
         if (!gitflowInit.gitflowIsInitialized()) {
             try {
                 gitflowInit.cmdDefault();
             } catch (GitflowException ex) {
                 throw new MojoExecutionException("Failed to inintialise Gitflow " + ex.getMessage(), ex);
             }
         }
 
         gitflowInit.requireCleanWorkingTree();
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     public GitflowInit getGitflowInit() {
         if (null == init) {
             init = new GitflowInit();
             init.setRepoDir(getProject().getBasedir());
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
 
             /* root Git directory may not be the pom directory */
             String dotGitDir = init.executeLocal("git rev-parse --git-dir");
             File dotGitFolder = new File(dotGitDir);
             assert dotGitFolder.exists();
             init.setRepoDir(dotGitFolder.getParentFile());
         }
         return init;
     }
 
     public void setVersion(String version) throws MojoExecutionException, MojoFailureException {
         getLog().debug("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.codehaus.mojo"),
                         artifactId("versions-maven-plugin"),
                         version("2.1")
                 ),
                 goal("set"),
                 configuration(
                         element(name("generateBackupPoms"), "false"),
                         element(name("newVersion"), version)
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
         getLog().debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
+
+            String currentBranch = getGitflowInit().gitCurrentBranch();
+            if (getGitflowInit().gitRemoteBranchExists(currentBranch)) {
+                String origin = getGitflowInit().getOrigin();
+                String[] cmtPush = {"git", "push", origin, currentBranch};
+                Integer exitCode = getGitflowInit().executeRemote(cmtPush);
+                if (exitCode != 0) {
+                    throw new MojoExecutionException("Failed to push version change " + version + " to origin. ExitCode:" + exitCode);
+                }
+            }
         }
         /* We don't want to fail maybe the version was manually set correctly */
 //        else {
 //            throw new MojoFailureException("Failed to update poms to version " + version);
 //        }
     }
 
     public void clean() throws MojoExecutionException, MojoFailureException {
         getLog().debug("START org.apache.maven.plugins:maven-clean-plugin:2.5:clean");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
-        session.setProjects(reactorProjects);        
+        session.setProjects(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-clean-plugin"),
                         version("2.5")
                 ),
                 goal("clean"),
                 configuration(
                         element(name("skip"), "false")
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
         getLog().debug("DONE org.apache.maven.plugins:maven-clean-plugin:2.5:clean");
     }
 
     public void install() throws MojoExecutionException, MojoFailureException {
         getLog().debug("START org.apache.maven.plugins:maven-install-plugin:2.5.1:install");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-install-plugin"),
                         version("2.5.1")
                 ),
                 goal("install"),
                 configuration(
                         element(name("skip"), "false")
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
         getLog().debug("DONE org.apache.maven.plugins:maven-install-plugin:2.5.1:install");
     }
 
     public void deploy() throws MojoExecutionException, MojoFailureException {
         getLog().debug("START org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
-        session.setProjects(reactorProjects);        
+        session.setProjects(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-deploy-plugin"),
                         version("2.8.1")
                 ),
                 goal("deploy"),
                 configuration(
                         element(name("skip"), "false"),
                         element(name("retryFailedDeploymentCount"), "1")
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
         getLog().debug("DONE org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy");
     }
 
     public String getReleaseVersion(String version) throws MojoFailureException {
         getLog().debug("Current Develop version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
             getLog().warn("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
     public void reloadReactorProjects() throws MojoExecutionException {
         getLog().debug("Reloading poms...");
 
         List<MavenProject> newReactorProjects;
         try {
             newReactorProjects = buildReactorProjects();
         } catch (ProjectBuildingException e) {
             getLog().error("Re-parse aborted due to malformed pom.xml file(s)", e);
             throw new MojoExecutionException("Re-parse aborted due to malformed pom.xml file(s)", e);
         } catch (CycleDetectedException e) {
             getLog().error("Re-parse aborted due to dependency cycle in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to dependency cycle in project model", e);
         } catch (DuplicateProjectException e) {
             getLog().error("Re-parse aborted due to duplicate projects in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to duplicate projects in project model", e);
         } catch (Exception e) {
             getLog().error("Re-parse aborted due a problem that prevented sorting the project model", e);
             throw new MojoExecutionException("Re-parse aborted due a problem that prevented sorting the project model", e);
         }
         MavenProject newProject = findProject(newReactorProjects, this.project);
         if (newProject == null) {
             throw new MojoExecutionException("A pom.xml change appears to have removed " + this.project.getId() + " from the build plan.");
         }
 
         this.project = newProject;
         this.reactorProjects = newReactorProjects;
-        
+
         getLog().debug("Reloading poms complete...");
     }
 
     private List<MavenProject> buildReactorProjects() throws Exception {
 
         List<MavenProject> projects = new ArrayList<MavenProject>();
         for (MavenProject p : reactorProjects) {
             ProjectBuildingRequest request = new DefaultProjectBuildingRequest();
 
             request.setProcessPlugins(true);
             request.setProfiles(request.getProfiles());
             request.setActiveProfileIds(session.getRequest().getActiveProfiles());
             request.setInactiveProfileIds(session.getRequest().getInactiveProfiles());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setSystemProperties(session.getSystemProperties());
             request.setUserProperties(session.getUserProperties());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setPluginArtifactRepositories(session.getRequest().getPluginArtifactRepositories());
             request.setRepositorySession(session.getRepositorySession());
             request.setLocalRepository(localRepository);
             request.setBuildStartTime(session.getRequest().getStartTime());
             request.setResolveDependencies(true);
             request.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_STRICT);
             projects.add(projectBuilder.build(p.getFile(), request).getProject());
         }
         return new ProjectSorter(projects).getSortedProjects();
     }
 
     private MavenProject findProject(List<MavenProject> newReactorProjects, MavenProject oldProject) {
         for (MavenProject newProject : newReactorProjects) {
             if (oldProject.getGroupId().equals(newProject.getGroupId())
                     && oldProject.getArtifactId().equals(newProject.getArtifactId())) {
                 return newProject;
             }
         }
         return null;
     }
 
 }

commit fc8f8e20481564758e2e8c186cc058cb2dcad86b
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Fri Feb 28 22:56:53 2014 +0000

    Increment to next development version 1.1-SNAPSHOT

diff --git a/ggitflow-maven-plugin/nbactions.xml b/ggitflow-maven-plugin/nbactions.xml
index b8ca44b..a943054 100644
--- a/ggitflow-maven-plugin/nbactions.xml
+++ b/ggitflow-maven-plugin/nbactions.xml
@@ -1,27 +1,37 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <actions>
     <action>
         <actionName>rebuild</actionName>
         <packagings>
             <packaging>*</packaging>
         </packagings>
         <goals>
             <goal>clean</goal>
             <goal>install</goal>
         </goals>
         <properties>
             <skipTests>true</skipTests>
         </properties>
     </action>
     <action>
         <actionName>CUSTOM-clean deploy</actionName>
         <displayName>clean deploy</displayName>
         <goals>
             <goal>clean</goal>
             <goal>deploy</goal>
         </goals>
         <properties>
             <skipTests>true</skipTests>
         </properties>
     </action>
+    <action>
+        <actionName>CUSTOM-versions:set</actionName>
+        <displayName>versions:set</displayName>
+        <goals>
+            <goal>versions:set</goal>
+        </goals>
+        <properties>
+            <generateBackupPoms>false</generateBackupPoms>
+        </properties>
+    </action>
 </actions>
diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index 3c60453..86da2a8 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,267 +1,267 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
-    <version>1.0</version>
+    <version>1.1-SNAPSHOT</version>
     <packaging>maven-plugin</packaging>
     <name>ggitflow-maven-plugin</name>
 
     <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
 
     <scm>
         <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
         <connection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</connection>
         <developerConnection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</developerConnection>
     </scm>
 
     <description>Gitflow Maven Plugin that uses Groovy Gitflow</description>
     <developers>
         <developer>
             <id>dkirrane</id>
             <name>Desmond Kirrane</name>
             <email>desmond.kirrane@gmail.com</email>
         </developer>
     </developers>
     <licenses>
         <license>
             <name>Apache License Version 2.0, January 2004</name>
             <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
             <distribution>repo</distribution>
         </license>
     </licenses>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
     </properties>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
             <version>1.0</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
         <dependency>
             <groupId>jline</groupId>
             <artifactId>jline</artifactId>
             <version>2.11</version>
             <type>jar</type>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>3.2</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>3.0.8</version>
         </dependency>
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-interactivity-api</artifactId>
             <version>1.0-alpha-5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>2.4</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-project</artifactId>
             <version>2.2.1</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-clean-plugin</artifactId>
             <version>2.5</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-install-plugin</artifactId>
             <version>2.5.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-deploy-plugin</artifactId>
             <version>2.8.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-artifact</artifactId>
             <version>2.2.1</version>
         </dependency>
     </dependencies>
 
     <build>
         <resources>
             <resource>
                 <directory>src/it</directory>
                 <includes>
                     <include>**/**</include>
                 </includes>
             </resource>
         </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>3.2</version>
                 <configuration>
                     <goalPrefix>ggitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                     <execution>
                         <id>help-goal</id>
                         <goals>
                             <goal>helpmojo</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
         </plugins>
     </build>
     <profiles>
         <!-- Deploy to https://oss.sonatype.org/index.html -->
         <!-- mvn clean deploy -Prelease-sign-artifacts -->
         <profile>
             <id>release-sign-artifacts</id>
             <activation>
                 <property>
                     <name>performRelease</name>
                     <value>true</value>
                 </property>
             </activation>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-gpg-plugin</artifactId>
                         <executions>
                             <execution>
                                 <id>sign-artifacts</id>
                                 <phase>verify</phase>
                                 <goals>
                                     <goal>sign</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
             </build>
         </profile>
         <profile>
             <id>run-its</id>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-invoker-plugin</artifactId>
                         <version>1.8</version>
                         <configuration>
                             <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
                             <settingsFile>src/it/settings.xml</settingsFile>
                             <debug>true</debug>
                             <showErrors>true</showErrors>
                             <detail>true</detail>
                             <streamLogs>true</streamLogs>
                             <projectsDirectory>src/it/projects</projectsDirectory>
                             <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
                             <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
                             <addTestClassPath>true</addTestClassPath>
                             <preBuildHookScript>setup</preBuildHookScript>
                             <postBuildHookScript>verify</postBuildHookScript>
                             <pomIncludes>
                                 <pomInclude>*/pom.xml</pomInclude>
                             </pomIncludes>
                             <goals>
                                 <goal>clean</goal>
                                 <goal>test-compile</goal>
                             </goals>
                         </configuration>
                         <executions>
                             <execution>
                                 <id>integration-test</id>
                                 <goals>
                                     <goal>install</goal>
                                     <goal>integration-test</goal>
                                     <goal>verify</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
 
             </build>
         </profile>
     </profiles>
 
     <!--
         Sonatype upload details:
         http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
         https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
         https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
         https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
 
             - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
             - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
             - Promote staged artifacts into repository 'Releases'
             - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
             - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
     -->
 
     <distributionManagement>
         <snapshotRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
         </snapshotRepository>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
         </repository>
     </distributionManagement>
     <repositories>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
             <snapshots>
                 <enabled>true</enabled>
             </snapshots>
         </repository>
     </repositories>
 </project>

commit 45b0eb850bdde689531c6b951b75b2ec776b887d
Merge: d880cf6 57ae722
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Fri Feb 28 22:53:06 2014 +0000

    Merge branch 'release/1.0'

commit 423b25ced9c1f0409f887b27eb2c503dbb96e5d4
Merge: d880cf6 57ae722
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Fri Feb 28 22:53:06 2014 +0000

    Merge branch 'release/1.0' into develop

commit 57ae7228626b1ac07b4f666af1aa62f11e73257a
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Fri Feb 28 22:52:53 2014 +0000

    description details missing for deploy

diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index 9377617..3c60453 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,259 +1,267 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
     <version>1.0</version>
     <packaging>maven-plugin</packaging>
     <name>ggitflow-maven-plugin</name>
 
     <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
 
     <scm>
         <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
         <connection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</connection>
         <developerConnection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</developerConnection>
     </scm>
-    
+
+    <description>Gitflow Maven Plugin that uses Groovy Gitflow</description>
     <developers>
         <developer>
             <id>dkirrane</id>
             <name>Desmond Kirrane</name>
             <email>desmond.kirrane@gmail.com</email>
         </developer>
     </developers>
+    <licenses>
+        <license>
+            <name>Apache License Version 2.0, January 2004</name>
+            <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
+            <distribution>repo</distribution>
+        </license>
+    </licenses>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
     </properties>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
             <version>1.0</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
         <dependency>
             <groupId>jline</groupId>
             <artifactId>jline</artifactId>
             <version>2.11</version>
             <type>jar</type>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>3.2</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>3.0.8</version>
         </dependency>
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-interactivity-api</artifactId>
             <version>1.0-alpha-5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>2.4</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-project</artifactId>
             <version>2.2.1</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-clean-plugin</artifactId>
             <version>2.5</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-install-plugin</artifactId>
             <version>2.5.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-deploy-plugin</artifactId>
             <version>2.8.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-artifact</artifactId>
             <version>2.2.1</version>
         </dependency>
     </dependencies>
 
     <build>
         <resources>
             <resource>
                 <directory>src/it</directory>
                 <includes>
                     <include>**/**</include>
                 </includes>
             </resource>
         </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>3.2</version>
                 <configuration>
                     <goalPrefix>ggitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                     <execution>
                         <id>help-goal</id>
                         <goals>
                             <goal>helpmojo</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
         </plugins>
     </build>
     <profiles>
         <!-- Deploy to https://oss.sonatype.org/index.html -->
         <!-- mvn clean deploy -Prelease-sign-artifacts -->
         <profile>
             <id>release-sign-artifacts</id>
             <activation>
                 <property>
                     <name>performRelease</name>
                     <value>true</value>
                 </property>
             </activation>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-gpg-plugin</artifactId>
                         <executions>
                             <execution>
                                 <id>sign-artifacts</id>
                                 <phase>verify</phase>
                                 <goals>
                                     <goal>sign</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
             </build>
         </profile>
         <profile>
             <id>run-its</id>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-invoker-plugin</artifactId>
                         <version>1.8</version>
                         <configuration>
                             <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
                             <settingsFile>src/it/settings.xml</settingsFile>
                             <debug>true</debug>
                             <showErrors>true</showErrors>
                             <detail>true</detail>
                             <streamLogs>true</streamLogs>
                             <projectsDirectory>src/it/projects</projectsDirectory>
                             <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
                             <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
                             <addTestClassPath>true</addTestClassPath>
                             <preBuildHookScript>setup</preBuildHookScript>
                             <postBuildHookScript>verify</postBuildHookScript>
                             <pomIncludes>
                                 <pomInclude>*/pom.xml</pomInclude>
                             </pomIncludes>
                             <goals>
                                 <goal>clean</goal>
                                 <goal>test-compile</goal>
                             </goals>
                         </configuration>
                         <executions>
                             <execution>
                                 <id>integration-test</id>
                                 <goals>
                                     <goal>install</goal>
                                     <goal>integration-test</goal>
                                     <goal>verify</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
 
             </build>
         </profile>
     </profiles>
 
     <!--
         Sonatype upload details:
         http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
         https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
         https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
         https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
 
             - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
             - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
             - Promote staged artifacts into repository 'Releases'
             - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
             - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
     -->
 
     <distributionManagement>
         <snapshotRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
         </snapshotRepository>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
         </repository>
     </distributionManagement>
     <repositories>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
             <snapshots>
                 <enabled>true</enabled>
             </snapshots>
         </repository>
     </repositories>
 </project>

commit 900ebe713a91331a775aacf280410e96d065b4c2
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Fri Feb 28 22:42:30 2014 +0000

    developer details missing for deploy

diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index 4f1ebb6..9377617 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,224 +1,259 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
     <version>1.0</version>
     <packaging>maven-plugin</packaging>
-
     <name>ggitflow-maven-plugin</name>
 
     <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
 
     <scm>
         <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
         <connection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</connection>
         <developerConnection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</developerConnection>
     </scm>
+    
+    <developers>
+        <developer>
+            <id>dkirrane</id>
+            <name>Desmond Kirrane</name>
+            <email>desmond.kirrane@gmail.com</email>
+        </developer>
+    </developers>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
     </properties>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
             <version>1.0</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
         <dependency>
             <groupId>jline</groupId>
             <artifactId>jline</artifactId>
             <version>2.11</version>
             <type>jar</type>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>3.2</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>3.0.8</version>
         </dependency>
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-interactivity-api</artifactId>
             <version>1.0-alpha-5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>2.4</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-project</artifactId>
             <version>2.2.1</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-clean-plugin</artifactId>
             <version>2.5</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-install-plugin</artifactId>
             <version>2.5.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-deploy-plugin</artifactId>
             <version>2.8.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-artifact</artifactId>
             <version>2.2.1</version>
         </dependency>
     </dependencies>
 
     <build>
         <resources>
             <resource>
                 <directory>src/it</directory>
                 <includes>
                     <include>**/**</include>
                 </includes>
             </resource>
         </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>3.2</version>
                 <configuration>
                     <goalPrefix>ggitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                     <execution>
                         <id>help-goal</id>
                         <goals>
                             <goal>helpmojo</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
         </plugins>
     </build>
     <profiles>
+        <!-- Deploy to https://oss.sonatype.org/index.html -->
+        <!-- mvn clean deploy -Prelease-sign-artifacts -->
+        <profile>
+            <id>release-sign-artifacts</id>
+            <activation>
+                <property>
+                    <name>performRelease</name>
+                    <value>true</value>
+                </property>
+            </activation>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-gpg-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <id>sign-artifacts</id>
+                                <phase>verify</phase>
+                                <goals>
+                                    <goal>sign</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
         <profile>
             <id>run-its</id>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-invoker-plugin</artifactId>
                         <version>1.8</version>
                         <configuration>
                             <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
                             <settingsFile>src/it/settings.xml</settingsFile>
                             <debug>true</debug>
                             <showErrors>true</showErrors>
                             <detail>true</detail>
                             <streamLogs>true</streamLogs>
                             <projectsDirectory>src/it/projects</projectsDirectory>
                             <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
                             <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
                             <addTestClassPath>true</addTestClassPath>
                             <preBuildHookScript>setup</preBuildHookScript>
                             <postBuildHookScript>verify</postBuildHookScript>
                             <pomIncludes>
                                 <pomInclude>*/pom.xml</pomInclude>
                             </pomIncludes>
                             <goals>
                                 <goal>clean</goal>
                                 <goal>test-compile</goal>
                             </goals>
                         </configuration>
                         <executions>
                             <execution>
                                 <id>integration-test</id>
                                 <goals>
                                     <goal>install</goal>
                                     <goal>integration-test</goal>
                                     <goal>verify</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
 
             </build>
         </profile>
     </profiles>
 
     <!--
         Sonatype upload details:
         http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
         https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
         https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
         https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
 
             - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
             - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
             - Promote staged artifacts into repository 'Releases'
             - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
             - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
     -->
 
     <distributionManagement>
         <snapshotRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
         </snapshotRepository>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
         </repository>
     </distributionManagement>
     <repositories>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
             <snapshots>
                 <enabled>true</enabled>
             </snapshots>
         </repository>
     </repositories>
 </project>

commit dcdda4b58ffd0c3a7ea45ab9d14368bbce9d617d
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Fri Feb 28 22:27:43 2014 +0000

    dcm tags missing

diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index 93a9e30..4f1ebb6 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,218 +1,224 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
     <version>1.0</version>
     <packaging>maven-plugin</packaging>
 
     <name>ggitflow-maven-plugin</name>
 
     <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
 
+    <scm>
+        <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
+        <connection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</connection>
+        <developerConnection>scm:git:https://github.com/dkirrane/ggitflow-maven-plugin.git</developerConnection>
+    </scm>
+
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
     </properties>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
             <version>1.0</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
         <dependency>
             <groupId>jline</groupId>
             <artifactId>jline</artifactId>
             <version>2.11</version>
             <type>jar</type>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>3.2</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>3.0.8</version>
         </dependency>
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-interactivity-api</artifactId>
             <version>1.0-alpha-5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>2.4</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-project</artifactId>
             <version>2.2.1</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-clean-plugin</artifactId>
             <version>2.5</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-install-plugin</artifactId>
             <version>2.5.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-deploy-plugin</artifactId>
             <version>2.8.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-artifact</artifactId>
             <version>2.2.1</version>
         </dependency>
     </dependencies>
 
     <build>
         <resources>
             <resource>
                 <directory>src/it</directory>
                 <includes>
                     <include>**/**</include>
                 </includes>
             </resource>
         </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>3.2</version>
                 <configuration>
                     <goalPrefix>ggitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                     <execution>
                         <id>help-goal</id>
                         <goals>
                             <goal>helpmojo</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
         </plugins>
     </build>
     <profiles>
         <profile>
             <id>run-its</id>
             <build>
-                <plugins>                                                      
+                <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-invoker-plugin</artifactId>
                         <version>1.8</version>
                         <configuration>
                             <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
                             <settingsFile>src/it/settings.xml</settingsFile>
                             <debug>true</debug>
                             <showErrors>true</showErrors>
                             <detail>true</detail>
                             <streamLogs>true</streamLogs>
                             <projectsDirectory>src/it/projects</projectsDirectory>
                             <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
                             <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
                             <addTestClassPath>true</addTestClassPath>
                             <preBuildHookScript>setup</preBuildHookScript>
                             <postBuildHookScript>verify</postBuildHookScript>
                             <pomIncludes>
                                 <pomInclude>*/pom.xml</pomInclude>
                             </pomIncludes>
                             <goals>
                                 <goal>clean</goal>
                                 <goal>test-compile</goal>
                             </goals>
                         </configuration>
                         <executions>
                             <execution>
                                 <id>integration-test</id>
                                 <goals>
                                     <goal>install</goal>
                                     <goal>integration-test</goal>
                                     <goal>verify</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
 
             </build>
         </profile>
     </profiles>
 
     <!--
         Sonatype upload details:
         http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
         https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
         https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
         https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
 
             - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
             - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
             - Promote staged artifacts into repository 'Releases'
             - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
             - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
     -->
 
     <distributionManagement>
         <snapshotRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
         </snapshotRepository>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
         </repository>
     </distributionManagement>
     <repositories>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
             <snapshots>
                 <enabled>true</enabled>
             </snapshots>
         </repository>
     </repositories>
 </project>

commit d04fe1dd92d0af1cdbb9882c4a25e2646f8eba40
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Fri Feb 28 00:36:35 2014 +0000

    Setting release version 1.0

diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index d20da68..93a9e30 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,218 +1,218 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
-    <version>1.0-SNAPSHOT</version>
+    <version>1.0</version>
     <packaging>maven-plugin</packaging>
 
     <name>ggitflow-maven-plugin</name>
 
     <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
     </properties>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
-            <version>1.0-SNAPSHOT</version>
+            <version>1.0</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
         <dependency>
             <groupId>jline</groupId>
             <artifactId>jline</artifactId>
             <version>2.11</version>
             <type>jar</type>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>3.2</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>3.0.8</version>
         </dependency>
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-interactivity-api</artifactId>
             <version>1.0-alpha-5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>2.4</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-project</artifactId>
             <version>2.2.1</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-clean-plugin</artifactId>
             <version>2.5</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-install-plugin</artifactId>
             <version>2.5.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-deploy-plugin</artifactId>
             <version>2.8.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-artifact</artifactId>
             <version>2.2.1</version>
         </dependency>
     </dependencies>
 
     <build>
         <resources>
             <resource>
                 <directory>src/it</directory>
                 <includes>
                     <include>**/**</include>
                 </includes>
             </resource>
         </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>3.2</version>
                 <configuration>
                     <goalPrefix>ggitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                     <execution>
                         <id>help-goal</id>
                         <goals>
                             <goal>helpmojo</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
         </plugins>
     </build>
     <profiles>
         <profile>
             <id>run-its</id>
             <build>
                 <plugins>                                                      
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-invoker-plugin</artifactId>
                         <version>1.8</version>
                         <configuration>
                             <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
                             <settingsFile>src/it/settings.xml</settingsFile>
                             <debug>true</debug>
                             <showErrors>true</showErrors>
                             <detail>true</detail>
                             <streamLogs>true</streamLogs>
                             <projectsDirectory>src/it/projects</projectsDirectory>
                             <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
                             <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
                             <addTestClassPath>true</addTestClassPath>
                             <preBuildHookScript>setup</preBuildHookScript>
                             <postBuildHookScript>verify</postBuildHookScript>
                             <pomIncludes>
                                 <pomInclude>*/pom.xml</pomInclude>
                             </pomIncludes>
                             <goals>
                                 <goal>clean</goal>
                                 <goal>test-compile</goal>
                             </goals>
                         </configuration>
                         <executions>
                             <execution>
                                 <id>integration-test</id>
                                 <goals>
                                     <goal>install</goal>
                                     <goal>integration-test</goal>
                                     <goal>verify</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
 
             </build>
         </profile>
     </profiles>
 
     <!--
         Sonatype upload details:
         http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
         https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
         https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
         https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
 
             - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
             - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
             - Promote staged artifacts into repository 'Releases'
             - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
             - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
     -->
 
     <distributionManagement>
         <snapshotRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
         </snapshotRepository>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
         </repository>
     </distributionManagement>
     <repositories>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
             <snapshots>
                 <enabled>true</enabled>
             </snapshots>
         </repository>
     </repositories>
 </project>

commit d880cf6026f6c246f62040dd0f72fe5b9138ca9e
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Thu Feb 27 21:37:52 2014 +0000

    Tidy up logging

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
index 3526987..b983e2f 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
@@ -24,104 +24,104 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  *
  */
 public class AbstractFeatureMojo extends AbstractGitflowMojo {
 
     @Parameter(property = "featureName")
     protected String featureName;
 
     @Parameter(defaultValue = "false", property = "enableFeatureVersions")
     protected boolean enableFeatureVersions = false;
 
     @Parameter(defaultValue = "false", property = "pushFeatures")
     protected boolean pushFeatures = false;
 
     public String getFeatureBranchPrefix() {
         String prefix = getGitflowInit().getFeatureBranchPrefix();
         if (StringUtils.isBlank(prefix)) {
             prefix = DEFAULT_FEATURE_BRN_PREFIX;
         }
         return prefix;
     }
 
     public String getFeatureName(String featureLabel) throws MojoFailureException {
         if (StringUtils.isBlank(featureLabel)) {
             throw new MojoFailureException("Missing argument <featureName>");
         }
 
         featureLabel = featureLabel.replaceAll("\\s+", "");
 //        featureLabel = featureLabel.replaceAll("-+", "_");
         return featureLabel;
     }
 
     public String getFeatureVersion(String currentVersion, String featureLabel) throws MojoFailureException {
-        getLog().info("getFeatureVersion from '" + currentVersion + "'");
+        getLog().debug("getFeatureVersion from '" + currentVersion + "'");
         featureLabel = getValidFeatureVersionAnnotation(featureLabel);
-        getLog().info("Feature version annotation '" + featureLabel + "'");
+        getLog().debug("Feature version annotation '" + featureLabel + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         Character annotationSeparator = artifactVersion.getAnnotationRevisionSeparator();
         String buildSpecifier = artifactVersion.getBuildSpecifier();
         Character buildSpecifierSeparator = artifactVersion.getBuildSpecifierSeparator();
 
-        getLog().info("Parsed version = " + artifactVersion.toString());
+        getLog().debug("Parsed version = " + artifactVersion.toString());
         if (!StringUtils.isBlank(annotationAsString)) {
             throw new MojoFailureException("Cannot add feature name to version. An annotation " + annotationAsString + " already exists");
         }
 
         final StringBuilder result = new StringBuilder(30);
 
         result.append(primaryNumbersAsString).append(annotationSeparator).append(featureLabel);
 
         if (buildSpecifier != null) {
             if (buildSpecifierSeparator != null) {
                 result.append(buildSpecifierSeparator);
             }
             result.append(buildSpecifier);
         }
 
         return result.toString();
     }
 
     public String getNonFeatureVersion(String version, String featureLabel) {
-        getLog().info("getNonFeatureVersion from '" + version + "'");
+        getLog().debug("getNonFeatureVersion from '" + version + "'");
         featureLabel = getValidFeatureVersionAnnotation(featureLabel);
-        getLog().info("Feature version annotation '" + featureLabel + "'");
+        getLog().debug("Feature version annotation '" + featureLabel + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifier = artifactVersion.getBuildSpecifier();
         Character buildSpecifierSeparator = artifactVersion.getBuildSpecifierSeparator();
 
-        getLog().info("Parsed version = " + artifactVersion.toString());
+        getLog().debug("Parsed version = " + artifactVersion.toString());
         if (StringUtils.isBlank(annotationAsString)) {
             getLog().warn("Cannot remove feature name from pom version. The version annotation does not exists");
             return version;
         }
 
         if (('-' + featureLabel).equals(annotationAsString)) {
             final StringBuilder result = new StringBuilder(30);
             result.append(primaryNumbersAsString);
 
             if (buildSpecifier != null) {
                 if (buildSpecifierSeparator != null) {
                     result.append(buildSpecifierSeparator);
                 }
                 result.append(buildSpecifier);
             }
 
             return result.toString();
         } else {
             getLog().warn("Cannot remove feature name from pom version. The version annotation [" + annotationAsString + "] does not match the feature label [" + featureLabel + "]");
             return version;
         }
     }      
 
     private String getValidFeatureVersionAnnotation(String featureLabel) {
         featureLabel = featureLabel.trim().replaceAll("\\s+", "_");
         featureLabel = featureLabel.trim().replaceAll("-+", "_");
         return featureLabel;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index cfd5301..ec92ed5 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -60,373 +60,350 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 /**
  *
  */
 public class AbstractGitflowMojo extends AbstractMojo {
 
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
     @Parameter(property = "msgPrefix", defaultValue = "")
     protected String msgPrefix;
 
     @Parameter(property = "msgSuffix", defaultValue = "")
     protected String msgSuffix;
 
     @Parameter(property = "skipBuild", defaultValue = "false")
     protected Boolean skipBuild;
 
     @Parameter(property = "skipDeploy", defaultValue = "false")
     protected Boolean skipDeploy;
 
     /**
      * Component used to prompt for input.
      */
     @Component
     protected Prompter prompter;
 
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
     @Component
     protected ArtifactResolver artifactResolver;
 
     /**
      * @parameter default-value="${project.artifacts}"
      * @required
      * @readonly
      */
     protected Collection artifacts;
 
     /**
      * @parameter expression="${localRepository}"
      */
     protected ArtifactRepository localRepository;
 
     /**
      * @parameter expression="${project.remoteArtifactRepositories}"
      */
     protected List remoteArtifactRepositories;
 
 //    @Component
 //    protected MavenProjectBuilder projectBuilder;
 //    @Component
 //    protected DefaultProjectBuilder projectBuilder;
 //    /**
 //     * @parameter property="plugin"
 //     * @required
 //     */
 //    @Component
 //    protected PluginDescriptor pluginDescriptor;
 //
     /**
      * The projects in the reactor.
      */
     @Parameter(defaultValue = "${reactorProjects}", readonly = true, required = true)
     protected List<MavenProject> reactorProjects;
 
     /**
      * The project builder
      */
     @Component
     private ProjectBuilder projectBuilder;
 
     /**
      * The project currently being build.
      *
      * @parameter expression="${project}"
      * @required
      * @readonly
      */
     @Component
     protected MavenProject project;
 
     /**
      * The current Maven session.
      *
      * @parameter expression="${session}"
      * @required
      * @readonly
      */
     @Component
     protected MavenSession session;
 
     /**
      * The Maven BuildPluginManager component.
      *
      * @component
      * @required
      */
     @Component
     protected BuildPluginManager pluginManager;
 
     private GitflowInit init;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     public void execute() throws MojoExecutionException, MojoFailureException {
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
-            getLog().info("Gitflow pom  '" + project.getBasedir() + "'");
+            getLog().debug("Gitflow pom  '" + project.getBasedir() + "'");
         }
 
         GitflowInit gitflowInit = getGitflowInit();
 
         gitflowInit.requireGitRepo();
 
         if (!gitflowInit.gitflowIsInitialized()) {
             try {
                 gitflowInit.cmdDefault();
             } catch (GitflowException ex) {
                 throw new MojoExecutionException("Failed to inintialise Gitflow " + ex.getMessage(), ex);
             }
         }
 
         gitflowInit.requireCleanWorkingTree();
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     public GitflowInit getGitflowInit() {
         if (null == init) {
             init = new GitflowInit();
             init.setRepoDir(getProject().getBasedir());
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
 
             /* root Git directory may not be the pom directory */
             String dotGitDir = init.executeLocal("git rev-parse --git-dir");
             File dotGitFolder = new File(dotGitDir);
             assert dotGitFolder.exists();
             init.setRepoDir(dotGitFolder.getParentFile());
         }
         return init;
     }
 
     public void setVersion(String version) throws MojoExecutionException, MojoFailureException {
-        getLog().info("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
+        getLog().debug("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.codehaus.mojo"),
                         artifactId("versions-maven-plugin"),
                         version("2.1")
                 ),
                 goal("set"),
                 configuration(
                         element(name("generateBackupPoms"), "false"),
                         element(name("newVersion"), version)
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
-        getLog().info("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
+        getLog().debug("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
         }
         /* We don't want to fail maybe the version was manually set correctly */
 //        else {
 //            throw new MojoFailureException("Failed to update poms to version " + version);
 //        }
     }
 
     public void clean() throws MojoExecutionException, MojoFailureException {
-        getLog().info("START org.apache.maven.plugins:maven-clean-plugin:2.5:clean");
+        getLog().debug("START org.apache.maven.plugins:maven-clean-plugin:2.5:clean");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);        
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-clean-plugin"),
                         version("2.5")
                 ),
                 goal("clean"),
                 configuration(
                         element(name("skip"), "false")
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
-        getLog().info("DONE org.apache.maven.plugins:maven-clean-plugin:2.5:clean");
+        getLog().debug("DONE org.apache.maven.plugins:maven-clean-plugin:2.5:clean");
     }
 
     public void install() throws MojoExecutionException, MojoFailureException {
-        getLog().info("START org.apache.maven.plugins:maven-install-plugin:2.5.1:install");
+        getLog().debug("START org.apache.maven.plugins:maven-install-plugin:2.5.1:install");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-install-plugin"),
                         version("2.5.1")
                 ),
                 goal("install"),
                 configuration(
                         element(name("skip"), "false")
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
-        getLog().info("DONE org.apache.maven.plugins:maven-install-plugin:2.5.1:install");
+        getLog().debug("DONE org.apache.maven.plugins:maven-install-plugin:2.5.1:install");
     }
 
     public void deploy() throws MojoExecutionException, MojoFailureException {
-        getLog().info("START org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy");
+        getLog().debug("START org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         session.setCurrentProject(rootProject);
         session.setProjects(reactorProjects);        
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-deploy-plugin"),
                         version("2.8.1")
                 ),
                 goal("deploy"),
                 configuration(
                         element(name("skip"), "false"),
                         element(name("retryFailedDeploymentCount"), "1")
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
-        getLog().info("DONE org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy");
+        getLog().debug("DONE org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy");
     }
 
     public String getReleaseVersion(String version) throws MojoFailureException {
-        getLog().info("Current Develop version '" + version + "'");
+        getLog().debug("Current Develop version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
             getLog().warn("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
     public void reloadReactorProjects() throws MojoExecutionException {
-        getLog().info("Reloading poms...");
+        getLog().debug("Reloading poms...");
 
         List<MavenProject> newReactorProjects;
         try {
             newReactorProjects = buildReactorProjects();
         } catch (ProjectBuildingException e) {
-            getLog().info("Re-parse aborted due to malformed pom.xml file(s)", e);
+            getLog().error("Re-parse aborted due to malformed pom.xml file(s)", e);
             throw new MojoExecutionException("Re-parse aborted due to malformed pom.xml file(s)", e);
         } catch (CycleDetectedException e) {
-            getLog().info("Re-parse aborted due to dependency cycle in project model", e);
+            getLog().error("Re-parse aborted due to dependency cycle in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to dependency cycle in project model", e);
         } catch (DuplicateProjectException e) {
-            getLog().info("Re-parse aborted due to duplicate projects in project model", e);
+            getLog().error("Re-parse aborted due to duplicate projects in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to duplicate projects in project model", e);
         } catch (Exception e) {
-            getLog().info("Re-parse aborted due a problem that prevented sorting the project model", e);
+            getLog().error("Re-parse aborted due a problem that prevented sorting the project model", e);
             throw new MojoExecutionException("Re-parse aborted due a problem that prevented sorting the project model", e);
         }
         MavenProject newProject = findProject(newReactorProjects, this.project);
         if (newProject == null) {
             throw new MojoExecutionException("A pom.xml change appears to have removed " + this.project.getId() + " from the build plan.");
         }
 
         this.project = newProject;
         this.reactorProjects = newReactorProjects;
         
-        getLog().info("Reloading poms complete...");
+        getLog().debug("Reloading poms complete...");
     }
 
     private List<MavenProject> buildReactorProjects() throws Exception {
 
         List<MavenProject> projects = new ArrayList<MavenProject>();
         for (MavenProject p : reactorProjects) {
             ProjectBuildingRequest request = new DefaultProjectBuildingRequest();
 
             request.setProcessPlugins(true);
             request.setProfiles(request.getProfiles());
             request.setActiveProfileIds(session.getRequest().getActiveProfiles());
             request.setInactiveProfileIds(session.getRequest().getInactiveProfiles());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setSystemProperties(session.getSystemProperties());
             request.setUserProperties(session.getUserProperties());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setPluginArtifactRepositories(session.getRequest().getPluginArtifactRepositories());
             request.setRepositorySession(session.getRepositorySession());
             request.setLocalRepository(localRepository);
             request.setBuildStartTime(session.getRequest().getStartTime());
             request.setResolveDependencies(true);
             request.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_STRICT);
             projects.add(projectBuilder.build(p.getFile(), request).getProject());
         }
         return new ProjectSorter(projects).getSortedProjects();
     }
 
     private MavenProject findProject(List<MavenProject> newReactorProjects, MavenProject oldProject) {
         for (MavenProject newProject : newReactorProjects) {
             if (oldProject.getGroupId().equals(newProject.getGroupId())
                     && oldProject.getArtifactId().equals(newProject.getArtifactId())) {
                 return newProject;
             }
         }
         return null;
     }
 
-    private boolean buildPlanEqual(List<MavenProject> newPlan, List<MavenProject> oldPlan) {
-        if (newPlan.size() != oldPlan.size()) {
-            return false;
-        }
-        int seq = 0;
-        for (Iterator<MavenProject> i = newPlan.iterator(), j = oldPlan.iterator(); i.hasNext() && j.hasNext();) {
-            MavenProject left = i.next();
-            MavenProject right = j.next();
-            getLog().debug(
-                    "[" + (seq++) + "] = " + left.equals(right) + (left == right ? " same" : " diff") + " : "
-                    + left.getName() + "[" + left.getDependencies().size() + "], " + right.getName()
-                    + "["
-                    + right.getDependencies().size() + "]");
-            if (!left.equals(right)) {
-                return false;
-            }
-            if (left.getDependencies().size() != right.getDependencies().size()) {
-                getLog().info("Dependency tree of " + left.getId() + " has been modified");
-            }
-        }
-        return true;
-    }
-
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java
index 67a739f..d6c1faf 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java
@@ -24,29 +24,29 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  *
  */
 public class AbstractReleaseMojo extends AbstractGitflowMojo {
 
     @Parameter(property = "releaseName")
     protected String releaseName;
 
     @Parameter(defaultValue = "false", property = "pushReleases")
     private boolean pushReleases = false;
 
     public String getReleaseBranchPrefix() {
         String prefix = getGitflowInit().getReleaseBranchPrefix();
         if (StringUtils.isBlank(prefix)) {
             prefix = DEFAULT_RELEASE_BRN_PREFIX;
         }
         return prefix;
     }
 
     public String getNextDevelopmentVersion(String version) throws MojoFailureException {
-        getLog().info("Project version '" + version + "'");
+        getLog().debug("Project version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
         GenericArtifactVersion nextDevelopVersion = artifactVersion.upgradeLeastSignificantNumber();
 
-        getLog().info("Project version '" + nextDevelopVersion + "'");
+        getLog().debug("Project version '" + nextDevelopVersion + "'");
         return nextDevelopVersion.toString();
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
index 8892f57..57f3503 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
@@ -28,79 +28,78 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  *
  */
 @Mojo(name = "feature-finish", aggregator = true)
 public class FeatureFinishMojo extends AbstractFeatureMojo {
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().info("Finishing feature '" + featureName + "'");
 
         String featureBranchPrefix = getFeatureBranchPrefix();
         if (StringUtils.isBlank(featureName)) {
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (currentBranch.startsWith(featureBranchPrefix)) {
                 featureName = currentBranch;
             } else {
                 featureName = "";
             }
         } else {
             featureName = getFeatureName(featureName);
         }
 
         List<String> featureBranches = getGitflowInit().gitLocalFeatureBranches();
 
         featureName = promptForExistingFeatureName(featureBranches, featureName);
 
         if (enableFeatureVersions) {
             /* Switch to develop branch and get its current version */
             getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
             reloadReactorProjects();
             String developVersion = project.getVersion(); 
-            getLog().info("develop version = " + developVersion);                        
+            getLog().debug("develop version = " + developVersion);                        
             
             /* Switch to feature branch and get its current version */
             getGitflowInit().executeLocal("git checkout " + featureName);
             reloadReactorProjects();
             String featureVersion = project.getVersion();  
-            getLog().info("feature version = " + featureVersion);                        
+            getLog().debug("feature version = " + featureVersion);                        
 
-            String nonFeatureVersion = getNonFeatureVersion(featureVersion, featureName.replace(featureBranchPrefix, ""));
             setVersion(developVersion);
         }
 
         if (!skipBuild) {
             clean();
             install();
         } else {
             getLog().debug("Skipping both install and deploy");
         }
 
         GitflowFeature gitflowFeature = new GitflowFeature();
         gitflowFeature.setInit(getGitflowInit());
         gitflowFeature.setMsgPrefix(getMsgPrefix());
         gitflowFeature.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowFeature.finish(featureName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
     }
 
     private String promptForExistingFeatureName(List<String> featureBranches, String defaultFeatureName) throws MojoFailureException {
         String message = "Please select a feature branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, featureBranches, defaultFeatureName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading feature name from command line " + e.getMessage());
         }
 
         return name;
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
index fac811e..42f671c 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
@@ -30,68 +30,68 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  *
  */
 @Mojo(name = "feature-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class FeatureStartMojo extends AbstractFeatureMojo {
 
     @Parameter(property = "startCommit", defaultValue = "")
     private String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         String prefix = getFeatureBranchPrefix();
         if (StringUtils.isBlank(featureName)) {
             System.out.println("prefix = " + prefix);
             System.out.println("prompter = " + prompter);
             String message = "What is the feature branch name? " + prefix;
             System.out.println("message = " + message);
             try {
                 featureName = prompter.prompt(message);
                 if (StringUtils.isBlank(featureName)) {
                     throw new MojoFailureException("Parameter <featureName> cannot be null or empty.");
                 }
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading feature name from command line " + ex.getMessage(), ex);
             }
         }
         featureName = getFeatureName(featureName);
 
         getLog().info("Starting feature '" + featureName + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowFeature gitflowFeature = new GitflowFeature();
         gitflowFeature.setInit(getGitflowInit());
         gitflowFeature.setMsgPrefix(getMsgPrefix());
         gitflowFeature.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowFeature.start(featureName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         if (enableFeatureVersions) {
             /* Already on feature branch so just get its current version */
             Model model = MavenUtil.readPom(reactorProjects);
             String currentVersion = model.getVersion();
 
             String featureVersion = getFeatureVersion(currentVersion, featureName);
             setVersion(featureVersion);
 
             if (getGitflowInit().gitRemoteBranchExists(prefix + featureName)) {
                 getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + featureName);
             }
 
             /* print feature version */
             reloadReactorProjects();
-            System.out.println("project = " + project.getVersion());
+            getLog().debug("project = " + project.getVersion());
         }
     }
 
     public String getFeatureName() {
         return featureName;
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
index 006ef8e..3105f0e 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
@@ -31,110 +31,110 @@ import org.codehaus.plexus.components.interactivity.PrompterException;
 /**
  *
  */
 @Mojo(name = "hotfix-finish", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class HotfixFinishMojo extends HotfixAbstractMojo {
 
     protected String hotfixName;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().info("Finishing hotfix '" + hotfixName + "'");
 
         /* Get hotfix branch name */
         List<String> hotfixBranches = getGitflowInit().gitLocalHotfixBranches();
         if (hotfixBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         } else if (hotfixBranches.size() == 1) {
             hotfixName = hotfixBranches.get(0);
         } else {
             hotfixName = promptForExistingHotfixName(hotfixBranches, hotfixName);
         }
         
         /* Switch to hotfix branch and set poms to hotfix version */
         getGitflowInit().executeLocal("git checkout " + hotfixName);
         reloadReactorProjects();
         String hotfixVersion = project.getVersion();
-        getLog().info("hotfix version = " + hotfixVersion);
+        getLog().debug("hotfix snapshot version = " + hotfixVersion);
         String hotfixReleaseVersion = getReleaseVersion(hotfixVersion);
-        getLog().info("hotfix release version = " + hotfixReleaseVersion);
+        getLog().debug("hotfix release version = " + hotfixReleaseVersion);
         setVersion(hotfixReleaseVersion); 
 
         /* Switch to develop branch and get current develop version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
-        getLog().info("develop version = " + developVersion);
+        getLog().debug("develop version = " + developVersion);
         
         /* Set develop branch to hotfix version to prevent merge conflicts */
         setVersion(hotfixReleaseVersion);
 
         /* finish hotfix */
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowHotfix.finish(hotfixName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             getLog().error("Merge conflicts exist.", gmce);
             throw new MojoFailureException(gmce.getMessage());
             
 //            getLog().info("Attempting to auto-resolve any pom version conflicts.", gmce);
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            fixPomMergeConflicts.setInit(getGitflowInit());
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
         
         /* Set develop branch back to original develop version */
         setVersion(developVersion); 
         if (getGitflowInit().gitRemoteBranchExists(developBranch)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + developBranch);
         }        
         
         /* Switch to hotfix tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + hotfixReleaseVersion);
         reloadReactorProjects();        
 
         /* install or deploy */
         if (skipDeploy == false) {
             clean();
             deploy();
         } else if (skipBuild == false) {
             clean();
             install();
         } else {
             getLog().debug("Skipping both install and deploy");
         }
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingHotfixName(List<String> hotfixBranches, String defaultHotfixName) throws MojoFailureException {
         String message = "Please select a hotfix branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, hotfixBranches, defaultHotfixName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading hotfix name from command line " + e.getMessage());
         }
 
         return name;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
index 043853d..678d668 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
@@ -30,64 +30,64 @@ import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
 /**
  *
  */
 @Mojo(name = "hotfix-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class HotfixStartMojo extends HotfixAbstractMojo {
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         /* Switch to master branch and get current version i.e. lastest tag */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getMasterBrnName());
         reloadReactorProjects();
         String masterVersion = project.getVersion();
-        getLog().info("master version = " + masterVersion);      
+        getLog().debug("master version = " + masterVersion);      
 
         String hotfixVersion = getHotfixVersion(masterVersion);
         String hotfixSnapshotVersion = getHotfixSnapshotVersion(masterVersion);
 
         getLog().info("Starting hotfix '" + hotfixVersion + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowHotfix.start(hotfixVersion);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         setVersion(hotfixSnapshotVersion);
 
         String prefix = getGitflowInit().getHotfixBranchPrefix();
         if (getGitflowInit().gitRemoteBranchExists(prefix + hotfixVersion)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + hotfixVersion);
         }
     }
 
     private String getHotfixVersion(String currentVersion) throws MojoFailureException {
-        getLog().info("getHotfixVersion from '" + currentVersion + "'");
+        getLog().debug("getHotfixVersion from '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
         artifactVersion.upgradeLeastSignificantNumber();
 
         return artifactVersion.toString();
     }
 
     private String getHotfixSnapshotVersion(String currentVersion) throws MojoFailureException {
-        getLog().info("getHotfixSnapshotVersion from '" + currentVersion + "'");
+        getLog().debug("getHotfixSnapshotVersion from '" + currentVersion + "'");
 
         final StringBuilder result = new StringBuilder(30);
 
         String hotfixVersion = getHotfixVersion(currentVersion);
         result.append(hotfixVersion);
 
         result.append(DEFAULT_VERSION_COMPONENT_SEPARATOR).append(SNAPSHOT_QUALIFIER);
 
         return result.toString();
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index 5a98a1e..2bd1efc 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -30,110 +30,110 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  *
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().info("Finishing release '" + releaseName + "'");
 
         /* Get release branch name */
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
         if (releaseBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         } else if (releaseBranches.size() == 1) {
             releaseName = releaseBranches.get(0);
         } else {
             releaseName = promptForExistingReleaseName(releaseBranches, releaseName);
         }
 
         /* Switch to develop branch and get its current version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
-        getLog().info("develop version = " + developVersion);
+        getLog().debug("develop version = " + developVersion);
 
         /* Switch to release branch and set poms to release version */
         getGitflowInit().executeLocal("git checkout " + releaseName);
         reloadReactorProjects();
         String releaseVersion = getReleaseVersion(project.getVersion());
-        getLog().info("release version = " + releaseVersion);
+        getLog().debug("release version = " + releaseVersion);
 
         setVersion(releaseVersion);
 
         /* finish release */
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowRelease.finish(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
         /* set poms to next develop version */
         String nextDevelopVersion = getNextDevelopVersion(developVersion);
         reloadReactorProjects();
         setVersion(nextDevelopVersion);
 
         /* Switch to release tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);
         reloadReactorProjects();
         String tagVersion = project.getVersion();
-        getLog().info("tag version = " + tagVersion);
+        getLog().debug("tag version = " + tagVersion);
 
         /* install or deploy */
         if (skipDeploy == false) {
             clean();
             deploy();
         } else if (skipBuild == false) {
             clean();
             install();
         } else {
             getLog().debug("Skipping both install and deploy for tag " + tagVersion);
         }
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingReleaseName(List<String> releaseBranches, String defaultReleaseName) throws MojoFailureException {
         String message = "Please select a release branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, releaseBranches, defaultReleaseName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading release name from command line " + e.getMessage());
         }
 
         return name;
     }
 
     private String getNextDevelopVersion(String developVersion) {
-        getLog().info("Current Develop version '" + developVersion + "'");
+        getLog().debug("Current Develop version '" + developVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(developVersion);
         artifactVersion.upgradeLeastSignificantPrimaryNumber();
 
         return artifactVersion.toString();
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
index 8f25540..cb97374 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
@@ -31,81 +31,81 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  *
  */
 @Mojo(name = "release-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class ReleaseStartMojo extends AbstractReleaseMojo {
 
     @Parameter(property = "startCommit", defaultValue = "")
     private String startCommit;
 
     @Parameter(defaultValue = "false", property = "allowSnapshots")
     private boolean allowSnapshots = false;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         /* Switch to develop branch and get its current version */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
         reloadReactorProjects();
         String developVersion = project.getVersion();
-        getLog().info("develop version = " + developVersion);
+        getLog().debug("develop version = " + developVersion);
 
         /* Get suggested release version */
         String releaseVersion = getReleaseVersion(developVersion);
-        getLog().info("release version = " + releaseVersion);
+        getLog().debug("release version = " + releaseVersion);
 //        String nextDevelopmentVersion = getNextDevelopmentVersion(project.getVersion());
 
         /* create release branch */
         String prefix = getReleaseBranchPrefix();
         if (StringUtils.isBlank(releaseName)) {
             String message = "What is the release branch name? " + prefix;
             try {
                 releaseName = prompter.prompt(message, releaseVersion);
                 if (StringUtils.isBlank(releaseName)) {
                     throw new MojoFailureException("Parameter <releaseName> cannot be null or empty.");
                 }
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading release name from command line " + ex.getMessage(), ex);
             }
         }
 
         try {
             new GenericArtifactVersion(releaseName);
         } catch (IllegalArgumentException e) {
             throw new MojoExecutionException("Provided releaseName " + releaseName + " is not a valid Maven version.");
         }
 
         getLog().info("Starting release '" + releaseName + "'");
-        getLog().info("msgPrefix '" + getMsgPrefix() + "'");
-        getLog().info("msgSuffix '" + getMsgSuffix() + "'");
+        getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
+        getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowRelease.start(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         // current branch should be the release branch
         String releaseBranch = getGitflowInit().gitCurrentBranch();
         if (!releaseBranch.startsWith(prefix)) {
             throw new MojoFailureException("Failed to create release version.");
         }
 
 //        // checkout develop branch and update it's version
 //        String developBranch = (String) getGitflowInit().getDevelopBrnName();
 //        getGitflowInit().executeLocal("git checkout " + developBranch);
 //        setVersion(nextDevelopmentVersion);
 //
 //        // checkout release branch again
 //        getGitflowInit().executeLocal("git checkout " + releaseBranch);
     }
 
     public String getReleaseName() {
         return releaseName;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
index c6259d3..3e00500 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
@@ -32,106 +32,106 @@ import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
 /**
  *
  */
 @Mojo(name = "support-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class SupportStartMojo extends AbstractGitflowMojo {
 
     @Parameter(property = "startCommit", defaultValue = "")
     private String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         String prefix = getGitflowInit().getSupportBranchPrefix();
 
         List<String> tags = getGitflowInit().gitAllTags();
         if (tags.isEmpty()) {
             throw new MojoFailureException("Could not find any tags to create support branch from!");
         }
 
         String baseName = promptForExistingTagName(tags, tags.get(tags.size() - 1));
 
         getGitflowInit().executeLocal("git checkout " + baseName);
 
         String supportVersion = getSupportVersion(project.getVersion());
         String supportSnapshotVersion = getSupportSnapshotVersion(project.getVersion());
 
         getLog().info("Starting support branch '" + supportVersion + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowSupport gitflowSupport = new GitflowSupport();
         gitflowSupport.setInit(getGitflowInit());
         gitflowSupport.setMsgPrefix(getMsgPrefix());
         gitflowSupport.setMsgSuffix(getMsgSuffix());
 
         if (!StringUtils.isEmpty(startCommit)) {
             gitflowSupport.setStartCommit(startCommit);
         }
 
         try {
             gitflowSupport.start(supportVersion);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         setVersion(supportSnapshotVersion);
 
         if (getGitflowInit().gitRemoteBranchExists(prefix + supportVersion)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + supportVersion);
         }
     }
 
     private String promptForExistingTagName(List<String> branches, String defaultBrnName) throws MojoFailureException {
         String message = "Please select the Tag to create the support branch from?";
 
         String name = "";
         try {
             name = prompter.prompt(message, branches, defaultBrnName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading selected Tag name from command line " + e.getMessage());
         }
 
         return name;
     }
 
     private String getSupportVersion(String currentVersion) throws MojoFailureException {
-        getLog().info("getSupportVersion from '" + currentVersion + "'");
+        getLog().debug("getSupportVersion from '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         StringBuilder sb = new StringBuilder(10);
 //        int pCount = artifactVersion.getPrimaryNumberCount();
 //        for (int i = 0; i < pCount; i++) {
 //            Integer primaryNumber = artifactVersion.getPrimaryNumber(i);
 //            if (i == (pCount - 1)) {
 //                sb.append('x');
 //            } else {
 //                sb.append(primaryNumber);
 //            }
 //        }
         sb.append(artifactVersion.getPrimaryNumbersAsString()).append('.').append('x');
         sb.append(artifactVersion.getAnnotationAsString()).append(artifactVersion.getBuildSpecifierAsString());
 
         return sb.toString();
     }
 
     private String getSupportSnapshotVersion(String currentVersion) throws MojoFailureException {
-        getLog().info("getSupportSnapshotVersion from '" + currentVersion + "'");
+        getLog().debug("getSupportSnapshotVersion from '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         final StringBuilder result = new StringBuilder(30);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         if (null == artifactVersion.getAnnotation()) {
             result.append(primaryNumbersAsString).append('.').append('0');
         } else {
             artifactVersion.upgradeAnnotationRevision();
             result.append(artifactVersion.toString());
         }
         result.append(DEFAULT_VERSION_COMPONENT_SEPARATOR).append(SNAPSHOT_QUALIFIER);
 
         return result.toString();
     }
 }

commit c9f82c34ee5d67670fbbdeaac8dff98263b7a6a8
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Thu Feb 27 00:12:18 2014 +0000

    hotfix fixes

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
index 41e7985..006ef8e 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
@@ -31,98 +31,110 @@ import org.codehaus.plexus.components.interactivity.PrompterException;
 /**
  *
  */
 @Mojo(name = "hotfix-finish", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class HotfixFinishMojo extends HotfixAbstractMojo {
 
     protected String hotfixName;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().info("Finishing hotfix '" + hotfixName + "'");
 
         /* Get hotfix branch name */
         List<String> hotfixBranches = getGitflowInit().gitLocalHotfixBranches();
         if (hotfixBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         } else if (hotfixBranches.size() == 1) {
             hotfixName = hotfixBranches.get(0);
         } else {
             hotfixName = promptForExistingHotfixName(hotfixBranches, hotfixName);
         }
-
-        /* Switch to develop branch and get current develop version */
-        String developBranch = getGitflowInit().getDevelopBranch();
-        getGitflowInit().executeLocal("git checkout " + developBranch);
-        reloadReactorProjects();
-        String developVersion = project.getVersion();
-        getLog().info("develop version = " + developVersion);
-
+        
         /* Switch to hotfix branch and set poms to hotfix version */
         getGitflowInit().executeLocal("git checkout " + hotfixName);
         reloadReactorProjects();
         String hotfixVersion = project.getVersion();
         getLog().info("hotfix version = " + hotfixVersion);
         String hotfixReleaseVersion = getReleaseVersion(hotfixVersion);
         getLog().info("hotfix release version = " + hotfixReleaseVersion);
+        setVersion(hotfixReleaseVersion); 
+
+        /* Switch to develop branch and get current develop version */
+        String developBranch = getGitflowInit().getDevelopBranch();
+        getGitflowInit().executeLocal("git checkout " + developBranch);
+        reloadReactorProjects();
+        String developVersion = project.getVersion();
+        getLog().info("develop version = " + developVersion);
+        
+        /* Set develop branch to hotfix version to prevent merge conflicts */
         setVersion(hotfixReleaseVersion);
 
         /* finish hotfix */
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowHotfix.finish(hotfixName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
-            getLog().info("Attempting to auto-resolve any pom version conflicts.", gmce);
-            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
-            fixPomMergeConflicts.setInit(getGitflowInit());
-            try {
-                fixPomMergeConflicts.resolveConflicts2();
-            } catch (GitflowException ge) {
-                throw new MojoFailureException(ge.getMessage());
-            } catch (GitflowMergeConflictException gmce2) {
-                throw new MojoFailureException(gmce2.getMessage());
-            }
+            getLog().error("Merge conflicts exist.", gmce);
+            throw new MojoFailureException(gmce.getMessage());
+            
+//            getLog().info("Attempting to auto-resolve any pom version conflicts.", gmce);
+//            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
+//            fixPomMergeConflicts.setInit(getGitflowInit());
+//            try {
+//                fixPomMergeConflicts.resolveConflicts2();
+//            } catch (GitflowException ge) {
+//                throw new MojoFailureException(ge.getMessage());
+//            } catch (GitflowMergeConflictException gmce2) {
+//                throw new MojoFailureException(gmce2.getMessage());
+//            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
         
+        /* Set develop branch back to original develop version */
+        setVersion(developVersion); 
+        if (getGitflowInit().gitRemoteBranchExists(developBranch)) {
+            getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + developBranch);
+        }        
+        
         /* Switch to hotfix tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + hotfixReleaseVersion);
         reloadReactorProjects();        
 
         /* install or deploy */
         if (skipDeploy == false) {
             clean();
             deploy();
         } else if (skipBuild == false) {
             clean();
             install();
         } else {
             getLog().debug("Skipping both install and deploy");
         }
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingHotfixName(List<String> hotfixBranches, String defaultHotfixName) throws MojoFailureException {
         String message = "Please select a hotfix branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, hotfixBranches, defaultHotfixName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading hotfix name from command line " + e.getMessage());
         }
 
         return name;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
index 1f20186..043853d 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
@@ -30,73 +30,64 @@ import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
 /**
  *
  */
 @Mojo(name = "hotfix-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class HotfixStartMojo extends HotfixAbstractMojo {
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         /* Switch to master branch and get current version i.e. lastest tag */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getMasterBrnName());
         reloadReactorProjects();
         String masterVersion = project.getVersion();
         getLog().info("master version = " + masterVersion);      
 
         String hotfixVersion = getHotfixVersion(masterVersion);
         String hotfixSnapshotVersion = getHotfixSnapshotVersion(masterVersion);
 
         getLog().info("Starting hotfix '" + hotfixVersion + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowHotfix.start(hotfixVersion);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         setVersion(hotfixSnapshotVersion);
 
         String prefix = getGitflowInit().getHotfixBranchPrefix();
         if (getGitflowInit().gitRemoteBranchExists(prefix + hotfixVersion)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + hotfixVersion);
         }
     }
 
     private String getHotfixVersion(String currentVersion) throws MojoFailureException {
         getLog().info("getHotfixVersion from '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
+        artifactVersion.upgradeLeastSignificantNumber();
 
-        final StringBuilder result = new StringBuilder(30);
-        if (artifactVersion.getPrimaryNumberCount() < 3) {
-            String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
-            String annotationAsString = artifactVersion.getAnnotationAsString();
-            result.append(primaryNumbersAsString).append('.').append('0');
-            result.append(annotationAsString);
-        } else {
-            artifactVersion.upgradeAnnotationRevision();
-            result.append(artifactVersion.toString());
-        }
-        return result.toString();
+        return artifactVersion.toString();
     }
 
     private String getHotfixSnapshotVersion(String currentVersion) throws MojoFailureException {
         getLog().info("getHotfixSnapshotVersion from '" + currentVersion + "'");
 
         final StringBuilder result = new StringBuilder(30);
 
         String hotfixVersion = getHotfixVersion(currentVersion);
         result.append(hotfixVersion);
 
         result.append(DEFAULT_VERSION_COMPONENT_SEPARATOR).append(SNAPSHOT_QUALIFIER);
 
         return result.toString();
     }
 }

commit 40375257e271ff007c1196cef8d51b135fea2005
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Wed Feb 26 23:31:16 2014 +0000

    Mojo executor fix

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index bfebeea..cfd5301 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -60,367 +60,373 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 /**
  *
  */
 public class AbstractGitflowMojo extends AbstractMojo {
 
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
     @Parameter(property = "msgPrefix", defaultValue = "")
     protected String msgPrefix;
 
     @Parameter(property = "msgSuffix", defaultValue = "")
     protected String msgSuffix;
 
     @Parameter(property = "skipBuild", defaultValue = "false")
     protected Boolean skipBuild;
 
     @Parameter(property = "skipDeploy", defaultValue = "false")
     protected Boolean skipDeploy;
 
     /**
      * Component used to prompt for input.
      */
     @Component
     protected Prompter prompter;
 
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
     @Component
     protected ArtifactResolver artifactResolver;
 
     /**
      * @parameter default-value="${project.artifacts}"
      * @required
      * @readonly
      */
     protected Collection artifacts;
 
     /**
      * @parameter expression="${localRepository}"
      */
     protected ArtifactRepository localRepository;
 
     /**
      * @parameter expression="${project.remoteArtifactRepositories}"
      */
     protected List remoteArtifactRepositories;
 
 //    @Component
 //    protected MavenProjectBuilder projectBuilder;
 //    @Component
 //    protected DefaultProjectBuilder projectBuilder;
 //    /**
 //     * @parameter property="plugin"
 //     * @required
 //     */
 //    @Component
 //    protected PluginDescriptor pluginDescriptor;
 //
     /**
      * The projects in the reactor.
      */
     @Parameter(defaultValue = "${reactorProjects}", readonly = true, required = true)
     protected List<MavenProject> reactorProjects;
 
     /**
      * The project builder
      */
     @Component
     private ProjectBuilder projectBuilder;
 
     /**
      * The project currently being build.
      *
      * @parameter expression="${project}"
      * @required
      * @readonly
      */
     @Component
     protected MavenProject project;
 
     /**
      * The current Maven session.
      *
      * @parameter expression="${session}"
      * @required
      * @readonly
      */
     @Component
     protected MavenSession session;
 
     /**
      * The Maven BuildPluginManager component.
      *
      * @component
      * @required
      */
     @Component
     protected BuildPluginManager pluginManager;
 
     private GitflowInit init;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     public void execute() throws MojoExecutionException, MojoFailureException {
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             getLog().info("Gitflow pom  '" + project.getBasedir() + "'");
         }
 
         GitflowInit gitflowInit = getGitflowInit();
 
         gitflowInit.requireGitRepo();
 
         if (!gitflowInit.gitflowIsInitialized()) {
             try {
                 gitflowInit.cmdDefault();
             } catch (GitflowException ex) {
                 throw new MojoExecutionException("Failed to inintialise Gitflow " + ex.getMessage(), ex);
             }
         }
 
         gitflowInit.requireCleanWorkingTree();
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     public GitflowInit getGitflowInit() {
         if (null == init) {
             init = new GitflowInit();
             init.setRepoDir(getProject().getBasedir());
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
 
             /* root Git directory may not be the pom directory */
             String dotGitDir = init.executeLocal("git rev-parse --git-dir");
             File dotGitFolder = new File(dotGitDir);
             assert dotGitFolder.exists();
             init.setRepoDir(dotGitFolder.getParentFile());
         }
         return init;
     }
 
     public void setVersion(String version) throws MojoExecutionException, MojoFailureException {
         getLog().info("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.codehaus.mojo"),
                         artifactId("versions-maven-plugin"),
                         version("2.1")
                 ),
                 goal("set"),
                 configuration(
                         element(name("generateBackupPoms"), "false"),
                         element(name("newVersion"), version)
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
         getLog().info("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
         }
         /* We don't want to fail maybe the version was manually set correctly */
 //        else {
 //            throw new MojoFailureException("Failed to update poms to version " + version);
 //        }
     }
 
     public void clean() throws MojoExecutionException, MojoFailureException {
         getLog().info("START org.apache.maven.plugins:maven-clean-plugin:2.5:clean");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
+        session.setCurrentProject(rootProject);
+        session.setProjects(reactorProjects);        
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-clean-plugin"),
                         version("2.5")
                 ),
                 goal("clean"),
                 configuration(
                         element(name("skip"), "false")
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
         getLog().info("DONE org.apache.maven.plugins:maven-clean-plugin:2.5:clean");
     }
 
     public void install() throws MojoExecutionException, MojoFailureException {
         getLog().info("START org.apache.maven.plugins:maven-install-plugin:2.5.1:install");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
+        session.setCurrentProject(rootProject);
+        session.setProjects(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-install-plugin"),
                         version("2.5.1")
                 ),
                 goal("install"),
                 configuration(
                         element(name("skip"), "false")
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
         getLog().info("DONE org.apache.maven.plugins:maven-install-plugin:2.5.1:install");
     }
 
     public void deploy() throws MojoExecutionException, MojoFailureException {
         getLog().info("START org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
+        session.setCurrentProject(rootProject);
+        session.setProjects(reactorProjects);        
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-deploy-plugin"),
                         version("2.8.1")
                 ),
                 goal("deploy"),
                 configuration(
                         element(name("skip"), "false"),
                         element(name("retryFailedDeploymentCount"), "1")
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
         getLog().info("DONE org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy");
     }
 
     public String getReleaseVersion(String version) throws MojoFailureException {
         getLog().info("Current Develop version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
             getLog().warn("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
     public void reloadReactorProjects() throws MojoExecutionException {
         getLog().info("Reloading poms...");
 
         List<MavenProject> newReactorProjects;
         try {
             newReactorProjects = buildReactorProjects();
         } catch (ProjectBuildingException e) {
             getLog().info("Re-parse aborted due to malformed pom.xml file(s)", e);
             throw new MojoExecutionException("Re-parse aborted due to malformed pom.xml file(s)", e);
         } catch (CycleDetectedException e) {
             getLog().info("Re-parse aborted due to dependency cycle in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to dependency cycle in project model", e);
         } catch (DuplicateProjectException e) {
             getLog().info("Re-parse aborted due to duplicate projects in project model", e);
             throw new MojoExecutionException("Re-parse aborted due to duplicate projects in project model", e);
         } catch (Exception e) {
             getLog().info("Re-parse aborted due a problem that prevented sorting the project model", e);
             throw new MojoExecutionException("Re-parse aborted due a problem that prevented sorting the project model", e);
         }
         MavenProject newProject = findProject(newReactorProjects, this.project);
         if (newProject == null) {
             throw new MojoExecutionException("A pom.xml change appears to have removed " + this.project.getId() + " from the build plan.");
         }
 
         this.project = newProject;
         this.reactorProjects = newReactorProjects;
         
         getLog().info("Reloading poms complete...");
     }
 
     private List<MavenProject> buildReactorProjects() throws Exception {
 
         List<MavenProject> projects = new ArrayList<MavenProject>();
         for (MavenProject p : reactorProjects) {
             ProjectBuildingRequest request = new DefaultProjectBuildingRequest();
 
             request.setProcessPlugins(true);
             request.setProfiles(request.getProfiles());
             request.setActiveProfileIds(session.getRequest().getActiveProfiles());
             request.setInactiveProfileIds(session.getRequest().getInactiveProfiles());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setSystemProperties(session.getSystemProperties());
             request.setUserProperties(session.getUserProperties());
             request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
             request.setPluginArtifactRepositories(session.getRequest().getPluginArtifactRepositories());
             request.setRepositorySession(session.getRepositorySession());
             request.setLocalRepository(localRepository);
             request.setBuildStartTime(session.getRequest().getStartTime());
             request.setResolveDependencies(true);
             request.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_STRICT);
             projects.add(projectBuilder.build(p.getFile(), request).getProject());
         }
         return new ProjectSorter(projects).getSortedProjects();
     }
 
     private MavenProject findProject(List<MavenProject> newReactorProjects, MavenProject oldProject) {
         for (MavenProject newProject : newReactorProjects) {
             if (oldProject.getGroupId().equals(newProject.getGroupId())
                     && oldProject.getArtifactId().equals(newProject.getArtifactId())) {
                 return newProject;
             }
         }
         return null;
     }
 
     private boolean buildPlanEqual(List<MavenProject> newPlan, List<MavenProject> oldPlan) {
         if (newPlan.size() != oldPlan.size()) {
             return false;
         }
         int seq = 0;
         for (Iterator<MavenProject> i = newPlan.iterator(), j = oldPlan.iterator(); i.hasNext() && j.hasNext();) {
             MavenProject left = i.next();
             MavenProject right = j.next();
             getLog().debug(
                     "[" + (seq++) + "] = " + left.equals(right) + (left == right ? " same" : " diff") + " : "
                     + left.getName() + "[" + left.getDependencies().size() + "], " + right.getName()
                     + "["
                     + right.getDependencies().size() + "]");
             if (!left.equals(right)) {
                 return false;
             }
             if (left.getDependencies().size() != right.getDependencies().size()) {
                 getLog().info("Dependency tree of " + left.getId() + " has been modified");
             }
         }
         return true;
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
index af3338b..41e7985 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
@@ -31,95 +31,98 @@ import org.codehaus.plexus.components.interactivity.PrompterException;
 /**
  *
  */
 @Mojo(name = "hotfix-finish", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class HotfixFinishMojo extends HotfixAbstractMojo {
 
     protected String hotfixName;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().info("Finishing hotfix '" + hotfixName + "'");
 
         /* Get hotfix branch name */
         List<String> hotfixBranches = getGitflowInit().gitLocalHotfixBranches();
         if (hotfixBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         } else if (hotfixBranches.size() == 1) {
             hotfixName = hotfixBranches.get(0);
         } else {
             hotfixName = promptForExistingHotfixName(hotfixBranches, hotfixName);
         }
 
         /* Switch to develop branch and get current develop version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
-        Model devModel = MavenUtil.readPom(reactorProjects);
-        String developVersion = devModel.getVersion();
+        reloadReactorProjects();
+        String developVersion = project.getVersion();
+        getLog().info("develop version = " + developVersion);
 
         /* Switch to hotfix branch and set poms to hotfix version */
         getGitflowInit().executeLocal("git checkout " + hotfixName);
-        Model hotModel = MavenUtil.readPom(reactorProjects);
-        String hotVersion = hotModel.getVersion();
-        String hotfixReleaseVersion = getReleaseVersion(hotVersion);
+        reloadReactorProjects();
+        String hotfixVersion = project.getVersion();
+        getLog().info("hotfix version = " + hotfixVersion);
+        String hotfixReleaseVersion = getReleaseVersion(hotfixVersion);
+        getLog().info("hotfix release version = " + hotfixReleaseVersion);
         setVersion(hotfixReleaseVersion);
 
         /* finish hotfix */
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowHotfix.finish(hotfixName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             getLog().info("Attempting to auto-resolve any pom version conflicts.", gmce);
             FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
             fixPomMergeConflicts.setInit(getGitflowInit());
             try {
                 fixPomMergeConflicts.resolveConflicts2();
             } catch (GitflowException ge) {
                 throw new MojoFailureException(ge.getMessage());
             } catch (GitflowMergeConflictException gmce2) {
                 throw new MojoFailureException(gmce2.getMessage());
             }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
+        
+        /* Switch to hotfix tag and deploy it */
+        getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + hotfixReleaseVersion);
+        reloadReactorProjects();        
 
         /* install or deploy */
         if (skipDeploy == false) {
-            // checkout and deploy the hotfix tag
-            getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + hotfixReleaseVersion);
             clean();
             deploy();
         } else if (skipBuild == false) {
-            // checkout and install the hotfix tag
-            getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + hotfixReleaseVersion);
             clean();
             install();
         } else {
             getLog().debug("Skipping both install and deploy");
         }
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingHotfixName(List<String> hotfixBranches, String defaultHotfixName) throws MojoFailureException {
         String message = "Please select a hotfix branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, hotfixBranches, defaultHotfixName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading hotfix name from command line " + e.getMessage());
         }
 
         return name;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
index 6450530..1f20186 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
@@ -30,72 +30,73 @@ import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
 /**
  *
  */
 @Mojo(name = "hotfix-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class HotfixStartMojo extends HotfixAbstractMojo {
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         /* Switch to master branch and get current version i.e. lastest tag */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getMasterBrnName());
-        Model masterModel = MavenUtil.readPom(reactorProjects);
-        String masterVersion = masterModel.getVersion();        
+        reloadReactorProjects();
+        String masterVersion = project.getVersion();
+        getLog().info("master version = " + masterVersion);      
 
         String hotfixVersion = getHotfixVersion(masterVersion);
         String hotfixSnapshotVersion = getHotfixSnapshotVersion(masterVersion);
 
         getLog().info("Starting hotfix '" + hotfixVersion + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowHotfix.start(hotfixVersion);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         setVersion(hotfixSnapshotVersion);
 
         String prefix = getGitflowInit().getHotfixBranchPrefix();
         if (getGitflowInit().gitRemoteBranchExists(prefix + hotfixVersion)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + hotfixVersion);
         }
     }
 
     private String getHotfixVersion(String currentVersion) throws MojoFailureException {
         getLog().info("getHotfixVersion from '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         final StringBuilder result = new StringBuilder(30);
         if (artifactVersion.getPrimaryNumberCount() < 3) {
             String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
             String annotationAsString = artifactVersion.getAnnotationAsString();
             result.append(primaryNumbersAsString).append('.').append('0');
             result.append(annotationAsString);
         } else {
             artifactVersion.upgradeAnnotationRevision();
             result.append(artifactVersion.toString());
         }
         return result.toString();
     }
 
     private String getHotfixSnapshotVersion(String currentVersion) throws MojoFailureException {
         getLog().info("getHotfixSnapshotVersion from '" + currentVersion + "'");
 
         final StringBuilder result = new StringBuilder(30);
 
         String hotfixVersion = getHotfixVersion(currentVersion);
         result.append(hotfixVersion);
 
         result.append(DEFAULT_VERSION_COMPONENT_SEPARATOR).append(SNAPSHOT_QUALIFIER);
 
         return result.toString();
     }
 }

commit e6ba6c6f82dab9581108c7486edc6030ff6022d1
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Wed Feb 26 22:34:50 2014 +0000

    set version correctly

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index b1eb673..5a98a1e 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -30,110 +30,110 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  *
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().info("Finishing release '" + releaseName + "'");
 
         /* Get release branch name */
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
         if (releaseBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         } else if (releaseBranches.size() == 1) {
             releaseName = releaseBranches.get(0);
         } else {
             releaseName = promptForExistingReleaseName(releaseBranches, releaseName);
         }
 
         /* Switch to develop branch and get its current version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         getLog().info("develop version = " + developVersion);
 
         /* Switch to release branch and set poms to release version */
         getGitflowInit().executeLocal("git checkout " + releaseName);
         reloadReactorProjects();
         String releaseVersion = getReleaseVersion(project.getVersion());
         getLog().info("release version = " + releaseVersion);
 
-        setVersion(releaseName);
+        setVersion(releaseVersion);
 
         /* finish release */
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowRelease.finish(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
         /* set poms to next develop version */
         String nextDevelopVersion = getNextDevelopVersion(developVersion);
         reloadReactorProjects();
         setVersion(nextDevelopVersion);
 
         /* Switch to release tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);
         reloadReactorProjects();
         String tagVersion = project.getVersion();
         getLog().info("tag version = " + tagVersion);
 
         /* install or deploy */
         if (skipDeploy == false) {
             clean();
             deploy();
         } else if (skipBuild == false) {
             clean();
             install();
         } else {
             getLog().debug("Skipping both install and deploy for tag " + tagVersion);
         }
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingReleaseName(List<String> releaseBranches, String defaultReleaseName) throws MojoFailureException {
         String message = "Please select a release branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, releaseBranches, defaultReleaseName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading release name from command line " + e.getMessage());
         }
 
         return name;
     }
 
     private String getNextDevelopVersion(String developVersion) {
         getLog().info("Current Develop version '" + developVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(developVersion);
         artifactVersion.upgradeLeastSignificantPrimaryNumber();
 
         return artifactVersion.toString();
     }
 
 }

commit 6816fdf52dbe176c6f8d417fe5e66847d988d318
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Wed Feb 26 22:30:08 2014 +0000

    release version fix

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index 02d610a..b1eb673 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -30,110 +30,110 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  *
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().info("Finishing release '" + releaseName + "'");
 
         /* Get release branch name */
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
         if (releaseBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         } else if (releaseBranches.size() == 1) {
             releaseName = releaseBranches.get(0);
         } else {
             releaseName = promptForExistingReleaseName(releaseBranches, releaseName);
         }
 
         /* Switch to develop branch and get its current version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         reloadReactorProjects();
         String developVersion = project.getVersion();
         getLog().info("develop version = " + developVersion);
 
         /* Switch to release branch and set poms to release version */
         getGitflowInit().executeLocal("git checkout " + releaseName);
         reloadReactorProjects();
-        String releaseVersion = project.getVersion();
-        getLog().info("release version = " + developVersion);
+        String releaseVersion = getReleaseVersion(project.getVersion());
+        getLog().info("release version = " + releaseVersion);
 
-        setVersion(releaseVersion);
+        setVersion(releaseName);
 
         /* finish release */
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowRelease.finish(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
         /* set poms to next develop version */
         String nextDevelopVersion = getNextDevelopVersion(developVersion);
         reloadReactorProjects();
         setVersion(nextDevelopVersion);
 
         /* Switch to release tag and deploy it */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);
         reloadReactorProjects();
         String tagVersion = project.getVersion();
         getLog().info("tag version = " + tagVersion);
 
         /* install or deploy */
         if (skipDeploy == false) {
             clean();
             deploy();
         } else if (skipBuild == false) {
             clean();
             install();
         } else {
             getLog().debug("Skipping both install and deploy for tag " + tagVersion);
         }
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingReleaseName(List<String> releaseBranches, String defaultReleaseName) throws MojoFailureException {
         String message = "Please select a release branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, releaseBranches, defaultReleaseName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading release name from command line " + e.getMessage());
         }
 
         return name;
     }
 
     private String getNextDevelopVersion(String developVersion) {
         getLog().info("Current Develop version '" + developVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(developVersion);
         artifactVersion.upgradeLeastSignificantPrimaryNumber();
 
         return artifactVersion.toString();
     }
 
 }

commit cacaafe5e41dfef98d31a02d891fafde7d2598fb
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Wed Feb 26 22:17:13 2014 +0000

    Reload reactor project when switching branches

diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index 21924ad..d20da68 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,213 +1,218 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
     <version>1.0-SNAPSHOT</version>
     <packaging>maven-plugin</packaging>
 
     <name>ggitflow-maven-plugin</name>
 
     <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
     </properties>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
             <version>1.0-SNAPSHOT</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
         <dependency>
             <groupId>jline</groupId>
             <artifactId>jline</artifactId>
             <version>2.11</version>
             <type>jar</type>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>3.2</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>3.0.8</version>
         </dependency>
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-interactivity-api</artifactId>
             <version>1.0-alpha-5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>2.4</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-project</artifactId>
             <version>2.2.1</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-clean-plugin</artifactId>
             <version>2.5</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-install-plugin</artifactId>
             <version>2.5.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-deploy-plugin</artifactId>
             <version>2.8.1</version>
         </dependency>
+        <dependency>
+            <groupId>org.apache.maven</groupId>
+            <artifactId>maven-artifact</artifactId>
+            <version>2.2.1</version>
+        </dependency>
     </dependencies>
 
     <build>
         <resources>
             <resource>
                 <directory>src/it</directory>
                 <includes>
                     <include>**/**</include>
                 </includes>
             </resource>
         </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>3.2</version>
                 <configuration>
                     <goalPrefix>ggitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                     <execution>
                         <id>help-goal</id>
                         <goals>
                             <goal>helpmojo</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
         </plugins>
     </build>
     <profiles>
         <profile>
             <id>run-its</id>
             <build>
                 <plugins>                                                      
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-invoker-plugin</artifactId>
                         <version>1.8</version>
                         <configuration>
                             <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
                             <settingsFile>src/it/settings.xml</settingsFile>
                             <debug>true</debug>
                             <showErrors>true</showErrors>
                             <detail>true</detail>
                             <streamLogs>true</streamLogs>
                             <projectsDirectory>src/it/projects</projectsDirectory>
                             <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
                             <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
                             <addTestClassPath>true</addTestClassPath>
                             <preBuildHookScript>setup</preBuildHookScript>
                             <postBuildHookScript>verify</postBuildHookScript>
                             <pomIncludes>
                                 <pomInclude>*/pom.xml</pomInclude>
                             </pomIncludes>
                             <goals>
                                 <goal>clean</goal>
                                 <goal>test-compile</goal>
                             </goals>
                         </configuration>
                         <executions>
                             <execution>
                                 <id>integration-test</id>
                                 <goals>
                                     <goal>install</goal>
                                     <goal>integration-test</goal>
                                     <goal>verify</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
 
             </build>
         </profile>
     </profiles>
 
     <!--
         Sonatype upload details:
         http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
         https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
         https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
         https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
 
             - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
             - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
             - Promote staged artifacts into repository 'Releases'
             - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
             - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
     -->
 
     <distributionManagement>
         <snapshotRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
         </snapshotRepository>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
         </repository>
     </distributionManagement>
     <repositories>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
             <snapshots>
                 <enabled>true</enabled>
             </snapshots>
         </repository>
     </repositories>
 </project>
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index 625b808..bfebeea 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -21,5 +21,11 @@ import com.dkirrane.maven.plugins.ggitflow.util.MavenUtil;
 import java.io.File;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Iterator;
 import java.util.List;
 import java.util.Map;
+import org.apache.maven.artifact.repository.ArtifactRepository;
+import org.apache.maven.artifact.resolver.ArtifactResolver;
 import org.apache.maven.execution.MavenSession;
+import org.apache.maven.model.building.ModelBuildingRequest;
 import org.apache.maven.plugin.AbstractMojo;
@@ -30,4 +36,9 @@ import org.apache.maven.plugins.annotations.Component;
 import org.apache.maven.plugins.annotations.Parameter;
-import org.apache.maven.project.DefaultProjectBuilder;
+import org.apache.maven.project.DefaultProjectBuildingRequest;
+import org.apache.maven.project.DuplicateProjectException;
 import org.apache.maven.project.MavenProject;
+import org.apache.maven.project.ProjectBuilder;
+import org.apache.maven.project.ProjectBuildingException;
+import org.apache.maven.project.ProjectBuildingRequest;
+import org.apache.maven.project.ProjectSorter;
 import org.apache.maven.shared.release.exec.MavenExecutor;
@@ -35,2 +46,3 @@ import org.codehaus.plexus.components.interactivity.Prompter;
 import org.codehaus.plexus.util.StringUtils;
+import org.codehaus.plexus.util.dag.CycleDetectedException;
 import org.jfrog.hudson.util.GenericArtifactVersion;
@@ -48,253 +60,367 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 /**
  *
  */
 public class AbstractGitflowMojo extends AbstractMojo {
 
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
     @Parameter(property = "msgPrefix", defaultValue = "")
     protected String msgPrefix;
 
     @Parameter(property = "msgSuffix", defaultValue = "")
     protected String msgSuffix;
 
     @Parameter(property = "skipBuild", defaultValue = "false")
     protected Boolean skipBuild;
 
     @Parameter(property = "skipDeploy", defaultValue = "false")
     protected Boolean skipDeploy;
 
     /**
      * Component used to prompt for input.
      */
     @Component
     protected Prompter prompter;
 
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
+    @Component
+    protected ArtifactResolver artifactResolver;
+
+    /**
+     * @parameter default-value="${project.artifacts}"
+     * @required
+     * @readonly
+     */
+    protected Collection artifacts;
+
+    /**
+     * @parameter expression="${localRepository}"
+     */
+    protected ArtifactRepository localRepository;
+
+    /**
+     * @parameter expression="${project.remoteArtifactRepositories}"
+     */
+    protected List remoteArtifactRepositories;
+
 //    @Component
 //    protected MavenProjectBuilder projectBuilder;
 //    @Component
 //    protected DefaultProjectBuilder projectBuilder;
 //    /**
 //     * @parameter property="plugin"
 //     * @required
 //     */
 //    @Component
 //    protected PluginDescriptor pluginDescriptor;
 //
     /**
      * The projects in the reactor.
      */
     @Parameter(defaultValue = "${reactorProjects}", readonly = true, required = true)
     protected List<MavenProject> reactorProjects;
-    
+
+    /**
+     * The project builder
+     */
+    @Component
+    private ProjectBuilder projectBuilder;
+
     /**
      * The project currently being build.
      *
      * @parameter expression="${project}"
      * @required
      * @readonly
      */
     @Component
     protected MavenProject project;
 
     /**
      * The current Maven session.
      *
      * @parameter expression="${session}"
      * @required
      * @readonly
      */
     @Component
     protected MavenSession session;
 
     /**
      * The Maven BuildPluginManager component.
      *
      * @component
      * @required
      */
     @Component
     protected BuildPluginManager pluginManager;
 
     private GitflowInit init;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     public void execute() throws MojoExecutionException, MojoFailureException {
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             getLog().info("Gitflow pom  '" + project.getBasedir() + "'");
         }
 
         GitflowInit gitflowInit = getGitflowInit();
 
         gitflowInit.requireGitRepo();
 
         if (!gitflowInit.gitflowIsInitialized()) {
             try {
                 gitflowInit.cmdDefault();
             } catch (GitflowException ex) {
                 throw new MojoExecutionException("Failed to inintialise Gitflow " + ex.getMessage(), ex);
             }
         }
 
         gitflowInit.requireCleanWorkingTree();
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     public GitflowInit getGitflowInit() {
         if (null == init) {
-            init = new GitflowInit();            
-            init.setRepoDir(getProject().getBasedir());            
+            init = new GitflowInit();
+            init.setRepoDir(getProject().getBasedir());
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
-            
+
             /* root Git directory may not be the pom directory */
-            String dotGitDir =init.executeLocal("git rev-parse --git-dir");
+            String dotGitDir = init.executeLocal("git rev-parse --git-dir");
             File dotGitFolder = new File(dotGitDir);
             assert dotGitFolder.exists();
             init.setRepoDir(dotGitFolder.getParentFile());
         }
         return init;
     }
 
     public void setVersion(String version) throws MojoExecutionException, MojoFailureException {
         getLog().info("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.codehaus.mojo"),
                         artifactId("versions-maven-plugin"),
                         version("2.1")
                 ),
                 goal("set"),
                 configuration(
                         element(name("generateBackupPoms"), "false"),
                         element(name("newVersion"), version)
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
         getLog().info("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
         }
         /* We don't want to fail maybe the version was manually set correctly */
 //        else {
 //            throw new MojoFailureException("Failed to update poms to version " + version);
 //        }
     }
 
     public void clean() throws MojoExecutionException, MojoFailureException {
         getLog().info("START org.apache.maven.plugins:maven-clean-plugin:2.5:clean");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-clean-plugin"),
                         version("2.5")
                 ),
                 goal("clean"),
                 configuration(
                         element(name("skip"), "false")
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
         getLog().info("DONE org.apache.maven.plugins:maven-clean-plugin:2.5:clean");
     }
 
     public void install() throws MojoExecutionException, MojoFailureException {
         getLog().info("START org.apache.maven.plugins:maven-install-plugin:2.5.1:install");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-install-plugin"),
                         version("2.5.1")
                 ),
                 goal("install"),
                 configuration(
                         element(name("skip"), "false")
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
         getLog().info("DONE org.apache.maven.plugins:maven-install-plugin:2.5.1:install");
     }
 
     public void deploy() throws MojoExecutionException, MojoFailureException {
         getLog().info("START org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-deploy-plugin"),
                         version("2.8.1")
                 ),
                 goal("deploy"),
                 configuration(
                         element(name("skip"), "false"),
                         element(name("retryFailedDeploymentCount"), "1")
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
         getLog().info("DONE org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy");
     }
 
     public String getReleaseVersion(String version) throws MojoFailureException {
         getLog().info("Current Develop version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
             getLog().warn("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
+    public void reloadReactorProjects() throws MojoExecutionException {
+        getLog().info("Reloading poms...");
+
+        List<MavenProject> newReactorProjects;
+        try {
+            newReactorProjects = buildReactorProjects();
+        } catch (ProjectBuildingException e) {
+            getLog().info("Re-parse aborted due to malformed pom.xml file(s)", e);
+            throw new MojoExecutionException("Re-parse aborted due to malformed pom.xml file(s)", e);
+        } catch (CycleDetectedException e) {
+            getLog().info("Re-parse aborted due to dependency cycle in project model", e);
+            throw new MojoExecutionException("Re-parse aborted due to dependency cycle in project model", e);
+        } catch (DuplicateProjectException e) {
+            getLog().info("Re-parse aborted due to duplicate projects in project model", e);
+            throw new MojoExecutionException("Re-parse aborted due to duplicate projects in project model", e);
+        } catch (Exception e) {
+            getLog().info("Re-parse aborted due a problem that prevented sorting the project model", e);
+            throw new MojoExecutionException("Re-parse aborted due a problem that prevented sorting the project model", e);
+        }
+        MavenProject newProject = findProject(newReactorProjects, this.project);
+        if (newProject == null) {
+            throw new MojoExecutionException("A pom.xml change appears to have removed " + this.project.getId() + " from the build plan.");
+        }
+
+        this.project = newProject;
+        this.reactorProjects = newReactorProjects;
+        
+        getLog().info("Reloading poms complete...");
+    }
+
+    private List<MavenProject> buildReactorProjects() throws Exception {
+
+        List<MavenProject> projects = new ArrayList<MavenProject>();
+        for (MavenProject p : reactorProjects) {
+            ProjectBuildingRequest request = new DefaultProjectBuildingRequest();
+
+            request.setProcessPlugins(true);
+            request.setProfiles(request.getProfiles());
+            request.setActiveProfileIds(session.getRequest().getActiveProfiles());
+            request.setInactiveProfileIds(session.getRequest().getInactiveProfiles());
+            request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
+            request.setSystemProperties(session.getSystemProperties());
+            request.setUserProperties(session.getUserProperties());
+            request.setRemoteRepositories(session.getRequest().getRemoteRepositories());
+            request.setPluginArtifactRepositories(session.getRequest().getPluginArtifactRepositories());
+            request.setRepositorySession(session.getRepositorySession());
+            request.setLocalRepository(localRepository);
+            request.setBuildStartTime(session.getRequest().getStartTime());
+            request.setResolveDependencies(true);
+            request.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_STRICT);
+            projects.add(projectBuilder.build(p.getFile(), request).getProject());
+        }
+        return new ProjectSorter(projects).getSortedProjects();
+    }
+
+    private MavenProject findProject(List<MavenProject> newReactorProjects, MavenProject oldProject) {
+        for (MavenProject newProject : newReactorProjects) {
+            if (oldProject.getGroupId().equals(newProject.getGroupId())
+                    && oldProject.getArtifactId().equals(newProject.getArtifactId())) {
+                return newProject;
+            }
+        }
+        return null;
+    }
+
+    private boolean buildPlanEqual(List<MavenProject> newPlan, List<MavenProject> oldPlan) {
+        if (newPlan.size() != oldPlan.size()) {
+            return false;
+        }
+        int seq = 0;
+        for (Iterator<MavenProject> i = newPlan.iterator(), j = oldPlan.iterator(); i.hasNext() && j.hasNext();) {
+            MavenProject left = i.next();
+            MavenProject right = j.next();
+            getLog().debug(
+                    "[" + (seq++) + "] = " + left.equals(right) + (left == right ? " same" : " diff") + " : "
+                    + left.getName() + "[" + left.getDependencies().size() + "], " + right.getName()
+                    + "["
+                    + right.getDependencies().size() + "]");
+            if (!left.equals(right)) {
+                return false;
+            }
+            if (left.getDependencies().size() != right.getDependencies().size()) {
+                getLog().info("Dependency tree of " + left.getId() + " has been modified");
+            }
+        }
+        return true;
+    }
+
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
index bbb6fec..8892f57 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
@@ -20,5 +20,3 @@ import com.dkirrane.gitflow.groovy.ex.GitflowException;
 import com.dkirrane.gitflow.groovy.ex.GitflowMergeConflictException;
-import com.dkirrane.maven.plugins.ggitflow.util.MavenUtil;
 import java.util.List;
-import org.apache.maven.model.Model;
 import org.apache.maven.plugin.MojoExecutionException;
@@ -30,72 +28,79 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  *
  */
 @Mojo(name = "feature-finish", aggregator = true)
 public class FeatureFinishMojo extends AbstractFeatureMojo {
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().info("Finishing feature '" + featureName + "'");
 
         String featureBranchPrefix = getFeatureBranchPrefix();
         if (StringUtils.isBlank(featureName)) {
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (currentBranch.startsWith(featureBranchPrefix)) {
                 featureName = currentBranch;
             } else {
                 featureName = "";
             }
         } else {
             featureName = getFeatureName(featureName);
         }
 
         List<String> featureBranches = getGitflowInit().gitLocalFeatureBranches();
 
         featureName = promptForExistingFeatureName(featureBranches, featureName);
 
         if (enableFeatureVersions) {
+            /* Switch to develop branch and get its current version */
+            getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
+            reloadReactorProjects();
+            String developVersion = project.getVersion(); 
+            getLog().info("develop version = " + developVersion);                        
+            
             /* Switch to feature branch and get its current version */
             getGitflowInit().executeLocal("git checkout " + featureName);
-            Model model = MavenUtil.readPom(reactorProjects);
-            String featureVersion = model.getVersion();            
+            reloadReactorProjects();
+            String featureVersion = project.getVersion();  
+            getLog().info("feature version = " + featureVersion);                        
 
             String nonFeatureVersion = getNonFeatureVersion(featureVersion, featureName.replace(featureBranchPrefix, ""));
-            setVersion(nonFeatureVersion);
+            setVersion(developVersion);
         }
 
         if (!skipBuild) {
             clean();
             install();
         } else {
             getLog().debug("Skipping both install and deploy");
         }
 
         GitflowFeature gitflowFeature = new GitflowFeature();
         gitflowFeature.setInit(getGitflowInit());
         gitflowFeature.setMsgPrefix(getMsgPrefix());
         gitflowFeature.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowFeature.finish(featureName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
     }
 
     private String promptForExistingFeatureName(List<String> featureBranches, String defaultFeatureName) throws MojoFailureException {
         String message = "Please select a feature branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, featureBranches, defaultFeatureName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading feature name from command line " + e.getMessage());
         }
 
         return name;
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
index de4ae57..fac811e 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
@@ -20,4 +20,2 @@ import com.dkirrane.gitflow.groovy.ex.GitflowException;
 import com.dkirrane.maven.plugins.ggitflow.util.MavenUtil;
-import java.util.logging.Level;
-import java.util.logging.Logger;
 import org.apache.maven.model.Model;
@@ -32,63 +30,68 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  *
  */
 @Mojo(name = "feature-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class FeatureStartMojo extends AbstractFeatureMojo {
 
     @Parameter(property = "startCommit", defaultValue = "")
     private String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         String prefix = getFeatureBranchPrefix();
         if (StringUtils.isBlank(featureName)) {
             System.out.println("prefix = " + prefix);
             System.out.println("prompter = " + prompter);
             String message = "What is the feature branch name? " + prefix;
             System.out.println("message = " + message);
             try {
                 featureName = prompter.prompt(message);
                 if (StringUtils.isBlank(featureName)) {
                     throw new MojoFailureException("Parameter <featureName> cannot be null or empty.");
                 }
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading feature name from command line " + ex.getMessage(), ex);
             }
         }
         featureName = getFeatureName(featureName);
 
         getLog().info("Starting feature '" + featureName + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowFeature gitflowFeature = new GitflowFeature();
         gitflowFeature.setInit(getGitflowInit());
         gitflowFeature.setMsgPrefix(getMsgPrefix());
         gitflowFeature.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowFeature.start(featureName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         if (enableFeatureVersions) {
             /* Already on feature branch so just get its current version */
             Model model = MavenUtil.readPom(reactorProjects);
             String currentVersion = model.getVersion();
 
             String featureVersion = getFeatureVersion(currentVersion, featureName);
             setVersion(featureVersion);
 
             if (getGitflowInit().gitRemoteBranchExists(prefix + featureName)) {
                 getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + featureName);
             }
+
+            /* print feature version */
+            reloadReactorProjects();
+            System.out.println("project = " + project.getVersion());
         }
     }
 
     public String getFeatureName() {
         return featureName;
     }
+
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index b7f64a2..02d610a 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -27,3 +27,2 @@ import org.apache.maven.plugins.annotations.Mojo;
 import org.codehaus.plexus.components.interactivity.PrompterException;
-import org.codehaus.plexus.util.StringUtils;
 import org.jfrog.hudson.util.GenericArtifactVersion;
@@ -31,115 +30,110 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  *
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().info("Finishing release '" + releaseName + "'");
 
         /* Get release branch name */
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
         if (releaseBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         } else if (releaseBranches.size() == 1) {
             releaseName = releaseBranches.get(0);
         } else {
             releaseName = promptForExistingReleaseName(releaseBranches, releaseName);
         }
 
-        /* Switch to develop branch and get current develop version */
+        /* Switch to develop branch and get its current version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
-        Model devModel = MavenUtil.readPom(reactorProjects);
-        String developVersion = devModel.getVersion();
+        reloadReactorProjects();
+        String developVersion = project.getVersion();
+        getLog().info("develop version = " + developVersion);
 
         /* Switch to release branch and set poms to release version */
         getGitflowInit().executeLocal("git checkout " + releaseName);
-        Model relModel = MavenUtil.readPom(reactorProjects);
-        String relVersion = relModel.getVersion();
-        String releaseVersion = getReleaseVersion(relVersion);
+        reloadReactorProjects();
+        String releaseVersion = project.getVersion();
+        getLog().info("release version = " + developVersion);
+
         setVersion(releaseVersion);
 
         /* finish release */
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowRelease.finish(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
         /* set poms to next develop version */
         String nextDevelopVersion = getNextDevelopVersion(developVersion);
+        reloadReactorProjects();
         setVersion(nextDevelopVersion);
 
+        /* Switch to release tag and deploy it */
+        getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);
+        reloadReactorProjects();
+        String tagVersion = project.getVersion();
+        getLog().info("tag version = " + tagVersion);
+
         /* install or deploy */
         if (skipDeploy == false) {
-            /* checkout and deploy the release tag */
-            getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);
-            String currBranch = getGitflowInit().gitCurrentBranch();
-            System.out.println("currBranch = " + currBranch);
-            Model tagModel = MavenUtil.readPom(reactorProjects);
-            String tagVersion = tagModel.getVersion();
-            System.out.println("tagVersion = " + tagVersion);
             clean();
             deploy();
         } else if (skipBuild == false) {
-            /* checkout and install the release tag */
-            getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);
-            String currBranch = getGitflowInit().gitCurrentBranch();
-            System.out.println("currBranch = " + currBranch);
-            Model tagModel = MavenUtil.readPom(reactorProjects);
-            String tagVersion = tagModel.getVersion();
-            System.out.println("tagVersion = " + tagVersion);
             clean();
             install();
         } else {
-            getLog().debug("Skipping both install and deploy");
+            getLog().debug("Skipping both install and deploy for tag " + tagVersion);
         }
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingReleaseName(List<String> releaseBranches, String defaultReleaseName) throws MojoFailureException {
         String message = "Please select a release branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, releaseBranches, defaultReleaseName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading release name from command line " + e.getMessage());
         }
 
         return name;
     }
 
     private String getNextDevelopVersion(String developVersion) {
         getLog().info("Current Develop version '" + developVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(developVersion);
         artifactVersion.upgradeLeastSignificantPrimaryNumber();
 
         return artifactVersion.toString();
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
index 577ef88..8f25540 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
@@ -31,82 +31,81 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  *
  */
 @Mojo(name = "release-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class ReleaseStartMojo extends AbstractReleaseMojo {
 
     @Parameter(property = "startCommit", defaultValue = "")
     private String startCommit;
 
     @Parameter(defaultValue = "false", property = "allowSnapshots")
     private boolean allowSnapshots = false;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         /* Switch to develop branch and get its current version */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
-        Model model = MavenUtil.readPom(reactorProjects);
-        String developVersion = model.getVersion();
-        
+        reloadReactorProjects();
+        String developVersion = project.getVersion();
+        getLog().info("develop version = " + developVersion);
+
         /* Get suggested release version */
         String releaseVersion = getReleaseVersion(developVersion);
-//        String nextDevelopmentVersion = getNextDevelopmentVersion(project.getVersion());        
+        getLog().info("release version = " + releaseVersion);
+//        String nextDevelopmentVersion = getNextDevelopmentVersion(project.getVersion());
 
         /* create release branch */
         String prefix = getReleaseBranchPrefix();
         if (StringUtils.isBlank(releaseName)) {
-            System.out.println("prefix = " + prefix);
-            System.out.println("prompter = " + prompter);
             String message = "What is the release branch name? " + prefix;
-            System.out.println("message = " + message);
             try {
                 releaseName = prompter.prompt(message, releaseVersion);
                 if (StringUtils.isBlank(releaseName)) {
                     throw new MojoFailureException("Parameter <releaseName> cannot be null or empty.");
                 }
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading release name from command line " + ex.getMessage(), ex);
             }
         }
 
         try {
             new GenericArtifactVersion(releaseName);
         } catch (IllegalArgumentException e) {
             throw new MojoExecutionException("Provided releaseName " + releaseName + " is not a valid Maven version.");
         }
 
         getLog().info("Starting release '" + releaseName + "'");
         getLog().info("msgPrefix '" + getMsgPrefix() + "'");
         getLog().info("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowRelease.start(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         // current branch should be the release branch
         String releaseBranch = getGitflowInit().gitCurrentBranch();
         if (!releaseBranch.startsWith(prefix)) {
             throw new MojoFailureException("Failed to create release version.");
         }
 
 //        // checkout develop branch and update it's version
 //        String developBranch = (String) getGitflowInit().getDevelopBrnName();
 //        getGitflowInit().executeLocal("git checkout " + developBranch);
 //        setVersion(nextDevelopmentVersion);
 //
 //        // checkout release branch again
 //        getGitflowInit().executeLocal("git checkout " + releaseBranch);
     }
 
     public String getReleaseName() {
         return releaseName;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/util/MavenUtil.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/util/MavenUtil.java
index e7ccaae..d327551 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/util/MavenUtil.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/util/MavenUtil.java
@@ -29,43 +29,44 @@ import org.codehaus.plexus.util.xml.pull.XmlPullParserException;
 /**
  *
  */
 public final class MavenUtil {
 
     public static MavenProject getRootProject(List<MavenProject> reactorProjects) {
         MavenProject project = reactorProjects.get(0);
         for (MavenProject currentProject : reactorProjects) {
             if (currentProject.isExecutionRoot()) {
                 project = currentProject;
                 break;
             }
         }
         return project;
     }
 
     public static Model readPom(List<MavenProject> reactorProjects) throws MojoExecutionException {
         MavenProject rootProject = getRootProject(reactorProjects);
         File pomFile = rootProject.getFile();
         
         FileReader fileReader = null;
 
         try {
             fileReader = new FileReader(pomFile);
             MavenXpp3Reader m = new MavenXpp3Reader();
             Model model = m.read(fileReader);
             return model;
         } catch (FileNotFoundException ex) {
             throw new MojoExecutionException("POM " + pomFile.getAbsolutePath() + " could not be parsed.", ex);
         } catch (IOException ex) {
             throw new MojoExecutionException("POM " + pomFile.getAbsolutePath() + " could not be parsed.", ex);
         } catch (XmlPullParserException ex) {
             throw new MojoExecutionException("POM " + pomFile.getAbsolutePath() + " could not be parsed.", ex);
         } finally {
             if (null != fileReader) {
                 try {
                     fileReader.close();
                 } catch (IOException ex) {
                 }
             }
         }
     }
+    
 }

commit b183ab4e3f0a5d7e71b33907a83aa00671b5736e
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Wed Feb 5 01:09:04 2014 +0000

    Fixes

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index c9bc169..625b808 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -20,2 +20,3 @@ import com.dkirrane.gitflow.groovy.ex.GitflowException;
 import com.dkirrane.maven.plugins.ggitflow.util.MavenUtil;
+import java.io.File;
 import java.util.List;
@@ -47,247 +48,253 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 /**
  *
  */
 public class AbstractGitflowMojo extends AbstractMojo {
 
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
     @Parameter(property = "msgPrefix", defaultValue = "")
     protected String msgPrefix;
 
     @Parameter(property = "msgSuffix", defaultValue = "")
     protected String msgSuffix;
 
     @Parameter(property = "skipBuild", defaultValue = "false")
     protected Boolean skipBuild;
 
     @Parameter(property = "skipDeploy", defaultValue = "false")
     protected Boolean skipDeploy;
 
     /**
      * Component used to prompt for input.
      */
     @Component
     protected Prompter prompter;
 
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
 //    @Component
 //    protected MavenProjectBuilder projectBuilder;
 //    @Component
 //    protected DefaultProjectBuilder projectBuilder;
 //    /**
 //     * @parameter property="plugin"
 //     * @required
 //     */
 //    @Component
 //    protected PluginDescriptor pluginDescriptor;
 //
     /**
      * The projects in the reactor.
      */
     @Parameter(defaultValue = "${reactorProjects}", readonly = true, required = true)
     protected List<MavenProject> reactorProjects;
     
     /**
      * The project currently being build.
      *
      * @parameter expression="${project}"
      * @required
      * @readonly
      */
     @Component
     protected MavenProject project;
 
     /**
      * The current Maven session.
      *
      * @parameter expression="${session}"
      * @required
      * @readonly
      */
     @Component
     protected MavenSession session;
 
     /**
      * The Maven BuildPluginManager component.
      *
      * @component
      * @required
      */
     @Component
     protected BuildPluginManager pluginManager;
 
     private GitflowInit init;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     public void execute() throws MojoExecutionException, MojoFailureException {
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             getLog().info("Gitflow pom  '" + project.getBasedir() + "'");
         }
 
         GitflowInit gitflowInit = getGitflowInit();
 
         gitflowInit.requireGitRepo();
 
         if (!gitflowInit.gitflowIsInitialized()) {
             try {
                 gitflowInit.cmdDefault();
             } catch (GitflowException ex) {
                 throw new MojoExecutionException("Failed to inintialise Gitflow " + ex.getMessage(), ex);
             }
         }
 
         gitflowInit.requireCleanWorkingTree();
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     public GitflowInit getGitflowInit() {
         if (null == init) {
-            init = new GitflowInit();
-            init.setRepoDir(getProject().getBasedir());
+            init = new GitflowInit();            
+            init.setRepoDir(getProject().getBasedir());            
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
+            
+            /* root Git directory may not be the pom directory */
+            String dotGitDir =init.executeLocal("git rev-parse --git-dir");
+            File dotGitFolder = new File(dotGitDir);
+            assert dotGitFolder.exists();
+            init.setRepoDir(dotGitFolder.getParentFile());
         }
         return init;
     }
 
     public void setVersion(String version) throws MojoExecutionException, MojoFailureException {
         getLog().info("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.codehaus.mojo"),
                         artifactId("versions-maven-plugin"),
                         version("2.1")
                 ),
                 goal("set"),
                 configuration(
                         element(name("generateBackupPoms"), "false"),
                         element(name("newVersion"), version)
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
         getLog().info("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
         }
         /* We don't want to fail maybe the version was manually set correctly */
 //        else {
 //            throw new MojoFailureException("Failed to update poms to version " + version);
 //        }
     }
 
     public void clean() throws MojoExecutionException, MojoFailureException {
         getLog().info("START org.apache.maven.plugins:maven-clean-plugin:2.5:clean");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-clean-plugin"),
                         version("2.5")
                 ),
                 goal("clean"),
                 configuration(
                         element(name("skip"), "false")
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
         getLog().info("DONE org.apache.maven.plugins:maven-clean-plugin:2.5:clean");
     }
 
     public void install() throws MojoExecutionException, MojoFailureException {
         getLog().info("START org.apache.maven.plugins:maven-install-plugin:2.5.1:install");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-install-plugin"),
                         version("2.5.1")
                 ),
                 goal("install"),
                 configuration(
                         element(name("skip"), "false")
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
         getLog().info("DONE org.apache.maven.plugins:maven-install-plugin:2.5.1:install");
     }
 
     public void deploy() throws MojoExecutionException, MojoFailureException {
         getLog().info("START org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy");
         MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-deploy-plugin"),
                         version("2.8.1")
                 ),
                 goal("deploy"),
                 configuration(
                         element(name("skip"), "false"),
                         element(name("retryFailedDeploymentCount"), "1")
                 ),
                 executionEnvironment(
                         rootProject,
                         session,
                         pluginManager
                 )
         );
         getLog().info("DONE org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy");
     }
 
     public String getReleaseVersion(String version) throws MojoFailureException {
         getLog().info("Current Develop version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
             getLog().warn("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
index 1cfc97f..af3338b 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
@@ -31,95 +31,95 @@ import org.codehaus.plexus.components.interactivity.PrompterException;
 /**
  *
  */
 @Mojo(name = "hotfix-finish", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class HotfixFinishMojo extends HotfixAbstractMojo {
 
     protected String hotfixName;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().info("Finishing hotfix '" + hotfixName + "'");
 
         /* Get hotfix branch name */
         List<String> hotfixBranches = getGitflowInit().gitLocalHotfixBranches();
         if (hotfixBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         } else if (hotfixBranches.size() == 1) {
             hotfixName = hotfixBranches.get(0);
         } else {
             hotfixName = promptForExistingHotfixName(hotfixBranches, hotfixName);
         }
 
         /* Switch to develop branch and get current develop version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         Model devModel = MavenUtil.readPom(reactorProjects);
         String developVersion = devModel.getVersion();
 
         /* Switch to hotfix branch and set poms to hotfix version */
         getGitflowInit().executeLocal("git checkout " + hotfixName);
         Model hotModel = MavenUtil.readPom(reactorProjects);
         String hotVersion = hotModel.getVersion();
         String hotfixReleaseVersion = getReleaseVersion(hotVersion);
         setVersion(hotfixReleaseVersion);
 
         /* finish hotfix */
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowHotfix.finish(hotfixName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             getLog().info("Attempting to auto-resolve any pom version conflicts.", gmce);
             FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
             fixPomMergeConflicts.setInit(getGitflowInit());
             try {
                 fixPomMergeConflicts.resolveConflicts2();
             } catch (GitflowException ge) {
                 throw new MojoFailureException(ge.getMessage());
             } catch (GitflowMergeConflictException gmce2) {
                 throw new MojoFailureException(gmce2.getMessage());
             }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
 
         /* install or deploy */
         if (skipDeploy == false) {
             // checkout and deploy the hotfix tag
-            getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + hotfixName);
+            getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + hotfixReleaseVersion);
             clean();
             deploy();
         } else if (skipBuild == false) {
             // checkout and install the hotfix tag
-            getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + hotfixName);
+            getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + hotfixReleaseVersion);
             clean();
             install();
         } else {
             getLog().debug("Skipping both install and deploy");
         }
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingHotfixName(List<String> hotfixBranches, String defaultHotfixName) throws MojoFailureException {
         String message = "Please select a hotfix branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, hotfixBranches, defaultHotfixName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading hotfix name from command line " + e.getMessage());
         }
 
         return name;
     }
 }

commit 6c753da61d2c90765b69a34580eb453710543a3b
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Tue Feb 4 23:53:59 2014 +0000

    hotfic finihs

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
index e721648..1cfc97f 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
@@ -18,2 +18,3 @@ package com.dkirrane.maven.plugins.ggitflow;
 import com.dkirrane.gitflow.groovy.GitflowHotfix;
+import com.dkirrane.gitflow.groovy.conflicts.FixPomMergeConflicts;
 import com.dkirrane.gitflow.groovy.ex.GitflowException;
@@ -30,86 +31,95 @@ import org.codehaus.plexus.components.interactivity.PrompterException;
 /**
  *
  */
 @Mojo(name = "hotfix-finish", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class HotfixFinishMojo extends HotfixAbstractMojo {
 
     protected String hotfixName;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().info("Finishing hotfix '" + hotfixName + "'");
 
         /* Get hotfix branch name */
         List<String> hotfixBranches = getGitflowInit().gitLocalHotfixBranches();
         if (hotfixBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         } else if (hotfixBranches.size() == 1) {
             hotfixName = hotfixBranches.get(0);
         } else {
             hotfixName = promptForExistingHotfixName(hotfixBranches, hotfixName);
         }
 
         /* Switch to develop branch and get current develop version */
         String developBranch = getGitflowInit().getDevelopBranch();
         getGitflowInit().executeLocal("git checkout " + developBranch);
         Model devModel = MavenUtil.readPom(reactorProjects);
         String developVersion = devModel.getVersion();
 
         /* Switch to hotfix branch and set poms to hotfix version */
         getGitflowInit().executeLocal("git checkout " + hotfixName);
         Model hotModel = MavenUtil.readPom(reactorProjects);
         String hotVersion = hotModel.getVersion();
         String hotfixReleaseVersion = getReleaseVersion(hotVersion);
         setVersion(hotfixReleaseVersion);
 
         /* finish hotfix */
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowHotfix.finish(hotfixName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
-            throw new MojoFailureException(gmce.getMessage());
+            getLog().info("Attempting to auto-resolve any pom version conflicts.", gmce);
+            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
+            fixPomMergeConflicts.setInit(getGitflowInit());
+            try {
+                fixPomMergeConflicts.resolveConflicts2();
+            } catch (GitflowException ge) {
+                throw new MojoFailureException(ge.getMessage());
+            } catch (GitflowMergeConflictException gmce2) {
+                throw new MojoFailureException(gmce2.getMessage());
+            }
         }
-        
+
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
-        }        
+        }
 
         /* install or deploy */
         if (skipDeploy == false) {
             // checkout and deploy the hotfix tag
             getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + hotfixName);
             clean();
             deploy();
         } else if (skipBuild == false) {
             // checkout and install the hotfix tag
             getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + hotfixName);
             clean();
             install();
         } else {
             getLog().debug("Skipping both install and deploy");
         }
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingHotfixName(List<String> hotfixBranches, String defaultHotfixName) throws MojoFailureException {
         String message = "Please select a hotfix branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, hotfixBranches, defaultHotfixName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading hotfix name from command line " + e.getMessage());
         }
 
         return name;
     }
 }

commit 3608648669e6ca0add7205e57e6dddf6d6150dd6
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Tue Feb 4 21:54:56 2014 +0000

    Hotfix fixes

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
index 4f0cfa8..e721648 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
@@ -20,3 +20,5 @@ import com.dkirrane.gitflow.groovy.ex.GitflowException;
 import com.dkirrane.gitflow.groovy.ex.GitflowMergeConflictException;
+import com.dkirrane.maven.plugins.ggitflow.util.MavenUtil;
 import java.util.List;
+import org.apache.maven.model.Model;
 import org.apache.maven.plugin.MojoExecutionException;
@@ -28,69 +30,86 @@ import org.codehaus.plexus.components.interactivity.PrompterException;
 /**
  *
  */
 @Mojo(name = "hotfix-finish", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class HotfixFinishMojo extends HotfixAbstractMojo {
 
     protected String hotfixName;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
+        getLog().info("Finishing hotfix '" + hotfixName + "'");
 
+        /* Get hotfix branch name */
         List<String> hotfixBranches = getGitflowInit().gitLocalHotfixBranches();
-
         if (hotfixBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
-        }
-
-        if (hotfixBranches.size() == 1) {
+        } else if (hotfixBranches.size() == 1) {
             hotfixName = hotfixBranches.get(0);
         } else {
             hotfixName = promptForExistingHotfixName(hotfixBranches, hotfixName);
         }
 
-        String hotfixReleaseVersion = getReleaseVersion(project.getVersion());
+        /* Switch to develop branch and get current develop version */
+        String developBranch = getGitflowInit().getDevelopBranch();
+        getGitflowInit().executeLocal("git checkout " + developBranch);
+        Model devModel = MavenUtil.readPom(reactorProjects);
+        String developVersion = devModel.getVersion();
+
+        /* Switch to hotfix branch and set poms to hotfix version */
+        getGitflowInit().executeLocal("git checkout " + hotfixName);
+        Model hotModel = MavenUtil.readPom(reactorProjects);
+        String hotVersion = hotModel.getVersion();
+        String hotfixReleaseVersion = getReleaseVersion(hotVersion);
         setVersion(hotfixReleaseVersion);
 
+        /* finish hotfix */
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowHotfix.finish(hotfixName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
+        
+        /* make sure we're on the develop branch */
+        String currentBranch = getGitflowInit().gitCurrentBranch();
+        if (!currentBranch.equals(developBranch)) {
+            throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
+        }        
 
+        /* install or deploy */
         if (skipDeploy == false) {
             // checkout and deploy the hotfix tag
             getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + hotfixName);
             clean();
             deploy();
         } else if (skipBuild == false) {
             // checkout and install the hotfix tag
             getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + hotfixName);
             clean();
             install();
         } else {
             getLog().debug("Skipping both install and deploy");
         }
-        getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
+        getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingHotfixName(List<String> hotfixBranches, String defaultHotfixName) throws MojoFailureException {
         String message = "Please select a hotfix branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, hotfixBranches, defaultHotfixName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading hotfix name from command line " + e.getMessage());
         }
 
         return name;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
index 391338c..6450530 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
@@ -19,2 +19,4 @@ import com.dkirrane.gitflow.groovy.GitflowHotfix;
 import com.dkirrane.gitflow.groovy.ex.GitflowException;
+import com.dkirrane.maven.plugins.ggitflow.util.MavenUtil;
+import org.apache.maven.model.Model;
 import org.apache.maven.plugin.MojoExecutionException;
@@ -28,70 +30,72 @@ import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
 /**
  *
  */
 @Mojo(name = "hotfix-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class HotfixStartMojo extends HotfixAbstractMojo {
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
+        /* Switch to master branch and get current version i.e. lastest tag */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getMasterBrnName());
-        
-        String currentVersion = project.getVersion();
-        String hotfixVersion = getHotfixVersion(currentVersion);
-        String hotfixSnapshotVersion = getHotfixSnapshotVersion(currentVersion);
+        Model masterModel = MavenUtil.readPom(reactorProjects);
+        String masterVersion = masterModel.getVersion();        
+
+        String hotfixVersion = getHotfixVersion(masterVersion);
+        String hotfixSnapshotVersion = getHotfixSnapshotVersion(masterVersion);
 
         getLog().info("Starting hotfix '" + hotfixVersion + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowHotfix.start(hotfixVersion);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         setVersion(hotfixSnapshotVersion);
 
         String prefix = getGitflowInit().getHotfixBranchPrefix();
         if (getGitflowInit().gitRemoteBranchExists(prefix + hotfixVersion)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + hotfixVersion);
         }
     }
 
     private String getHotfixVersion(String currentVersion) throws MojoFailureException {
         getLog().info("getHotfixVersion from '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         final StringBuilder result = new StringBuilder(30);
         if (artifactVersion.getPrimaryNumberCount() < 3) {
             String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
             String annotationAsString = artifactVersion.getAnnotationAsString();
             result.append(primaryNumbersAsString).append('.').append('0');
             result.append(annotationAsString);
         } else {
             artifactVersion.upgradeAnnotationRevision();
             result.append(artifactVersion.toString());
         }
         return result.toString();
     }
 
     private String getHotfixSnapshotVersion(String currentVersion) throws MojoFailureException {
         getLog().info("getHotfixSnapshotVersion from '" + currentVersion + "'");
 
         final StringBuilder result = new StringBuilder(30);
 
         String hotfixVersion = getHotfixVersion(currentVersion);
         result.append(hotfixVersion);
 
         result.append(DEFAULT_VERSION_COMPONENT_SEPARATOR).append(SNAPSHOT_QUALIFIER);
 
         return result.toString();
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index 500b4de..b7f64a2 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -31,115 +31,115 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  *
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().info("Finishing release '" + releaseName + "'");
 
         /* Get release branch name */
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
         if (releaseBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         } else if (releaseBranches.size() == 1) {
             releaseName = releaseBranches.get(0);
         } else {
             releaseName = promptForExistingReleaseName(releaseBranches, releaseName);
         }
 
         /* Switch to develop branch and get current develop version */
         String developBranch = getGitflowInit().getDevelopBranch();
-        getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
+        getGitflowInit().executeLocal("git checkout " + developBranch);
         Model devModel = MavenUtil.readPom(reactorProjects);
         String developVersion = devModel.getVersion();
 
         /* Switch to release branch and set poms to release version */
         getGitflowInit().executeLocal("git checkout " + releaseName);
         Model relModel = MavenUtil.readPom(reactorProjects);
         String relVersion = relModel.getVersion();
         String releaseVersion = getReleaseVersion(relVersion);
         setVersion(releaseVersion);
 
-        /* finish feature */
+        /* finish release */
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowRelease.finish(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
         if (!currentBranch.equals(developBranch)) {
             throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
         /* set poms to next develop version */
         String nextDevelopVersion = getNextDevelopVersion(developVersion);
         setVersion(nextDevelopVersion);
 
         /* install or deploy */
         if (skipDeploy == false) {
             /* checkout and deploy the release tag */
             getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);
             String currBranch = getGitflowInit().gitCurrentBranch();
             System.out.println("currBranch = " + currBranch);
             Model tagModel = MavenUtil.readPom(reactorProjects);
             String tagVersion = tagModel.getVersion();
             System.out.println("tagVersion = " + tagVersion);
             clean();
             deploy();
         } else if (skipBuild == false) {
             /* checkout and install the release tag */
             getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);
             String currBranch = getGitflowInit().gitCurrentBranch();
             System.out.println("currBranch = " + currBranch);
             Model tagModel = MavenUtil.readPom(reactorProjects);
             String tagVersion = tagModel.getVersion();
             System.out.println("tagVersion = " + tagVersion);
             clean();
             install();
         } else {
             getLog().debug("Skipping both install and deploy");
         }
         getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingReleaseName(List<String> releaseBranches, String defaultReleaseName) throws MojoFailureException {
         String message = "Please select a release branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, releaseBranches, defaultReleaseName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading release name from command line " + e.getMessage());
         }
 
         return name;
     }
 
     private String getNextDevelopVersion(String developVersion) {
         getLog().info("Current Develop version '" + developVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(developVersion);
         artifactVersion.upgradeLeastSignificantPrimaryNumber();
 
         return artifactVersion.toString();
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
index 1219491..577ef88 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
@@ -31,82 +31,82 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  *
  */
 @Mojo(name = "release-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class ReleaseStartMojo extends AbstractReleaseMojo {
 
     @Parameter(property = "startCommit", defaultValue = "")
     private String startCommit;
 
     @Parameter(defaultValue = "false", property = "allowSnapshots")
     private boolean allowSnapshots = false;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         /* Switch to develop branch and get its current version */
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
         Model model = MavenUtil.readPom(reactorProjects);
         String developVersion = model.getVersion();
         
         /* Get suggested release version */
         String releaseVersion = getReleaseVersion(developVersion);
 //        String nextDevelopmentVersion = getNextDevelopmentVersion(project.getVersion());        
 
-        // 1. first we should create release branch
+        /* create release branch */
         String prefix = getReleaseBranchPrefix();
         if (StringUtils.isBlank(releaseName)) {
             System.out.println("prefix = " + prefix);
             System.out.println("prompter = " + prompter);
             String message = "What is the release branch name? " + prefix;
             System.out.println("message = " + message);
             try {
                 releaseName = prompter.prompt(message, releaseVersion);
                 if (StringUtils.isBlank(releaseName)) {
                     throw new MojoFailureException("Parameter <releaseName> cannot be null or empty.");
                 }
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading release name from command line " + ex.getMessage(), ex);
             }
         }
 
         try {
             new GenericArtifactVersion(releaseName);
         } catch (IllegalArgumentException e) {
             throw new MojoExecutionException("Provided releaseName " + releaseName + " is not a valid Maven version.");
         }
 
         getLog().info("Starting release '" + releaseName + "'");
         getLog().info("msgPrefix '" + getMsgPrefix() + "'");
         getLog().info("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowRelease.start(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         // current branch should be the release branch
         String releaseBranch = getGitflowInit().gitCurrentBranch();
         if (!releaseBranch.startsWith(prefix)) {
             throw new MojoFailureException("Failed to create release version.");
         }
 
 //        // checkout develop branch and update it's version
 //        String developBranch = (String) getGitflowInit().getDevelopBrnName();
 //        getGitflowInit().executeLocal("git checkout " + developBranch);
 //        setVersion(nextDevelopmentVersion);
 //
-//        // 3. then checkout release branch again
+//        // checkout release branch again
 //        getGitflowInit().executeLocal("git checkout " + releaseBranch);
     }
 
     public String getReleaseName() {
         return releaseName;
     }
 }

commit 19fc552e5477c34daaeb4472316cabbe42c2a487
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Tue Feb 4 21:26:48 2014 +0000

    Release deploy fixes

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index 9824f6d..c9bc169 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -19,2 +19,3 @@ import com.dkirrane.gitflow.groovy.GitflowInit;
 import com.dkirrane.gitflow.groovy.ex.GitflowException;
+import com.dkirrane.maven.plugins.ggitflow.util.MavenUtil;
 import java.util.List;
@@ -46,243 +47,247 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 /**
  *
  */
 public class AbstractGitflowMojo extends AbstractMojo {
 
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
     @Parameter(property = "msgPrefix", defaultValue = "")
     protected String msgPrefix;
 
     @Parameter(property = "msgSuffix", defaultValue = "")
     protected String msgSuffix;
 
     @Parameter(property = "skipBuild", defaultValue = "false")
     protected Boolean skipBuild;
 
     @Parameter(property = "skipDeploy", defaultValue = "false")
     protected Boolean skipDeploy;
 
     /**
      * Component used to prompt for input.
      */
     @Component
     protected Prompter prompter;
 
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
 //    @Component
 //    protected MavenProjectBuilder projectBuilder;
 //    @Component
 //    protected DefaultProjectBuilder projectBuilder;
 //    /**
 //     * @parameter property="plugin"
 //     * @required
 //     */
 //    @Component
 //    protected PluginDescriptor pluginDescriptor;
 //
     /**
      * The projects in the reactor.
      */
     @Parameter(defaultValue = "${reactorProjects}", readonly = true, required = true)
     protected List<MavenProject> reactorProjects;
     
     /**
      * The project currently being build.
      *
      * @parameter expression="${project}"
      * @required
      * @readonly
      */
     @Component
     protected MavenProject project;
 
     /**
      * The current Maven session.
      *
      * @parameter expression="${session}"
      * @required
      * @readonly
      */
     @Component
     protected MavenSession session;
 
     /**
      * The Maven BuildPluginManager component.
      *
      * @component
      * @required
      */
     @Component
     protected BuildPluginManager pluginManager;
 
     private GitflowInit init;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     public void execute() throws MojoExecutionException, MojoFailureException {
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             getLog().info("Gitflow pom  '" + project.getBasedir() + "'");
         }
 
         GitflowInit gitflowInit = getGitflowInit();
 
         gitflowInit.requireGitRepo();
 
         if (!gitflowInit.gitflowIsInitialized()) {
             try {
                 gitflowInit.cmdDefault();
             } catch (GitflowException ex) {
                 throw new MojoExecutionException("Failed to inintialise Gitflow " + ex.getMessage(), ex);
             }
         }
 
         gitflowInit.requireCleanWorkingTree();
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     public GitflowInit getGitflowInit() {
         if (null == init) {
             init = new GitflowInit();
             init.setRepoDir(getProject().getBasedir());
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
         }
         return init;
     }
 
     public void setVersion(String version) throws MojoExecutionException, MojoFailureException {
         getLog().info("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
+        MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.codehaus.mojo"),
                         artifactId("versions-maven-plugin"),
                         version("2.1")
                 ),
                 goal("set"),
                 configuration(
                         element(name("generateBackupPoms"), "false"),
                         element(name("newVersion"), version)
                 ),
                 executionEnvironment(
-                        project,
+                        rootProject,
                         session,
                         pluginManager
                 )
         );
         getLog().info("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
         }
         /* We don't want to fail maybe the version was manually set correctly */
 //        else {
 //            throw new MojoFailureException("Failed to update poms to version " + version);
 //        }
     }
 
     public void clean() throws MojoExecutionException, MojoFailureException {
         getLog().info("START org.apache.maven.plugins:maven-clean-plugin:2.5:clean");
+        MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-clean-plugin"),
                         version("2.5")
                 ),
                 goal("clean"),
                 configuration(
                         element(name("skip"), "false")
                 ),
                 executionEnvironment(
-                        project,
+                        rootProject,
                         session,
                         pluginManager
                 )
         );
         getLog().info("DONE org.apache.maven.plugins:maven-clean-plugin:2.5:clean");
     }
 
     public void install() throws MojoExecutionException, MojoFailureException {
         getLog().info("START org.apache.maven.plugins:maven-install-plugin:2.5.1:install");
+        MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-install-plugin"),
                         version("2.5.1")
                 ),
                 goal("install"),
                 configuration(
                         element(name("skip"), "false")
                 ),
                 executionEnvironment(
-                        project,
+                        rootProject,
                         session,
                         pluginManager
                 )
         );
         getLog().info("DONE org.apache.maven.plugins:maven-install-plugin:2.5.1:install");
     }
 
     public void deploy() throws MojoExecutionException, MojoFailureException {
         getLog().info("START org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy");
+        MavenProject rootProject = MavenUtil.getRootProject(reactorProjects);
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-deploy-plugin"),
                         version("2.8.1")
                 ),
                 goal("deploy"),
                 configuration(
                         element(name("skip"), "false"),
                         element(name("retryFailedDeploymentCount"), "1")
                 ),
                 executionEnvironment(
-                        project,
+                        rootProject,
                         session,
                         pluginManager
                 )
         );
         getLog().info("DONE org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy");
     }
 
     public String getReleaseVersion(String version) throws MojoFailureException {
-        getLog().info("Project version '" + version + "'");
+        getLog().info("Current Develop version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
             getLog().warn("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index a29e224..500b4de 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -20,3 +20,5 @@ import com.dkirrane.gitflow.groovy.ex.GitflowException;
 import com.dkirrane.gitflow.groovy.ex.GitflowMergeConflictException;
+import com.dkirrane.maven.plugins.ggitflow.util.MavenUtil;
 import java.util.List;
+import org.apache.maven.model.Model;
 import org.apache.maven.plugin.MojoExecutionException;
@@ -25,99 +27,119 @@ import org.apache.maven.plugins.annotations.Mojo;
 import org.codehaus.plexus.components.interactivity.PrompterException;
+import org.codehaus.plexus.util.StringUtils;
+import org.jfrog.hudson.util.GenericArtifactVersion;
 
 /**
  *
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().info("Finishing release '" + releaseName + "'");
 
-        // checkout develop branch to get it's version
-//        String developBranch = (String) getGitflowInit().getDevelopBrnName();
-//        getGitflowInit().executeLocal("git checkout " + developBranch);
-//        String developVersion = project.getVersion();
+        /* Get release branch name */
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
-
         if (releaseBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
-        }
-
-        if (releaseBranches.size() == 1) {
+        } else if (releaseBranches.size() == 1) {
             releaseName = releaseBranches.get(0);
         } else {
             releaseName = promptForExistingReleaseName(releaseBranches, releaseName);
         }
 
-        // 1. make sure we're on the release branch
-        if (!getGitflowInit().gitCurrentBranch().equals(releaseName)) {
-            getGitflowInit().executeLocal("git checkout " + releaseName);
-        }
-
-        String releaseVersion = getReleaseVersion(project.getVersion());
-
-        // @todo we should run clean install first
-        // 2. update poms to release version
+        /* Switch to develop branch and get current develop version */
+        String developBranch = getGitflowInit().getDevelopBranch();
+        getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
+        Model devModel = MavenUtil.readPom(reactorProjects);
+        String developVersion = devModel.getVersion();
+
+        /* Switch to release branch and set poms to release version */
+        getGitflowInit().executeLocal("git checkout " + releaseName);
+        Model relModel = MavenUtil.readPom(reactorProjects);
+        String relVersion = relModel.getVersion();
+        String releaseVersion = getReleaseVersion(relVersion);
         setVersion(releaseVersion);
 
-        // 4. finish feature
+        /* finish feature */
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowRelease.finish(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
-        //make sure we're on the develop branch
+        /* make sure we're on the develop branch */
         String currentBranch = getGitflowInit().gitCurrentBranch();
-        String developBrnName = (String) getGitflowInit().getDevelopBrnName();
-        if (!currentBranch.equals(developBrnName)) {
-            throw new MojoFailureException("Current branch should be " + developBrnName + " but was " + currentBranch);
+        if (!currentBranch.equals(developBranch)) {
+            throw new MojoFailureException("Current branch should be " + developBranch + " but was " + currentBranch);
         }
+        /* set poms to next develop version */
+        String nextDevelopVersion = getNextDevelopVersion(developVersion);
+        setVersion(nextDevelopVersion);
 
+        /* install or deploy */
         if (skipDeploy == false) {
-            // checkout and deploy the release tag
+            /* checkout and deploy the release tag */
             getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);
+            String currBranch = getGitflowInit().gitCurrentBranch();
+            System.out.println("currBranch = " + currBranch);
+            Model tagModel = MavenUtil.readPom(reactorProjects);
+            String tagVersion = tagModel.getVersion();
+            System.out.println("tagVersion = " + tagVersion);
             clean();
             deploy();
         } else if (skipBuild == false) {
-            // checkout and install the release tag
+            /* checkout and install the release tag */
             getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);
+            String currBranch = getGitflowInit().gitCurrentBranch();
+            System.out.println("currBranch = " + currBranch);
+            Model tagModel = MavenUtil.readPom(reactorProjects);
+            String tagVersion = tagModel.getVersion();
+            System.out.println("tagVersion = " + tagVersion);
             clean();
             install();
         } else {
             getLog().debug("Skipping both install and deploy");
         }
-        getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
+        getGitflowInit().executeLocal("git checkout " + developBranch);
     }
 
     private String promptForExistingReleaseName(List<String> releaseBranches, String defaultReleaseName) throws MojoFailureException {
         String message = "Please select a release branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, releaseBranches, defaultReleaseName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading release name from command line " + e.getMessage());
         }
 
         return name;
     }
 
+    private String getNextDevelopVersion(String developVersion) {
+        getLog().info("Current Develop version '" + developVersion + "'");
+
+        GenericArtifactVersion artifactVersion = new GenericArtifactVersion(developVersion);
+        artifactVersion.upgradeLeastSignificantPrimaryNumber();
+
+        return artifactVersion.toString();
+    }
+
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
index 047bbe7..1219491 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
@@ -19,2 +19,4 @@ import com.dkirrane.gitflow.groovy.GitflowRelease;
 import com.dkirrane.gitflow.groovy.ex.GitflowException;
+import com.dkirrane.maven.plugins.ggitflow.util.MavenUtil;
+import org.apache.maven.model.Model;
 import org.apache.maven.plugin.MojoExecutionException;
@@ -29,76 +31,82 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  *
  */
 @Mojo(name = "release-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class ReleaseStartMojo extends AbstractReleaseMojo {
 
     @Parameter(property = "startCommit", defaultValue = "")
     private String startCommit;
 
     @Parameter(defaultValue = "false", property = "allowSnapshots")
     private boolean allowSnapshots = false;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
-        String releaseVersion = getReleaseVersion(project.getVersion());
-        String nextDevelopmentVersion = getNextDevelopmentVersion(project.getVersion());
-        String prefix = getReleaseBranchPrefix();
+        /* Switch to develop branch and get its current version */
+        getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
+        Model model = MavenUtil.readPom(reactorProjects);
+        String developVersion = model.getVersion();
+        
+        /* Get suggested release version */
+        String releaseVersion = getReleaseVersion(developVersion);
+//        String nextDevelopmentVersion = getNextDevelopmentVersion(project.getVersion());        
 
         // 1. first we should create release branch
+        String prefix = getReleaseBranchPrefix();
         if (StringUtils.isBlank(releaseName)) {
             System.out.println("prefix = " + prefix);
             System.out.println("prompter = " + prompter);
             String message = "What is the release branch name? " + prefix;
             System.out.println("message = " + message);
             try {
                 releaseName = prompter.prompt(message, releaseVersion);
                 if (StringUtils.isBlank(releaseName)) {
                     throw new MojoFailureException("Parameter <releaseName> cannot be null or empty.");
                 }
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading release name from command line " + ex.getMessage(), ex);
             }
         }
 
         try {
             new GenericArtifactVersion(releaseName);
         } catch (IllegalArgumentException e) {
             throw new MojoExecutionException("Provided releaseName " + releaseName + " is not a valid Maven version.");
         }
 
         getLog().info("Starting release '" + releaseName + "'");
         getLog().info("msgPrefix '" + getMsgPrefix() + "'");
         getLog().info("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowRelease.start(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         // current branch should be the release branch
         String releaseBranch = getGitflowInit().gitCurrentBranch();
         if (!releaseBranch.startsWith(prefix)) {
             throw new MojoFailureException("Failed to create release version.");
         }
 
 //        // checkout develop branch and update it's version
 //        String developBranch = (String) getGitflowInit().getDevelopBrnName();
 //        getGitflowInit().executeLocal("git checkout " + developBranch);
 //        setVersion(nextDevelopmentVersion);
 //
 //        // 3. then checkout release branch again
 //        getGitflowInit().executeLocal("git checkout " + releaseBranch);
     }
 
     public String getReleaseName() {
         return releaseName;
     }
 }

commit c74a85a9c955b0795b43d3890ca53f294dc6595c
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Tue Feb 4 20:07:33 2014 +0000

    Reactor reload for feature

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index e1b6f15..9824f6d 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -18,2 +18,4 @@ package com.dkirrane.maven.plugins.ggitflow;
 import com.dkirrane.gitflow.groovy.GitflowInit;
+import com.dkirrane.gitflow.groovy.ex.GitflowException;
+import java.util.List;
 import java.util.Map;
@@ -44,224 +46,243 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 /**
  *
  */
 public class AbstractGitflowMojo extends AbstractMojo {
 
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
     @Parameter(property = "msgPrefix", defaultValue = "")
     protected String msgPrefix;
 
     @Parameter(property = "msgSuffix", defaultValue = "")
     protected String msgSuffix;
 
     @Parameter(property = "skipBuild", defaultValue = "false")
     protected Boolean skipBuild;
 
     @Parameter(property = "skipDeploy", defaultValue = "false")
     protected Boolean skipDeploy;
 
     /**
      * Component used to prompt for input.
      */
     @Component
     protected Prompter prompter;
 
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
 //    @Component
 //    protected MavenProjectBuilder projectBuilder;
 //    @Component
 //    protected DefaultProjectBuilder projectBuilder;
-
 //    /**
 //     * @parameter property="plugin"
 //     * @required
 //     */
 //    @Component
 //    protected PluginDescriptor pluginDescriptor;
 //
+    /**
+     * The projects in the reactor.
+     */
+    @Parameter(defaultValue = "${reactorProjects}", readonly = true, required = true)
+    protected List<MavenProject> reactorProjects;
+    
     /**
      * The project currently being build.
      *
      * @parameter expression="${project}"
      * @required
      * @readonly
      */
     @Component
     protected MavenProject project;
 
     /**
      * The current Maven session.
      *
      * @parameter expression="${session}"
      * @required
      * @readonly
      */
     @Component
     protected MavenSession session;
 
     /**
      * The Maven BuildPluginManager component.
      *
      * @component
      * @required
      */
     @Component
     protected BuildPluginManager pluginManager;
 
     private GitflowInit init;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     public void execute() throws MojoExecutionException, MojoFailureException {
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             getLog().info("Gitflow pom  '" + project.getBasedir() + "'");
         }
+
+        GitflowInit gitflowInit = getGitflowInit();
+
+        gitflowInit.requireGitRepo();
+
+        if (!gitflowInit.gitflowIsInitialized()) {
+            try {
+                gitflowInit.cmdDefault();
+            } catch (GitflowException ex) {
+                throw new MojoExecutionException("Failed to inintialise Gitflow " + ex.getMessage(), ex);
+            }
+        }
+
+        gitflowInit.requireCleanWorkingTree();
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     public GitflowInit getGitflowInit() {
         if (null == init) {
             init = new GitflowInit();
             init.setRepoDir(getProject().getBasedir());
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
         }
         return init;
     }
 
     public void setVersion(String version) throws MojoExecutionException, MojoFailureException {
         getLog().info("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
         executeMojo(
                 plugin(
                         groupId("org.codehaus.mojo"),
                         artifactId("versions-maven-plugin"),
                         version("2.1")
                 ),
                 goal("set"),
                 configuration(
                         element(name("generateBackupPoms"), "false"),
                         element(name("newVersion"), version)
                 ),
                 executionEnvironment(
                         project,
                         session,
                         pluginManager
                 )
         );
         getLog().info("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
         }
         /* We don't want to fail maybe the version was manually set correctly */
 //        else {
 //            throw new MojoFailureException("Failed to update poms to version " + version);
 //        }
     }
 
     public void clean() throws MojoExecutionException, MojoFailureException {
         getLog().info("START org.apache.maven.plugins:maven-clean-plugin:2.5:clean");
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-clean-plugin"),
                         version("2.5")
                 ),
                 goal("clean"),
                 configuration(
                         element(name("skip"), "false")
                 ),
                 executionEnvironment(
                         project,
                         session,
                         pluginManager
                 )
         );
         getLog().info("DONE org.apache.maven.plugins:maven-clean-plugin:2.5:clean");
     }
 
     public void install() throws MojoExecutionException, MojoFailureException {
         getLog().info("START org.apache.maven.plugins:maven-install-plugin:2.5.1:install");
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-install-plugin"),
                         version("2.5.1")
                 ),
                 goal("install"),
                 configuration(
                         element(name("skip"), "false")
                 ),
                 executionEnvironment(
                         project,
                         session,
                         pluginManager
                 )
         );
         getLog().info("DONE org.apache.maven.plugins:maven-install-plugin:2.5.1:install");
     }
 
     public void deploy() throws MojoExecutionException, MojoFailureException {
         getLog().info("START org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy");
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-deploy-plugin"),
                         version("2.8.1")
                 ),
                 goal("deploy"),
                 configuration(
                         element(name("skip"), "false"),
                         element(name("retryFailedDeploymentCount"), "1")
                 ),
                 executionEnvironment(
                         project,
                         session,
                         pluginManager
                 )
         );
         getLog().info("DONE org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy");
     }
 
     public String getReleaseVersion(String version) throws MojoFailureException {
         getLog().info("Project version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
             getLog().warn("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
index 83f20f2..bbb6fec 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
@@ -20,3 +20,5 @@ import com.dkirrane.gitflow.groovy.ex.GitflowException;
 import com.dkirrane.gitflow.groovy.ex.GitflowMergeConflictException;
+import com.dkirrane.maven.plugins.ggitflow.util.MavenUtil;
 import java.util.List;
+import org.apache.maven.model.Model;
 import org.apache.maven.plugin.MojoExecutionException;
@@ -28,66 +30,72 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  *
  */
 @Mojo(name = "feature-finish", aggregator = true)
 public class FeatureFinishMojo extends AbstractFeatureMojo {
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().info("Finishing feature '" + featureName + "'");
 
         String featureBranchPrefix = getFeatureBranchPrefix();
         if (StringUtils.isBlank(featureName)) {
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (currentBranch.startsWith(featureBranchPrefix)) {
                 featureName = currentBranch;
+            } else {
+                featureName = "";
             }
         } else {
             featureName = getFeatureName(featureName);
         }
 
         List<String> featureBranches = getGitflowInit().gitLocalFeatureBranches();
 
         featureName = promptForExistingFeatureName(featureBranches, featureName);
 
         if (enableFeatureVersions) {
-            String featureVersion = project.getVersion();
+            /* Switch to feature branch and get its current version */
+            getGitflowInit().executeLocal("git checkout " + featureName);
+            Model model = MavenUtil.readPom(reactorProjects);
+            String featureVersion = model.getVersion();            
+
             String nonFeatureVersion = getNonFeatureVersion(featureVersion, featureName.replace(featureBranchPrefix, ""));
             setVersion(nonFeatureVersion);
         }
 
         if (!skipBuild) {
             clean();
             install();
         } else {
             getLog().debug("Skipping both install and deploy");
         }
 
         GitflowFeature gitflowFeature = new GitflowFeature();
         gitflowFeature.setInit(getGitflowInit());
         gitflowFeature.setMsgPrefix(getMsgPrefix());
         gitflowFeature.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowFeature.finish(featureName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
     }
 
     private String promptForExistingFeatureName(List<String> featureBranches, String defaultFeatureName) throws MojoFailureException {
         String message = "Please select a feature branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, featureBranches, defaultFeatureName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading feature name from command line " + e.getMessage());
         }
 
         return name;
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
index 6330a94..de4ae57 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
@@ -19,2 +19,6 @@ import com.dkirrane.gitflow.groovy.GitflowFeature;
 import com.dkirrane.gitflow.groovy.ex.GitflowException;
+import com.dkirrane.maven.plugins.ggitflow.util.MavenUtil;
+import java.util.logging.Level;
+import java.util.logging.Logger;
+import org.apache.maven.model.Model;
 import org.apache.maven.plugin.MojoExecutionException;
@@ -28,60 +32,63 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  *
  */
 @Mojo(name = "feature-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class FeatureStartMojo extends AbstractFeatureMojo {
 
     @Parameter(property = "startCommit", defaultValue = "")
     private String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         String prefix = getFeatureBranchPrefix();
-        if (StringUtils.isBlank(featureName)) {            
+        if (StringUtils.isBlank(featureName)) {
             System.out.println("prefix = " + prefix);
             System.out.println("prompter = " + prompter);
             String message = "What is the feature branch name? " + prefix;
             System.out.println("message = " + message);
             try {
                 featureName = prompter.prompt(message);
                 if (StringUtils.isBlank(featureName)) {
                     throw new MojoFailureException("Parameter <featureName> cannot be null or empty.");
                 }
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading feature name from command line " + ex.getMessage(), ex);
             }
         }
         featureName = getFeatureName(featureName);
 
         getLog().info("Starting feature '" + featureName + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowFeature gitflowFeature = new GitflowFeature();
         gitflowFeature.setInit(getGitflowInit());
         gitflowFeature.setMsgPrefix(getMsgPrefix());
         gitflowFeature.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowFeature.start(featureName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         if (enableFeatureVersions) {
-            String currentVersion = project.getVersion();
+            /* Already on feature branch so just get its current version */
+            Model model = MavenUtil.readPom(reactorProjects);
+            String currentVersion = model.getVersion();
+
             String featureVersion = getFeatureVersion(currentVersion, featureName);
             setVersion(featureVersion);
 
             if (getGitflowInit().gitRemoteBranchExists(prefix + featureName)) {
                 getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + featureName);
             }
         }
     }
 
     public String getFeatureName() {
         return featureName;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/util/MavenUtil.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/util/MavenUtil.java
index e285b32..e7ccaae 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/util/MavenUtil.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/util/MavenUtil.java
@@ -17,20 +17,55 @@ package com.dkirrane.maven.plugins.ggitflow.util;
 
+import java.io.File;
+import java.io.FileNotFoundException;
+import java.io.FileReader;
+import java.io.IOException;
 import java.util.List;
+import org.apache.maven.model.Model;
+import org.apache.maven.model.io.xpp3.MavenXpp3Reader;
+import org.apache.maven.plugin.MojoExecutionException;
 import org.apache.maven.project.MavenProject;
+import org.codehaus.plexus.util.xml.pull.XmlPullParserException;
 
 /**
  *
  */
 public final class MavenUtil {
 
     public static MavenProject getRootProject(List<MavenProject> reactorProjects) {
         MavenProject project = reactorProjects.get(0);
         for (MavenProject currentProject : reactorProjects) {
             if (currentProject.isExecutionRoot()) {
                 project = currentProject;
                 break;
             }
         }
         return project;
     }
+
+    public static Model readPom(List<MavenProject> reactorProjects) throws MojoExecutionException {
+        MavenProject rootProject = getRootProject(reactorProjects);
+        File pomFile = rootProject.getFile();
+        
+        FileReader fileReader = null;
+
+        try {
+            fileReader = new FileReader(pomFile);
+            MavenXpp3Reader m = new MavenXpp3Reader();
+            Model model = m.read(fileReader);
+            return model;
+        } catch (FileNotFoundException ex) {
+            throw new MojoExecutionException("POM " + pomFile.getAbsolutePath() + " could not be parsed.", ex);
+        } catch (IOException ex) {
+            throw new MojoExecutionException("POM " + pomFile.getAbsolutePath() + " could not be parsed.", ex);
+        } catch (XmlPullParserException ex) {
+            throw new MojoExecutionException("POM " + pomFile.getAbsolutePath() + " could not be parsed.", ex);
+        } finally {
+            if (null != fileReader) {
+                try {
+                    fileReader.close();
+                } catch (IOException ex) {
+                }
+            }
+        }
+    }
 }

commit 48b860c85c2ce0472de0f3334aa8917388d1e0bd
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Mon Feb 3 22:33:46 2014 +0000

    finish release

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index ca1fe59..a29e224 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -27,99 +27,97 @@ import org.codehaus.plexus.components.interactivity.PrompterException;
 /**
  *
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().info("Finishing release '" + releaseName + "'");
 
         // checkout develop branch to get it's version
 //        String developBranch = (String) getGitflowInit().getDevelopBrnName();
 //        getGitflowInit().executeLocal("git checkout " + developBranch);
 //        String developVersion = project.getVersion();
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
 
         if (releaseBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         }
 
         if (releaseBranches.size() == 1) {
             releaseName = releaseBranches.get(0);
         } else {
             releaseName = promptForExistingReleaseName(releaseBranches, releaseName);
         }
 
         // 1. make sure we're on the release branch
         if (!getGitflowInit().gitCurrentBranch().equals(releaseName)) {
             getGitflowInit().executeLocal("git checkout " + releaseName);
         }
 
         String releaseVersion = getReleaseVersion(project.getVersion());
 
         // @todo we should run clean install first
         // 2. update poms to release version
         setVersion(releaseVersion);
 
         // 4. finish feature
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowRelease.finish(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         //make sure we're on the develop branch
         String currentBranch = getGitflowInit().gitCurrentBranch();
         String developBrnName = (String) getGitflowInit().getDevelopBrnName();
         if (!currentBranch.equals(developBrnName)) {
             throw new MojoFailureException("Current branch should be " + developBrnName + " but was " + currentBranch);
         }
-      
-        System.out.println("skipDeploy = " + skipDeploy);
-        System.out.println("skipBuild = " + skipBuild);
+
         if (skipDeploy == false) {
             // checkout and deploy the release tag
-            getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);            
+            getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);
             clean();
             deploy();
         } else if (skipBuild == false) {
             // checkout and install the release tag
-            getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);            
+            getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);
             clean();
             install();
         } else {
             getLog().debug("Skipping both install and deploy");
         }
-        getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch()); 
+        getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
     }
 
     private String promptForExistingReleaseName(List<String> releaseBranches, String defaultReleaseName) throws MojoFailureException {
         String message = "Please select a release branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, releaseBranches, defaultReleaseName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading release name from command line " + e.getMessage());
         }
 
         return name;
     }
 
 }

commit f30cdf7c482f4f48f3f754e4856b68b3435207c6
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Mon Feb 3 22:31:04 2014 +0000

    checkout develop at end

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
index 53bb576..4f0cfa8 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
@@ -28,68 +28,69 @@ import org.codehaus.plexus.components.interactivity.PrompterException;
 /**
  *
  */
 @Mojo(name = "hotfix-finish", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class HotfixFinishMojo extends HotfixAbstractMojo {
 
     protected String hotfixName;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         List<String> hotfixBranches = getGitflowInit().gitLocalHotfixBranches();
 
         if (hotfixBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         }
 
         if (hotfixBranches.size() == 1) {
             hotfixName = hotfixBranches.get(0);
         } else {
             hotfixName = promptForExistingHotfixName(hotfixBranches, hotfixName);
         }
 
         String hotfixReleaseVersion = getReleaseVersion(project.getVersion());
         setVersion(hotfixReleaseVersion);
 
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowHotfix.finish(hotfixName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
-        
+
         if (skipDeploy == false) {
             // checkout and deploy the hotfix tag
-            getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + hotfixName);            
+            getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + hotfixName);
             clean();
             deploy();
         } else if (skipBuild == false) {
             // checkout and install the hotfix tag
-            getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + hotfixName);            
+            getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + hotfixName);
             clean();
             install();
         } else {
             getLog().debug("Skipping both install and deploy");
-        }        
+        }
+        getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch());
     }
 
     private String promptForExistingHotfixName(List<String> hotfixBranches, String defaultHotfixName) throws MojoFailureException {
         String message = "Please select a hotfix branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, hotfixBranches, defaultHotfixName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading hotfix name from command line " + e.getMessage());
         }
 
         return name;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index c94209e..ca1fe59 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -27,99 +27,99 @@ import org.codehaus.plexus.components.interactivity.PrompterException;
 /**
  *
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().info("Finishing release '" + releaseName + "'");
 
         // checkout develop branch to get it's version
 //        String developBranch = (String) getGitflowInit().getDevelopBrnName();
 //        getGitflowInit().executeLocal("git checkout " + developBranch);
 //        String developVersion = project.getVersion();
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
 
         if (releaseBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         }
 
         if (releaseBranches.size() == 1) {
             releaseName = releaseBranches.get(0);
         } else {
             releaseName = promptForExistingReleaseName(releaseBranches, releaseName);
         }
 
         // 1. make sure we're on the release branch
         if (!getGitflowInit().gitCurrentBranch().equals(releaseName)) {
             getGitflowInit().executeLocal("git checkout " + releaseName);
         }
 
         String releaseVersion = getReleaseVersion(project.getVersion());
 
         // @todo we should run clean install first
         // 2. update poms to release version
         setVersion(releaseVersion);
 
         // 4. finish feature
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowRelease.finish(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         //make sure we're on the develop branch
         String currentBranch = getGitflowInit().gitCurrentBranch();
         String developBrnName = (String) getGitflowInit().getDevelopBrnName();
         if (!currentBranch.equals(developBrnName)) {
             throw new MojoFailureException("Current branch should be " + developBrnName + " but was " + currentBranch);
         }
       
         System.out.println("skipDeploy = " + skipDeploy);
         System.out.println("skipBuild = " + skipBuild);
         if (skipDeploy == false) {
             // checkout and deploy the release tag
             getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);            
             clean();
             deploy();
         } else if (skipBuild == false) {
             // checkout and install the release tag
             getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);            
             clean();
             install();
         } else {
             getLog().debug("Skipping both install and deploy");
         }
-//        getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion); 
+        getGitflowInit().executeLocal("git checkout " + getGitflowInit().getDevelopBranch()); 
     }
 
     private String promptForExistingReleaseName(List<String> releaseBranches, String defaultReleaseName) throws MojoFailureException {
         String message = "Please select a release branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, releaseBranches, defaultReleaseName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading release name from command line " + e.getMessage());
         }
 
         return name;
     }
 
 }

commit 6e87ae21e304c02851e4e5001bad69714a926c02
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Mon Feb 3 22:29:35 2014 +0000

    Fixes for deploy

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index ac13b14..e1b6f15 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -44,225 +44,224 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 /**
  *
  */
 public class AbstractGitflowMojo extends AbstractMojo {
 
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
     @Parameter(property = "msgPrefix", defaultValue = "")
     protected String msgPrefix;
 
     @Parameter(property = "msgSuffix", defaultValue = "")
     protected String msgSuffix;
 
     @Parameter(property = "skipBuild", defaultValue = "false")
     protected Boolean skipBuild;
 
     @Parameter(property = "skipDeploy", defaultValue = "false")
     protected Boolean skipDeploy;
 
     /**
      * Component used to prompt for input.
      */
     @Component
     protected Prompter prompter;
 
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
 //    @Component
 //    protected MavenProjectBuilder projectBuilder;
 //    @Component
 //    protected DefaultProjectBuilder projectBuilder;
 
 //    /**
 //     * @parameter property="plugin"
 //     * @required
 //     */
 //    @Component
 //    protected PluginDescriptor pluginDescriptor;
 //
     /**
      * The project currently being build.
      *
      * @parameter expression="${project}"
      * @required
      * @readonly
      */
     @Component
     protected MavenProject project;
 
     /**
      * The current Maven session.
      *
      * @parameter expression="${session}"
      * @required
      * @readonly
      */
     @Component
     protected MavenSession session;
 
     /**
      * The Maven BuildPluginManager component.
      *
      * @component
      * @required
      */
     @Component
     protected BuildPluginManager pluginManager;
 
     private GitflowInit init;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     public void execute() throws MojoExecutionException, MojoFailureException {
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             getLog().info("Gitflow pom  '" + project.getBasedir() + "'");
         }
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     public GitflowInit getGitflowInit() {
         if (null == init) {
             init = new GitflowInit();
             init.setRepoDir(getProject().getBasedir());
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
         }
         return init;
     }
 
     public void setVersion(String version) throws MojoExecutionException, MojoFailureException {
         getLog().info("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
         executeMojo(
                 plugin(
                         groupId("org.codehaus.mojo"),
                         artifactId("versions-maven-plugin"),
                         version("2.1")
                 ),
                 goal("set"),
                 configuration(
                         element(name("generateBackupPoms"), "false"),
                         element(name("newVersion"), version)
                 ),
                 executionEnvironment(
                         project,
                         session,
                         pluginManager
                 )
         );
         getLog().info("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
         }
         /* We don't want to fail maybe the version was manually set correctly */
 //        else {
 //            throw new MojoFailureException("Failed to update poms to version " + version);
 //        }
     }
 
     public void clean() throws MojoExecutionException, MojoFailureException {
         getLog().info("START org.apache.maven.plugins:maven-clean-plugin:2.5:clean");
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-clean-plugin"),
                         version("2.5")
                 ),
                 goal("clean"),
                 configuration(
                         element(name("skip"), "false")
                 ),
                 executionEnvironment(
                         project,
                         session,
                         pluginManager
                 )
         );
         getLog().info("DONE org.apache.maven.plugins:maven-clean-plugin:2.5:clean");
     }
 
     public void install() throws MojoExecutionException, MojoFailureException {
         getLog().info("START org.apache.maven.plugins:maven-install-plugin:2.5.1:install");
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-install-plugin"),
                         version("2.5.1")
                 ),
                 goal("install"),
                 configuration(
                         element(name("skip"), "false")
                 ),
                 executionEnvironment(
                         project,
                         session,
                         pluginManager
                 )
         );
         getLog().info("DONE org.apache.maven.plugins:maven-install-plugin:2.5.1:install");
     }
 
     public void deploy() throws MojoExecutionException, MojoFailureException {
         getLog().info("START org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy");
         executeMojo(
                 plugin(
                         groupId("org.apache.maven.plugins"),
                         artifactId("maven-deploy-plugin"),
                         version("2.8.1")
                 ),
                 goal("deploy"),
                 configuration(
                         element(name("skip"), "false"),
-                        element(name("deployAtEnd"), "true"),
                         element(name("retryFailedDeploymentCount"), "1")
                 ),
                 executionEnvironment(
                         project,
                         session,
                         pluginManager
                 )
         );
         getLog().info("DONE org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy");
     }
 
     public String getReleaseVersion(String version) throws MojoFailureException {
         getLog().info("Project version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
             getLog().warn("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
index 4d5e970..53bb576 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
@@ -28,64 +28,68 @@ import org.codehaus.plexus.components.interactivity.PrompterException;
 /**
  *
  */
 @Mojo(name = "hotfix-finish", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class HotfixFinishMojo extends HotfixAbstractMojo {
 
     protected String hotfixName;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         List<String> hotfixBranches = getGitflowInit().gitLocalHotfixBranches();
 
         if (hotfixBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         }
 
         if (hotfixBranches.size() == 1) {
             hotfixName = hotfixBranches.get(0);
         } else {
             hotfixName = promptForExistingHotfixName(hotfixBranches, hotfixName);
         }
 
         String hotfixReleaseVersion = getReleaseVersion(project.getVersion());
         setVersion(hotfixReleaseVersion);
 
-        if (!skipDeploy) {
-            clean();
-            deploy();
-        } else if (!skipBuild) {
-            clean();
-            install();
-        } else {
-            getLog().debug("Skipping both install and deploy");
-        }
-
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowHotfix.finish(hotfixName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
+        
+        if (skipDeploy == false) {
+            // checkout and deploy the hotfix tag
+            getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + hotfixName);            
+            clean();
+            deploy();
+        } else if (skipBuild == false) {
+            // checkout and install the hotfix tag
+            getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + hotfixName);            
+            clean();
+            install();
+        } else {
+            getLog().debug("Skipping both install and deploy");
+        }        
     }
 
     private String promptForExistingHotfixName(List<String> hotfixBranches, String defaultHotfixName) throws MojoFailureException {
         String message = "Please select a hotfix branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, hotfixBranches, defaultHotfixName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading hotfix name from command line " + e.getMessage());
         }
 
         return name;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index ca7389d..c94209e 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -27,96 +27,99 @@ import org.codehaus.plexus.components.interactivity.PrompterException;
 /**
  *
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().info("Finishing release '" + releaseName + "'");
 
         // checkout develop branch to get it's version
 //        String developBranch = (String) getGitflowInit().getDevelopBrnName();
 //        getGitflowInit().executeLocal("git checkout " + developBranch);
 //        String developVersion = project.getVersion();
-
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
 
         if (releaseBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         }
 
         if (releaseBranches.size() == 1) {
             releaseName = releaseBranches.get(0);
         } else {
             releaseName = promptForExistingReleaseName(releaseBranches, releaseName);
         }
 
         // 1. make sure we're on the release branch
         if (!getGitflowInit().gitCurrentBranch().equals(releaseName)) {
             getGitflowInit().executeLocal("git checkout " + releaseName);
         }
 
         String releaseVersion = getReleaseVersion(project.getVersion());
 
         // @todo we should run clean install first
         // 2. update poms to release version
         setVersion(releaseVersion);
-        
-        if (!skipDeploy) {
-            clean();
-            deploy();
-        } else if (!skipBuild) {
-            clean();
-            install();
-        } else {
-            getLog().debug("Skipping both install and deploy");
-        }        
 
         // 4. finish feature
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowRelease.finish(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         //make sure we're on the develop branch
         String currentBranch = getGitflowInit().gitCurrentBranch();
         String developBrnName = (String) getGitflowInit().getDevelopBrnName();
         if (!currentBranch.equals(developBrnName)) {
             throw new MojoFailureException("Current branch should be " + developBrnName + " but was " + currentBranch);
         }
-
-        // @todo checkout and deploy the release tag
-        getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);
+      
+        System.out.println("skipDeploy = " + skipDeploy);
+        System.out.println("skipBuild = " + skipBuild);
+        if (skipDeploy == false) {
+            // checkout and deploy the release tag
+            getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);            
+            clean();
+            deploy();
+        } else if (skipBuild == false) {
+            // checkout and install the release tag
+            getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);            
+            clean();
+            install();
+        } else {
+            getLog().debug("Skipping both install and deploy");
+        }
+//        getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion); 
     }
 
     private String promptForExistingReleaseName(List<String> releaseBranches, String defaultReleaseName) throws MojoFailureException {
         String message = "Please select a release branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, releaseBranches, defaultReleaseName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading release name from command line " + e.getMessage());
         }
 
         return name;
     }
 
 }

commit 6329075e921c8a5d004dde73c6e8fcdb64be88b9
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Sun Feb 2 23:34:52 2014 +0000

    Clean deploy fixes

diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index 13da9b3..21924ad 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,198 +1,213 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
     <version>1.0-SNAPSHOT</version>
     <packaging>maven-plugin</packaging>
 
     <name>ggitflow-maven-plugin</name>
 
     <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
     </properties>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
             <version>1.0-SNAPSHOT</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
         <dependency>
             <groupId>jline</groupId>
             <artifactId>jline</artifactId>
             <version>2.11</version>
             <type>jar</type>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>3.2</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>3.0.8</version>
         </dependency>
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-interactivity-api</artifactId>
             <version>1.0-alpha-5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>2.4</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-project</artifactId>
             <version>2.2.1</version>
             <type>jar</type>
         </dependency>
+        <dependency>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-clean-plugin</artifactId>
+            <version>2.5</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-install-plugin</artifactId>
+            <version>2.5.1</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-deploy-plugin</artifactId>
+            <version>2.8.1</version>
+        </dependency>
     </dependencies>
 
     <build>
         <resources>
             <resource>
                 <directory>src/it</directory>
                 <includes>
                     <include>**/**</include>
                 </includes>
             </resource>
         </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>3.2</version>
                 <configuration>
                     <goalPrefix>ggitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                     <execution>
                         <id>help-goal</id>
                         <goals>
                             <goal>helpmojo</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
         </plugins>
     </build>
     <profiles>
         <profile>
             <id>run-its</id>
             <build>
                 <plugins>                                                      
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-invoker-plugin</artifactId>
                         <version>1.8</version>
                         <configuration>
                             <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
                             <settingsFile>src/it/settings.xml</settingsFile>
                             <debug>true</debug>
                             <showErrors>true</showErrors>
                             <detail>true</detail>
                             <streamLogs>true</streamLogs>
                             <projectsDirectory>src/it/projects</projectsDirectory>
                             <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
                             <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
                             <addTestClassPath>true</addTestClassPath>
                             <preBuildHookScript>setup</preBuildHookScript>
                             <postBuildHookScript>verify</postBuildHookScript>
                             <pomIncludes>
                                 <pomInclude>*/pom.xml</pomInclude>
                             </pomIncludes>
                             <goals>
                                 <goal>clean</goal>
                                 <goal>test-compile</goal>
                             </goals>
                         </configuration>
                         <executions>
                             <execution>
                                 <id>integration-test</id>
                                 <goals>
                                     <goal>install</goal>
                                     <goal>integration-test</goal>
                                     <goal>verify</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
 
             </build>
         </profile>
     </profiles>
 
     <!--
         Sonatype upload details:
         http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
         https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
         https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
         https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
 
             - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
             - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
             - Promote staged artifacts into repository 'Releases'
             - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
             - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
     -->
 
     <distributionManagement>
         <snapshotRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
         </snapshotRepository>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
         </repository>
     </distributionManagement>
     <repositories>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
             <snapshots>
                 <enabled>true</enabled>
             </snapshots>
         </repository>
     </repositories>
 </project>
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index a0c0ad9..ac13b14 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -44,223 +44,225 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 /**
  *
  */
 public class AbstractGitflowMojo extends AbstractMojo {
 
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
     @Parameter(property = "msgPrefix", defaultValue = "")
     protected String msgPrefix;
 
     @Parameter(property = "msgSuffix", defaultValue = "")
     protected String msgSuffix;
 
     @Parameter(property = "skipBuild", defaultValue = "false")
     protected Boolean skipBuild;
 
     @Parameter(property = "skipDeploy", defaultValue = "false")
     protected Boolean skipDeploy;
 
     /**
      * Component used to prompt for input.
      */
     @Component
     protected Prompter prompter;
 
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
 //    @Component
 //    protected MavenProjectBuilder projectBuilder;
-    @Component
-    protected DefaultProjectBuilder projectBuilder;
+//    @Component
+//    protected DefaultProjectBuilder projectBuilder;
 
 //    /**
 //     * @parameter property="plugin"
 //     * @required
 //     */
 //    @Component
 //    protected PluginDescriptor pluginDescriptor;
 //
     /**
      * The project currently being build.
      *
      * @parameter expression="${project}"
      * @required
      * @readonly
      */
     @Component
     protected MavenProject project;
 
     /**
      * The current Maven session.
      *
      * @parameter expression="${session}"
      * @required
      * @readonly
      */
     @Component
     protected MavenSession session;
 
     /**
      * The Maven BuildPluginManager component.
      *
      * @component
      * @required
      */
     @Component
     protected BuildPluginManager pluginManager;
 
     private GitflowInit init;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     public void execute() throws MojoExecutionException, MojoFailureException {
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             getLog().info("Gitflow pom  '" + project.getBasedir() + "'");
         }
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     public GitflowInit getGitflowInit() {
         if (null == init) {
             init = new GitflowInit();
             init.setRepoDir(getProject().getBasedir());
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
         }
         return init;
     }
 
     public void setVersion(String version) throws MojoExecutionException, MojoFailureException {
         getLog().info("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
         executeMojo(
                 plugin(
                         groupId("org.codehaus.mojo"),
                         artifactId("versions-maven-plugin"),
                         version("2.1")
                 ),
                 goal("set"),
                 configuration(
                         element(name("generateBackupPoms"), "false"),
                         element(name("newVersion"), version)
                 ),
                 executionEnvironment(
                         project,
                         session,
                         pluginManager
                 )
         );
         getLog().info("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
-        } else {
-            throw new MojoFailureException("Failed to update poms to version " + version);
         }
+        /* We don't want to fail maybe the version was manually set correctly */
+//        else {
+//            throw new MojoFailureException("Failed to update poms to version " + version);
+//        }
     }
 
     public void clean() throws MojoExecutionException, MojoFailureException {
         getLog().info("START org.apache.maven.plugins:maven-clean-plugin:2.5:clean");
         executeMojo(
                 plugin(
-                        groupId("org.codehaus.mojo"),
+                        groupId("org.apache.maven.plugins"),
                         artifactId("maven-clean-plugin"),
                         version("2.5")
                 ),
                 goal("clean"),
                 configuration(
                         element(name("skip"), "false")
                 ),
                 executionEnvironment(
                         project,
                         session,
                         pluginManager
                 )
         );
         getLog().info("DONE org.apache.maven.plugins:maven-clean-plugin:2.5:clean");
     }
 
     public void install() throws MojoExecutionException, MojoFailureException {
         getLog().info("START org.apache.maven.plugins:maven-install-plugin:2.5.1:install");
         executeMojo(
                 plugin(
-                        groupId("org.codehaus.mojo"),
+                        groupId("org.apache.maven.plugins"),
                         artifactId("maven-install-plugin"),
                         version("2.5.1")
                 ),
                 goal("install"),
                 configuration(
                         element(name("skip"), "false")
                 ),
                 executionEnvironment(
                         project,
                         session,
                         pluginManager
                 )
         );
         getLog().info("DONE org.apache.maven.plugins:maven-install-plugin:2.5.1:install");
     }
 
     public void deploy() throws MojoExecutionException, MojoFailureException {
         getLog().info("START org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy");
         executeMojo(
                 plugin(
-                        groupId("org.codehaus.mojo"),
+                        groupId("org.apache.maven.plugins"),
                         artifactId("maven-deploy-plugin"),
                         version("2.8.1")
                 ),
                 goal("deploy"),
                 configuration(
                         element(name("skip"), "false"),
                         element(name("deployAtEnd"), "true"),
                         element(name("retryFailedDeploymentCount"), "1")
                 ),
                 executionEnvironment(
                         project,
                         session,
                         pluginManager
                 )
         );
         getLog().info("DONE org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy");
     }
 
     public String getReleaseVersion(String version) throws MojoFailureException {
         getLog().info("Project version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
             getLog().warn("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
 }

commit e5942d99a2a6ed1cfa7d0114a730d95afd0b225d
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Sun Feb 2 23:13:20 2014 +0000

    Clean install deploy

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index fbb7d40..a0c0ad9 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -44,217 +44,223 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 /**
  *
  */
 public class AbstractGitflowMojo extends AbstractMojo {
 
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
     @Parameter(property = "msgPrefix", defaultValue = "")
     protected String msgPrefix;
 
     @Parameter(property = "msgSuffix", defaultValue = "")
     protected String msgSuffix;
 
+    @Parameter(property = "skipBuild", defaultValue = "false")
+    protected Boolean skipBuild;
+
+    @Parameter(property = "skipDeploy", defaultValue = "false")
+    protected Boolean skipDeploy;
+
     /**
      * Component used to prompt for input.
      */
     @Component
     protected Prompter prompter;
 
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
 //    @Component
 //    protected MavenProjectBuilder projectBuilder;
     @Component
     protected DefaultProjectBuilder projectBuilder;
 
 //    /**
 //     * @parameter property="plugin"
 //     * @required
 //     */
 //    @Component
 //    protected PluginDescriptor pluginDescriptor;
 //
     /**
      * The project currently being build.
      *
      * @parameter expression="${project}"
      * @required
      * @readonly
      */
     @Component
     protected MavenProject project;
 
     /**
      * The current Maven session.
      *
      * @parameter expression="${session}"
      * @required
      * @readonly
      */
     @Component
     protected MavenSession session;
 
     /**
      * The Maven BuildPluginManager component.
      *
      * @component
      * @required
      */
     @Component
     protected BuildPluginManager pluginManager;
 
     private GitflowInit init;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     public void execute() throws MojoExecutionException, MojoFailureException {
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             getLog().info("Gitflow pom  '" + project.getBasedir() + "'");
         }
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     public GitflowInit getGitflowInit() {
         if (null == init) {
             init = new GitflowInit();
             init.setRepoDir(getProject().getBasedir());
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
         }
         return init;
     }
 
     public void setVersion(String version) throws MojoExecutionException, MojoFailureException {
         getLog().info("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
         executeMojo(
                 plugin(
                         groupId("org.codehaus.mojo"),
                         artifactId("versions-maven-plugin"),
                         version("2.1")
                 ),
                 goal("set"),
                 configuration(
                         element(name("generateBackupPoms"), "false"),
                         element(name("newVersion"), version)
                 ),
                 executionEnvironment(
                         project,
                         session,
                         pluginManager
                 )
         );
         getLog().info("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
         } else {
             throw new MojoFailureException("Failed to update poms to version " + version);
         }
     }
 
     public void clean() throws MojoExecutionException, MojoFailureException {
         getLog().info("START org.apache.maven.plugins:maven-clean-plugin:2.5:clean");
         executeMojo(
                 plugin(
                         groupId("org.codehaus.mojo"),
                         artifactId("maven-clean-plugin"),
                         version("2.5")
                 ),
                 goal("clean"),
                 configuration(
                         element(name("skip"), "false")
                 ),
                 executionEnvironment(
                         project,
                         session,
                         pluginManager
                 )
         );
         getLog().info("DONE org.apache.maven.plugins:maven-clean-plugin:2.5:clean");
     }
 
     public void install() throws MojoExecutionException, MojoFailureException {
         getLog().info("START org.apache.maven.plugins:maven-install-plugin:2.5.1:install");
         executeMojo(
                 plugin(
                         groupId("org.codehaus.mojo"),
                         artifactId("maven-install-plugin"),
                         version("2.5.1")
                 ),
                 goal("install"),
                 configuration(
                         element(name("skip"), "false")
                 ),
                 executionEnvironment(
                         project,
                         session,
                         pluginManager
                 )
         );
         getLog().info("DONE org.apache.maven.plugins:maven-install-plugin:2.5.1:install");
     }
-    
+
     public void deploy() throws MojoExecutionException, MojoFailureException {
         getLog().info("START org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy");
         executeMojo(
                 plugin(
                         groupId("org.codehaus.mojo"),
                         artifactId("maven-deploy-plugin"),
                         version("2.8.1")
                 ),
                 goal("deploy"),
                 configuration(
                         element(name("skip"), "false"),
                         element(name("deployAtEnd"), "true"),
                         element(name("retryFailedDeploymentCount"), "1")
                 ),
                 executionEnvironment(
                         project,
                         session,
                         pluginManager
                 )
         );
         getLog().info("DONE org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy");
-    }     
+    }
 
     public String getReleaseVersion(String version) throws MojoFailureException {
         getLog().info("Project version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
             getLog().warn("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
index bebd6ca..83f20f2 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
@@ -28,59 +28,66 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  *
  */
 @Mojo(name = "feature-finish", aggregator = true)
 public class FeatureFinishMojo extends AbstractFeatureMojo {
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().info("Finishing feature '" + featureName + "'");
 
         String featureBranchPrefix = getFeatureBranchPrefix();
         if (StringUtils.isBlank(featureName)) {
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (currentBranch.startsWith(featureBranchPrefix)) {
                 featureName = currentBranch;
             }
         } else {
             featureName = getFeatureName(featureName);
         }
 
         List<String> featureBranches = getGitflowInit().gitLocalFeatureBranches();
 
         featureName = promptForExistingFeatureName(featureBranches, featureName);
 
         if (enableFeatureVersions) {
             String featureVersion = project.getVersion();
             String nonFeatureVersion = getNonFeatureVersion(featureVersion, featureName.replace(featureBranchPrefix, ""));
             setVersion(nonFeatureVersion);
         }
 
+        if (!skipBuild) {
+            clean();
+            install();
+        } else {
+            getLog().debug("Skipping both install and deploy");
+        }
+
         GitflowFeature gitflowFeature = new GitflowFeature();
         gitflowFeature.setInit(getGitflowInit());
         gitflowFeature.setMsgPrefix(getMsgPrefix());
         gitflowFeature.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowFeature.finish(featureName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
     }
 
     private String promptForExistingFeatureName(List<String> featureBranches, String defaultFeatureName) throws MojoFailureException {
         String message = "Please select a feature branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, featureBranches, defaultFeatureName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading feature name from command line " + e.getMessage());
         }
 
         return name;
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
index 0fd763d..4d5e970 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
@@ -25,3 +25,2 @@ import org.apache.maven.plugins.annotations.LifecyclePhase;
 import org.apache.maven.plugins.annotations.Mojo;
-import org.apache.maven.plugins.annotations.Parameter;
 import org.codehaus.plexus.components.interactivity.PrompterException;
@@ -29,54 +28,64 @@ import org.codehaus.plexus.components.interactivity.PrompterException;
 /**
  *
  */
 @Mojo(name = "hotfix-finish", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class HotfixFinishMojo extends HotfixAbstractMojo {
 
     protected String hotfixName;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         List<String> hotfixBranches = getGitflowInit().gitLocalHotfixBranches();
 
         if (hotfixBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         }
 
         if (hotfixBranches.size() == 1) {
             hotfixName = hotfixBranches.get(0);
         } else {
             hotfixName = promptForExistingHotfixName(hotfixBranches, hotfixName);
         }
-        
+
         String hotfixReleaseVersion = getReleaseVersion(project.getVersion());
         setVersion(hotfixReleaseVersion);
 
+        if (!skipDeploy) {
+            clean();
+            deploy();
+        } else if (!skipBuild) {
+            clean();
+            install();
+        } else {
+            getLog().debug("Skipping both install and deploy");
+        }
+
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowHotfix.finish(hotfixName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
     }
 
     private String promptForExistingHotfixName(List<String> hotfixBranches, String defaultHotfixName) throws MojoFailureException {
         String message = "Please select a hotfix branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, hotfixBranches, defaultHotfixName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading hotfix name from command line " + e.getMessage());
         }
 
         return name;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
index 3feb7c4..391338c 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
@@ -23,3 +23,2 @@ import org.apache.maven.plugins.annotations.LifecyclePhase;
 import org.apache.maven.plugins.annotations.Mojo;
-import org.codehaus.plexus.util.StringUtils;
 import org.jfrog.hudson.util.GenericArtifactVersion;
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index 924781e..ca7389d 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -18,3 +18,2 @@ package com.dkirrane.maven.plugins.ggitflow;
 import com.dkirrane.gitflow.groovy.GitflowRelease;
-import com.dkirrane.gitflow.groovy.conflicts.FixPomMergeConflicts;
 import com.dkirrane.gitflow.groovy.ex.GitflowException;
@@ -22,4 +21,2 @@ import com.dkirrane.gitflow.groovy.ex.GitflowMergeConflictException;
 import java.util.List;
-import java.util.logging.Level;
-import java.util.logging.Logger;
 import org.apache.maven.plugin.MojoExecutionException;
@@ -30,86 +27,96 @@ import org.codehaus.plexus.components.interactivity.PrompterException;
 /**
  *
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().info("Finishing release '" + releaseName + "'");
 
         // checkout develop branch to get it's version
 //        String developBranch = (String) getGitflowInit().getDevelopBrnName();
 //        getGitflowInit().executeLocal("git checkout " + developBranch);
 //        String developVersion = project.getVersion();
 
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
 
         if (releaseBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         }
 
         if (releaseBranches.size() == 1) {
             releaseName = releaseBranches.get(0);
         } else {
             releaseName = promptForExistingReleaseName(releaseBranches, releaseName);
         }
 
         // 1. make sure we're on the release branch
         if (!getGitflowInit().gitCurrentBranch().equals(releaseName)) {
             getGitflowInit().executeLocal("git checkout " + releaseName);
         }
 
         String releaseVersion = getReleaseVersion(project.getVersion());
 
         // @todo we should run clean install first
         // 2. update poms to release version
         setVersion(releaseVersion);
+        
+        if (!skipDeploy) {
+            clean();
+            deploy();
+        } else if (!skipBuild) {
+            clean();
+            install();
+        } else {
+            getLog().debug("Skipping both install and deploy");
+        }        
 
         // 4. finish feature
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowRelease.finish(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         //make sure we're on the develop branch
         String currentBranch = getGitflowInit().gitCurrentBranch();
         String developBrnName = (String) getGitflowInit().getDevelopBrnName();
         if (!currentBranch.equals(developBrnName)) {
             throw new MojoFailureException("Current branch should be " + developBrnName + " but was " + currentBranch);
         }
 
         // @todo checkout and deploy the release tag
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);
     }
 
     private String promptForExistingReleaseName(List<String> releaseBranches, String defaultReleaseName) throws MojoFailureException {
         String message = "Please select a release branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, releaseBranches, defaultReleaseName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading release name from command line " + e.getMessage());
         }
 
         return name;
     }
 
 }

commit 7fa0859a3862352d1de9f9ce40f19e0caea366a0
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Sun Feb 2 22:55:24 2014 +0000

    clean install deploy

diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index 507e8ef..13da9b3 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,199 +1,198 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
     <version>1.0-SNAPSHOT</version>
     <packaging>maven-plugin</packaging>
 
     <name>ggitflow-maven-plugin</name>
 
     <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
     </properties>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
             <version>1.0-SNAPSHOT</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
         <dependency>
             <groupId>jline</groupId>
             <artifactId>jline</artifactId>
             <version>2.11</version>
             <type>jar</type>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>3.2</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>3.0.8</version>
         </dependency>
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-interactivity-api</artifactId>
             <version>1.0-alpha-5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>2.4</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-project</artifactId>
             <version>2.2.1</version>
             <type>jar</type>
         </dependency>
     </dependencies>
 
     <build>
         <resources>
             <resource>
                 <directory>src/it</directory>
                 <includes>
                     <include>**/**</include>
                 </includes>
             </resource>
         </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>3.2</version>
                 <configuration>
                     <goalPrefix>ggitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                     <execution>
                         <id>help-goal</id>
                         <goals>
                             <goal>helpmojo</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
         </plugins>
     </build>
     <profiles>
         <profile>
             <id>run-its</id>
             <build>
-
-                <plugins>
+                <plugins>                                                      
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-invoker-plugin</artifactId>
                         <version>1.8</version>
                         <configuration>
                             <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
                             <settingsFile>src/it/settings.xml</settingsFile>
                             <debug>true</debug>
                             <showErrors>true</showErrors>
                             <detail>true</detail>
                             <streamLogs>true</streamLogs>
                             <projectsDirectory>src/it/projects</projectsDirectory>
                             <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
                             <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
                             <addTestClassPath>true</addTestClassPath>
                             <preBuildHookScript>setup</preBuildHookScript>
                             <postBuildHookScript>verify</postBuildHookScript>
                             <pomIncludes>
                                 <pomInclude>*/pom.xml</pomInclude>
                             </pomIncludes>
                             <goals>
                                 <goal>clean</goal>
                                 <goal>test-compile</goal>
                             </goals>
                         </configuration>
                         <executions>
                             <execution>
                                 <id>integration-test</id>
                                 <goals>
                                     <goal>install</goal>
                                     <goal>integration-test</goal>
                                     <goal>verify</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
 
             </build>
         </profile>
     </profiles>
 
     <!--
         Sonatype upload details:
         http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
         https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
         https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
         https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
 
             - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
             - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
             - Promote staged artifacts into repository 'Releases'
             - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
             - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
     -->
 
     <distributionManagement>
         <snapshotRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
         </snapshotRepository>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
         </repository>
     </distributionManagement>
     <repositories>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
             <snapshots>
                 <enabled>true</enabled>
             </snapshots>
         </repository>
     </repositories>
 </project>
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index ec0574a..fbb7d40 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -26,4 +26,4 @@ import org.apache.maven.plugins.annotations.Component;
 import org.apache.maven.plugins.annotations.Parameter;
+import org.apache.maven.project.DefaultProjectBuilder;
 import org.apache.maven.project.MavenProject;
-import org.apache.maven.project.MavenProjectBuilder;
 import org.apache.maven.shared.release.exec.MavenExecutor;
@@ -44,150 +44,217 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 /**
  *
  */
 public class AbstractGitflowMojo extends AbstractMojo {
 
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
 
     @Parameter(property = "msgPrefix", defaultValue = "")
     protected String msgPrefix;
 
     @Parameter(property = "msgSuffix", defaultValue = "")
     protected String msgSuffix;
 
     /**
      * Component used to prompt for input.
      */
     @Component
     protected Prompter prompter;
 
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
+//    @Component
+//    protected MavenProjectBuilder projectBuilder;
     @Component
-    protected MavenProjectBuilder projectBuilder;
+    protected DefaultProjectBuilder projectBuilder;
 
 //    /**
 //     * @parameter property="plugin"
 //     * @required
 //     */
 //    @Component
 //    protected PluginDescriptor pluginDescriptor;
 //
     /**
      * The project currently being build.
      *
      * @parameter expression="${project}"
      * @required
      * @readonly
      */
     @Component
     protected MavenProject project;
 
     /**
      * The current Maven session.
      *
      * @parameter expression="${session}"
      * @required
      * @readonly
      */
     @Component
     protected MavenSession session;
 
     /**
      * The Maven BuildPluginManager component.
      *
      * @component
      * @required
      */
     @Component
     protected BuildPluginManager pluginManager;
 
     private GitflowInit init;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     public void execute() throws MojoExecutionException, MojoFailureException {
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             getLog().info("Gitflow pom  '" + project.getBasedir() + "'");
         }
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     public GitflowInit getGitflowInit() {
         if (null == init) {
             init = new GitflowInit();
             init.setRepoDir(getProject().getBasedir());
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
         }
         return init;
     }
 
     public void setVersion(String version) throws MojoExecutionException, MojoFailureException {
         getLog().info("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
         executeMojo(
                 plugin(
                         groupId("org.codehaus.mojo"),
                         artifactId("versions-maven-plugin"),
                         version("2.1")
                 ),
                 goal("set"),
                 configuration(
                         element(name("generateBackupPoms"), "false"),
                         element(name("newVersion"), version)
                 ),
                 executionEnvironment(
                         project,
                         session,
                         pluginManager
                 )
         );
         getLog().info("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
         } else {
             throw new MojoFailureException("Failed to update poms to version " + version);
         }
     }
 
+    public void clean() throws MojoExecutionException, MojoFailureException {
+        getLog().info("START org.apache.maven.plugins:maven-clean-plugin:2.5:clean");
+        executeMojo(
+                plugin(
+                        groupId("org.codehaus.mojo"),
+                        artifactId("maven-clean-plugin"),
+                        version("2.5")
+                ),
+                goal("clean"),
+                configuration(
+                        element(name("skip"), "false")
+                ),
+                executionEnvironment(
+                        project,
+                        session,
+                        pluginManager
+                )
+        );
+        getLog().info("DONE org.apache.maven.plugins:maven-clean-plugin:2.5:clean");
+    }
+
+    public void install() throws MojoExecutionException, MojoFailureException {
+        getLog().info("START org.apache.maven.plugins:maven-install-plugin:2.5.1:install");
+        executeMojo(
+                plugin(
+                        groupId("org.codehaus.mojo"),
+                        artifactId("maven-install-plugin"),
+                        version("2.5.1")
+                ),
+                goal("install"),
+                configuration(
+                        element(name("skip"), "false")
+                ),
+                executionEnvironment(
+                        project,
+                        session,
+                        pluginManager
+                )
+        );
+        getLog().info("DONE org.apache.maven.plugins:maven-install-plugin:2.5.1:install");
+    }
+    
+    public void deploy() throws MojoExecutionException, MojoFailureException {
+        getLog().info("START org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy");
+        executeMojo(
+                plugin(
+                        groupId("org.codehaus.mojo"),
+                        artifactId("maven-deploy-plugin"),
+                        version("2.8.1")
+                ),
+                goal("deploy"),
+                configuration(
+                        element(name("skip"), "false"),
+                        element(name("deployAtEnd"), "true"),
+                        element(name("retryFailedDeploymentCount"), "1")
+                ),
+                executionEnvironment(
+                        project,
+                        session,
+                        pluginManager
+                )
+        );
+        getLog().info("DONE org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy");
+    }     
+
     public String getReleaseVersion(String version) throws MojoFailureException {
         getLog().info("Project version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
             getLog().warn("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/util/MavenUtil.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/util/MavenUtil.java
new file mode 100644
index 0000000..e285b32
--- /dev/null
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/util/MavenUtil.java
@@ -0,0 +1,36 @@
+/*
+ * Copyright 2014 desmondkirrane.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.dkirrane.maven.plugins.ggitflow.util;
+
+import java.util.List;
+import org.apache.maven.project.MavenProject;
+
+/**
+ *
+ */
+public final class MavenUtil {
+
+    public static MavenProject getRootProject(List<MavenProject> reactorProjects) {
+        MavenProject project = reactorProjects.get(0);
+        for (MavenProject currentProject : reactorProjects) {
+            if (currentProject.isExecutionRoot()) {
+                project = currentProject;
+                break;
+            }
+        }
+        return project;
+    }
+}

commit 815941c19a63a3bd8b666379c953e73db346d796
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Sun Feb 2 19:37:54 2014 +0000

    Fixes

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
index d92276c..3526987 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
@@ -24,104 +24,104 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  *
  */
 public class AbstractFeatureMojo extends AbstractGitflowMojo {
 
     @Parameter(property = "featureName")
     protected String featureName;
 
     @Parameter(defaultValue = "false", property = "enableFeatureVersions")
     protected boolean enableFeatureVersions = false;
 
     @Parameter(defaultValue = "false", property = "pushFeatures")
     protected boolean pushFeatures = false;
 
     public String getFeatureBranchPrefix() {
         String prefix = getGitflowInit().getFeatureBranchPrefix();
         if (StringUtils.isBlank(prefix)) {
             prefix = DEFAULT_FEATURE_BRN_PREFIX;
         }
         return prefix;
     }
 
     public String getFeatureName(String featureLabel) throws MojoFailureException {
         if (StringUtils.isBlank(featureLabel)) {
             throw new MojoFailureException("Missing argument <featureName>");
         }
 
         featureLabel = featureLabel.replaceAll("\\s+", "");
 //        featureLabel = featureLabel.replaceAll("-+", "_");
         return featureLabel;
     }
 
     public String getFeatureVersion(String currentVersion, String featureLabel) throws MojoFailureException {
-        getLog().info("Project version '" + currentVersion + "'");
+        getLog().info("getFeatureVersion from '" + currentVersion + "'");
         featureLabel = getValidFeatureVersionAnnotation(featureLabel);
         getLog().info("Feature version annotation '" + featureLabel + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         Character annotationSeparator = artifactVersion.getAnnotationRevisionSeparator();
         String buildSpecifier = artifactVersion.getBuildSpecifier();
         Character buildSpecifierSeparator = artifactVersion.getBuildSpecifierSeparator();
 
         getLog().info("Parsed version = " + artifactVersion.toString());
         if (!StringUtils.isBlank(annotationAsString)) {
             throw new MojoFailureException("Cannot add feature name to version. An annotation " + annotationAsString + " already exists");
         }
 
         final StringBuilder result = new StringBuilder(30);
 
         result.append(primaryNumbersAsString).append(annotationSeparator).append(featureLabel);
 
         if (buildSpecifier != null) {
             if (buildSpecifierSeparator != null) {
                 result.append(buildSpecifierSeparator);
             }
             result.append(buildSpecifier);
         }
 
         return result.toString();
     }
 
     public String getNonFeatureVersion(String version, String featureLabel) {
-        getLog().info("Project version '" + version + "'");
+        getLog().info("getNonFeatureVersion from '" + version + "'");
         featureLabel = getValidFeatureVersionAnnotation(featureLabel);
         getLog().info("Feature version annotation '" + featureLabel + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifier = artifactVersion.getBuildSpecifier();
         Character buildSpecifierSeparator = artifactVersion.getBuildSpecifierSeparator();
 
         getLog().info("Parsed version = " + artifactVersion.toString());
         if (StringUtils.isBlank(annotationAsString)) {
             getLog().warn("Cannot remove feature name from pom version. The version annotation does not exists");
             return version;
         }
 
         if (('-' + featureLabel).equals(annotationAsString)) {
             final StringBuilder result = new StringBuilder(30);
             result.append(primaryNumbersAsString);
 
             if (buildSpecifier != null) {
                 if (buildSpecifierSeparator != null) {
                     result.append(buildSpecifierSeparator);
                 }
                 result.append(buildSpecifier);
             }
 
             return result.toString();
         } else {
             getLog().warn("Cannot remove feature name from pom version. The version annotation [" + annotationAsString + "] does not match the feature label [" + featureLabel + "]");
             return version;
         }
     }      
 
     private String getValidFeatureVersionAnnotation(String featureLabel) {
         featureLabel = featureLabel.trim().replaceAll("\\s+", "_");
         featureLabel = featureLabel.trim().replaceAll("-+", "_");
         return featureLabel;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
index 942484e..3feb7c4 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
@@ -29,69 +29,70 @@ import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
 /**
  *
  */
 @Mojo(name = "hotfix-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class HotfixStartMojo extends HotfixAbstractMojo {
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getMasterBrnName());
-
-        String hotfixVersion = getHotfixVersion(project.getVersion());
-        String hotfixSnapshotVersion = getHotfixSnapshotVersion(hotfixVersion);
+        
+        String currentVersion = project.getVersion();
+        String hotfixVersion = getHotfixVersion(currentVersion);
+        String hotfixSnapshotVersion = getHotfixSnapshotVersion(currentVersion);
 
         getLog().info("Starting hotfix '" + hotfixVersion + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowHotfix.start(hotfixVersion);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         setVersion(hotfixSnapshotVersion);
 
         String prefix = getGitflowInit().getHotfixBranchPrefix();
         if (getGitflowInit().gitRemoteBranchExists(prefix + hotfixVersion)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + hotfixVersion);
         }
     }
 
     private String getHotfixVersion(String currentVersion) throws MojoFailureException {
-        getLog().info("Project version '" + currentVersion + "'");
+        getLog().info("getHotfixVersion from '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         final StringBuilder result = new StringBuilder(30);
         if (artifactVersion.getPrimaryNumberCount() < 3) {
             String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
             String annotationAsString = artifactVersion.getAnnotationAsString();
             result.append(primaryNumbersAsString).append('.').append('0');
             result.append(annotationAsString);
         } else {
             artifactVersion.upgradeAnnotationRevision();
             result.append(artifactVersion.toString());
         }
         return result.toString();
     }
 
     private String getHotfixSnapshotVersion(String currentVersion) throws MojoFailureException {
-        getLog().info("Project version '" + currentVersion + "'");
+        getLog().info("getHotfixSnapshotVersion from '" + currentVersion + "'");
 
         final StringBuilder result = new StringBuilder(30);
 
         String hotfixVersion = getHotfixVersion(currentVersion);
         result.append(hotfixVersion);
 
         result.append(DEFAULT_VERSION_COMPONENT_SEPARATOR).append(SNAPSHOT_QUALIFIER);
 
         return result.toString();
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
index 6442d6e..c6259d3 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
@@ -32,107 +32,106 @@ import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
 /**
  *
  */
 @Mojo(name = "support-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class SupportStartMojo extends AbstractGitflowMojo {
 
     @Parameter(property = "startCommit", defaultValue = "")
     private String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         String prefix = getGitflowInit().getSupportBranchPrefix();
 
         List<String> tags = getGitflowInit().gitAllTags();
         if (tags.isEmpty()) {
             throw new MojoFailureException("Could not find any tags to create support branch from!");
         }
 
         String baseName = promptForExistingTagName(tags, tags.get(tags.size() - 1));
 
         getGitflowInit().executeLocal("git checkout " + baseName);
 
         String supportVersion = getSupportVersion(project.getVersion());
         String supportSnapshotVersion = getSupportSnapshotVersion(project.getVersion());
 
         getLog().info("Starting support branch '" + supportVersion + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowSupport gitflowSupport = new GitflowSupport();
         gitflowSupport.setInit(getGitflowInit());
         gitflowSupport.setMsgPrefix(getMsgPrefix());
         gitflowSupport.setMsgSuffix(getMsgSuffix());
 
         if (!StringUtils.isEmpty(startCommit)) {
             gitflowSupport.setStartCommit(startCommit);
         }
 
         try {
             gitflowSupport.start(supportVersion);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         setVersion(supportSnapshotVersion);
 
         if (getGitflowInit().gitRemoteBranchExists(prefix + supportVersion)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + supportVersion);
         }
     }
 
     private String promptForExistingTagName(List<String> branches, String defaultBrnName) throws MojoFailureException {
         String message = "Please select the Tag to create the support branch from?";
 
         String name = "";
         try {
             name = prompter.prompt(message, branches, defaultBrnName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading selected Tag name from command line " + e.getMessage());
         }
 
         return name;
     }
 
     private String getSupportVersion(String currentVersion) throws MojoFailureException {
-        getLog().info("Project version '" + currentVersion + "'");
+        getLog().info("getSupportVersion from '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         StringBuilder sb = new StringBuilder(10);
 //        int pCount = artifactVersion.getPrimaryNumberCount();
 //        for (int i = 0; i < pCount; i++) {
 //            Integer primaryNumber = artifactVersion.getPrimaryNumber(i);
 //            if (i == (pCount - 1)) {
 //                sb.append('x');
 //            } else {
 //                sb.append(primaryNumber);
 //            }
 //        }
         sb.append(artifactVersion.getPrimaryNumbersAsString()).append('.').append('x');
         sb.append(artifactVersion.getAnnotationAsString()).append(artifactVersion.getBuildSpecifierAsString());
 
         return sb.toString();
     }
 
     private String getSupportSnapshotVersion(String currentVersion) throws MojoFailureException {
-        getLog().info("Project version '" + currentVersion + "'");
+        getLog().info("getSupportSnapshotVersion from '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         final StringBuilder result = new StringBuilder(30);
-        if (artifactVersion.getPrimaryNumberCount() < 3) {
-            String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
-            String annotationAsString = artifactVersion.getAnnotationAsString();
+
+        String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
+        if (null == artifactVersion.getAnnotation()) {
             result.append(primaryNumbersAsString).append('.').append('0');
-            result.append(annotationAsString);
-            result.append(DEFAULT_VERSION_COMPONENT_SEPARATOR).append(SNAPSHOT_QUALIFIER);
         } else {
             artifactVersion.upgradeAnnotationRevision();
             result.append(artifactVersion.toString());
-            result.append(DEFAULT_VERSION_COMPONENT_SEPARATOR).append(SNAPSHOT_QUALIFIER);            
         }
+        result.append(DEFAULT_VERSION_COMPONENT_SEPARATOR).append(SNAPSHOT_QUALIFIER);
+
         return result.toString();
     }
 }

commit 02aceb482f56b20a70372f78118d157a59a30d96
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Sun Feb 2 18:23:33 2014 +0000

    Hotfix

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
index 1df12f5..0fd763d 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
@@ -27,58 +27,56 @@ import org.apache.maven.plugins.annotations.Parameter;
 import org.codehaus.plexus.components.interactivity.PrompterException;
-import org.codehaus.plexus.util.StringUtils;
 
 /**
  *
  */
 @Mojo(name = "hotfix-finish", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class HotfixFinishMojo extends HotfixAbstractMojo {
 
-    @Parameter(property = "hotfixName")
     protected String hotfixName;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         List<String> hotfixBranches = getGitflowInit().gitLocalHotfixBranches();
 
         if (hotfixBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         }
 
         if (hotfixBranches.size() == 1) {
             hotfixName = hotfixBranches.get(0);
         } else {
             hotfixName = promptForExistingHotfixName(hotfixBranches, hotfixName);
         }
         
         String hotfixReleaseVersion = getReleaseVersion(project.getVersion());
         setVersion(hotfixReleaseVersion);
 
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowHotfix.finish(hotfixName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
     }
 
     private String promptForExistingHotfixName(List<String> hotfixBranches, String defaultHotfixName) throws MojoFailureException {
         String message = "Please select a hotfix branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, hotfixBranches, defaultHotfixName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading hotfix name from command line " + e.getMessage());
         }
 
         return name;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
index 5a3f5fb..942484e 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
@@ -23,5 +23,5 @@ import org.apache.maven.plugins.annotations.LifecyclePhase;
 import org.apache.maven.plugins.annotations.Mojo;
-import org.apache.maven.plugins.annotations.Parameter;
 import org.codehaus.plexus.util.StringUtils;
 import org.jfrog.hudson.util.GenericArtifactVersion;
+import static org.jfrog.hudson.util.GenericArtifactVersion.DEFAULT_VERSION_COMPONENT_SEPARATOR;
 import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
@@ -29,75 +29,69 @@ import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
 /**
  *
  */
 @Mojo(name = "hotfix-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class HotfixStartMojo extends HotfixAbstractMojo {
 
-    @Parameter(property = "startCommit", defaultValue = "")
-    private String startCommit;
-
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getMasterBrnName());
 
         String hotfixVersion = getHotfixVersion(project.getVersion());
         String hotfixSnapshotVersion = getHotfixSnapshotVersion(hotfixVersion);
 
         getLog().info("Starting hotfix '" + hotfixVersion + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
 
-        if (!StringUtils.isEmpty(startCommit)) {
-            gitflowHotfix.setStartCommit(startCommit);
-        }
-
         try {
             gitflowHotfix.start(hotfixVersion);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         setVersion(hotfixSnapshotVersion);
-        
+
         String prefix = getGitflowInit().getHotfixBranchPrefix();
         if (getGitflowInit().gitRemoteBranchExists(prefix + hotfixVersion)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + hotfixVersion);
         }
     }
 
     private String getHotfixVersion(String currentVersion) throws MojoFailureException {
         getLog().info("Project version '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
-        artifactVersion.upgradeLeastSignificantNumber();
-
-        return artifactVersion.toString();
+        final StringBuilder result = new StringBuilder(30);
+        if (artifactVersion.getPrimaryNumberCount() < 3) {
+            String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
+            String annotationAsString = artifactVersion.getAnnotationAsString();
+            result.append(primaryNumbersAsString).append('.').append('0');
+            result.append(annotationAsString);
+        } else {
+            artifactVersion.upgradeAnnotationRevision();
+            result.append(artifactVersion.toString());
+        }
+        return result.toString();
     }
 
     private String getHotfixSnapshotVersion(String currentVersion) throws MojoFailureException {
         getLog().info("Project version '" + currentVersion + "'");
 
-        GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
-
-        String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
-        String annotationAsString = artifactVersion.getAnnotationAsString();
-        String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
-
         final StringBuilder result = new StringBuilder(30);
-        result.append(primaryNumbersAsString).append(annotationAsString);
 
-        if (StringUtils.isBlank(buildSpecifierAsString)) {
-            getLog().warn("Adding build specifier " + SNAPSHOT_QUALIFIER + " to hotfix version " + currentVersion);
-            result.append('-').append(SNAPSHOT_QUALIFIER);
-        }
+        String hotfixVersion = getHotfixVersion(currentVersion);
+        result.append(hotfixVersion);
+
+        result.append(DEFAULT_VERSION_COMPONENT_SEPARATOR).append(SNAPSHOT_QUALIFIER);
 
         return result.toString();
     }
 }

commit db49d1a1bd6747864a3da891bd5fe278c64dbd6d
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Sun Feb 2 18:14:14 2014 +0000

    Support version fix

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
index 5e33f74..6442d6e 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
@@ -28,2 +28,3 @@ import org.codehaus.plexus.util.StringUtils;
 import org.jfrog.hudson.util.GenericArtifactVersion;
+import static org.jfrog.hudson.util.GenericArtifactVersion.DEFAULT_VERSION_COMPONENT_SEPARATOR;
 import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
@@ -31,107 +32,107 @@ import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
 /**
  *
  */
 @Mojo(name = "support-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class SupportStartMojo extends AbstractGitflowMojo {
 
     @Parameter(property = "startCommit", defaultValue = "")
     private String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         String prefix = getGitflowInit().getSupportBranchPrefix();
 
         List<String> tags = getGitflowInit().gitAllTags();
         if (tags.isEmpty()) {
             throw new MojoFailureException("Could not find any tags to create support branch from!");
         }
 
-        String baseName = promptForExistingTagName(tags, tags.get(0));
+        String baseName = promptForExistingTagName(tags, tags.get(tags.size() - 1));
 
         getGitflowInit().executeLocal("git checkout " + baseName);
 
         String supportVersion = getSupportVersion(project.getVersion());
         String supportSnapshotVersion = getSupportSnapshotVersion(project.getVersion());
 
         getLog().info("Starting support branch '" + supportVersion + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowSupport gitflowSupport = new GitflowSupport();
         gitflowSupport.setInit(getGitflowInit());
         gitflowSupport.setMsgPrefix(getMsgPrefix());
         gitflowSupport.setMsgSuffix(getMsgSuffix());
 
         if (!StringUtils.isEmpty(startCommit)) {
             gitflowSupport.setStartCommit(startCommit);
         }
 
         try {
             gitflowSupport.start(supportVersion);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         setVersion(supportSnapshotVersion);
 
         if (getGitflowInit().gitRemoteBranchExists(prefix + supportVersion)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + supportVersion);
         }
     }
 
     private String promptForExistingTagName(List<String> branches, String defaultBrnName) throws MojoFailureException {
         String message = "Please select the Tag to create the support branch from?";
 
         String name = "";
         try {
             name = prompter.prompt(message, branches, defaultBrnName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading selected Tag name from command line " + e.getMessage());
         }
 
         return name;
     }
 
     private String getSupportVersion(String currentVersion) throws MojoFailureException {
         getLog().info("Project version '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         StringBuilder sb = new StringBuilder(10);
 //        int pCount = artifactVersion.getPrimaryNumberCount();
 //        for (int i = 0; i < pCount; i++) {
 //            Integer primaryNumber = artifactVersion.getPrimaryNumber(i);
 //            if (i == (pCount - 1)) {
 //                sb.append('x');
 //            } else {
 //                sb.append(primaryNumber);
 //            }
 //        }
-        sb.append(artifactVersion.getPrimaryNumbersAsString()).append('x');
+        sb.append(artifactVersion.getPrimaryNumbersAsString()).append('.').append('x');
         sb.append(artifactVersion.getAnnotationAsString()).append(artifactVersion.getBuildSpecifierAsString());
-        
-        return artifactVersion.toString();
+
+        return sb.toString();
     }
 
     private String getSupportSnapshotVersion(String currentVersion) throws MojoFailureException {
         getLog().info("Project version '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
-        String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
-        String annotationAsString = artifactVersion.getAnnotationAsString();
-        String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
-
         final StringBuilder result = new StringBuilder(30);
-        result.append(primaryNumbersAsString).append(annotationAsString);
-
-        if (StringUtils.isBlank(buildSpecifierAsString)) {
-            getLog().warn("Adding build specifier " + SNAPSHOT_QUALIFIER + " to support version " + currentVersion);
-            result.append('-').append(SNAPSHOT_QUALIFIER);
+        if (artifactVersion.getPrimaryNumberCount() < 3) {
+            String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
+            String annotationAsString = artifactVersion.getAnnotationAsString();
+            result.append(primaryNumbersAsString).append('.').append('0');
+            result.append(annotationAsString);
+            result.append(DEFAULT_VERSION_COMPONENT_SEPARATOR).append(SNAPSHOT_QUALIFIER);
+        } else {
+            artifactVersion.upgradeAnnotationRevision();
+            result.append(artifactVersion.toString());
+            result.append(DEFAULT_VERSION_COMPONENT_SEPARATOR).append(SNAPSHOT_QUALIFIER);            
         }
-
         return result.toString();
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/org/jfrog/hudson/util/GenericArtifactVersion.java b/ggitflow-maven-plugin/src/main/java/org/jfrog/hudson/util/GenericArtifactVersion.java
index 2c49b76..1d38898 100644
--- a/ggitflow-maven-plugin/src/main/java/org/jfrog/hudson/util/GenericArtifactVersion.java
+++ b/ggitflow-maven-plugin/src/main/java/org/jfrog/hudson/util/GenericArtifactVersion.java
@@ -7,676 +7,676 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  * Represents a generic standard artifact version. This class can be used either
  * for parsing a version string and/or for building a version string
  * programatically. Consistency is guaranteed at all times so that no invalid
  * version is formed. Also, new
  * {@link GenericArtifactVersion}(versionString).toString().equals(versionString)
  * is guaranteed to be always true if 'versionString' is in the right format.
  *
  * A standard artifact version is a string in the following format:
  *
  * <pre>
  * <primary_numbers>[[-_]<annotation>][[-_]<annotation_revision>][[-_]<build_specifier>]
  * </pre>
  * <ul>
  * where:
  * <li>primary_numbers: <p1>[.<p2>[...<pn>]...] are non-negative integers
  * separated by '.'. Examples: 1; 1.2; 1.2.3; etc.</li>
  * <li>annotation: Sequence of letters that usually describe the release type.
  * Examples: alpha, beta, RC, etc.</li>
  * <li>annotation_revision: A non-negative integer associated to the
  * annotation.</li>
  * <li>build_specifier: SNAPSHOT|YYYYMMdd.hhmmss-n[n[...[n]...]] Examples:
  * SNAPSHOT, 20120110.152615-1, 20120110.152615-543</li>
  * </ul>
  *
  * Note that we used generic terms as components. Even though "major", "minor",
  * and "incremental" are terms used for the first three primary components, we
  * want to abstract that to be as generic as possible. Other implementations can
  * reuse this class and rename components as desired.
  *
  * Notes: The version format is based on Maven's
  * org.apache.maven.shared.release.versions.DefaultVersionInfo. As of today,
  * that class can be found in the following artifact:
  * org.apache.maven.release:maven-release-manager:2.2
  * <p>
  * The reason why I decided to reimplement this is becase of the unwanted
  * dependencies added with that artifact that clash with some Jenkins'
  * dependencies. Besides that, the implementation is not very flexible, it does
  * not provide means to retrieve the component separators and it cannot be
  * extended either. Moreover, if we depended on that class, our code can easily
  * break if we upgrade that artifact and they update their version scheme. What
  * we do when releasing is tied to our interpretation of version schemes.
  *
  *
  * @author Nicolas Grobisa
  *
  */
 public class GenericArtifactVersion {
 
     public static final String SNAPSHOT_QUALIFIER = "SNAPSHOT";
 
-    private static final Character DEFAULT_VERSION_COMPONENT_SEPARATOR = '-';
+    public static final Character DEFAULT_VERSION_COMPONENT_SEPARATOR = '-';
 
     private static final Integer DEFAULT_BASE_ANNOTATION_REVISION = 1;
 
     private static final String VERSION_COMPONENT_SEPARATOR_REGEX = "([-_]?)";
 
     private static final Pattern VERSION_COMPONENT_SEPARATOR_PATTERN = Pattern.compile(VERSION_COMPONENT_SEPARATOR_REGEX);
 
     private static final String VERSION_PRIMARY_NUMBERS_REGEX = "(\\d(\\.\\d)*)";
 
     private static final String VERSION_ANNOTATION_REGEX = "([a-zA-Z]+)";
 
     private static final Pattern VERSION_ANNOTATION_PATTERN = Pattern.compile(VERSION_ANNOTATION_REGEX);
 
     private static final String VERSION_ANNOTATIONREV_REGEX = "(\\d+)";
 
     private static final String VERSION_BUILD_SPECIFIER_REGEX = "((?i)" + SNAPSHOT_QUALIFIER + "|\\d{8}\\.\\d{6}\\-(\\d+))";
 
     private static final Pattern VERSION_BUILD_SPECIFIER_PATTERN = Pattern.compile(VERSION_BUILD_SPECIFIER_REGEX);
 
     private static final String VERSION_REGEX = "^" + VERSION_PRIMARY_NUMBERS_REGEX + "(" + VERSION_COMPONENT_SEPARATOR_REGEX
             + VERSION_ANNOTATION_REGEX + ")?(" + VERSION_COMPONENT_SEPARATOR_REGEX + VERSION_ANNOTATIONREV_REGEX + ")?("
             + VERSION_COMPONENT_SEPARATOR_REGEX + VERSION_BUILD_SPECIFIER_REGEX + ")?$";
 
     private static final int VERSION_REGEXGROUP_PRIMARYNUMS = 1;
 
     private static final int VERSION_REGEXGROUP_ANNOTATION_SEPARATOR = 4;
 
     private static final int VERSION_REGEXGROUP_ANNOTATION = 5;
 
     private static final int VERSION_REGEXGROUP_ANNOTATIONREV_SEPARATOR = 7;
 
     private static final int VERSION_REGEXGROUP_ANNOTATIONREV = 8;
 
     private static final int VERSION_REGEXGROUP_BUILDSPEC_SEPARATOR = 10;
 
     private static final int VERSION_REGEXGROUP_BUILDSPEC = 11;
 
     private static final Pattern VERSION_PATTERN = Pattern.compile(VERSION_REGEX);
 
     private final Integer[] primaryNumbers;
 
     private Character annotationSeparator;
 
     private String annotation;
 
     private Character annotationRevisionSeparator;
 
     private Integer annotationRevision;
 
     private Character buildSpecifierSeparator;
 
     private String buildSpecifier;
 
     public GenericArtifactVersion(final String versionString) {
         final Matcher matcher = VERSION_PATTERN.matcher(versionString);
 
         if (!matcher.matches()) {
             throw new IllegalArgumentException("Provided version string is not a valid version.");
         }
 
         Integer annotationRevision = parseAnnotationRevision(matcher.group(VERSION_REGEXGROUP_ANNOTATIONREV));
         Character annotationSeparator = parseSeparator(matcher.group(VERSION_REGEXGROUP_ANNOTATION_SEPARATOR));
         String annotation = nullIfBlank(matcher.group(VERSION_REGEXGROUP_ANNOTATION));
         Character buildSpecifierSeparator = parseSeparator(matcher.group(VERSION_REGEXGROUP_BUILDSPEC_SEPARATOR));
         String buildSpecifier = nullIfBlank(matcher.group(VERSION_REGEXGROUP_BUILDSPEC));
 
         // The regex will capture the snapshot qualifier as an annotation.
         // Therefore, we need to set it as the build specifier.
         if (buildSpecifier == null && SNAPSHOT_QUALIFIER.equalsIgnoreCase(annotation)) {
             buildSpecifierSeparator = annotationSeparator;
             buildSpecifier = annotation;
             annotationSeparator = null;
             annotation = null;
         }
 
         // Set the separators, using the default ones where appropriate. This is a subtle use case. The user might have provided a
         // version with annotation but no annotation revision. E.g., 1.0_alpha.
         // This means that we would know what the annotation separator is ('_' in the example) but we don't have information about
         // the annotation revision separator. If later the user wants to add an annotation revision, we want to be sure that the
         // default separator is used instead of the null separator. Example, if the users adds a revision of '5', then the result
         // would be "1.0_alpha-5", and not "1.0_alpha5".
         this.annotationSeparator = (annotation == null) ? DEFAULT_VERSION_COMPONENT_SEPARATOR : annotationSeparator;
         this.annotationRevisionSeparator = (annotationRevision == null) ? DEFAULT_VERSION_COMPONENT_SEPARATOR
                 : parseSeparator(matcher.group(VERSION_REGEXGROUP_ANNOTATIONREV_SEPARATOR));
         this.buildSpecifierSeparator = (buildSpecifier == null) ? DEFAULT_VERSION_COMPONENT_SEPARATOR : buildSpecifierSeparator;
 
         // Set version components
         this.primaryNumbers = parsePrimaryNumber(matcher.group(VERSION_REGEXGROUP_PRIMARYNUMS));
         this.annotation = annotation;
         this.annotationRevision = annotationRevision;
         this.buildSpecifier = buildSpecifier;
     }
 
     /**
      * Parses a primary component number.
      *
      * @param primaryNumbers A string representing a sequence of primary numbers
      * separated by dot ('.'). Examples: "1", "1.2.3". Must be in the correct
      * format.
      * @return An array where each element is an integer. Index 0 contains the
      * most significant primary number.
      */
     private Integer[] parsePrimaryNumber(final String primaryNumbers) {
         final String[] primaryNumberStrings = primaryNumbers.split("\\.");
         final int n = primaryNumberStrings.length;
         final Integer[] result = new Integer[n];
 
         for (int i = 0; i < n; i++) {
             result[i] = Integer.parseInt(primaryNumberStrings[i]);
         }
 
         return result;
     }
 
     /**
      * Returns the input string or null if that string is blank or null.
      *
      * @param string The input string.
      * @return The input string or null if that string is blank or null.
      */
     private String nullIfBlank(final String string) {
         return StringUtils.isBlank(string) ? null : string;
     }
 
     /**
      * Parses a version component separator string and returns it as a
      * character.
      *
      * @param separator The separator string to parse.
      * @return The first character of the string, or null if that string is
      * empty.
      */
     private Character parseSeparator(final String separator) {
         return StringUtils.isNotEmpty(separator) ? separator.charAt(0) : null;
     }
 
     /**
      * Parses a string representing the version annotation revision.
      *
      * @param annotationRev The string to parse.
      * @return An integer representing the version annotation revision, or null
      * if the string is empty.
      */
     private Integer parseAnnotationRevision(final String annotationRev) {
         return StringUtils.isNotEmpty(annotationRev) ? Integer.parseInt(annotationRev) : null;
     }
 
     /**
      * Increments the least significant number in the version components by 1.
      * <p>
      * If the annotation revision is defined, it's incremented. Otherwise, the
      * last primary number is incremented.
      * <p>
      * Examples:
      * <ul>
      * <li>"1.2.3.4-alpha-5" is upgraded to "1.2.3.4-alpha-6"</li>
      * <li>"1.2.3.4-alpha" is upgraded to "1.2.3.5-alpha"</li>
      * <li>"1-SNAPSHOT" is upgraded to "2-SNAPSHOT"</li>
      * </ul>
      *
      * @return The instance, for method chaining.
      */
     public GenericArtifactVersion upgradeLeastSignificantNumber() {
         if (this.annotationRevision != null) {
             upgradeAnnotationRevision();
         } else {
             upgradeLeastSignificantPrimaryNumber();
         }
 
         return this;
     }
 
     /**
      * Increments the least significant primary number by 1, resetting the
      * annotation revision if it is defined.
      * <p>
      * Examples (assuming a base annotation revision of 1):
      * <ul>
      * <li>"1.2.3.4-alpha-5" is upgraded to "1.2.3.5-alpha-1"</li>
      * <li>"1.2.3.4-alpha" is upgraded to "1.2.3.5-alpha"</li>
      * <li>"1-SNAPSHOT" is upgraded to "2-SNAPSHOT"</li>
      * </ul>
      *
      * @return The instance, for method chaining.
      */
     public GenericArtifactVersion upgradeLeastSignificantPrimaryNumber() {
         upgradePrimaryNumber(this.primaryNumbers.length - 1);
 
         return this;
     }
 
     /**
      * Increments a primary number by 1, resetting the remaining less
      * significant components.
      * <p>
      * Examples (assuming a base annotation revision of 1):
      * <ul>
      * <li>"1.2.3.4-alpha-5" is upgraded to "2.0.0.0-alpha-1" with an index of
      * 0</li>
      * <li>"1.2.3.4-alpha-5" is upgraded to "1.2.3.0-alpha-1" with an index of
      * 3</li>
      * <li>"1.2-alpha" is upgraded to "1.3-alpha" with an index of 1</li>
      * <li>"1-SNAPSHOT" is upgraded to "2-SNAPSHOT" with an index of 0</li>
      * </ul>
      *
      * @param primaryNumberIndex The index identifying the primary number to
      * increase.
      * @return The instance, for method chaining.
      * @throws IllegalArgumentException if the index is negative.
      * @throws IllegalStateException if this version doesn't have a primary
      * number at the specified index.
      */
     public GenericArtifactVersion upgradePrimaryNumber(final int primaryNumberIndex) {
         if (primaryNumberIndex < 0) {
             throw new IllegalArgumentException("Primary number index cannot be negative.");
         }
         if (this.primaryNumbers.length <= primaryNumberIndex) {
             throw new IllegalStateException("Cannot upgrade version becase '" + this + "' does not have a "
                     + "primary number at index " + primaryNumberIndex);
         }
 
         this.primaryNumbers[primaryNumberIndex]++;
         resetPrimaryNumbers(primaryNumberIndex + 1);
         resetAnnotationRevision();
 
         return this;
     }
 
     /**
      * Increments the annotation revision by 1.
      *
      * @return The instance, for method chaining.
      * @throws IllegalStateException if this version doesn't have an annotation
      * revision defined.
      */
     public GenericArtifactVersion upgradeAnnotationRevision() {
         if (this.annotationRevision == null) {
             throw new IllegalStateException("Cannot upgrade annotation revision for version '" + this
                     + "' because it does not have that component.");
         }
 
         this.annotationRevision++;
         return this;
     }
 
     /**
      * Resets (sets to 0) all consecutive primary numbers starting at a specific
      * index.
      *
      * @param fromIndex The index pointing to the first primary number that will
      * be reset.
      */
     private void resetPrimaryNumbers(final int fromIndex) {
         for (int i = fromIndex, n = this.primaryNumbers.length; i < n; i++) {
             this.primaryNumbers[i] = 0;
         }
     }
 
     /**
      * Resets the annotation revision (if it is defined). It is set to
      * {@link #DEFAULT_BASE_ANNOTATION_REVISION}.
      */
     private void resetAnnotationRevision() {
         if (this.annotationRevision != null) {
             this.annotationRevision = DEFAULT_BASE_ANNOTATION_REVISION;
         }
     }
 
     /**
      * Returns the string representation of the primary numbers.
      * <p>
      * The string representation is the concatenation of all numbers separated
      * by the dot character ('.').
      *
      * @return The primary numbers as a single string.
      */
     public String getPrimaryNumbersAsString() {
         return createPrimaryNumbersString(new StringBuilder(8)).toString();
     }
 
     /**
      * Returns the string representation of the annotation string.
      *
      * [[-_]<annotation>][[-_]<annotation_revision>]
      *
      * @return The annotation as a single string.
      */
     public String getAnnotationAsString() {
         return createAnnotationString(new StringBuilder(0)).toString();
     }
 
     /**
      * Returns the string representation of the annotation string.
      *
      * [[-_]<build_specifier>]
      *
      * @return The build specifier as a single string.
      */
     public String getBuildSpecifierAsString() {
         return createBuildSpecifierString(new StringBuilder(0)).toString();
     }
 
     /**
      * Returns how many primary numbers are defined for this version.
      *
      * @return The primary number count.
      */
     public int getPrimaryNumberCount() {
         return this.primaryNumbers.length;
     }
 
     /**
      * Returns the primary number located at a specific index.
      *
      * @param index The index pointing to the primary number. Must be
      * non-negative.
      * @return The primary number, or null if it's not defined.
      * @throws IllegalArgumentException if the index is provided is negative.
      */
     public Integer getPrimaryNumber(final int index) {
         if (index < 0) {
             throw new IllegalArgumentException("Primary number index must be non-negative.");
         }
 
         return (this.primaryNumbers.length > index) ? this.primaryNumbers[index] : null;
     }
 
     /**
      * Defines the primary number located at a specific index.
      *
      * @param index The index pointing to the primary number to define. Must be
      * non-negative.
      * @param value The number to define as the primary component. Must be
      * non-negative.
      * @return The instance, for method chaining.
      * @throws IllegalArgumentException if the index or value is negative, or if
      * a primary number does not exist at that index.
      */
     public GenericArtifactVersion setPrimaryNumber(final int index, final int value) {
         if (index < 0) {
             throw new IllegalArgumentException("Primary number index must be non-negative.");
         }
         if (index >= this.primaryNumbers.length) {
             throw new IllegalArgumentException("Invalid index for version digit. Maximum digit index for this version is "
                     + (this.primaryNumbers.length - 1));
         }
         if (value < 0) {
             throw new IllegalArgumentException("Primary numbers must be non-negative.");
         }
 
         this.primaryNumbers[index] = value;
 
         return this;
     }
 
     /**
      * Returns the separator character for the version annotation component.
      *
      * @return The annotation separator, or null if there's none.
      */
     public Character getAnnotationSeparator() {
         return this.annotationSeparator;
     }
 
     /**
      * Sets the separator character for the version annotation component.
      *
      * @param annotationSeparator A valid separator character (read this class'
      * documentation for more information about the valid format). null can be
      * used to indicate that there's no separator.
      * @return The instance, for method chaining.
      * @throws IllegalArgumentException if the character provided is invalid.
      */
     public GenericArtifactVersion setAnnotationSeparator(final Character annotationSeparator) {
         validateSeparator(annotationSeparator);
         this.annotationSeparator = annotationSeparator;
 
         return this;
     }
 
     /**
      * Returns the version annotation component.
      *
      * @return The annotation, or null if it is not defined.
      */
     public String getAnnotation() {
         return this.annotation;
     }
 
     /**
      * Defines the version annotation component.
      *
      * @param annotation A valid annotation string (read this class'
      * documentation for more information about the valid format). null can be
      * used to indicate that there's no annotation.
      * @return The instance, for method chaining.
      * @throws IllegalArgumentException if the annotation is invalid.
      */
     public GenericArtifactVersion setAnnotation(final String annotation) {
         if (annotation != null && !VERSION_ANNOTATION_PATTERN.matcher(annotation).matches()) {
             throw new IllegalArgumentException("Invalid version separator.");
         }
         this.annotation = annotation;
 
         return this;
     }
 
     /**
      * Returns the separator character for the annotation revision.
      *
      * @return The separator, or null if there's none.
      */
     public Character getAnnotationRevisionSeparator() {
         return annotationRevisionSeparator;
     }
 
     /**
      * Defines the separator character for the version annotation revision
      * component.
      *
      * @param annotationRevisionSeparator A valid separator character (read this
      * class' documentation for more information about the valid format). null
      * can be used to indicate that there's no separator.
      * @return The instance, for method chaining.
      * @throws IllegalArgumentException if the character provided is invalid.
      */
     public GenericArtifactVersion setAnnotationRevisionSeparator(final Character annotationRevisionSeparator) {
         validateSeparator(annotationRevisionSeparator);
         this.annotationRevisionSeparator = annotationRevisionSeparator;
 
         return this;
     }
 
     /**
      * Returns the annotation revision number.
      *
      * @return The revision number, or null if it's not defined.
      */
     public Integer getAnnotationRevision() {
         return annotationRevision;
     }
 
     /**
      * Defines the annotation revision number.
      *
      * @param annotationRevision The revision number. Must be non-negative. null
      * can be used to indicate that there's no annotation revision number.
      * @return The instance, for method chaining.
      * @throws IllegalArgumentException if 'annotationRevision' is negative.
      */
     public GenericArtifactVersion setAnnotationRevision(final Integer annotationRevision) {
         if (annotationRevision != null && annotationRevision < 0) {
             throw new IllegalArgumentException("Annotation revision must be non-negative.");
         }
         this.annotationRevision = annotationRevision;
 
         return this;
     }
 
     /**
      * Returns the separator character for the build specifier component.
      *
      * @return The separator, or null if there's none.
      */
     public Character getBuildSpecifierSeparator() {
         return buildSpecifierSeparator;
     }
 
     /**
      * Defines the separator character for the version build specifier
      * component.
      *
      * @param buildSpecifierSeparator A valid separator character (read this
      * class' documentation for more information about the valid format). null
      * can be used to indicate that there's no separator.
      * @return The instance, for method chaining.
      * @throws IllegalArgumentException if the character provided is invalid.
      */
     public GenericArtifactVersion setBuildSpecifierSeparator(final Character buildSpecifierSeparator) {
         validateSeparator(buildSpecifierSeparator);
         this.buildSpecifierSeparator = buildSpecifierSeparator;
 
         return this;
     }
 
     /**
      * Returns the build specifier component.
      *
      * @return The build specifier, or null if it's not defined.
      */
     public String getBuildSpecifier() {
         return buildSpecifier;
     }
 
     /**
      * Defines the build specifier component.
      *
      * @param buildSpecifier A valid build specifier (read this class'
      * documentation for more information about the valid format). null can be
      * used to indicate that there's no build specifier component.
      * @return The instance, for method chaining.
      * @throws IllegalArgumentException if the build specifier is invalid.
      */
     public GenericArtifactVersion setBuildSpecifier(final String buildSpecifier) {
         if (buildSpecifier != null && !VERSION_BUILD_SPECIFIER_PATTERN.matcher(buildSpecifier).matches()) {
             throw new IllegalArgumentException("Invalid build specifier.");
         }
         this.buildSpecifier = buildSpecifier;
 
         return this;
     }
 
     /**
      * Checks that a character is a valid version component separator, only if
      * it's not null.
      *
      * @param separator The separator character that we want to check.
      * @throws IllegalArgumentException if the character is not a valid version
      * component separator.
      */
     private void validateSeparator(final Character separator) {
         if (separator != null && !VERSION_COMPONENT_SEPARATOR_PATTERN.matcher(String.valueOf(separator)).matches()) {
             throw new IllegalArgumentException("Invalid version separator.");
         }
     }
 
     /**
      * Returns a string representation of this version object.
      * <p>
      * The following condition is always true: new
      * {@link GenericArtifactVersion} (versionString).equals(versionString)
      * <p>
      * The result is the concatenation of all the version components, separated
      * with their respective separator characters:
      * <ul>
      * <li>primary components separated by the dot character ('.').</li>
      * <li>annotation separator</li>
      * <li>annotation</li>
      * <li>annotation revision separator</li>
      * <li>annotation revision</li>
      * <li>build specifier separator</li>
      * <li>build specifier</li>
      * </ul>
      *
      */
     @Override
     public String toString() {
         final StringBuilder result = new StringBuilder(30);
 
         createPrimaryNumbersString(result);
 
         if (this.annotation != null) {
             if (this.annotationSeparator != null) {
                 result.append(this.annotationSeparator);
             }
             result.append(this.annotation);
         }
 
         if (this.annotationRevision != null) {
             if (this.annotationRevisionSeparator != null) {
                 result.append(this.annotationRevisionSeparator);
             }
             result.append(this.annotationRevision);
         }
 
         if (this.buildSpecifier != null) {
             if (this.buildSpecifierSeparator != null) {
                 result.append(this.buildSpecifierSeparator);
             }
             result.append(this.buildSpecifier);
         }
 
         return result.toString();
     }
 
     /**
      * Creates a string concatenating the primary numbers separated by the dot
      * character ('.').
      * <p>
      * The result is appended to the provided string builder and returned.
      *
      * @param result The string builder where to append the string.
      * @return The provided string builder.
      */
     private StringBuilder createPrimaryNumbersString(final StringBuilder result) {
         for (int i = 0, n = this.primaryNumbers.length; i < n; i++) {
             if (i > 0) {
                 result.append('.');
             }
             result.append(this.primaryNumbers[i]);
         }
 
         return result;
     }
 
     /**
      * [[-_]<annotation>][[-_]<annotation_revision>]
      *
      * @param result
      * @return
      */
     private StringBuilder createAnnotationString(final StringBuilder result) {
         if (null != this.annotation) {
             result.append(this.annotationSeparator).append(this.annotation);
         }
         if (null != this.annotationRevision) {
             result.append(this.annotationRevisionSeparator).append(this.annotationRevision);
         }
         return result;
     }
 
     /**
      * [[-_]<build_specifier>]
      *
      * @param result
      * @return
      */
     private StringBuilder createBuildSpecifierString(final StringBuilder result) {
         if (null != this.buildSpecifier) {
             result.append(this.buildSpecifierSeparator).append(this.buildSpecifier);
         }
         return result;
     }
 }

commit 5b7e83c9887115f27265122fb3de46138766fae2
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Sun Feb 2 17:37:19 2014 +0000

    fix support version

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
index 007d7b9..5e33f74 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
@@ -31,106 +31,107 @@ import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
 /**
  *
  */
 @Mojo(name = "support-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class SupportStartMojo extends AbstractGitflowMojo {
 
     @Parameter(property = "startCommit", defaultValue = "")
     private String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         String prefix = getGitflowInit().getSupportBranchPrefix();
 
         List<String> tags = getGitflowInit().gitAllTags();
         if (tags.isEmpty()) {
             throw new MojoFailureException("Could not find any tags to create support branch from!");
         }
 
-        String baseName = promptForExistingReleaseOrHotfixName(tags, tags.get(0));
+        String baseName = promptForExistingTagName(tags, tags.get(0));
 
         getGitflowInit().executeLocal("git checkout " + baseName);
 
         String supportVersion = getSupportVersion(project.getVersion());
         String supportSnapshotVersion = getSupportSnapshotVersion(project.getVersion());
 
         getLog().info("Starting support branch '" + supportVersion + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowSupport gitflowSupport = new GitflowSupport();
         gitflowSupport.setInit(getGitflowInit());
         gitflowSupport.setMsgPrefix(getMsgPrefix());
         gitflowSupport.setMsgSuffix(getMsgSuffix());
 
         if (!StringUtils.isEmpty(startCommit)) {
             gitflowSupport.setStartCommit(startCommit);
         }
 
         try {
             gitflowSupport.start(supportVersion);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         setVersion(supportSnapshotVersion);
 
         if (getGitflowInit().gitRemoteBranchExists(prefix + supportVersion)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + supportVersion);
         }
     }
 
-    private String promptForExistingReleaseOrHotfixName(List<String> branches, String defaultBrnName) throws MojoFailureException {
-        String message = "Please select a release or hotfix branch to start support from?";
+    private String promptForExistingTagName(List<String> branches, String defaultBrnName) throws MojoFailureException {
+        String message = "Please select the Tag to create the support branch from?";
 
         String name = "";
         try {
             name = prompter.prompt(message, branches, defaultBrnName);
         } catch (PrompterException e) {
-            throw new MojoFailureException("Error reading selected branch name from command line " + e.getMessage());
+            throw new MojoFailureException("Error reading selected Tag name from command line " + e.getMessage());
         }
 
         return name;
     }
 
     private String getSupportVersion(String currentVersion) throws MojoFailureException {
         getLog().info("Project version '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         StringBuilder sb = new StringBuilder(10);
-        int pCount = artifactVersion.getPrimaryNumberCount();
-        for (int i = 0; i < pCount; i++) {
-            Integer primaryNumber = artifactVersion.getPrimaryNumber(i);
-            if (i == (pCount - 1)) {
-                sb.append('x');
-            } else {
-                sb.append(primaryNumber);
-            }
-        }
+//        int pCount = artifactVersion.getPrimaryNumberCount();
+//        for (int i = 0; i < pCount; i++) {
+//            Integer primaryNumber = artifactVersion.getPrimaryNumber(i);
+//            if (i == (pCount - 1)) {
+//                sb.append('x');
+//            } else {
+//                sb.append(primaryNumber);
+//            }
+//        }
+        sb.append(artifactVersion.getPrimaryNumbersAsString()).append('x');
         sb.append(artifactVersion.getAnnotationAsString()).append(artifactVersion.getBuildSpecifierAsString());
         
         return artifactVersion.toString();
     }
 
     private String getSupportSnapshotVersion(String currentVersion) throws MojoFailureException {
         getLog().info("Project version '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (StringUtils.isBlank(buildSpecifierAsString)) {
             getLog().warn("Adding build specifier " + SNAPSHOT_QUALIFIER + " to support version " + currentVersion);
             result.append('-').append(SNAPSHOT_QUALIFIER);
         }
 
         return result.toString();
     }
 }

commit ceea6bdbec16737bd1ae3849d4ba24a07794c7ef
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Sun Feb 2 03:26:46 2014 +0000

    sada

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
index 88ff372..007d7b9 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
@@ -19,3 +19,2 @@ import com.dkirrane.gitflow.groovy.GitflowSupport;
 import com.dkirrane.gitflow.groovy.ex.GitflowException;
-import java.util.ArrayList;
 import java.util.List;

commit dae6d3a57df1cf73c4f2323580ace8e7639c88cb
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Sun Feb 2 03:22:05 2014 +0000

    Support

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
index b597e9a..88ff372 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
@@ -32,111 +32,106 @@ import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
 /**
  *
  */
 @Mojo(name = "support-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class SupportStartMojo extends AbstractGitflowMojo {
 
     @Parameter(property = "startCommit", defaultValue = "")
     private String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         String prefix = getGitflowInit().getSupportBranchPrefix();
 
-        List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
-        List<String> hotfixBranches = getGitflowInit().gitLocalHotfixBranches();
-        if (releaseBranches.isEmpty() && hotfixBranches.isEmpty()) {
-            throw new MojoFailureException("Could not find any release or hotfix branch to create support branch from!");
+        List<String> tags = getGitflowInit().gitAllTags();
+        if (tags.isEmpty()) {
+            throw new MojoFailureException("Could not find any tags to create support branch from!");
         }
 
-        List<String> allBranches = new ArrayList<String>();
-        allBranches.addAll(releaseBranches);
-        allBranches.addAll(hotfixBranches);
-        String defaultBrn = (hotfixBranches.isEmpty()) ? releaseBranches.get(0) : hotfixBranches.get(0);
-        String baseName = promptForExistingReleaseOrHotfixName(allBranches, defaultBrn);
+        String baseName = promptForExistingReleaseOrHotfixName(tags, tags.get(0));
 
         getGitflowInit().executeLocal("git checkout " + baseName);
 
         String supportVersion = getSupportVersion(project.getVersion());
         String supportSnapshotVersion = getSupportSnapshotVersion(project.getVersion());
 
         getLog().info("Starting support branch '" + supportVersion + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowSupport gitflowSupport = new GitflowSupport();
         gitflowSupport.setInit(getGitflowInit());
         gitflowSupport.setMsgPrefix(getMsgPrefix());
         gitflowSupport.setMsgSuffix(getMsgSuffix());
 
         if (!StringUtils.isEmpty(startCommit)) {
             gitflowSupport.setStartCommit(startCommit);
         }
 
         try {
             gitflowSupport.start(supportVersion);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         setVersion(supportSnapshotVersion);
 
         if (getGitflowInit().gitRemoteBranchExists(prefix + supportVersion)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + supportVersion);
         }
     }
 
     private String promptForExistingReleaseOrHotfixName(List<String> branches, String defaultBrnName) throws MojoFailureException {
         String message = "Please select a release or hotfix branch to start support from?";
 
         String name = "";
         try {
             name = prompter.prompt(message, branches, defaultBrnName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading selected branch name from command line " + e.getMessage());
         }
 
         return name;
     }
 
     private String getSupportVersion(String currentVersion) throws MojoFailureException {
         getLog().info("Project version '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         StringBuilder sb = new StringBuilder(10);
         int pCount = artifactVersion.getPrimaryNumberCount();
         for (int i = 0; i < pCount; i++) {
             Integer primaryNumber = artifactVersion.getPrimaryNumber(i);
             if (i == (pCount - 1)) {
                 sb.append('x');
             } else {
                 sb.append(primaryNumber);
             }
         }
         sb.append(artifactVersion.getAnnotationAsString()).append(artifactVersion.getBuildSpecifierAsString());
         
         return artifactVersion.toString();
     }
 
     private String getSupportSnapshotVersion(String currentVersion) throws MojoFailureException {
         getLog().info("Project version '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (StringUtils.isBlank(buildSpecifierAsString)) {
             getLog().warn("Adding build specifier " + SNAPSHOT_QUALIFIER + " to support version " + currentVersion);
             result.append('-').append(SNAPSHOT_QUALIFIER);
         }
 
         return result.toString();
     }
 }

commit f941ee5488132389f9dd57f46b5eaa879ce2f6f7
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Sun Feb 2 03:19:03 2014 +0000

    Support X

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
index b76ee45..b597e9a 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
@@ -32,101 +32,111 @@ import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
 /**
  *
  */
 @Mojo(name = "support-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class SupportStartMojo extends AbstractGitflowMojo {
 
     @Parameter(property = "startCommit", defaultValue = "")
     private String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         String prefix = getGitflowInit().getSupportBranchPrefix();
 
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
         List<String> hotfixBranches = getGitflowInit().gitLocalHotfixBranches();
         if (releaseBranches.isEmpty() && hotfixBranches.isEmpty()) {
             throw new MojoFailureException("Could not find any release or hotfix branch to create support branch from!");
         }
 
         List<String> allBranches = new ArrayList<String>();
         allBranches.addAll(releaseBranches);
         allBranches.addAll(hotfixBranches);
         String defaultBrn = (hotfixBranches.isEmpty()) ? releaseBranches.get(0) : hotfixBranches.get(0);
         String baseName = promptForExistingReleaseOrHotfixName(allBranches, defaultBrn);
 
         getGitflowInit().executeLocal("git checkout " + baseName);
 
         String supportVersion = getSupportVersion(project.getVersion());
         String supportSnapshotVersion = getSupportSnapshotVersion(project.getVersion());
 
         getLog().info("Starting support branch '" + supportVersion + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowSupport gitflowSupport = new GitflowSupport();
         gitflowSupport.setInit(getGitflowInit());
         gitflowSupport.setMsgPrefix(getMsgPrefix());
         gitflowSupport.setMsgSuffix(getMsgSuffix());
 
         if (!StringUtils.isEmpty(startCommit)) {
             gitflowSupport.setStartCommit(startCommit);
         }
 
         try {
             gitflowSupport.start(supportVersion);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         setVersion(supportSnapshotVersion);
 
         if (getGitflowInit().gitRemoteBranchExists(prefix + supportVersion)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + supportVersion);
         }
     }
 
     private String promptForExistingReleaseOrHotfixName(List<String> branches, String defaultBrnName) throws MojoFailureException {
         String message = "Please select a release or hotfix branch to start support from?";
 
         String name = "";
         try {
             name = prompter.prompt(message, branches, defaultBrnName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading selected branch name from command line " + e.getMessage());
         }
 
         return name;
     }
 
     private String getSupportVersion(String currentVersion) throws MojoFailureException {
         getLog().info("Project version '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
-        artifactVersion.upgradeLeastSignificantNumber();
-
+        StringBuilder sb = new StringBuilder(10);
+        int pCount = artifactVersion.getPrimaryNumberCount();
+        for (int i = 0; i < pCount; i++) {
+            Integer primaryNumber = artifactVersion.getPrimaryNumber(i);
+            if (i == (pCount - 1)) {
+                sb.append('x');
+            } else {
+                sb.append(primaryNumber);
+            }
+        }
+        sb.append(artifactVersion.getAnnotationAsString()).append(artifactVersion.getBuildSpecifierAsString());
+        
         return artifactVersion.toString();
     }
 
     private String getSupportSnapshotVersion(String currentVersion) throws MojoFailureException {
         getLog().info("Project version '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (StringUtils.isBlank(buildSpecifierAsString)) {
             getLog().warn("Adding build specifier " + SNAPSHOT_QUALIFIER + " to support version " + currentVersion);
             result.append('-').append(SNAPSHOT_QUALIFIER);
         }
 
         return result.toString();
     }
 }

commit 6f134935b797652c1bc2f3af1e4497ea444ea38b
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Sun Feb 2 03:10:23 2014 +0000

    fix

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
index 91bc5c2..b76ee45 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
@@ -32,101 +32,101 @@ import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
 /**
  *
  */
 @Mojo(name = "support-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class SupportStartMojo extends AbstractGitflowMojo {
 
     @Parameter(property = "startCommit", defaultValue = "")
     private String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         String prefix = getGitflowInit().getSupportBranchPrefix();
 
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
         List<String> hotfixBranches = getGitflowInit().gitLocalHotfixBranches();
         if (releaseBranches.isEmpty() && hotfixBranches.isEmpty()) {
             throw new MojoFailureException("Could not find any release or hotfix branch to create support branch from!");
         }
 
         List<String> allBranches = new ArrayList<String>();
         allBranches.addAll(releaseBranches);
         allBranches.addAll(hotfixBranches);
         String defaultBrn = (hotfixBranches.isEmpty()) ? releaseBranches.get(0) : hotfixBranches.get(0);
         String baseName = promptForExistingReleaseOrHotfixName(allBranches, defaultBrn);
 
         getGitflowInit().executeLocal("git checkout " + baseName);
 
         String supportVersion = getSupportVersion(project.getVersion());
-        String supportSnapshotVersion = getSupportSnapshotVersion(supportVersion);
+        String supportSnapshotVersion = getSupportSnapshotVersion(project.getVersion());
 
         getLog().info("Starting support branch '" + supportVersion + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowSupport gitflowSupport = new GitflowSupport();
         gitflowSupport.setInit(getGitflowInit());
         gitflowSupport.setMsgPrefix(getMsgPrefix());
         gitflowSupport.setMsgSuffix(getMsgSuffix());
 
         if (!StringUtils.isEmpty(startCommit)) {
             gitflowSupport.setStartCommit(startCommit);
         }
 
         try {
             gitflowSupport.start(supportVersion);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         setVersion(supportSnapshotVersion);
 
         if (getGitflowInit().gitRemoteBranchExists(prefix + supportVersion)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + supportVersion);
         }
     }
 
     private String promptForExistingReleaseOrHotfixName(List<String> branches, String defaultBrnName) throws MojoFailureException {
         String message = "Please select a release or hotfix branch to start support from?";
 
         String name = "";
         try {
             name = prompter.prompt(message, branches, defaultBrnName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading selected branch name from command line " + e.getMessage());
         }
 
         return name;
     }
 
     private String getSupportVersion(String currentVersion) throws MojoFailureException {
         getLog().info("Project version '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         artifactVersion.upgradeLeastSignificantNumber();
 
         return artifactVersion.toString();
     }
 
     private String getSupportSnapshotVersion(String currentVersion) throws MojoFailureException {
         getLog().info("Project version '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (StringUtils.isBlank(buildSpecifierAsString)) {
             getLog().warn("Adding build specifier " + SNAPSHOT_QUALIFIER + " to support version " + currentVersion);
             result.append('-').append(SNAPSHOT_QUALIFIER);
         }
 
         return result.toString();
     }
 }

commit 999459dfd68f39c565341260fb8ead81834aeac8
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Sun Feb 2 03:08:01 2014 +0000

    Support start

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
new file mode 100644
index 0000000..91bc5c2
--- /dev/null
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/SupportStartMojo.java
@@ -0,0 +1,132 @@
+/*
+ * Copyright 2014 desmondkirrane.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.dkirrane.maven.plugins.ggitflow;
+
+import com.dkirrane.gitflow.groovy.GitflowSupport;
+import com.dkirrane.gitflow.groovy.ex.GitflowException;
+import java.util.ArrayList;
+import java.util.List;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.plugin.MojoFailureException;
+import org.apache.maven.plugins.annotations.LifecyclePhase;
+import org.apache.maven.plugins.annotations.Mojo;
+import org.apache.maven.plugins.annotations.Parameter;
+import org.codehaus.plexus.components.interactivity.PrompterException;
+import org.codehaus.plexus.util.StringUtils;
+import org.jfrog.hudson.util.GenericArtifactVersion;
+import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
+
+/**
+ *
+ */
+@Mojo(name = "support-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
+public class SupportStartMojo extends AbstractGitflowMojo {
+
+    @Parameter(property = "startCommit", defaultValue = "")
+    private String startCommit;
+
+    @Override
+    public void execute() throws MojoExecutionException, MojoFailureException {
+        super.execute();
+
+        String prefix = getGitflowInit().getSupportBranchPrefix();
+
+        List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
+        List<String> hotfixBranches = getGitflowInit().gitLocalHotfixBranches();
+        if (releaseBranches.isEmpty() && hotfixBranches.isEmpty()) {
+            throw new MojoFailureException("Could not find any release or hotfix branch to create support branch from!");
+        }
+
+        List<String> allBranches = new ArrayList<String>();
+        allBranches.addAll(releaseBranches);
+        allBranches.addAll(hotfixBranches);
+        String defaultBrn = (hotfixBranches.isEmpty()) ? releaseBranches.get(0) : hotfixBranches.get(0);
+        String baseName = promptForExistingReleaseOrHotfixName(allBranches, defaultBrn);
+
+        getGitflowInit().executeLocal("git checkout " + baseName);
+
+        String supportVersion = getSupportVersion(project.getVersion());
+        String supportSnapshotVersion = getSupportSnapshotVersion(supportVersion);
+
+        getLog().info("Starting support branch '" + supportVersion + "'");
+        getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
+        getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
+
+        GitflowSupport gitflowSupport = new GitflowSupport();
+        gitflowSupport.setInit(getGitflowInit());
+        gitflowSupport.setMsgPrefix(getMsgPrefix());
+        gitflowSupport.setMsgSuffix(getMsgSuffix());
+
+        if (!StringUtils.isEmpty(startCommit)) {
+            gitflowSupport.setStartCommit(startCommit);
+        }
+
+        try {
+            gitflowSupport.start(supportVersion);
+        } catch (GitflowException ge) {
+            throw new MojoFailureException(ge.getMessage());
+        }
+
+        setVersion(supportSnapshotVersion);
+
+        if (getGitflowInit().gitRemoteBranchExists(prefix + supportVersion)) {
+            getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + supportVersion);
+        }
+    }
+
+    private String promptForExistingReleaseOrHotfixName(List<String> branches, String defaultBrnName) throws MojoFailureException {
+        String message = "Please select a release or hotfix branch to start support from?";
+
+        String name = "";
+        try {
+            name = prompter.prompt(message, branches, defaultBrnName);
+        } catch (PrompterException e) {
+            throw new MojoFailureException("Error reading selected branch name from command line " + e.getMessage());
+        }
+
+        return name;
+    }
+
+    private String getSupportVersion(String currentVersion) throws MojoFailureException {
+        getLog().info("Project version '" + currentVersion + "'");
+
+        GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
+
+        artifactVersion.upgradeLeastSignificantNumber();
+
+        return artifactVersion.toString();
+    }
+
+    private String getSupportSnapshotVersion(String currentVersion) throws MojoFailureException {
+        getLog().info("Project version '" + currentVersion + "'");
+
+        GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
+
+        String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
+        String annotationAsString = artifactVersion.getAnnotationAsString();
+        String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
+
+        final StringBuilder result = new StringBuilder(30);
+        result.append(primaryNumbersAsString).append(annotationAsString);
+
+        if (StringUtils.isBlank(buildSpecifierAsString)) {
+            getLog().warn("Adding build specifier " + SNAPSHOT_QUALIFIER + " to support version " + currentVersion);
+            result.append('-').append(SNAPSHOT_QUALIFIER);
+        }
+
+        return result.toString();
+    }
+}

commit f73c7a63d9780e53d45e6e0d03d511e215054816
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Sun Feb 2 02:37:30 2014 +0000

    Hotfix

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
index 9e87123..5a3f5fb 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
@@ -29,75 +29,75 @@ import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
 /**
  *
  */
 @Mojo(name = "hotfix-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class HotfixStartMojo extends HotfixAbstractMojo {
 
     @Parameter(property = "startCommit", defaultValue = "")
     private String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getMasterBrnName());
 
         String hotfixVersion = getHotfixVersion(project.getVersion());
         String hotfixSnapshotVersion = getHotfixSnapshotVersion(hotfixVersion);
 
         getLog().info("Starting hotfix '" + hotfixVersion + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
 
         if (!StringUtils.isEmpty(startCommit)) {
             gitflowHotfix.setStartCommit(startCommit);
         }
 
         try {
             gitflowHotfix.start(hotfixVersion);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         setVersion(hotfixSnapshotVersion);
         
         String prefix = getGitflowInit().getHotfixBranchPrefix();
         if (getGitflowInit().gitRemoteBranchExists(prefix + hotfixVersion)) {
             getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + hotfixVersion);
         }
     }
 
     private String getHotfixVersion(String currentVersion) throws MojoFailureException {
         getLog().info("Project version '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         artifactVersion.upgradeLeastSignificantNumber();
 
         return artifactVersion.toString();
     }
 
     private String getHotfixSnapshotVersion(String currentVersion) throws MojoFailureException {
         getLog().info("Project version '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
-        if (!StringUtils.isBlank(buildSpecifierAsString)) {
+        if (StringUtils.isBlank(buildSpecifierAsString)) {
             getLog().warn("Adding build specifier " + SNAPSHOT_QUALIFIER + " to hotfix version " + currentVersion);
-            result.append(SNAPSHOT_QUALIFIER);
+            result.append('-').append(SNAPSHOT_QUALIFIER);
         }
 
         return result.toString();
     }
 }

commit 7e28d7b69b2726588d96bb8ea5b01fea2f6478e0
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Sun Feb 2 02:23:13 2014 +0000

    Hotfix start finfish

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
index 1c20c1f..d92276c 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
@@ -24,104 +24,104 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  *
  */
 public class AbstractFeatureMojo extends AbstractGitflowMojo {
 
     @Parameter(property = "featureName")
     protected String featureName;
 
     @Parameter(defaultValue = "false", property = "enableFeatureVersions")
     protected boolean enableFeatureVersions = false;
 
     @Parameter(defaultValue = "false", property = "pushFeatures")
     protected boolean pushFeatures = false;
 
     public String getFeatureBranchPrefix() {
         String prefix = getGitflowInit().getFeatureBranchPrefix();
         if (StringUtils.isBlank(prefix)) {
             prefix = DEFAULT_FEATURE_BRN_PREFIX;
         }
         return prefix;
     }
 
     public String getFeatureName(String featureLabel) throws MojoFailureException {
         if (StringUtils.isBlank(featureLabel)) {
             throw new MojoFailureException("Missing argument <featureName>");
         }
 
         featureLabel = featureLabel.replaceAll("\\s+", "");
 //        featureLabel = featureLabel.replaceAll("-+", "_");
         return featureLabel;
     }
 
     public String getFeatureVersion(String currentVersion, String featureLabel) throws MojoFailureException {
         getLog().info("Project version '" + currentVersion + "'");
         featureLabel = getValidFeatureVersionAnnotation(featureLabel);
         getLog().info("Feature version annotation '" + featureLabel + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         Character annotationSeparator = artifactVersion.getAnnotationRevisionSeparator();
         String buildSpecifier = artifactVersion.getBuildSpecifier();
         Character buildSpecifierSeparator = artifactVersion.getBuildSpecifierSeparator();
 
         getLog().info("Parsed version = " + artifactVersion.toString());
         if (!StringUtils.isBlank(annotationAsString)) {
             throw new MojoFailureException("Cannot add feature name to version. An annotation " + annotationAsString + " already exists");
         }
 
         final StringBuilder result = new StringBuilder(30);
 
         result.append(primaryNumbersAsString).append(annotationSeparator).append(featureLabel);
 
         if (buildSpecifier != null) {
             if (buildSpecifierSeparator != null) {
                 result.append(buildSpecifierSeparator);
             }
             result.append(buildSpecifier);
         }
 
         return result.toString();
     }
 
     public String getNonFeatureVersion(String version, String featureLabel) {
         getLog().info("Project version '" + version + "'");
         featureLabel = getValidFeatureVersionAnnotation(featureLabel);
         getLog().info("Feature version annotation '" + featureLabel + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifier = artifactVersion.getBuildSpecifier();
         Character buildSpecifierSeparator = artifactVersion.getBuildSpecifierSeparator();
 
         getLog().info("Parsed version = " + artifactVersion.toString());
         if (StringUtils.isBlank(annotationAsString)) {
             getLog().warn("Cannot remove feature name from pom version. The version annotation does not exists");
             return version;
         }
 
         if (('-' + featureLabel).equals(annotationAsString)) {
             final StringBuilder result = new StringBuilder(30);
             result.append(primaryNumbersAsString);
 
             if (buildSpecifier != null) {
                 if (buildSpecifierSeparator != null) {
                     result.append(buildSpecifierSeparator);
                 }
                 result.append(buildSpecifier);
             }
 
             return result.toString();
         } else {
             getLog().warn("Cannot remove feature name from pom version. The version annotation [" + annotationAsString + "] does not match the feature label [" + featureLabel + "]");
             return version;
         }
-    }
+    }      
 
     private String getValidFeatureVersionAnnotation(String featureLabel) {
         featureLabel = featureLabel.trim().replaceAll("\\s+", "_");
         featureLabel = featureLabel.trim().replaceAll("-+", "_");
         return featureLabel;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index f50b07d..ec0574a 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -31,2 +31,3 @@ import org.codehaus.plexus.components.interactivity.Prompter;
 import org.codehaus.plexus.util.StringUtils;
+import org.jfrog.hudson.util.GenericArtifactVersion;
 import static org.twdata.maven.mojoexecutor.MojoExecutor.artifactId;
@@ -43,131 +44,150 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 /**
  *
  */
 public class AbstractGitflowMojo extends AbstractMojo {
 
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
-    
+
     @Parameter(property = "msgPrefix", defaultValue = "")
     protected String msgPrefix;
 
     @Parameter(property = "msgSuffix", defaultValue = "")
     protected String msgSuffix;
 
     /**
      * Component used to prompt for input.
      */
     @Component
-    protected Prompter prompter;  
-    
+    protected Prompter prompter;
+
     @Component
     protected Map<String, MavenExecutor> mavenExecutors;
 
     @Component
-    protected MavenProjectBuilder projectBuilder;    
+    protected MavenProjectBuilder projectBuilder;
 
 //    /**
 //     * @parameter property="plugin"
 //     * @required
 //     */
 //    @Component
 //    protected PluginDescriptor pluginDescriptor;
 //
     /**
      * The project currently being build.
      *
      * @parameter expression="${project}"
      * @required
      * @readonly
      */
     @Component
     protected MavenProject project;
 
     /**
      * The current Maven session.
      *
      * @parameter expression="${session}"
      * @required
      * @readonly
      */
     @Component
     protected MavenSession session;
 
     /**
      * The Maven BuildPluginManager component.
      *
      * @component
      * @required
      */
     @Component
     protected BuildPluginManager pluginManager;
 
     private GitflowInit init;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     public void execute() throws MojoExecutionException, MojoFailureException {
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             getLog().info("Gitflow pom  '" + project.getBasedir() + "'");
         }
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     public GitflowInit getGitflowInit() {
         if (null == init) {
             init = new GitflowInit();
             init.setRepoDir(getProject().getBasedir());
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
         }
         return init;
     }
 
     public void setVersion(String version) throws MojoExecutionException, MojoFailureException {
         getLog().info("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
         executeMojo(
                 plugin(
                         groupId("org.codehaus.mojo"),
                         artifactId("versions-maven-plugin"),
                         version("2.1")
                 ),
                 goal("set"),
                 configuration(
                         element(name("generateBackupPoms"), "false"),
                         element(name("newVersion"), version)
                 ),
                 executionEnvironment(
                         project,
                         session,
                         pluginManager
                 )
         );
         getLog().info("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
         } else {
             throw new MojoFailureException("Failed to update poms to version " + version);
         }
-    }  
+    }
+
+    public String getReleaseVersion(String version) throws MojoFailureException {
+        getLog().info("Project version '" + version + "'");
+
+        GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
+
+        String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
+        String annotationAsString = artifactVersion.getAnnotationAsString();
+        String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
+
+        final StringBuilder result = new StringBuilder(30);
+        result.append(primaryNumbersAsString).append(annotationAsString);
+
+        if (!StringUtils.isBlank(buildSpecifierAsString)) {
+            getLog().warn("Removing build specifier " + buildSpecifierAsString + " from version " + version);
+        }
+
+        return result.toString();
+    }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java
index e17f733..67a739f 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java
@@ -24,48 +24,29 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  *
  */
 public class AbstractReleaseMojo extends AbstractGitflowMojo {
 
     @Parameter(property = "releaseName")
     protected String releaseName;
 
     @Parameter(defaultValue = "false", property = "pushReleases")
     private boolean pushReleases = false;
 
     public String getReleaseBranchPrefix() {
         String prefix = getGitflowInit().getReleaseBranchPrefix();
         if (StringUtils.isBlank(prefix)) {
             prefix = DEFAULT_RELEASE_BRN_PREFIX;
         }
         return prefix;
     }
 
-    public String getReleaseVersion(String version) throws MojoFailureException {
-        getLog().info("Project version '" + version + "'");
-
-        GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
-
-        String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
-        String annotationAsString = artifactVersion.getAnnotationAsString();
-        String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
-
-        final StringBuilder result = new StringBuilder(30);
-        result.append(primaryNumbersAsString).append(annotationAsString);
-
-        if (!StringUtils.isBlank(buildSpecifierAsString)) {
-            getLog().warn("Removing build specifier " + buildSpecifierAsString + " from version " + version);
-        }
-
-        return result.toString();
-    }
-
     public String getNextDevelopmentVersion(String version) throws MojoFailureException {
         getLog().info("Project version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
         GenericArtifactVersion nextDevelopVersion = artifactVersion.upgradeLeastSignificantNumber();
 
         getLog().info("Project version '" + nextDevelopVersion + "'");
         return nextDevelopVersion.toString();
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
index 4dbfc00..1df12f5 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
@@ -30,52 +30,55 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  *
  */
 @Mojo(name = "hotfix-finish", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class HotfixFinishMojo extends HotfixAbstractMojo {
 
     @Parameter(property = "hotfixName")
     protected String hotfixName;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         List<String> hotfixBranches = getGitflowInit().gitLocalHotfixBranches();
 
         if (hotfixBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         }
 
         if (hotfixBranches.size() == 1) {
             hotfixName = hotfixBranches.get(0);
         } else {
             hotfixName = promptForExistingHotfixName(hotfixBranches, hotfixName);
         }
+        
+        String hotfixReleaseVersion = getReleaseVersion(project.getVersion());
+        setVersion(hotfixReleaseVersion);
 
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowHotfix.finish(hotfixName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
     }
 
     private String promptForExistingHotfixName(List<String> hotfixBranches, String defaultHotfixName) throws MojoFailureException {
         String message = "Please select a hotfix branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, hotfixBranches, defaultHotfixName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading hotfix name from command line " + e.getMessage());
         }
 
         return name;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
index b3ad717..9e87123 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
@@ -26,49 +26,78 @@ import org.codehaus.plexus.util.StringUtils;
 import org.jfrog.hudson.util.GenericArtifactVersion;
+import static org.jfrog.hudson.util.GenericArtifactVersion.SNAPSHOT_QUALIFIER;
 
 /**
  *
  */
 @Mojo(name = "hotfix-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class HotfixStartMojo extends HotfixAbstractMojo {
 
     @Parameter(property = "startCommit", defaultValue = "")
     private String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         getGitflowInit().executeLocal("git checkout " + getGitflowInit().getMasterBrnName());
 
         String hotfixVersion = getHotfixVersion(project.getVersion());
+        String hotfixSnapshotVersion = getHotfixSnapshotVersion(hotfixVersion);
 
         getLog().info("Starting hotfix '" + hotfixVersion + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
 
         if (!StringUtils.isEmpty(startCommit)) {
             gitflowHotfix.setStartCommit(startCommit);
         }
 
         try {
             gitflowHotfix.start(hotfixVersion);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
+
+        setVersion(hotfixSnapshotVersion);
+        
+        String prefix = getGitflowInit().getHotfixBranchPrefix();
+        if (getGitflowInit().gitRemoteBranchExists(prefix + hotfixVersion)) {
+            getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + hotfixVersion);
+        }
     }
 
     private String getHotfixVersion(String currentVersion) throws MojoFailureException {
         getLog().info("Project version '" + currentVersion + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
 
         artifactVersion.upgradeLeastSignificantNumber();
 
         return artifactVersion.toString();
     }
+
+    private String getHotfixSnapshotVersion(String currentVersion) throws MojoFailureException {
+        getLog().info("Project version '" + currentVersion + "'");
+
+        GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
+
+        String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
+        String annotationAsString = artifactVersion.getAnnotationAsString();
+        String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
+
+        final StringBuilder result = new StringBuilder(30);
+        result.append(primaryNumbersAsString).append(annotationAsString);
+
+        if (!StringUtils.isBlank(buildSpecifierAsString)) {
+            getLog().warn("Adding build specifier " + SNAPSHOT_QUALIFIER + " to hotfix version " + currentVersion);
+            result.append(SNAPSHOT_QUALIFIER);
+        }
+
+        return result.toString();
+    }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/org/jfrog/hudson/util/GenericArtifactVersion.java b/ggitflow-maven-plugin/src/main/java/org/jfrog/hudson/util/GenericArtifactVersion.java
index 6bbb3f4..2c49b76 100644
--- a/ggitflow-maven-plugin/src/main/java/org/jfrog/hudson/util/GenericArtifactVersion.java
+++ b/ggitflow-maven-plugin/src/main/java/org/jfrog/hudson/util/GenericArtifactVersion.java
@@ -7,676 +7,676 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  * Represents a generic standard artifact version. This class can be used either
  * for parsing a version string and/or for building a version string
  * programatically. Consistency is guaranteed at all times so that no invalid
  * version is formed. Also, new
  * {@link GenericArtifactVersion}(versionString).toString().equals(versionString)
  * is guaranteed to be always true if 'versionString' is in the right format.
  *
  * A standard artifact version is a string in the following format:
  *
  * <pre>
  * <primary_numbers>[[-_]<annotation>][[-_]<annotation_revision>][[-_]<build_specifier>]
  * </pre>
  * <ul>
  * where:
  * <li>primary_numbers: <p1>[.<p2>[...<pn>]...] are non-negative integers
  * separated by '.'. Examples: 1; 1.2; 1.2.3; etc.</li>
  * <li>annotation: Sequence of letters that usually describe the release type.
  * Examples: alpha, beta, RC, etc.</li>
  * <li>annotation_revision: A non-negative integer associated to the
  * annotation.</li>
  * <li>build_specifier: SNAPSHOT|YYYYMMdd.hhmmss-n[n[...[n]...]] Examples:
  * SNAPSHOT, 20120110.152615-1, 20120110.152615-543</li>
  * </ul>
  *
  * Note that we used generic terms as components. Even though "major", "minor",
  * and "incremental" are terms used for the first three primary components, we
  * want to abstract that to be as generic as possible. Other implementations can
  * reuse this class and rename components as desired.
  *
  * Notes: The version format is based on Maven's
  * org.apache.maven.shared.release.versions.DefaultVersionInfo. As of today,
  * that class can be found in the following artifact:
  * org.apache.maven.release:maven-release-manager:2.2
  * <p>
  * The reason why I decided to reimplement this is becase of the unwanted
  * dependencies added with that artifact that clash with some Jenkins'
  * dependencies. Besides that, the implementation is not very flexible, it does
  * not provide means to retrieve the component separators and it cannot be
  * extended either. Moreover, if we depended on that class, our code can easily
  * break if we upgrade that artifact and they update their version scheme. What
  * we do when releasing is tied to our interpretation of version schemes.
  *
  *
  * @author Nicolas Grobisa
  *
  */
 public class GenericArtifactVersion {
 
-    private static final String SNAPSHOT_QUALIFIER = "SNAPSHOT";
+    public static final String SNAPSHOT_QUALIFIER = "SNAPSHOT";
 
     private static final Character DEFAULT_VERSION_COMPONENT_SEPARATOR = '-';
 
     private static final Integer DEFAULT_BASE_ANNOTATION_REVISION = 1;
 
     private static final String VERSION_COMPONENT_SEPARATOR_REGEX = "([-_]?)";
 
     private static final Pattern VERSION_COMPONENT_SEPARATOR_PATTERN = Pattern.compile(VERSION_COMPONENT_SEPARATOR_REGEX);
 
     private static final String VERSION_PRIMARY_NUMBERS_REGEX = "(\\d(\\.\\d)*)";
 
     private static final String VERSION_ANNOTATION_REGEX = "([a-zA-Z]+)";
 
     private static final Pattern VERSION_ANNOTATION_PATTERN = Pattern.compile(VERSION_ANNOTATION_REGEX);
 
     private static final String VERSION_ANNOTATIONREV_REGEX = "(\\d+)";
 
     private static final String VERSION_BUILD_SPECIFIER_REGEX = "((?i)" + SNAPSHOT_QUALIFIER + "|\\d{8}\\.\\d{6}\\-(\\d+))";
 
     private static final Pattern VERSION_BUILD_SPECIFIER_PATTERN = Pattern.compile(VERSION_BUILD_SPECIFIER_REGEX);
 
     private static final String VERSION_REGEX = "^" + VERSION_PRIMARY_NUMBERS_REGEX + "(" + VERSION_COMPONENT_SEPARATOR_REGEX
             + VERSION_ANNOTATION_REGEX + ")?(" + VERSION_COMPONENT_SEPARATOR_REGEX + VERSION_ANNOTATIONREV_REGEX + ")?("
             + VERSION_COMPONENT_SEPARATOR_REGEX + VERSION_BUILD_SPECIFIER_REGEX + ")?$";
 
     private static final int VERSION_REGEXGROUP_PRIMARYNUMS = 1;
 
     private static final int VERSION_REGEXGROUP_ANNOTATION_SEPARATOR = 4;
 
     private static final int VERSION_REGEXGROUP_ANNOTATION = 5;
 
     private static final int VERSION_REGEXGROUP_ANNOTATIONREV_SEPARATOR = 7;
 
     private static final int VERSION_REGEXGROUP_ANNOTATIONREV = 8;
 
     private static final int VERSION_REGEXGROUP_BUILDSPEC_SEPARATOR = 10;
 
     private static final int VERSION_REGEXGROUP_BUILDSPEC = 11;
 
     private static final Pattern VERSION_PATTERN = Pattern.compile(VERSION_REGEX);
 
     private final Integer[] primaryNumbers;
 
     private Character annotationSeparator;
 
     private String annotation;
 
     private Character annotationRevisionSeparator;
 
     private Integer annotationRevision;
 
     private Character buildSpecifierSeparator;
 
     private String buildSpecifier;
 
     public GenericArtifactVersion(final String versionString) {
         final Matcher matcher = VERSION_PATTERN.matcher(versionString);
 
         if (!matcher.matches()) {
             throw new IllegalArgumentException("Provided version string is not a valid version.");
         }
 
         Integer annotationRevision = parseAnnotationRevision(matcher.group(VERSION_REGEXGROUP_ANNOTATIONREV));
         Character annotationSeparator = parseSeparator(matcher.group(VERSION_REGEXGROUP_ANNOTATION_SEPARATOR));
         String annotation = nullIfBlank(matcher.group(VERSION_REGEXGROUP_ANNOTATION));
         Character buildSpecifierSeparator = parseSeparator(matcher.group(VERSION_REGEXGROUP_BUILDSPEC_SEPARATOR));
         String buildSpecifier = nullIfBlank(matcher.group(VERSION_REGEXGROUP_BUILDSPEC));
 
         // The regex will capture the snapshot qualifier as an annotation.
         // Therefore, we need to set it as the build specifier.
         if (buildSpecifier == null && SNAPSHOT_QUALIFIER.equalsIgnoreCase(annotation)) {
             buildSpecifierSeparator = annotationSeparator;
             buildSpecifier = annotation;
             annotationSeparator = null;
             annotation = null;
         }
 
         // Set the separators, using the default ones where appropriate. This is a subtle use case. The user might have provided a
         // version with annotation but no annotation revision. E.g., 1.0_alpha.
         // This means that we would know what the annotation separator is ('_' in the example) but we don't have information about
         // the annotation revision separator. If later the user wants to add an annotation revision, we want to be sure that the
         // default separator is used instead of the null separator. Example, if the users adds a revision of '5', then the result
         // would be "1.0_alpha-5", and not "1.0_alpha5".
         this.annotationSeparator = (annotation == null) ? DEFAULT_VERSION_COMPONENT_SEPARATOR : annotationSeparator;
         this.annotationRevisionSeparator = (annotationRevision == null) ? DEFAULT_VERSION_COMPONENT_SEPARATOR
                 : parseSeparator(matcher.group(VERSION_REGEXGROUP_ANNOTATIONREV_SEPARATOR));
         this.buildSpecifierSeparator = (buildSpecifier == null) ? DEFAULT_VERSION_COMPONENT_SEPARATOR : buildSpecifierSeparator;
 
         // Set version components
         this.primaryNumbers = parsePrimaryNumber(matcher.group(VERSION_REGEXGROUP_PRIMARYNUMS));
         this.annotation = annotation;
         this.annotationRevision = annotationRevision;
         this.buildSpecifier = buildSpecifier;
     }
 
     /**
      * Parses a primary component number.
      *
      * @param primaryNumbers A string representing a sequence of primary numbers
      * separated by dot ('.'). Examples: "1", "1.2.3". Must be in the correct
      * format.
      * @return An array where each element is an integer. Index 0 contains the
      * most significant primary number.
      */
     private Integer[] parsePrimaryNumber(final String primaryNumbers) {
         final String[] primaryNumberStrings = primaryNumbers.split("\\.");
         final int n = primaryNumberStrings.length;
         final Integer[] result = new Integer[n];
 
         for (int i = 0; i < n; i++) {
             result[i] = Integer.parseInt(primaryNumberStrings[i]);
         }
 
         return result;
     }
 
     /**
      * Returns the input string or null if that string is blank or null.
      *
      * @param string The input string.
      * @return The input string or null if that string is blank or null.
      */
     private String nullIfBlank(final String string) {
         return StringUtils.isBlank(string) ? null : string;
     }
 
     /**
      * Parses a version component separator string and returns it as a
      * character.
      *
      * @param separator The separator string to parse.
      * @return The first character of the string, or null if that string is
      * empty.
      */
     private Character parseSeparator(final String separator) {
         return StringUtils.isNotEmpty(separator) ? separator.charAt(0) : null;
     }
 
     /**
      * Parses a string representing the version annotation revision.
      *
      * @param annotationRev The string to parse.
      * @return An integer representing the version annotation revision, or null
      * if the string is empty.
      */
     private Integer parseAnnotationRevision(final String annotationRev) {
         return StringUtils.isNotEmpty(annotationRev) ? Integer.parseInt(annotationRev) : null;
     }
 
     /**
      * Increments the least significant number in the version components by 1.
      * <p>
      * If the annotation revision is defined, it's incremented. Otherwise, the
      * last primary number is incremented.
      * <p>
      * Examples:
      * <ul>
      * <li>"1.2.3.4-alpha-5" is upgraded to "1.2.3.4-alpha-6"</li>
      * <li>"1.2.3.4-alpha" is upgraded to "1.2.3.5-alpha"</li>
      * <li>"1-SNAPSHOT" is upgraded to "2-SNAPSHOT"</li>
      * </ul>
      *
      * @return The instance, for method chaining.
      */
     public GenericArtifactVersion upgradeLeastSignificantNumber() {
         if (this.annotationRevision != null) {
             upgradeAnnotationRevision();
         } else {
             upgradeLeastSignificantPrimaryNumber();
         }
 
         return this;
     }
 
     /**
      * Increments the least significant primary number by 1, resetting the
      * annotation revision if it is defined.
      * <p>
      * Examples (assuming a base annotation revision of 1):
      * <ul>
      * <li>"1.2.3.4-alpha-5" is upgraded to "1.2.3.5-alpha-1"</li>
      * <li>"1.2.3.4-alpha" is upgraded to "1.2.3.5-alpha"</li>
      * <li>"1-SNAPSHOT" is upgraded to "2-SNAPSHOT"</li>
      * </ul>
      *
      * @return The instance, for method chaining.
      */
     public GenericArtifactVersion upgradeLeastSignificantPrimaryNumber() {
         upgradePrimaryNumber(this.primaryNumbers.length - 1);
 
         return this;
     }
 
     /**
      * Increments a primary number by 1, resetting the remaining less
      * significant components.
      * <p>
      * Examples (assuming a base annotation revision of 1):
      * <ul>
      * <li>"1.2.3.4-alpha-5" is upgraded to "2.0.0.0-alpha-1" with an index of
      * 0</li>
      * <li>"1.2.3.4-alpha-5" is upgraded to "1.2.3.0-alpha-1" with an index of
      * 3</li>
      * <li>"1.2-alpha" is upgraded to "1.3-alpha" with an index of 1</li>
      * <li>"1-SNAPSHOT" is upgraded to "2-SNAPSHOT" with an index of 0</li>
      * </ul>
      *
      * @param primaryNumberIndex The index identifying the primary number to
      * increase.
      * @return The instance, for method chaining.
      * @throws IllegalArgumentException if the index is negative.
      * @throws IllegalStateException if this version doesn't have a primary
      * number at the specified index.
      */
     public GenericArtifactVersion upgradePrimaryNumber(final int primaryNumberIndex) {
         if (primaryNumberIndex < 0) {
             throw new IllegalArgumentException("Primary number index cannot be negative.");
         }
         if (this.primaryNumbers.length <= primaryNumberIndex) {
             throw new IllegalStateException("Cannot upgrade version becase '" + this + "' does not have a "
                     + "primary number at index " + primaryNumberIndex);
         }
 
         this.primaryNumbers[primaryNumberIndex]++;
         resetPrimaryNumbers(primaryNumberIndex + 1);
         resetAnnotationRevision();
 
         return this;
     }
 
     /**
      * Increments the annotation revision by 1.
      *
      * @return The instance, for method chaining.
      * @throws IllegalStateException if this version doesn't have an annotation
      * revision defined.
      */
     public GenericArtifactVersion upgradeAnnotationRevision() {
         if (this.annotationRevision == null) {
             throw new IllegalStateException("Cannot upgrade annotation revision for version '" + this
                     + "' because it does not have that component.");
         }
 
         this.annotationRevision++;
         return this;
     }
 
     /**
      * Resets (sets to 0) all consecutive primary numbers starting at a specific
      * index.
      *
      * @param fromIndex The index pointing to the first primary number that will
      * be reset.
      */
     private void resetPrimaryNumbers(final int fromIndex) {
         for (int i = fromIndex, n = this.primaryNumbers.length; i < n; i++) {
             this.primaryNumbers[i] = 0;
         }
     }
 
     /**
      * Resets the annotation revision (if it is defined). It is set to
      * {@link #DEFAULT_BASE_ANNOTATION_REVISION}.
      */
     private void resetAnnotationRevision() {
         if (this.annotationRevision != null) {
             this.annotationRevision = DEFAULT_BASE_ANNOTATION_REVISION;
         }
     }
 
     /**
      * Returns the string representation of the primary numbers.
      * <p>
      * The string representation is the concatenation of all numbers separated
      * by the dot character ('.').
      *
      * @return The primary numbers as a single string.
      */
     public String getPrimaryNumbersAsString() {
         return createPrimaryNumbersString(new StringBuilder(8)).toString();
     }
 
     /**
      * Returns the string representation of the annotation string.
      *
      * [[-_]<annotation>][[-_]<annotation_revision>]
      *
      * @return The annotation as a single string.
      */
     public String getAnnotationAsString() {
         return createAnnotationString(new StringBuilder(0)).toString();
     }
 
     /**
      * Returns the string representation of the annotation string.
      *
      * [[-_]<build_specifier>]
      *
      * @return The build specifier as a single string.
      */
     public String getBuildSpecifierAsString() {
         return createBuildSpecifierString(new StringBuilder(0)).toString();
     }
 
     /**
      * Returns how many primary numbers are defined for this version.
      *
      * @return The primary number count.
      */
     public int getPrimaryNumberCount() {
         return this.primaryNumbers.length;
     }
 
     /**
      * Returns the primary number located at a specific index.
      *
      * @param index The index pointing to the primary number. Must be
      * non-negative.
      * @return The primary number, or null if it's not defined.
      * @throws IllegalArgumentException if the index is provided is negative.
      */
     public Integer getPrimaryNumber(final int index) {
         if (index < 0) {
             throw new IllegalArgumentException("Primary number index must be non-negative.");
         }
 
         return (this.primaryNumbers.length > index) ? this.primaryNumbers[index] : null;
     }
 
     /**
      * Defines the primary number located at a specific index.
      *
      * @param index The index pointing to the primary number to define. Must be
      * non-negative.
      * @param value The number to define as the primary component. Must be
      * non-negative.
      * @return The instance, for method chaining.
      * @throws IllegalArgumentException if the index or value is negative, or if
      * a primary number does not exist at that index.
      */
     public GenericArtifactVersion setPrimaryNumber(final int index, final int value) {
         if (index < 0) {
             throw new IllegalArgumentException("Primary number index must be non-negative.");
         }
         if (index >= this.primaryNumbers.length) {
             throw new IllegalArgumentException("Invalid index for version digit. Maximum digit index for this version is "
                     + (this.primaryNumbers.length - 1));
         }
         if (value < 0) {
             throw new IllegalArgumentException("Primary numbers must be non-negative.");
         }
 
         this.primaryNumbers[index] = value;
 
         return this;
     }
 
     /**
      * Returns the separator character for the version annotation component.
      *
      * @return The annotation separator, or null if there's none.
      */
     public Character getAnnotationSeparator() {
         return this.annotationSeparator;
     }
 
     /**
      * Sets the separator character for the version annotation component.
      *
      * @param annotationSeparator A valid separator character (read this class'
      * documentation for more information about the valid format). null can be
      * used to indicate that there's no separator.
      * @return The instance, for method chaining.
      * @throws IllegalArgumentException if the character provided is invalid.
      */
     public GenericArtifactVersion setAnnotationSeparator(final Character annotationSeparator) {
         validateSeparator(annotationSeparator);
         this.annotationSeparator = annotationSeparator;
 
         return this;
     }
 
     /**
      * Returns the version annotation component.
      *
      * @return The annotation, or null if it is not defined.
      */
     public String getAnnotation() {
         return this.annotation;
     }
 
     /**
      * Defines the version annotation component.
      *
      * @param annotation A valid annotation string (read this class'
      * documentation for more information about the valid format). null can be
      * used to indicate that there's no annotation.
      * @return The instance, for method chaining.
      * @throws IllegalArgumentException if the annotation is invalid.
      */
     public GenericArtifactVersion setAnnotation(final String annotation) {
         if (annotation != null && !VERSION_ANNOTATION_PATTERN.matcher(annotation).matches()) {
             throw new IllegalArgumentException("Invalid version separator.");
         }
         this.annotation = annotation;
 
         return this;
     }
 
     /**
      * Returns the separator character for the annotation revision.
      *
      * @return The separator, or null if there's none.
      */
     public Character getAnnotationRevisionSeparator() {
         return annotationRevisionSeparator;
     }
 
     /**
      * Defines the separator character for the version annotation revision
      * component.
      *
      * @param annotationRevisionSeparator A valid separator character (read this
      * class' documentation for more information about the valid format). null
      * can be used to indicate that there's no separator.
      * @return The instance, for method chaining.
      * @throws IllegalArgumentException if the character provided is invalid.
      */
     public GenericArtifactVersion setAnnotationRevisionSeparator(final Character annotationRevisionSeparator) {
         validateSeparator(annotationRevisionSeparator);
         this.annotationRevisionSeparator = annotationRevisionSeparator;
 
         return this;
     }
 
     /**
      * Returns the annotation revision number.
      *
      * @return The revision number, or null if it's not defined.
      */
     public Integer getAnnotationRevision() {
         return annotationRevision;
     }
 
     /**
      * Defines the annotation revision number.
      *
      * @param annotationRevision The revision number. Must be non-negative. null
      * can be used to indicate that there's no annotation revision number.
      * @return The instance, for method chaining.
      * @throws IllegalArgumentException if 'annotationRevision' is negative.
      */
     public GenericArtifactVersion setAnnotationRevision(final Integer annotationRevision) {
         if (annotationRevision != null && annotationRevision < 0) {
             throw new IllegalArgumentException("Annotation revision must be non-negative.");
         }
         this.annotationRevision = annotationRevision;
 
         return this;
     }
 
     /**
      * Returns the separator character for the build specifier component.
      *
      * @return The separator, or null if there's none.
      */
     public Character getBuildSpecifierSeparator() {
         return buildSpecifierSeparator;
     }
 
     /**
      * Defines the separator character for the version build specifier
      * component.
      *
      * @param buildSpecifierSeparator A valid separator character (read this
      * class' documentation for more information about the valid format). null
      * can be used to indicate that there's no separator.
      * @return The instance, for method chaining.
      * @throws IllegalArgumentException if the character provided is invalid.
      */
     public GenericArtifactVersion setBuildSpecifierSeparator(final Character buildSpecifierSeparator) {
         validateSeparator(buildSpecifierSeparator);
         this.buildSpecifierSeparator = buildSpecifierSeparator;
 
         return this;
     }
 
     /**
      * Returns the build specifier component.
      *
      * @return The build specifier, or null if it's not defined.
      */
     public String getBuildSpecifier() {
         return buildSpecifier;
     }
 
     /**
      * Defines the build specifier component.
      *
      * @param buildSpecifier A valid build specifier (read this class'
      * documentation for more information about the valid format). null can be
      * used to indicate that there's no build specifier component.
      * @return The instance, for method chaining.
      * @throws IllegalArgumentException if the build specifier is invalid.
      */
     public GenericArtifactVersion setBuildSpecifier(final String buildSpecifier) {
         if (buildSpecifier != null && !VERSION_BUILD_SPECIFIER_PATTERN.matcher(buildSpecifier).matches()) {
             throw new IllegalArgumentException("Invalid build specifier.");
         }
         this.buildSpecifier = buildSpecifier;
 
         return this;
     }
 
     /**
      * Checks that a character is a valid version component separator, only if
      * it's not null.
      *
      * @param separator The separator character that we want to check.
      * @throws IllegalArgumentException if the character is not a valid version
      * component separator.
      */
     private void validateSeparator(final Character separator) {
         if (separator != null && !VERSION_COMPONENT_SEPARATOR_PATTERN.matcher(String.valueOf(separator)).matches()) {
             throw new IllegalArgumentException("Invalid version separator.");
         }
     }
 
     /**
      * Returns a string representation of this version object.
      * <p>
      * The following condition is always true: new
      * {@link GenericArtifactVersion} (versionString).equals(versionString)
      * <p>
      * The result is the concatenation of all the version components, separated
      * with their respective separator characters:
      * <ul>
      * <li>primary components separated by the dot character ('.').</li>
      * <li>annotation separator</li>
      * <li>annotation</li>
      * <li>annotation revision separator</li>
      * <li>annotation revision</li>
      * <li>build specifier separator</li>
      * <li>build specifier</li>
      * </ul>
      *
      */
     @Override
     public String toString() {
         final StringBuilder result = new StringBuilder(30);
 
         createPrimaryNumbersString(result);
 
         if (this.annotation != null) {
             if (this.annotationSeparator != null) {
                 result.append(this.annotationSeparator);
             }
             result.append(this.annotation);
         }
 
         if (this.annotationRevision != null) {
             if (this.annotationRevisionSeparator != null) {
                 result.append(this.annotationRevisionSeparator);
             }
             result.append(this.annotationRevision);
         }
 
         if (this.buildSpecifier != null) {
             if (this.buildSpecifierSeparator != null) {
                 result.append(this.buildSpecifierSeparator);
             }
             result.append(this.buildSpecifier);
         }
 
         return result.toString();
     }
 
     /**
      * Creates a string concatenating the primary numbers separated by the dot
      * character ('.').
      * <p>
      * The result is appended to the provided string builder and returned.
      *
      * @param result The string builder where to append the string.
      * @return The provided string builder.
      */
     private StringBuilder createPrimaryNumbersString(final StringBuilder result) {
         for (int i = 0, n = this.primaryNumbers.length; i < n; i++) {
             if (i > 0) {
                 result.append('.');
             }
             result.append(this.primaryNumbers[i]);
         }
 
         return result;
     }
 
     /**
      * [[-_]<annotation>][[-_]<annotation_revision>]
      *
      * @param result
      * @return
      */
     private StringBuilder createAnnotationString(final StringBuilder result) {
         if (null != this.annotation) {
             result.append(this.annotationSeparator).append(this.annotation);
         }
         if (null != this.annotationRevision) {
             result.append(this.annotationRevisionSeparator).append(this.annotationRevision);
         }
         return result;
     }
 
     /**
      * [[-_]<build_specifier>]
      *
      * @param result
      * @return
      */
     private StringBuilder createBuildSpecifierString(final StringBuilder result) {
         if (null != this.buildSpecifier) {
             result.append(this.buildSpecifierSeparator).append(this.buildSpecifier);
         }
         return result;
     }
 }

commit e82f30fca87e7eb491e628a90cb17d31cc8e1130
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Sun Feb 2 01:56:47 2014 +0000

    fix

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
index bec52cc..4dbfc00 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
@@ -30,52 +30,52 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  *
  */
 @Mojo(name = "hotfix-finish", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class HotfixFinishMojo extends HotfixAbstractMojo {
 
     @Parameter(property = "hotfixName")
     protected String hotfixName;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
-        List<String> hotfixBranches = getGitflowInit().gitLocalReleaseBranches();
+        List<String> hotfixBranches = getGitflowInit().gitLocalHotfixBranches();
 
         if (hotfixBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         }
 
         if (hotfixBranches.size() == 1) {
             hotfixName = hotfixBranches.get(0);
         } else {
             hotfixName = promptForExistingHotfixName(hotfixBranches, hotfixName);
         }
 
         GitflowHotfix gitflowHotfix = new GitflowHotfix();
         gitflowHotfix.setInit(getGitflowInit());
         gitflowHotfix.setMsgPrefix(getMsgPrefix());
         gitflowHotfix.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowHotfix.finish(hotfixName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
     }
 
     private String promptForExistingHotfixName(List<String> hotfixBranches, String defaultHotfixName) throws MojoFailureException {
         String message = "Please select a hotfix branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, hotfixBranches, defaultHotfixName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading hotfix name from command line " + e.getMessage());
         }
 
         return name;
     }
 }

commit 6e289f93625fe790080a6f92f440f8993a569f44
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Sun Feb 2 01:48:30 2014 +0000

    fix

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index 4065cf5..924781e 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -30,86 +30,86 @@ import org.codehaus.plexus.components.interactivity.PrompterException;
 /**
  *
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().info("Finishing release '" + releaseName + "'");
 
         // checkout develop branch to get it's version
 //        String developBranch = (String) getGitflowInit().getDevelopBrnName();
 //        getGitflowInit().executeLocal("git checkout " + developBranch);
 //        String developVersion = project.getVersion();
 
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
 
         if (releaseBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         }
 
         if (releaseBranches.size() == 1) {
             releaseName = releaseBranches.get(0);
         } else {
             releaseName = promptForExistingReleaseName(releaseBranches, releaseName);
         }
 
         // 1. make sure we're on the release branch
         if (!getGitflowInit().gitCurrentBranch().equals(releaseName)) {
             getGitflowInit().executeLocal("git checkout " + releaseName);
         }
 
         String releaseVersion = getReleaseVersion(project.getVersion());
 
         // @todo we should run clean install first
         // 2. update poms to release version
         setVersion(releaseVersion);
 
         // 4. finish feature
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowRelease.finish(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         //make sure we're on the develop branch
         String currentBranch = getGitflowInit().gitCurrentBranch();
         String developBrnName = (String) getGitflowInit().getDevelopBrnName();
         if (!currentBranch.equals(developBrnName)) {
             throw new MojoFailureException("Current branch should be " + developBrnName + " but was " + currentBranch);
         }
 
         // @todo checkout and deploy the release tag
-        getGitflowInit().executeLocal("git checkout " + getGitflowInit().getHotfixBranchPrefix() + releaseVersion);
+        getGitflowInit().executeLocal("git checkout " + getGitflowInit().getVersionTagPrefix() + releaseVersion);
     }
 
     private String promptForExistingReleaseName(List<String> releaseBranches, String defaultReleaseName) throws MojoFailureException {
         String message = "Please select a release branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, releaseBranches, defaultReleaseName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading release name from command line " + e.getMessage());
         }
 
         return name;
     }
 
 }

commit 884dff156dc047a074d0622e39f90426ec4fcf2c
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Sun Feb 2 01:42:15 2014 +0000

    Checkout hotfix

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index 97d6e5c..4065cf5 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -30,86 +30,86 @@ import org.codehaus.plexus.components.interactivity.PrompterException;
 /**
  *
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().info("Finishing release '" + releaseName + "'");
 
         // checkout develop branch to get it's version
 //        String developBranch = (String) getGitflowInit().getDevelopBrnName();
 //        getGitflowInit().executeLocal("git checkout " + developBranch);
 //        String developVersion = project.getVersion();
 
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
 
         if (releaseBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         }
 
         if (releaseBranches.size() == 1) {
             releaseName = releaseBranches.get(0);
         } else {
             releaseName = promptForExistingReleaseName(releaseBranches, releaseName);
         }
 
         // 1. make sure we're on the release branch
         if (!getGitflowInit().gitCurrentBranch().equals(releaseName)) {
             getGitflowInit().executeLocal("git checkout " + releaseName);
         }
 
         String releaseVersion = getReleaseVersion(project.getVersion());
 
         // @todo we should run clean install first
         // 2. update poms to release version
         setVersion(releaseVersion);
 
         // 4. finish feature
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowRelease.finish(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         //make sure we're on the develop branch
         String currentBranch = getGitflowInit().gitCurrentBranch();
         String developBrnName = (String) getGitflowInit().getDevelopBrnName();
         if (!currentBranch.equals(developBrnName)) {
             throw new MojoFailureException("Current branch should be " + developBrnName + " but was " + currentBranch);
         }
 
         // @todo checkout and deploy the release tag
-        getGitflowInit().executeLocal("git checkout " + releaseName);
+        getGitflowInit().executeLocal("git checkout " + getGitflowInit().getHotfixBranchPrefix() + releaseVersion);
     }
 
     private String promptForExistingReleaseName(List<String> releaseBranches, String defaultReleaseName) throws MojoFailureException {
         String message = "Please select a release branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, releaseBranches, defaultReleaseName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading release name from command line " + e.getMessage());
         }
 
         return name;
     }
 
 }

commit 1e47465f65577cb44534c3049388c58118da7198
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Sun Feb 2 01:38:00 2014 +0000

    Release finish fix

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index 4065cf5..97d6e5c 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -30,86 +30,86 @@ import org.codehaus.plexus.components.interactivity.PrompterException;
 /**
  *
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().info("Finishing release '" + releaseName + "'");
 
         // checkout develop branch to get it's version
 //        String developBranch = (String) getGitflowInit().getDevelopBrnName();
 //        getGitflowInit().executeLocal("git checkout " + developBranch);
 //        String developVersion = project.getVersion();
 
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
 
         if (releaseBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         }
 
         if (releaseBranches.size() == 1) {
             releaseName = releaseBranches.get(0);
         } else {
             releaseName = promptForExistingReleaseName(releaseBranches, releaseName);
         }
 
         // 1. make sure we're on the release branch
         if (!getGitflowInit().gitCurrentBranch().equals(releaseName)) {
             getGitflowInit().executeLocal("git checkout " + releaseName);
         }
 
         String releaseVersion = getReleaseVersion(project.getVersion());
 
         // @todo we should run clean install first
         // 2. update poms to release version
         setVersion(releaseVersion);
 
         // 4. finish feature
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowRelease.finish(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         //make sure we're on the develop branch
         String currentBranch = getGitflowInit().gitCurrentBranch();
         String developBrnName = (String) getGitflowInit().getDevelopBrnName();
         if (!currentBranch.equals(developBrnName)) {
             throw new MojoFailureException("Current branch should be " + developBrnName + " but was " + currentBranch);
         }
 
         // @todo checkout and deploy the release tag
-        getGitflowInit().executeLocal("git checkout " + getGitflowInit().getHotfixBranchPrefix() + releaseVersion);
+        getGitflowInit().executeLocal("git checkout " + releaseName);
     }
 
     private String promptForExistingReleaseName(List<String> releaseBranches, String defaultReleaseName) throws MojoFailureException {
         String message = "Please select a release branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, releaseBranches, defaultReleaseName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading release name from command line " + e.getMessage());
         }
 
         return name;
     }
 
 }

commit 6344c9e1fbfb0b7dff7cb4f50d8866e92c375c7e
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Sun Feb 2 01:24:34 2014 +0000

    support for hot fix

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixAbstractMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixAbstractMojo.java
new file mode 100644
index 0000000..1d8f41e
--- /dev/null
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixAbstractMojo.java
@@ -0,0 +1,23 @@
+/*
+ * Copyright 2014 desmondkirrane.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.dkirrane.maven.plugins.ggitflow;
+
+/**
+ *
+ */
+public class HotfixAbstractMojo extends AbstractGitflowMojo {
+
+}
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
new file mode 100644
index 0000000..bec52cc
--- /dev/null
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixFinishMojo.java
@@ -0,0 +1,81 @@
+/*
+ * Copyright 2014 desmondkirrane.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.dkirrane.maven.plugins.ggitflow;
+
+import com.dkirrane.gitflow.groovy.GitflowHotfix;
+import com.dkirrane.gitflow.groovy.ex.GitflowException;
+import com.dkirrane.gitflow.groovy.ex.GitflowMergeConflictException;
+import java.util.List;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.plugin.MojoFailureException;
+import org.apache.maven.plugins.annotations.LifecyclePhase;
+import org.apache.maven.plugins.annotations.Mojo;
+import org.apache.maven.plugins.annotations.Parameter;
+import org.codehaus.plexus.components.interactivity.PrompterException;
+import org.codehaus.plexus.util.StringUtils;
+
+/**
+ *
+ */
+@Mojo(name = "hotfix-finish", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
+public class HotfixFinishMojo extends HotfixAbstractMojo {
+
+    @Parameter(property = "hotfixName")
+    protected String hotfixName;
+
+    @Override
+    public void execute() throws MojoExecutionException, MojoFailureException {
+        super.execute();
+
+        List<String> hotfixBranches = getGitflowInit().gitLocalReleaseBranches();
+
+        if (hotfixBranches.isEmpty()) {
+            throw new MojoFailureException("Could not find release branch!");
+        }
+
+        if (hotfixBranches.size() == 1) {
+            hotfixName = hotfixBranches.get(0);
+        } else {
+            hotfixName = promptForExistingHotfixName(hotfixBranches, hotfixName);
+        }
+
+        GitflowHotfix gitflowHotfix = new GitflowHotfix();
+        gitflowHotfix.setInit(getGitflowInit());
+        gitflowHotfix.setMsgPrefix(getMsgPrefix());
+        gitflowHotfix.setMsgSuffix(getMsgSuffix());
+
+        try {
+            gitflowHotfix.finish(hotfixName);
+        } catch (GitflowException ge) {
+            throw new MojoFailureException(ge.getMessage());
+        } catch (GitflowMergeConflictException gmce) {
+            throw new MojoFailureException(gmce.getMessage());
+        }
+    }
+
+    private String promptForExistingHotfixName(List<String> hotfixBranches, String defaultHotfixName) throws MojoFailureException {
+        String message = "Please select a hotfix branch to finish?";
+
+        String name = "";
+        try {
+            name = prompter.prompt(message, hotfixBranches, defaultHotfixName);
+        } catch (PrompterException e) {
+            throw new MojoFailureException("Error reading hotfix name from command line " + e.getMessage());
+        }
+
+        return name;
+    }
+}
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
new file mode 100644
index 0000000..b3ad717
--- /dev/null
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/HotfixStartMojo.java
@@ -0,0 +1,74 @@
+/*
+ * Copyright 2014 desmondkirrane.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.dkirrane.maven.plugins.ggitflow;
+
+import com.dkirrane.gitflow.groovy.GitflowHotfix;
+import com.dkirrane.gitflow.groovy.ex.GitflowException;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.plugin.MojoFailureException;
+import org.apache.maven.plugins.annotations.LifecyclePhase;
+import org.apache.maven.plugins.annotations.Mojo;
+import org.apache.maven.plugins.annotations.Parameter;
+import org.codehaus.plexus.util.StringUtils;
+import org.jfrog.hudson.util.GenericArtifactVersion;
+
+/**
+ *
+ */
+@Mojo(name = "hotfix-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
+public class HotfixStartMojo extends HotfixAbstractMojo {
+
+    @Parameter(property = "startCommit", defaultValue = "")
+    private String startCommit;
+
+    @Override
+    public void execute() throws MojoExecutionException, MojoFailureException {
+        super.execute();
+
+        getGitflowInit().executeLocal("git checkout " + getGitflowInit().getMasterBrnName());
+
+        String hotfixVersion = getHotfixVersion(project.getVersion());
+
+        getLog().info("Starting hotfix '" + hotfixVersion + "'");
+        getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
+        getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
+
+        GitflowHotfix gitflowHotfix = new GitflowHotfix();
+        gitflowHotfix.setInit(getGitflowInit());
+        gitflowHotfix.setMsgPrefix(getMsgPrefix());
+        gitflowHotfix.setMsgSuffix(getMsgSuffix());
+
+        if (!StringUtils.isEmpty(startCommit)) {
+            gitflowHotfix.setStartCommit(startCommit);
+        }
+
+        try {
+            gitflowHotfix.start(hotfixVersion);
+        } catch (GitflowException ge) {
+            throw new MojoFailureException(ge.getMessage());
+        }
+    }
+
+    private String getHotfixVersion(String currentVersion) throws MojoFailureException {
+        getLog().info("Project version '" + currentVersion + "'");
+
+        GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
+
+        artifactVersion.upgradeLeastSignificantNumber();
+
+        return artifactVersion.toString();
+    }
+}

commit af943ec0ff8a0ec3ed8993a2cc43c84d19cab267
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Sat Feb 1 18:06:14 2014 +0000

    Fix error checking out hot fix

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index 95bd213..4065cf5 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -30,86 +30,86 @@ import org.codehaus.plexus.components.interactivity.PrompterException;
 /**
  *
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().info("Finishing release '" + releaseName + "'");
 
         // checkout develop branch to get it's version
 //        String developBranch = (String) getGitflowInit().getDevelopBrnName();
 //        getGitflowInit().executeLocal("git checkout " + developBranch);
 //        String developVersion = project.getVersion();
 
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
 
         if (releaseBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         }
 
         if (releaseBranches.size() == 1) {
             releaseName = releaseBranches.get(0);
         } else {
             releaseName = promptForExistingReleaseName(releaseBranches, releaseName);
         }
 
         // 1. make sure we're on the release branch
         if (!getGitflowInit().gitCurrentBranch().equals(releaseName)) {
             getGitflowInit().executeLocal("git checkout " + releaseName);
         }
 
         String releaseVersion = getReleaseVersion(project.getVersion());
 
         // @todo we should run clean install first
         // 2. update poms to release version
         setVersion(releaseVersion);
 
         // 4. finish feature
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowRelease.finish(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
 //            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
 //            try {
 //                fixPomMergeConflicts.resolveConflicts2();
 //            } catch (GitflowException ge) {
 //                throw new MojoFailureException(ge.getMessage());
 //            } catch (GitflowMergeConflictException gmce2) {
 //                throw new MojoFailureException(gmce2.getMessage());
 //            }
         }
 
         //make sure we're on the develop branch
         String currentBranch = getGitflowInit().gitCurrentBranch();
         String developBrnName = (String) getGitflowInit().getDevelopBrnName();
         if (!currentBranch.equals(developBrnName)) {
             throw new MojoFailureException("Current branch should be " + developBrnName + " but was " + currentBranch);
         }
 
         // @todo checkout and deploy the release tag
-        getGitflowInit().executeLocal("git checkout " + releaseVersion);
+        getGitflowInit().executeLocal("git checkout " + getGitflowInit().getHotfixBranchPrefix() + releaseVersion);
     }
 
     private String promptForExistingReleaseName(List<String> releaseBranches, String defaultReleaseName) throws MojoFailureException {
         String message = "Please select a release branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, releaseBranches, defaultReleaseName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading release name from command line " + e.getMessage());
         }
 
         return name;
     }
 
 }

commit b41768490bb705d862dcec611e4eae8fc63a6b29
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Sat Feb 1 17:57:58 2014 +0000

    Fix to push feature version pump to remote

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
index 1200a75..1c20c1f 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
@@ -1,19 +1,18 @@
 /*
  * Copyright 2014 Desmond Kirrane.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *
  *      http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
 package com.dkirrane.maven.plugins.ggitflow;
 
-
 import static com.dkirrane.gitflow.groovy.Constants.DEFAULT_FEATURE_BRN_PREFIX;
@@ -25,94 +24,104 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  *
  */
 public class AbstractFeatureMojo extends AbstractGitflowMojo {
 
     @Parameter(property = "featureName")
     protected String featureName;
 
     @Parameter(defaultValue = "false", property = "enableFeatureVersions")
     protected boolean enableFeatureVersions = false;
 
     @Parameter(defaultValue = "false", property = "pushFeatures")
-    protected boolean pushFeatures = false;   
+    protected boolean pushFeatures = false;
 
     public String getFeatureBranchPrefix() {
         String prefix = getGitflowInit().getFeatureBranchPrefix();
         if (StringUtils.isBlank(prefix)) {
             prefix = DEFAULT_FEATURE_BRN_PREFIX;
         }
         return prefix;
     }
 
     public String getFeatureName(String featureLabel) throws MojoFailureException {
         if (StringUtils.isBlank(featureLabel)) {
             throw new MojoFailureException("Missing argument <featureName>");
         }
 
         featureLabel = featureLabel.replaceAll("\\s+", "");
 //        featureLabel = featureLabel.replaceAll("-+", "_");
         return featureLabel;
     }
 
-    public String getFeatureVersion(String version, String featureLabel) throws MojoFailureException {
-        getLog().info("Project version '" + version + "'");
+    public String getFeatureVersion(String currentVersion, String featureLabel) throws MojoFailureException {
+        getLog().info("Project version '" + currentVersion + "'");
+        featureLabel = getValidFeatureVersionAnnotation(featureLabel);
+        getLog().info("Feature version annotation '" + featureLabel + "'");
 
-        GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
+        GenericArtifactVersion artifactVersion = new GenericArtifactVersion(currentVersion);
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         Character annotationSeparator = artifactVersion.getAnnotationRevisionSeparator();
         String buildSpecifier = artifactVersion.getBuildSpecifier();
         Character buildSpecifierSeparator = artifactVersion.getBuildSpecifierSeparator();
 
         getLog().info("Parsed version = " + artifactVersion.toString());
         if (!StringUtils.isBlank(annotationAsString)) {
             throw new MojoFailureException("Cannot add feature name to version. An annotation " + annotationAsString + " already exists");
         }
 
         final StringBuilder result = new StringBuilder(30);
 
         result.append(primaryNumbersAsString).append(annotationSeparator).append(featureLabel);
 
         if (buildSpecifier != null) {
             if (buildSpecifierSeparator != null) {
                 result.append(buildSpecifierSeparator);
             }
             result.append(buildSpecifier);
         }
 
         return result.toString();
     }
 
     public String getNonFeatureVersion(String version, String featureLabel) {
         getLog().info("Project version '" + version + "'");
+        featureLabel = getValidFeatureVersionAnnotation(featureLabel);
+        getLog().info("Feature version annotation '" + featureLabel + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifier = artifactVersion.getBuildSpecifier();
         Character buildSpecifierSeparator = artifactVersion.getBuildSpecifierSeparator();
 
         getLog().info("Parsed version = " + artifactVersion.toString());
         if (StringUtils.isBlank(annotationAsString)) {
             getLog().warn("Cannot remove feature name from pom version. The version annotation does not exists");
             return version;
         }
 
         if (('-' + featureLabel).equals(annotationAsString)) {
             final StringBuilder result = new StringBuilder(30);
             result.append(primaryNumbersAsString);
 
             if (buildSpecifier != null) {
                 if (buildSpecifierSeparator != null) {
                     result.append(buildSpecifierSeparator);
                 }
                 result.append(buildSpecifier);
             }
 
             return result.toString();
         } else {
             getLog().warn("Cannot remove feature name from pom version. The version annotation [" + annotationAsString + "] does not match the feature label [" + featureLabel + "]");
             return version;
         }
     }
+
+    private String getValidFeatureVersionAnnotation(String featureLabel) {
+        featureLabel = featureLabel.trim().replaceAll("\\s+", "_");
+        featureLabel = featureLabel.trim().replaceAll("-+", "_");
+        return featureLabel;
+    }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
index 6508590..6330a94 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
@@ -28,56 +28,60 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  *
  */
 @Mojo(name = "feature-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class FeatureStartMojo extends AbstractFeatureMojo {
 
     @Parameter(property = "startCommit", defaultValue = "")
     private String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
-        if (StringUtils.isBlank(featureName)) {
-            String prefix = getFeatureBranchPrefix();
+        String prefix = getFeatureBranchPrefix();
+        if (StringUtils.isBlank(featureName)) {            
             System.out.println("prefix = " + prefix);
             System.out.println("prompter = " + prompter);
             String message = "What is the feature branch name? " + prefix;
             System.out.println("message = " + message);
             try {
                 featureName = prompter.prompt(message);
                 if (StringUtils.isBlank(featureName)) {
                     throw new MojoFailureException("Parameter <featureName> cannot be null or empty.");
                 }
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading feature name from command line " + ex.getMessage(), ex);
             }
         }
         featureName = getFeatureName(featureName);
 
         getLog().info("Starting feature '" + featureName + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowFeature gitflowFeature = new GitflowFeature();
         gitflowFeature.setInit(getGitflowInit());
         gitflowFeature.setMsgPrefix(getMsgPrefix());
         gitflowFeature.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowFeature.start(featureName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         if (enableFeatureVersions) {
             String currentVersion = project.getVersion();
             String featureVersion = getFeatureVersion(currentVersion, featureName);
             setVersion(featureVersion);
+
+            if (getGitflowInit().gitRemoteBranchExists(prefix + featureName)) {
+                getGitflowInit().executeRemote("git push " + getGitflowInit().getOrigin() + " " + prefix + featureName);
+            }
         }
     }
 
     public String getFeatureName() {
         return featureName;
     }
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/Prefixes.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/Prefixes.java
index 2e0d25e..a96dcb0 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/Prefixes.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/Prefixes.java
@@ -1,111 +1,113 @@
 /*
  * Copyright 2014 desmondkirrane.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *
  *      http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  *//*
  * Copyright 2014 desmondkirrane.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *
  *      http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
 package com.dkirrane.maven.plugins.ggitflow;
 
+import com.dkirrane.gitflow.groovy.Constants;
+
 /**
  *
  */
 public class Prefixes {
 
     private String masterBranch;
     private String developBranch;
     private String featureBranchPrefix;
     private String releaseBranchPrefix;
     private String hotfixBranchPrefix;
     private String supportBranchPrefix;
     private String versionTagPrefix;
 
     public Prefixes() {
-        this.masterBranch = "master";
-        this.developBranch = "develop";
-        this.featureBranchPrefix = "feature/";
-        this.releaseBranchPrefix = "release/";
-        this.hotfixBranchPrefix = "hotfix/";
-        this.supportBranchPrefix = "support/";
-        this.versionTagPrefix = "v-";
+        this.masterBranch = Constants.DEFAULT_MASTER_BRN_NAME;
+        this.developBranch = Constants.DEFAULT_DEVELOP_BRN_NAME;
+        this.featureBranchPrefix = Constants.DEFAULT_FEATURE_BRN_PREFIX;
+        this.releaseBranchPrefix = Constants.DEFAULT_RELEASE_BRN_PREFIX;
+        this.hotfixBranchPrefix = Constants.DEFAULT_HOTFIX_BRN_PREFIX;
+        this.supportBranchPrefix = Constants.DEFAULT_SUPPORT_BRN_PREFIX;
+        this.versionTagPrefix = Constants.DEFAULT_VERSION_TAG_PREFIX;
     }
 
     public String getMasterBranch() {
         return masterBranch;
     }
 
     public void setMasterBranch(String masterBranch) {
         this.masterBranch = masterBranch;
     }
 
     public String getDevelopBranch() {
         return developBranch;
     }
 
     public void setDevelopBranch(String developBranch) {
         this.developBranch = developBranch;
     }
 
     public String getFeatureBranchPrefix() {
         return featureBranchPrefix;
     }
 
     public void setFeatureBranchPrefix(String featureBranchPrefix) {
         this.featureBranchPrefix = featureBranchPrefix;
     }
 
     public String getReleaseBranchPrefix() {
         return releaseBranchPrefix;
     }
 
     public void setReleaseBranchPrefix(String releaseBranchPrefix) {
         this.releaseBranchPrefix = releaseBranchPrefix;
     }
 
     public String getHotfixBranchPrefix() {
         return hotfixBranchPrefix;
     }
 
     public void setHotfixBranchPrefix(String hotfixBranchPrefix) {
         this.hotfixBranchPrefix = hotfixBranchPrefix;
     }
 
     public String getSupportBranchPrefix() {
         return supportBranchPrefix;
     }
 
     public void setSupportBranchPrefix(String supportBranchPrefix) {
         this.supportBranchPrefix = supportBranchPrefix;
     }
 
     public String getVersionTagPrefix() {
         return versionTagPrefix;
     }
 
     public void setVersionTagPrefix(String versionTagPrefix) {
         this.versionTagPrefix = versionTagPrefix;
     }
 
 }

commit 5b05371b5fd59ff740dde9baa9948ce50e56bebf
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Sat Feb 1 17:11:16 2014 +0000

    Feature version fix

diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
index 8e8caa9..bebd6ca 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
@@ -28,58 +28,59 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  *
  */
 @Mojo(name = "feature-finish", aggregator = true)
 public class FeatureFinishMojo extends AbstractFeatureMojo {
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().info("Finishing feature '" + featureName + "'");
-        
+
         String featureBranchPrefix = getFeatureBranchPrefix();
         if (StringUtils.isBlank(featureName)) {
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (currentBranch.startsWith(featureBranchPrefix)) {
                 featureName = currentBranch;
             }
         } else {
             featureName = getFeatureName(featureName);
         }
 
         List<String> featureBranches = getGitflowInit().gitLocalFeatureBranches();
 
         featureName = promptForExistingFeatureName(featureBranches, featureName);
 
-        String version = project.getVersion();
-        String nonFeatureVersion = getNonFeatureVersion(version, featureName.replace(featureBranchPrefix, ""));
-
-        setVersion(nonFeatureVersion);
+        if (enableFeatureVersions) {
+            String featureVersion = project.getVersion();
+            String nonFeatureVersion = getNonFeatureVersion(featureVersion, featureName.replace(featureBranchPrefix, ""));
+            setVersion(nonFeatureVersion);
+        }
 
         GitflowFeature gitflowFeature = new GitflowFeature();
         gitflowFeature.setInit(getGitflowInit());
         gitflowFeature.setMsgPrefix(getMsgPrefix());
         gitflowFeature.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowFeature.finish(featureName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
     }
 
     private String promptForExistingFeatureName(List<String> featureBranches, String defaultFeatureName) throws MojoFailureException {
         String message = "Please select a feature branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, featureBranches, defaultFeatureName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading feature name from command line " + e.getMessage());
         }
 
         return name;
     }
 
 }
diff --git a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
index e2ce64c..6508590 100644
--- a/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
+++ b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
@@ -28,56 +28,56 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  *
  */
 @Mojo(name = "feature-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class FeatureStartMojo extends AbstractFeatureMojo {
 
     @Parameter(property = "startCommit", defaultValue = "")
-    private String startCommit;    
+    private String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         if (StringUtils.isBlank(featureName)) {
             String prefix = getFeatureBranchPrefix();
             System.out.println("prefix = " + prefix);
             System.out.println("prompter = " + prompter);
             String message = "What is the feature branch name? " + prefix;
             System.out.println("message = " + message);
             try {
                 featureName = prompter.prompt(message);
                 if (StringUtils.isBlank(featureName)) {
                     throw new MojoFailureException("Parameter <featureName> cannot be null or empty.");
                 }
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading feature name from command line " + ex.getMessage(), ex);
             }
         }
         featureName = getFeatureName(featureName);
 
         getLog().info("Starting feature '" + featureName + "'");
         getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
         getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowFeature gitflowFeature = new GitflowFeature();
         gitflowFeature.setInit(getGitflowInit());
         gitflowFeature.setMsgPrefix(getMsgPrefix());
         gitflowFeature.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowFeature.start(featureName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
-        String version = project.getVersion();
-
-        String featureVersion = getFeatureVersion(version, featureName);
-
-        setVersion(featureVersion);
+        if (enableFeatureVersions) {
+            String currentVersion = project.getVersion();
+            String featureVersion = getFeatureVersion(currentVersion, featureName);
+            setVersion(featureVersion);
+        }
     }
 
     public String getFeatureName() {
         return featureName;
     }
 }

commit a747d6abf5cd1302e66cc76b31dc9e42955fe07f
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Sat Feb 1 16:47:41 2014 +0000

    Multi module pom fixes

diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/__rootArtifactId__-module1/pom.xml b/ggitflow-maven-archetype/src/main/resources/archetype-resources/__rootArtifactId__-module1/pom.xml
index 4b8b530..a3fec4e 100644
--- a/ggitflow-maven-archetype/src/main/resources/archetype-resources/__rootArtifactId__-module1/pom.xml
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/__rootArtifactId__-module1/pom.xml
@@ -1,24 +1,24 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
     
     <parent>
         <groupId>${groupId}</groupId>
         <artifactId>${rootArtifactId}</artifactId>
         <version>${version}</version>
     </parent>
 
     <groupId>${groupId}</groupId>
     <artifactId>${artifactId}</artifactId>
     <version>${version}</version>
-    <name>my-app-module1</name>
+    <name>${artifactId}</name>
     
     <dependencies>
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
     </dependencies>
 </project>
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/__rootArtifactId__-module1/src/main/java/module1/App.java b/ggitflow-maven-archetype/src/main/resources/archetype-resources/__rootArtifactId__-module1/src/main/java/module1/App.java
index f2b6ed1..208f1f5 100644
--- a/ggitflow-maven-archetype/src/main/resources/archetype-resources/__rootArtifactId__-module1/src/main/java/module1/App.java
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/__rootArtifactId__-module1/src/main/java/module1/App.java
@@ -1,17 +1,11 @@
  #set( $symbol_pound = '#' )
 #set( $symbol_dollar = '$' )
 #set( $symbol_escape = '\' )
-package $
-
-{package
-
-
-
-}.module1;
+package ${package}.module1;
 
 public class App {
 
     public static void main(String[] args) {
-        System.out.println("Hello World!");
+        System.out.println("Hello Module1!");
     }
 }
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/__rootArtifactId__-module1/src/test/java/module1/AppTest.java b/ggitflow-maven-archetype/src/main/resources/archetype-resources/__rootArtifactId__-module1/src/test/java/module1/AppTest.java
index 711638d..3f116bd 100644
--- a/ggitflow-maven-archetype/src/main/resources/archetype-resources/__rootArtifactId__-module1/src/test/java/module1/AppTest.java
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/__rootArtifactId__-module1/src/test/java/module1/AppTest.java
@@ -1,7 +1,5 @@
  #set( $symbol_pound = '#' )
 #set( $symbol_dollar = '$' )
 #set( $symbol_escape = '\' )
-package $
-
-{package}.module1;
+package ${package}.module1;
 
@@ -12,5 +10,3 @@ import org.junit.BeforeClass;
 import org.junit.Test;
 
-
-
 public class AppTest {
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/__rootArtifactId__-module2/pom.xml b/ggitflow-maven-archetype/src/main/resources/archetype-resources/__rootArtifactId__-module2/pom.xml
index 4098ace..f41c95a 100644
--- a/ggitflow-maven-archetype/src/main/resources/archetype-resources/__rootArtifactId__-module2/pom.xml
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/__rootArtifactId__-module2/pom.xml
@@ -1,24 +1,24 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
     
     <parent>
         <groupId>${groupId}</groupId>
         <artifactId>${rootArtifactId}</artifactId>
         <version>${version}</version>
     </parent>    
 
     <groupId>${groupId}</groupId>
     <artifactId>${artifactId}</artifactId>
     <version>${version}</version>
-    <name>my-app-module2</name>
+    <name>${artifactId}</name>
     
     <dependencies>
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
     </dependencies>
 </project>
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/__rootArtifactId__-module2/src/main/java/module2/App.java b/ggitflow-maven-archetype/src/main/resources/archetype-resources/__rootArtifactId__-module2/src/main/java/module2/App.java
index 250726f..e05802d 100644
--- a/ggitflow-maven-archetype/src/main/resources/archetype-resources/__rootArtifactId__-module2/src/main/java/module2/App.java
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/__rootArtifactId__-module2/src/main/java/module2/App.java
@@ -1,17 +1,11 @@
  #set( $symbol_pound = '#' )
 #set( $symbol_dollar = '$' )
 #set( $symbol_escape = '\' )
-package $
-
-{package
-
-
-
-}.module2;
+package ${package}.module2;
 
 public class App {
 
     public static void main(String[] args) {
-        System.out.println("Hello World!");
+        System.out.println("Hello Module2!");
     }
 }
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/__rootArtifactId__-module2/src/test/java/module2/AppTest.java b/ggitflow-maven-archetype/src/main/resources/archetype-resources/__rootArtifactId__-module2/src/test/java/module2/AppTest.java
index b85357e..e251018 100644
--- a/ggitflow-maven-archetype/src/main/resources/archetype-resources/__rootArtifactId__-module2/src/test/java/module2/AppTest.java
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/__rootArtifactId__-module2/src/test/java/module2/AppTest.java
@@ -1,7 +1,5 @@
  #set( $symbol_pound = '#' )
 #set( $symbol_dollar = '$' )
 #set( $symbol_escape = '\' )
-package $
-
-{package}.module2;
+package ${package}.module2;
 
@@ -12,5 +10,3 @@ import org.junit.BeforeClass;
 import org.junit.Test;
 
-
-
 public class AppTest {
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/pom.xml b/ggitflow-maven-archetype/src/main/resources/archetype-resources/pom.xml
index 498ac18..8034959 100644
--- a/ggitflow-maven-archetype/src/main/resources/archetype-resources/pom.xml
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/pom.xml
@@ -1,46 +1,46 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>${groupId}</groupId>
     <artifactId>${artifactId}</artifactId>
     <version>${version}</version>
     <packaging>pom</packaging>
-    <name>my-app</name>
+    <name>${artifactId}</name>
     
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     </properties>
 
     <build>
         <plugins>
             <plugin>
                 <groupId>com.dkirrane.maven.plugins</groupId>
                 <artifactId>ggitflow-maven-plugin</artifactId>
-                <version>1.0-SNAPSHOT</version>
+                <version>${version}</version>
                 <configuration>
                     <prefixes>
                         <masterBranch>master</masterBranch>
                         <developBranch>development</developBranch>
                         <featureBranchPrefix>feature/</featureBranchPrefix>
                         <releaseBranchPrefix>release/</releaseBranchPrefix>
                         <hotfixBranchPrefix>hotfix/</hotfixBranchPrefix>
                         <supportBranchPrefix>support/</supportBranchPrefix>
                         <versionTagPrefix>v-</versionTagPrefix>
                     </prefixes>
                 </configuration>
             </plugin>
         </plugins>
     </build>
 
     <pluginRepositories>
         <pluginRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
             <releases>
             </releases>
             <snapshots>
             </snapshots>
         </pluginRepository>
     </pluginRepositories>
 </project>

commit ff59fe266f882ca261cd2bc0d4179e90d1aff85f
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Sat Feb 1 16:36:59 2014 +0000

    README for ggitflow-maven-archetype

diff --git a/ggitflow-maven-archetype/README.md b/ggitflow-maven-archetype/README.md
new file mode 100644
index 0000000..ffda822
--- /dev/null
+++ b/ggitflow-maven-archetype/README.md
@@ -0,0 +1,11 @@
+Maven Archetype that will get you started with the ggitflow-maven-plugin
+
+For example, run the following command to create a sample multi-module project
+with ggitflow-maven-plugin configured:
+
+mvn archetype:generate \
+    -DinteractiveMode=true \
+    -DarchetypeGroupId=com.dkirrane.maven.archetype \
+    -DarchetypeArtifactId=ggitflow-maven-archetype \
+    -DarchetypeVersion=1.0-SNAPSHOT \
+    -DarchetypeRepository=https://oss.sonatype.org/content/repositories/snapshots
\ No newline at end of file

commit deddcd3f8f7e9aeafdcadeb6f5dfc67f06a16d6a
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Sat Feb 1 16:17:13 2014 +0000

    ggitflow-maven-archetype

diff --git a/ggitflow-maven-archetype/nbactions.xml b/ggitflow-maven-archetype/nbactions.xml
new file mode 100644
index 0000000..232618c
--- /dev/null
+++ b/ggitflow-maven-archetype/nbactions.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<actions>
+    <action>
+        <actionName>CUSTOM-clean deploy</actionName>
+        <displayName>clean deploy</displayName>
+        <goals>
+            <goal>clean</goal>
+            <goal>deploy</goal>
+        </goals>
+        <properties>
+            <skipTests>true</skipTests>
+        </properties>
+    </action>
+</actions>
diff --git a/ggitflow-maven-archetype/pom.xml b/ggitflow-maven-archetype/pom.xml
new file mode 100644
index 0000000..4b931c2
--- /dev/null
+++ b/ggitflow-maven-archetype/pom.xml
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+
+    <groupId>com.dkirrane.maven.archetype</groupId>
+    <artifactId>ggitflow-maven-archetype</artifactId>
+    <version>1.0-SNAPSHOT</version>
+    <packaging>maven-archetype</packaging>
+
+    <name>ggitflow-maven-archetype</name>
+
+    <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
+
+    <properties>
+        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+        <netbeans.hint.license>apache20</netbeans.hint.license>
+    </properties>
+
+    <build>
+        <extensions>
+            <extension>
+                <groupId>org.apache.maven.archetype</groupId>
+                <artifactId>archetype-packaging</artifactId>
+                <version>2.2</version>
+            </extension>
+        </extensions>
+
+        <pluginManagement>
+            <plugins>
+                <plugin>
+                    <artifactId>maven-archetype-plugin</artifactId>
+                    <version>2.2</version>
+                </plugin>
+            </plugins>
+        </pluginManagement>
+    </build>
+
+
+    <!--
+        Sonatype upload details:
+        http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
+        https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
+        https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
+        https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
+
+            - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
+            - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
+            - Promote staged artifacts into repository 'Releases'
+            - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
+            - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
+    -->
+
+    <distributionManagement>
+        <snapshotRepository>
+            <id>sonatype</id>
+            <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
+        </snapshotRepository>
+        <repository>
+            <id>sonatype</id>
+            <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
+        </repository>
+    </distributionManagement>
+    <repositories>
+        <repository>
+            <id>sonatype</id>
+            <url>https://oss.sonatype.org/content/groups/public</url>
+            <releases>
+                <enabled>true</enabled>
+            </releases>
+            <snapshots>
+                <enabled>true</enabled>
+            </snapshots>
+        </repository>
+    </repositories>
+</project>
diff --git a/ggitflow-maven-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml b/ggitflow-maven-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
new file mode 100644
index 0000000..2c01222
--- /dev/null
+++ b/ggitflow-maven-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<archetype-descriptor xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0 http://maven.apache.org/xsd/archetype-descriptor-1.0.0.xsd" name="my-app"
+                      xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0"
+                      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+    <fileSets>
+        <fileSet filtered="true" encoding="UTF-8">
+            <directory></directory>
+            <includes>
+                <include>nbactions.xml</include>
+            </includes>
+        </fileSet>
+        <fileSet encoding="UTF-8">
+            <directory></directory>
+            <includes>
+                <include>.gitignore</include>
+                <include>unset-gitlfow-config.sh</include>
+            </includes>
+        </fileSet>
+    </fileSets>
+    <modules>
+        <module id="${rootArtifactId}-module1" dir="__rootArtifactId__-module1" name="${rootArtifactId}-module1">
+            <fileSets>
+                <fileSet filtered="true" packaged="true" encoding="UTF-8">
+                    <directory>src/main/java</directory>
+                    <includes>
+                        <include>**/*.java</include>
+                    </includes>
+                </fileSet>
+                <fileSet filtered="true" packaged="true" encoding="UTF-8">
+                    <directory>src/test/java</directory>
+                    <includes>
+                        <include>**/*.java</include>
+                    </includes>
+                </fileSet>
+            </fileSets>
+        </module>
+        <module id="${rootArtifactId}-module2" dir="__rootArtifactId__-module2" name="${rootArtifactId}-module2">
+            <fileSets>
+                <fileSet filtered="true" packaged="true" encoding="UTF-8">
+                    <directory>src/main/java</directory>
+                    <includes>
+                        <include>**/*.java</include>
+                    </includes>
+                </fileSet>
+                <fileSet filtered="true" packaged="true" encoding="UTF-8">
+                    <directory>src/test/java</directory>
+                    <includes>
+                        <include>**/*.java</include>
+                    </includes>
+                </fileSet>
+            </fileSets>
+        </module>
+    </modules>
+</archetype-descriptor>
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/.gitignore b/ggitflow-maven-archetype/src/main/resources/archetype-resources/.gitignore
new file mode 100644
index 0000000..a6f89c2
--- /dev/null
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/.gitignore
@@ -0,0 +1 @@
+/target/
\ No newline at end of file
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/__rootArtifactId__-module1/pom.xml b/ggitflow-maven-archetype/src/main/resources/archetype-resources/__rootArtifactId__-module1/pom.xml
new file mode 100644
index 0000000..4b8b530
--- /dev/null
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/__rootArtifactId__-module1/pom.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    
+    <parent>
+        <groupId>${groupId}</groupId>
+        <artifactId>${rootArtifactId}</artifactId>
+        <version>${version}</version>
+    </parent>
+
+    <groupId>${groupId}</groupId>
+    <artifactId>${artifactId}</artifactId>
+    <version>${version}</version>
+    <name>my-app-module1</name>
+    
+    <dependencies>
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <version>4.11</version>
+            <scope>test</scope>
+        </dependency>
+    </dependencies>
+</project>
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/__rootArtifactId__-module1/src/main/java/module1/App.java b/ggitflow-maven-archetype/src/main/resources/archetype-resources/__rootArtifactId__-module1/src/main/java/module1/App.java
new file mode 100644
index 0000000..f2b6ed1
--- /dev/null
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/__rootArtifactId__-module1/src/main/java/module1/App.java
@@ -0,0 +1,17 @@
+ #set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+package $
+
+{package
+
+
+
+}.module1;
+
+public class App {
+
+    public static void main(String[] args) {
+        System.out.println("Hello World!");
+    }
+}
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/__rootArtifactId__-module1/src/test/java/module1/AppTest.java b/ggitflow-maven-archetype/src/main/resources/archetype-resources/__rootArtifactId__-module1/src/test/java/module1/AppTest.java
new file mode 100644
index 0000000..711638d
--- /dev/null
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/__rootArtifactId__-module1/src/test/java/module1/AppTest.java
@@ -0,0 +1,44 @@
+ #set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+package $
+
+{package}.module1;
+
+import org.junit.After;
+import org.junit.AfterClass;
+import org.junit.Before;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+
+
+public class AppTest {
+
+    public AppTest() {
+    }
+
+    @BeforeClass
+    public static void setUpClass() {
+    }
+
+    @AfterClass
+    public static void tearDownClass() {
+    }
+
+    @Before
+    public void setUp() {
+    }
+
+    @After
+    public void tearDown() {
+    }
+
+    /**
+     * Test of main method, of class App.
+     */
+    @Test
+    public void testMain() {
+
+    }
+}
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/__rootArtifactId__-module2/pom.xml b/ggitflow-maven-archetype/src/main/resources/archetype-resources/__rootArtifactId__-module2/pom.xml
new file mode 100644
index 0000000..4098ace
--- /dev/null
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/__rootArtifactId__-module2/pom.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    
+    <parent>
+        <groupId>${groupId}</groupId>
+        <artifactId>${rootArtifactId}</artifactId>
+        <version>${version}</version>
+    </parent>    
+
+    <groupId>${groupId}</groupId>
+    <artifactId>${artifactId}</artifactId>
+    <version>${version}</version>
+    <name>my-app-module2</name>
+    
+    <dependencies>
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <version>4.11</version>
+            <scope>test</scope>
+        </dependency>
+    </dependencies>
+</project>
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/__rootArtifactId__-module2/src/main/java/module2/App.java b/ggitflow-maven-archetype/src/main/resources/archetype-resources/__rootArtifactId__-module2/src/main/java/module2/App.java
new file mode 100644
index 0000000..250726f
--- /dev/null
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/__rootArtifactId__-module2/src/main/java/module2/App.java
@@ -0,0 +1,17 @@
+ #set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+package $
+
+{package
+
+
+
+}.module2;
+
+public class App {
+
+    public static void main(String[] args) {
+        System.out.println("Hello World!");
+    }
+}
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/__rootArtifactId__-module2/src/test/java/module2/AppTest.java b/ggitflow-maven-archetype/src/main/resources/archetype-resources/__rootArtifactId__-module2/src/test/java/module2/AppTest.java
new file mode 100644
index 0000000..b85357e
--- /dev/null
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/__rootArtifactId__-module2/src/test/java/module2/AppTest.java
@@ -0,0 +1,44 @@
+ #set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+package $
+
+{package}.module2;
+
+import org.junit.After;
+import org.junit.AfterClass;
+import org.junit.Before;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+
+
+public class AppTest {
+
+    public AppTest() {
+    }
+
+    @BeforeClass
+    public static void setUpClass() {
+    }
+
+    @AfterClass
+    public static void tearDownClass() {
+    }
+
+    @Before
+    public void setUp() {
+    }
+
+    @After
+    public void tearDown() {
+    }
+
+    /**
+     * Test of main method, of class App.
+     */
+    @Test
+    public void testMain() {
+
+    }
+}
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/nbactions.xml b/ggitflow-maven-archetype/src/main/resources/archetype-resources/nbactions.xml
new file mode 100644
index 0000000..9953350
--- /dev/null
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/nbactions.xml
@@ -0,0 +1,55 @@
+#set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+<?xml version="1.0" encoding="UTF-8"?>
+<actions>
+    <action>
+        <actionName>CUSTOM-ggitflow:feature-start</actionName>
+        <displayName>ggitflow:feature-start</displayName>
+        <goals>
+            <goal>ggitflow:feature-start</goal>
+        </goals>
+    </action>
+    <action>
+        <actionName>CUSTOM-ggitflow:feature-finish</actionName>
+        <displayName>ggitflow:feature-finish</displayName>
+        <goals>
+            <goal>ggitflow:feature-finish</goal>
+        </goals>
+    </action>
+    <action>
+        <actionName>CUSTOM-ggitflow:release-start</actionName>
+        <displayName>ggitflow:release-start</displayName>
+        <goals>
+            <goal>ggitflow:release-start</goal>
+        </goals>
+    </action>
+    <action>
+        <actionName>CUSTOM-ggitflow:release-finish</actionName>
+        <displayName>ggitflow:release-finish</displayName>
+        <goals>
+            <goal>ggitflow:release-finish</goal>
+        </goals>
+    </action>
+    <action>
+        <actionName>CUSTOM-ggitflow:hotfix-start</actionName>
+        <displayName>ggitflow:hotfix-start</displayName>
+        <goals>
+            <goal>ggitflow:hotfix-start</goal>
+        </goals>
+    </action>
+    <action>
+        <actionName>CUSTOM-ggitflow:hotfix-finish</actionName>
+        <displayName>ggitflow:hotfix-finish</displayName>
+        <goals>
+            <goal>ggitflow:hotfix-finish</goal>
+        </goals>
+    </action>
+    <action>
+        <actionName>CUSTOM-ggitflow:support-start</actionName>
+        <displayName>ggitflow:support-start</displayName>
+        <goals>
+            <goal>ggitflow:support-start</goal>
+        </goals>
+    </action>
+</actions>
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/pom.xml b/ggitflow-maven-archetype/src/main/resources/archetype-resources/pom.xml
new file mode 100644
index 0000000..498ac18
--- /dev/null
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/pom.xml
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+
+    <groupId>${groupId}</groupId>
+    <artifactId>${artifactId}</artifactId>
+    <version>${version}</version>
+    <packaging>pom</packaging>
+    <name>my-app</name>
+    
+    <properties>
+        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+    </properties>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>com.dkirrane.maven.plugins</groupId>
+                <artifactId>ggitflow-maven-plugin</artifactId>
+                <version>1.0-SNAPSHOT</version>
+                <configuration>
+                    <prefixes>
+                        <masterBranch>master</masterBranch>
+                        <developBranch>development</developBranch>
+                        <featureBranchPrefix>feature/</featureBranchPrefix>
+                        <releaseBranchPrefix>release/</releaseBranchPrefix>
+                        <hotfixBranchPrefix>hotfix/</hotfixBranchPrefix>
+                        <supportBranchPrefix>support/</supportBranchPrefix>
+                        <versionTagPrefix>v-</versionTagPrefix>
+                    </prefixes>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
+    <pluginRepositories>
+        <pluginRepository>
+            <id>sonatype</id>
+            <url>https://oss.sonatype.org/content/groups/public</url>
+            <releases>
+            </releases>
+            <snapshots>
+            </snapshots>
+        </pluginRepository>
+    </pluginRepositories>
+</project>
diff --git a/ggitflow-maven-archetype/src/main/resources/archetype-resources/unset-gitlfow-config.sh b/ggitflow-maven-archetype/src/main/resources/archetype-resources/unset-gitlfow-config.sh
new file mode 100644
index 0000000..898b8a0
--- /dev/null
+++ b/ggitflow-maven-archetype/src/main/resources/archetype-resources/unset-gitlfow-config.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+git config --unset-all "gitflow.branch.master"
+git config --unset-all "gitflow.branch.develop"
+git config --unset-all "gitflow.prefix.feature"
+git config --unset-all "gitflow.prefix.release"
+git config --unset-all "gitflow.prefix.hotfix"
+git config --unset-all "gitflow.prefix.support"
+git config --unset-all "gitflow.prefix.versiontag"
+
+git config -l
diff --git a/ggitflow-maven-archetype/src/test/resources/projects/basic/archetype.properties b/ggitflow-maven-archetype/src/test/resources/projects/basic/archetype.properties
new file mode 100644
index 0000000..895d82d
--- /dev/null
+++ b/ggitflow-maven-archetype/src/test/resources/projects/basic/archetype.properties
@@ -0,0 +1,5 @@
+#Sat Feb 01 16:07:51 GMT 2014
+package=it.pkg
+version=0.1-SNAPSHOT
+groupId=archetype.it
+artifactId=basic
diff --git a/ggitflow-maven-archetype/src/test/resources/projects/basic/goal.txt b/ggitflow-maven-archetype/src/test/resources/projects/basic/goal.txt
new file mode 100644
index 0000000..e69de29
diff --git a/ggitflow-maven-plugin/pom.xml b/ggitflow-maven-plugin/pom.xml
index 1752d63..507e8ef 100644
--- a/ggitflow-maven-plugin/pom.xml
+++ b/ggitflow-maven-plugin/pom.xml
@@ -1,201 +1,199 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
     <version>1.0-SNAPSHOT</version>
     <packaging>maven-plugin</packaging>
 
     <name>ggitflow-maven-plugin</name>
 
     <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
     </properties>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
             <version>1.0-SNAPSHOT</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
         <dependency>
             <groupId>jline</groupId>
             <artifactId>jline</artifactId>
             <version>2.11</version>
             <type>jar</type>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>3.2</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>3.0.8</version>
         </dependency>
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-interactivity-api</artifactId>
             <version>1.0-alpha-5</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.release</groupId>
             <artifactId>maven-release-manager</artifactId>
             <version>2.4</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-project</artifactId>
             <version>2.2.1</version>
             <type>jar</type>
         </dependency>
     </dependencies>
 
     <build>
         <resources>
             <resource>
                 <directory>src/it</directory>
                 <includes>
                     <include>**/**</include>
                 </includes>
             </resource>
         </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>3.2</version>
                 <configuration>
                     <goalPrefix>ggitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                     <execution>
                         <id>help-goal</id>
                         <goals>
                             <goal>helpmojo</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
         </plugins>
     </build>
     <profiles>
         <profile>
             <id>run-its</id>
             <build>
 
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-invoker-plugin</artifactId>
                         <version>1.8</version>
                         <configuration>
                             <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
                             <settingsFile>src/it/settings.xml</settingsFile>
                             <debug>true</debug>
                             <showErrors>true</showErrors>
                             <detail>true</detail>
                             <streamLogs>true</streamLogs>
                             <projectsDirectory>src/it/projects</projectsDirectory>
                             <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
                             <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
                             <addTestClassPath>true</addTestClassPath>
                             <preBuildHookScript>setup</preBuildHookScript>
                             <postBuildHookScript>verify</postBuildHookScript>
                             <pomIncludes>
                                 <pomInclude>*/pom.xml</pomInclude>
                             </pomIncludes>
                             <goals>
                                 <goal>clean</goal>
                                 <goal>test-compile</goal>
                             </goals>
                         </configuration>
                         <executions>
                             <execution>
                                 <id>integration-test</id>
                                 <goals>
                                     <goal>install</goal>
                                     <goal>integration-test</goal>
                                     <goal>verify</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
 
             </build>
         </profile>
     </profiles>
 
-
-
     <!--
         Sonatype upload details:
         http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
         https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
         https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
         https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
 
             - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
             - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
             - Promote staged artifacts into repository 'Releases'
             - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
             - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
     -->
 
     <distributionManagement>
         <snapshotRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
         </snapshotRepository>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
         </repository>
     </distributionManagement>
     <repositories>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
             <snapshots>
                 <enabled>true</enabled>
             </snapshots>
         </repository>
     </repositories>
 </project>

commit 77935d76cf879442abaca24a4da67bba16ad3554
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Sat Feb 1 13:08:50 2014 +0000

    Move project

diff --git a/LICENSE b/ggitflow-maven-plugin/LICENSE
similarity index 100%
rename from LICENSE
rename to ggitflow-maven-plugin/LICENSE
diff --git a/README.md b/ggitflow-maven-plugin/README.md
similarity index 100%
rename from README.md
rename to ggitflow-maven-plugin/README.md
diff --git a/clearHistory.sh b/ggitflow-maven-plugin/clearHistory.sh
similarity index 100%
rename from clearHistory.sh
rename to ggitflow-maven-plugin/clearHistory.sh
diff --git a/nbactions.xml b/ggitflow-maven-plugin/nbactions.xml
similarity index 100%
rename from nbactions.xml
rename to ggitflow-maven-plugin/nbactions.xml
diff --git a/pom.xml b/ggitflow-maven-plugin/pom.xml
similarity index 100%
rename from pom.xml
rename to ggitflow-maven-plugin/pom.xml
diff --git a/src/it/projects/feature-start-proj/.gitignore b/ggitflow-maven-plugin/src/it/projects/feature-start-proj/.gitignore
similarity index 100%
rename from src/it/projects/feature-start-proj/.gitignore
rename to ggitflow-maven-plugin/src/it/projects/feature-start-proj/.gitignore
diff --git a/src/it/projects/feature-start-proj/invoker.properties b/ggitflow-maven-plugin/src/it/projects/feature-start-proj/invoker.properties
similarity index 100%
rename from src/it/projects/feature-start-proj/invoker.properties
rename to ggitflow-maven-plugin/src/it/projects/feature-start-proj/invoker.properties
diff --git a/src/it/projects/feature-start-proj/pom.xml b/ggitflow-maven-plugin/src/it/projects/feature-start-proj/pom.xml
similarity index 100%
rename from src/it/projects/feature-start-proj/pom.xml
rename to ggitflow-maven-plugin/src/it/projects/feature-start-proj/pom.xml
diff --git a/src/it/projects/feature-start-proj/setup.groovy b/ggitflow-maven-plugin/src/it/projects/feature-start-proj/setup.groovy
similarity index 100%
rename from src/it/projects/feature-start-proj/setup.groovy
rename to ggitflow-maven-plugin/src/it/projects/feature-start-proj/setup.groovy
diff --git a/src/it/projects/feature-start-proj/verify.groovy b/ggitflow-maven-plugin/src/it/projects/feature-start-proj/verify.groovy
similarity index 100%
rename from src/it/projects/feature-start-proj/verify.groovy
rename to ggitflow-maven-plugin/src/it/projects/feature-start-proj/verify.groovy
diff --git a/src/it/settings.xml b/ggitflow-maven-plugin/src/it/settings.xml
similarity index 100%
rename from src/it/settings.xml
rename to ggitflow-maven-plugin/src/it/settings.xml
diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
similarity index 100%
rename from src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
rename to ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
similarity index 100%
rename from src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
rename to ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java
similarity index 100%
rename from src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java
rename to ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java
diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
similarity index 100%
rename from src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
rename to ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
similarity index 100%
rename from src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
rename to ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/MavenGitflow.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/MavenGitflow.java
similarity index 100%
rename from src/main/java/com/dkirrane/maven/plugins/ggitflow/MavenGitflow.java
rename to ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/MavenGitflow.java
diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/Prefixes.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/Prefixes.java
similarity index 100%
rename from src/main/java/com/dkirrane/maven/plugins/ggitflow/Prefixes.java
rename to ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/Prefixes.java
diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
similarity index 100%
rename from src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
rename to ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java b/ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
similarity index 100%
rename from src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
rename to ggitflow-maven-plugin/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
diff --git a/src/main/java/org/jfrog/hudson/util/GenericArtifactVersion.java b/ggitflow-maven-plugin/src/main/java/org/jfrog/hudson/util/GenericArtifactVersion.java
similarity index 100%
rename from src/main/java/org/jfrog/hudson/util/GenericArtifactVersion.java
rename to ggitflow-maven-plugin/src/main/java/org/jfrog/hudson/util/GenericArtifactVersion.java
diff --git a/src/main/resources/LICENSE b/ggitflow-maven-plugin/src/main/resources/LICENSE
similarity index 100%
rename from src/main/resources/LICENSE
rename to ggitflow-maven-plugin/src/main/resources/LICENSE
diff --git a/src/main/resources/VERSION b/ggitflow-maven-plugin/src/main/resources/VERSION
similarity index 100%
rename from src/main/resources/VERSION
rename to ggitflow-maven-plugin/src/main/resources/VERSION
diff --git a/src/test/java/com/dkirrane/maven/plugins/ggitflow/SetupVerifyScriptHelper.java b/ggitflow-maven-plugin/src/test/java/com/dkirrane/maven/plugins/ggitflow/SetupVerifyScriptHelper.java
similarity index 100%
rename from src/test/java/com/dkirrane/maven/plugins/ggitflow/SetupVerifyScriptHelper.java
rename to ggitflow-maven-plugin/src/test/java/com/dkirrane/maven/plugins/ggitflow/SetupVerifyScriptHelper.java

commit d75e5e59dadc41ae6144f6d68100dbde4193ca81
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Sat Feb 1 13:04:04 2014 +0000

    Run build

diff --git a/pom.xml b/pom.xml
index 0364a1a..1752d63 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,189 +1,201 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
     <version>1.0-SNAPSHOT</version>
     <packaging>maven-plugin</packaging>
 
     <name>ggitflow-maven-plugin</name>
 
     <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
     </properties>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
             <version>1.0-SNAPSHOT</version>
             <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
         <dependency>
             <groupId>jline</groupId>
             <artifactId>jline</artifactId>
             <version>2.11</version>
             <type>jar</type>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>3.2</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>3.0.8</version>
         </dependency>
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-interactivity-api</artifactId>
             <version>1.0-alpha-5</version>
             <type>jar</type>
         </dependency>
+        <dependency>
+            <groupId>org.apache.maven.release</groupId>
+            <artifactId>maven-release-manager</artifactId>
+            <version>2.4</version>
+            <type>jar</type>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.maven</groupId>
+            <artifactId>maven-project</artifactId>
+            <version>2.2.1</version>
+            <type>jar</type>
+        </dependency>
     </dependencies>
 
     <build>
         <resources>
             <resource>
                 <directory>src/it</directory>
                 <includes>
                     <include>**/**</include>
                 </includes>
             </resource>
         </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>3.2</version>
                 <configuration>
                     <goalPrefix>ggitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                     <execution>
                         <id>help-goal</id>
                         <goals>
                             <goal>helpmojo</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
         </plugins>
     </build>
     <profiles>
         <profile>
             <id>run-its</id>
             <build>
 
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-invoker-plugin</artifactId>
                         <version>1.8</version>
                         <configuration>
                             <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
                             <settingsFile>src/it/settings.xml</settingsFile>
                             <debug>true</debug>
                             <showErrors>true</showErrors>
                             <detail>true</detail>
                             <streamLogs>true</streamLogs>
                             <projectsDirectory>src/it/projects</projectsDirectory>
                             <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
                             <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
                             <addTestClassPath>true</addTestClassPath>
                             <preBuildHookScript>setup</preBuildHookScript>
                             <postBuildHookScript>verify</postBuildHookScript>
                             <pomIncludes>
                                 <pomInclude>*/pom.xml</pomInclude>
                             </pomIncludes>
                             <goals>
                                 <goal>clean</goal>
                                 <goal>test-compile</goal>
                             </goals>
                         </configuration>
                         <executions>
                             <execution>
                                 <id>integration-test</id>
                                 <goals>
                                     <goal>install</goal>
                                     <goal>integration-test</goal>
                                     <goal>verify</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
 
             </build>
         </profile>
     </profiles>
 
 
 
     <!--
         Sonatype upload details:
         http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
         https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
         https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
         https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
 
             - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
             - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
             - Promote staged artifacts into repository 'Releases'
             - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
             - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
     -->
 
     <distributionManagement>
         <snapshotRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
         </snapshotRepository>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
         </repository>
     </distributionManagement>
     <repositories>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
             <snapshots>
                 <enabled>true</enabled>
             </snapshots>
         </repository>
     </repositories>
 </project>
diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index 9f595fd..f50b07d 100644
--- a/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -18,2 +18,3 @@ package com.dkirrane.maven.plugins.ggitflow;
 import com.dkirrane.gitflow.groovy.GitflowInit;
+import java.util.Map;
 import org.apache.maven.execution.MavenSession;
@@ -26,2 +27,4 @@ import org.apache.maven.plugins.annotations.Parameter;
 import org.apache.maven.project.MavenProject;
+import org.apache.maven.project.MavenProjectBuilder;
+import org.apache.maven.shared.release.exec.MavenExecutor;
 import org.codehaus.plexus.components.interactivity.Prompter;
@@ -40,125 +43,131 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 /**
  *
  */
 public class AbstractGitflowMojo extends AbstractMojo {
 
     @Parameter(defaultValue = "${prefixes}")
     protected Prefixes prefixes;
     
     @Parameter(property = "msgPrefix", defaultValue = "")
     protected String msgPrefix;
 
     @Parameter(property = "msgSuffix", defaultValue = "")
     protected String msgSuffix;
 
     /**
      * Component used to prompt for input.
      */
     @Component
-    protected Prompter prompter;      
+    protected Prompter prompter;  
+    
+    @Component
+    protected Map<String, MavenExecutor> mavenExecutors;
+
+    @Component
+    protected MavenProjectBuilder projectBuilder;    
 
 //    /**
 //     * @parameter property="plugin"
 //     * @required
 //     */
 //    @Component
 //    protected PluginDescriptor pluginDescriptor;
 //
     /**
      * The project currently being build.
      *
      * @parameter expression="${project}"
      * @required
      * @readonly
      */
     @Component
     protected MavenProject project;
 
     /**
      * The current Maven session.
      *
      * @parameter expression="${session}"
      * @required
      * @readonly
      */
     @Component
     protected MavenSession session;
 
     /**
      * The Maven BuildPluginManager component.
      *
      * @component
      * @required
      */
     @Component
     protected BuildPluginManager pluginManager;
 
     private GitflowInit init;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     public void execute() throws MojoExecutionException, MojoFailureException {
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             getLog().info("Gitflow pom  '" + project.getBasedir() + "'");
         }
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     public GitflowInit getGitflowInit() {
         if (null == init) {
             init = new GitflowInit();
             init.setRepoDir(getProject().getBasedir());
             init.setMasterBrnName(prefixes.getMasterBranch());
             init.setDevelopBrnName(prefixes.getDevelopBranch());
             init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
             init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
             init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
             init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
             init.setVersionTagPref(prefixes.getVersionTagPrefix());
         }
         return init;
     }
 
     public void setVersion(String version) throws MojoExecutionException, MojoFailureException {
         getLog().info("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
         executeMojo(
                 plugin(
                         groupId("org.codehaus.mojo"),
                         artifactId("versions-maven-plugin"),
                         version("2.1")
                 ),
                 goal("set"),
                 configuration(
                         element(name("generateBackupPoms"), "false"),
                         element(name("newVersion"), version)
                 ),
                 executionEnvironment(
                         project,
                         session,
                         pluginManager
                 )
         );
         getLog().info("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
         } else {
             throw new MojoFailureException("Failed to update poms to version " + version);
         }
-    }
+    }  
 
 }
diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index dffb90f..95bd213 100644
--- a/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -30,86 +30,86 @@ import org.codehaus.plexus.components.interactivity.PrompterException;
 /**
  *
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().info("Finishing release '" + releaseName + "'");
 
         // checkout develop branch to get it's version
 //        String developBranch = (String) getGitflowInit().getDevelopBrnName();
 //        getGitflowInit().executeLocal("git checkout " + developBranch);
 //        String developVersion = project.getVersion();
 
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
 
         if (releaseBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         }
 
         if (releaseBranches.size() == 1) {
             releaseName = releaseBranches.get(0);
         } else {
             releaseName = promptForExistingReleaseName(releaseBranches, releaseName);
         }
 
         // 1. make sure we're on the release branch
         if (!getGitflowInit().gitCurrentBranch().equals(releaseName)) {
             getGitflowInit().executeLocal("git checkout " + releaseName);
         }
 
         String releaseVersion = getReleaseVersion(project.getVersion());
 
         // @todo we should run clean install first
         // 2. update poms to release version
         setVersion(releaseVersion);
 
         // 4. finish feature
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowRelease.finish(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
-            
-            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
-            try {
-                fixPomMergeConflicts.resolveConflicts2();
-            } catch (GitflowException ge) {
-                throw new MojoFailureException(ge.getMessage());
-            } catch (GitflowMergeConflictException gmce2) {
-                throw new MojoFailureException(gmce2.getMessage());
-            }
+            throw new MojoFailureException(gmce.getMessage());
+//            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
+//            try {
+//                fixPomMergeConflicts.resolveConflicts2();
+//            } catch (GitflowException ge) {
+//                throw new MojoFailureException(ge.getMessage());
+//            } catch (GitflowMergeConflictException gmce2) {
+//                throw new MojoFailureException(gmce2.getMessage());
+//            }
         }
 
         //make sure we're on the develop branch
         String currentBranch = getGitflowInit().gitCurrentBranch();
         String developBrnName = (String) getGitflowInit().getDevelopBrnName();
         if (!currentBranch.equals(developBrnName)) {
             throw new MojoFailureException("Current branch should be " + developBrnName + " but was " + currentBranch);
         }
 
         // @todo checkout and deploy the release tag
         getGitflowInit().executeLocal("git checkout " + releaseVersion);
     }
 
     private String promptForExistingReleaseName(List<String> releaseBranches, String defaultReleaseName) throws MojoFailureException {
         String message = "Please select a release branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, releaseBranches, defaultReleaseName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading release name from command line " + e.getMessage());
         }
 
         return name;
     }
 
 }
diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java b/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
index c550c7a..047bbe7 100644
--- a/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
+++ b/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
@@ -29,76 +29,76 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  *
  */
 @Mojo(name = "release-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class ReleaseStartMojo extends AbstractReleaseMojo {
 
     @Parameter(property = "startCommit", defaultValue = "")
     private String startCommit;
 
     @Parameter(defaultValue = "false", property = "allowSnapshots")
     private boolean allowSnapshots = false;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         String releaseVersion = getReleaseVersion(project.getVersion());
         String nextDevelopmentVersion = getNextDevelopmentVersion(project.getVersion());
         String prefix = getReleaseBranchPrefix();
 
         // 1. first we should create release branch
         if (StringUtils.isBlank(releaseName)) {
             System.out.println("prefix = " + prefix);
             System.out.println("prompter = " + prompter);
             String message = "What is the release branch name? " + prefix;
             System.out.println("message = " + message);
             try {
                 releaseName = prompter.prompt(message, releaseVersion);
                 if (StringUtils.isBlank(releaseName)) {
                     throw new MojoFailureException("Parameter <releaseName> cannot be null or empty.");
                 }
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading release name from command line " + ex.getMessage(), ex);
             }
         }
 
         try {
             new GenericArtifactVersion(releaseName);
         } catch (IllegalArgumentException e) {
             throw new MojoExecutionException("Provided releaseName " + releaseName + " is not a valid Maven version.");
         }
 
         getLog().info("Starting release '" + releaseName + "'");
         getLog().info("msgPrefix '" + getMsgPrefix() + "'");
         getLog().info("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowRelease.start(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         // current branch should be the release branch
         String releaseBranch = getGitflowInit().gitCurrentBranch();
         if (!releaseBranch.startsWith(prefix)) {
             throw new MojoFailureException("Failed to create release version.");
         }
 
-        // checkout develop branch and update it's version
-        String developBranch = (String) getGitflowInit().getDevelopBrnName();
-        getGitflowInit().executeLocal("git checkout " + developBranch);
-        setVersion(nextDevelopmentVersion);
-
-        // 3. then checkout release branch again
-        getGitflowInit().executeLocal("git checkout " + releaseBranch);
+//        // checkout develop branch and update it's version
+//        String developBranch = (String) getGitflowInit().getDevelopBrnName();
+//        getGitflowInit().executeLocal("git checkout " + developBranch);
+//        setVersion(nextDevelopmentVersion);
+//
+//        // 3. then checkout release branch again
+//        getGitflowInit().executeLocal("git checkout " + releaseBranch);
     }
 
     public String getReleaseName() {
         return releaseName;
     }
 }

commit c5e5fafcd3a7195d2799a8e4b2f5c646eb6613a4
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Sat Feb 1 02:50:22 2014 +0000

    readasd

diff --git a/pom.xml b/pom.xml
index 5a030e4..0364a1a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,188 +1,189 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
     <version>1.0-SNAPSHOT</version>
     <packaging>maven-plugin</packaging>
 
     <name>ggitflow-maven-plugin</name>
 
     <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
     </properties>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
             <version>1.0-SNAPSHOT</version>
+            <type>jar</type>
         </dependency>
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
         <dependency>
             <groupId>jline</groupId>
             <artifactId>jline</artifactId>
             <version>2.11</version>
             <type>jar</type>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>3.2</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>3.0.8</version>
         </dependency>
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-interactivity-api</artifactId>
             <version>1.0-alpha-5</version>
             <type>jar</type>
         </dependency>
     </dependencies>
 
     <build>
         <resources>
             <resource>
                 <directory>src/it</directory>
                 <includes>
                     <include>**/**</include>
                 </includes>
             </resource>
         </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>3.2</version>
                 <configuration>
                     <goalPrefix>ggitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                     <execution>
                         <id>help-goal</id>
                         <goals>
                             <goal>helpmojo</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
         </plugins>
     </build>
     <profiles>
         <profile>
             <id>run-its</id>
             <build>
 
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-invoker-plugin</artifactId>
                         <version>1.8</version>
                         <configuration>
                             <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
                             <settingsFile>src/it/settings.xml</settingsFile>
                             <debug>true</debug>
                             <showErrors>true</showErrors>
                             <detail>true</detail>
                             <streamLogs>true</streamLogs>
                             <projectsDirectory>src/it/projects</projectsDirectory>
                             <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
                             <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
                             <addTestClassPath>true</addTestClassPath>
                             <preBuildHookScript>setup</preBuildHookScript>
                             <postBuildHookScript>verify</postBuildHookScript>
                             <pomIncludes>
                                 <pomInclude>*/pom.xml</pomInclude>
                             </pomIncludes>
                             <goals>
                                 <goal>clean</goal>
                                 <goal>test-compile</goal>
                             </goals>
                         </configuration>
                         <executions>
                             <execution>
                                 <id>integration-test</id>
                                 <goals>
                                     <goal>install</goal>
                                     <goal>integration-test</goal>
                                     <goal>verify</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
 
             </build>
         </profile>
     </profiles>
 
 
 
     <!--
         Sonatype upload details:
         http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
         https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
         https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
         https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
 
             - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
             - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
             - Promote staged artifacts into repository 'Releases'
             - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
             - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
     -->
 
     <distributionManagement>
         <snapshotRepository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
         </snapshotRepository>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
         </repository>
     </distributionManagement>
     <repositories>
         <repository>
             <id>sonatype</id>
             <url>https://oss.sonatype.org/content/groups/public</url>
             <releases>
                 <enabled>true</enabled>
             </releases>
             <snapshots>
                 <enabled>true</enabled>
             </snapshots>
         </repository>
     </repositories>
 </project>
diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index 70c864d..dffb90f 100644
--- a/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -18,2 +18,3 @@ package com.dkirrane.maven.plugins.ggitflow;
 import com.dkirrane.gitflow.groovy.GitflowRelease;
+import com.dkirrane.gitflow.groovy.conflicts.FixPomMergeConflicts;
 import com.dkirrane.gitflow.groovy.ex.GitflowException;
@@ -21,2 +22,4 @@ import com.dkirrane.gitflow.groovy.ex.GitflowMergeConflictException;
 import java.util.List;
+import java.util.logging.Level;
+import java.util.logging.Logger;
 import org.apache.maven.plugin.MojoExecutionException;
@@ -27,78 +30,86 @@ import org.codehaus.plexus.components.interactivity.PrompterException;
 /**
  *
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().info("Finishing release '" + releaseName + "'");
 
         // checkout develop branch to get it's version
-        String developBranch = (String) getGitflowInit().getDevelopBrnName();
-        getGitflowInit().executeLocal("git checkout " + developBranch);
-        String developVersion = project.getVersion();
+//        String developBranch = (String) getGitflowInit().getDevelopBrnName();
+//        getGitflowInit().executeLocal("git checkout " + developBranch);
+//        String developVersion = project.getVersion();
 
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
 
         if (releaseBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         }
 
         if (releaseBranches.size() == 1) {
-            releaseName = releaseBranches.get(1);
+            releaseName = releaseBranches.get(0);
         } else {
             releaseName = promptForExistingReleaseName(releaseBranches, releaseName);
         }
 
         // 1. make sure we're on the release branch
         if (!getGitflowInit().gitCurrentBranch().equals(releaseName)) {
             getGitflowInit().executeLocal("git checkout " + releaseName);
         }
 
         String releaseVersion = getReleaseVersion(project.getVersion());
 
         // @todo we should run clean install first
         // 2. update poms to release version
         setVersion(releaseVersion);
 
         // 4. finish feature
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowRelease.finish(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
-            throw new MojoFailureException(gmce.getMessage());
+            
+            FixPomMergeConflicts fixPomMergeConflicts = new FixPomMergeConflicts();
+            try {
+                fixPomMergeConflicts.resolveConflicts2();
+            } catch (GitflowException ge) {
+                throw new MojoFailureException(ge.getMessage());
+            } catch (GitflowMergeConflictException gmce2) {
+                throw new MojoFailureException(gmce2.getMessage());
+            }
         }
 
         //make sure we're on the develop branch
         String currentBranch = getGitflowInit().gitCurrentBranch();
         String developBrnName = (String) getGitflowInit().getDevelopBrnName();
         if (!currentBranch.equals(developBrnName)) {
             throw new MojoFailureException("Current branch should be " + developBrnName + " but was " + currentBranch);
         }
 
         // @todo checkout and deploy the release tag
         getGitflowInit().executeLocal("git checkout " + releaseVersion);
     }
 
     private String promptForExistingReleaseName(List<String> releaseBranches, String defaultReleaseName) throws MojoFailureException {
         String message = "Please select a release branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, releaseBranches, defaultReleaseName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading release name from command line " + e.getMessage());
         }
 
         return name;
     }
 
 }

commit 78d52d38e0438157759dc5b78d9fbb95c5e33ad3
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Sat Feb 1 02:19:21 2014 +0000

    Feature finish fix

diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java b/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
index 0717b34..1200a75 100644
--- a/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
+++ b/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
@@ -25,94 +25,94 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  *
  */
 public class AbstractFeatureMojo extends AbstractGitflowMojo {
 
     @Parameter(property = "featureName")
     protected String featureName;
 
     @Parameter(defaultValue = "false", property = "enableFeatureVersions")
     protected boolean enableFeatureVersions = false;
 
     @Parameter(defaultValue = "false", property = "pushFeatures")
     protected boolean pushFeatures = false;   
 
     public String getFeatureBranchPrefix() {
         String prefix = getGitflowInit().getFeatureBranchPrefix();
         if (StringUtils.isBlank(prefix)) {
             prefix = DEFAULT_FEATURE_BRN_PREFIX;
         }
         return prefix;
     }
 
     public String getFeatureName(String featureLabel) throws MojoFailureException {
         if (StringUtils.isBlank(featureLabel)) {
             throw new MojoFailureException("Missing argument <featureName>");
         }
 
         featureLabel = featureLabel.replaceAll("\\s+", "");
 //        featureLabel = featureLabel.replaceAll("-+", "_");
         return featureLabel;
     }
 
     public String getFeatureVersion(String version, String featureLabel) throws MojoFailureException {
         getLog().info("Project version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         Character annotationSeparator = artifactVersion.getAnnotationRevisionSeparator();
         String buildSpecifier = artifactVersion.getBuildSpecifier();
         Character buildSpecifierSeparator = artifactVersion.getBuildSpecifierSeparator();
 
         getLog().info("Parsed version = " + artifactVersion.toString());
         if (!StringUtils.isBlank(annotationAsString)) {
             throw new MojoFailureException("Cannot add feature name to version. An annotation " + annotationAsString + " already exists");
         }
 
         final StringBuilder result = new StringBuilder(30);
 
         result.append(primaryNumbersAsString).append(annotationSeparator).append(featureLabel);
 
         if (buildSpecifier != null) {
             if (buildSpecifierSeparator != null) {
                 result.append(buildSpecifierSeparator);
             }
             result.append(buildSpecifier);
         }
 
         return result.toString();
     }
 
     public String getNonFeatureVersion(String version, String featureLabel) {
         getLog().info("Project version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifier = artifactVersion.getBuildSpecifier();
         Character buildSpecifierSeparator = artifactVersion.getBuildSpecifierSeparator();
 
         getLog().info("Parsed version = " + artifactVersion.toString());
         if (StringUtils.isBlank(annotationAsString)) {
             getLog().warn("Cannot remove feature name from pom version. The version annotation does not exists");
             return version;
         }
 
-        if (featureLabel.equals(annotationAsString)) {
+        if (('-' + featureLabel).equals(annotationAsString)) {
             final StringBuilder result = new StringBuilder(30);
             result.append(primaryNumbersAsString);
 
             if (buildSpecifier != null) {
                 if (buildSpecifierSeparator != null) {
                     result.append(buildSpecifierSeparator);
                 }
                 result.append(buildSpecifier);
             }
 
             return result.toString();
         } else {
             getLog().warn("Cannot remove feature name from pom version. The version annotation [" + annotationAsString + "] does not match the feature label [" + featureLabel + "]");
             return version;
         }
     }
 }

commit 34876f2bd64cbec834cb63b63f80a3609e674089
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Sat Feb 1 02:00:04 2014 +0000

    fix for feature finish

diff --git a/.gitignore b/.gitignore
index eefbb4f..b091aad 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,3 +9,2 @@ dist/
 nbdist/
-nbactions.xml
 nb-configuration.xml
diff --git a/nbactions.xml b/nbactions.xml
new file mode 100644
index 0000000..b8ca44b
--- /dev/null
+++ b/nbactions.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<actions>
+    <action>
+        <actionName>rebuild</actionName>
+        <packagings>
+            <packaging>*</packaging>
+        </packagings>
+        <goals>
+            <goal>clean</goal>
+            <goal>install</goal>
+        </goals>
+        <properties>
+            <skipTests>true</skipTests>
+        </properties>
+    </action>
+    <action>
+        <actionName>CUSTOM-clean deploy</actionName>
+        <displayName>clean deploy</displayName>
+        <goals>
+            <goal>clean</goal>
+            <goal>deploy</goal>
+        </goals>
+        <properties>
+            <skipTests>true</skipTests>
+        </properties>
+    </action>
+</actions>
diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java b/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
index a48ee19..8e8caa9 100644
--- a/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
+++ b/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
@@ -28,57 +28,58 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  *
  */
 @Mojo(name = "feature-finish", aggregator = true)
 public class FeatureFinishMojo extends AbstractFeatureMojo {
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().info("Finishing feature '" + featureName + "'");
-
+        
+        String featureBranchPrefix = getFeatureBranchPrefix();
         if (StringUtils.isBlank(featureName)) {
             String currentBranch = getGitflowInit().gitCurrentBranch();
-            if (currentBranch.startsWith(getFeatureBranchPrefix())) {
+            if (currentBranch.startsWith(featureBranchPrefix)) {
                 featureName = currentBranch;
             }
         } else {
             featureName = getFeatureName(featureName);
         }
 
         List<String> featureBranches = getGitflowInit().gitLocalFeatureBranches();
 
         featureName = promptForExistingFeatureName(featureBranches, featureName);
 
         String version = project.getVersion();
-        String nonFeatureVersion = getNonFeatureVersion(version, featureName);
+        String nonFeatureVersion = getNonFeatureVersion(version, featureName.replace(featureBranchPrefix, ""));
 
         setVersion(nonFeatureVersion);
 
         GitflowFeature gitflowFeature = new GitflowFeature();
         gitflowFeature.setInit(getGitflowInit());
         gitflowFeature.setMsgPrefix(getMsgPrefix());
         gitflowFeature.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowFeature.finish(featureName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
     }
 
     private String promptForExistingFeatureName(List<String> featureBranches, String defaultFeatureName) throws MojoFailureException {
         String message = "Please select a feature branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, featureBranches, defaultFeatureName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading feature name from command line " + e.getMessage());
         }
 
         return name;
     }
 
 }

commit 292c85676e6d2096a7343f09343fd519156a13a6
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Sat Feb 1 00:26:56 2014 +0000

    Prefixes

diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index 46d0ea5..9f595fd 100644
--- a/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -40,115 +40,125 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 /**
  *
  */
 public class AbstractGitflowMojo extends AbstractMojo {
 
+    @Parameter(defaultValue = "${prefixes}")
+    protected Prefixes prefixes;
+    
     @Parameter(property = "msgPrefix", defaultValue = "")
     protected String msgPrefix;
 
     @Parameter(property = "msgSuffix", defaultValue = "")
     protected String msgSuffix;
 
     /**
      * Component used to prompt for input.
      */
     @Component
     protected Prompter prompter;      
 
 //    /**
 //     * @parameter property="plugin"
 //     * @required
 //     */
 //    @Component
 //    protected PluginDescriptor pluginDescriptor;
 //
     /**
      * The project currently being build.
      *
      * @parameter expression="${project}"
      * @required
      * @readonly
      */
     @Component
     protected MavenProject project;
 
     /**
      * The current Maven session.
      *
      * @parameter expression="${session}"
      * @required
      * @readonly
      */
     @Component
     protected MavenSession session;
 
     /**
      * The Maven BuildPluginManager component.
      *
      * @component
      * @required
      */
     @Component
     protected BuildPluginManager pluginManager;
 
     private GitflowInit init;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     public void execute() throws MojoExecutionException, MojoFailureException {
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             getLog().info("Gitflow pom  '" + project.getBasedir() + "'");
         }
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     public GitflowInit getGitflowInit() {
         if (null == init) {
             init = new GitflowInit();
             init.setRepoDir(getProject().getBasedir());
+            init.setMasterBrnName(prefixes.getMasterBranch());
+            init.setDevelopBrnName(prefixes.getDevelopBranch());
+            init.setFeatureBrnPref(prefixes.getFeatureBranchPrefix());
+            init.setReleaseBrnPref(prefixes.getReleaseBranchPrefix());
+            init.setHotfixBrnPref(prefixes.getHotfixBranchPrefix());
+            init.setSupportBrnPref(prefixes.getSupportBranchPrefix());
+            init.setVersionTagPref(prefixes.getVersionTagPrefix());
         }
         return init;
     }
 
     public void setVersion(String version) throws MojoExecutionException, MojoFailureException {
         getLog().info("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
         executeMojo(
                 plugin(
                         groupId("org.codehaus.mojo"),
                         artifactId("versions-maven-plugin"),
                         version("2.1")
                 ),
                 goal("set"),
                 configuration(
                         element(name("generateBackupPoms"), "false"),
                         element(name("newVersion"), version)
                 ),
                 executionEnvironment(
                         project,
                         session,
                         pluginManager
                 )
         );
         getLog().info("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
         } else {
             throw new MojoFailureException("Failed to update poms to version " + version);
         }
     }
 
 }
diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java b/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
index de6c61d..e2ce64c 100644
--- a/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
+++ b/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
@@ -28,56 +28,56 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  *
  */
 @Mojo(name = "feature-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class FeatureStartMojo extends AbstractFeatureMojo {
 
     @Parameter(property = "startCommit", defaultValue = "")
     private String startCommit;    
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         if (StringUtils.isBlank(featureName)) {
             String prefix = getFeatureBranchPrefix();
             System.out.println("prefix = " + prefix);
             System.out.println("prompter = " + prompter);
             String message = "What is the feature branch name? " + prefix;
             System.out.println("message = " + message);
             try {
                 featureName = prompter.prompt(message);
                 if (StringUtils.isBlank(featureName)) {
                     throw new MojoFailureException("Parameter <featureName> cannot be null or empty.");
                 }
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading feature name from command line " + ex.getMessage(), ex);
             }
         }
         featureName = getFeatureName(featureName);
 
         getLog().info("Starting feature '" + featureName + "'");
-        getLog().info("msgPrefix '" + getMsgPrefix() + "'");
-        getLog().info("msgSuffix '" + getMsgSuffix() + "'");
+        getLog().debug("msgPrefix '" + getMsgPrefix() + "'");
+        getLog().debug("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowFeature gitflowFeature = new GitflowFeature();
         gitflowFeature.setInit(getGitflowInit());
         gitflowFeature.setMsgPrefix(getMsgPrefix());
         gitflowFeature.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowFeature.start(featureName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         String version = project.getVersion();
 
         String featureVersion = getFeatureVersion(version, featureName);
 
         setVersion(featureVersion);
     }
 
     public String getFeatureName() {
         return featureName;
     }
 }
diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/MyMojo.java b/src/main/java/com/dkirrane/maven/plugins/ggitflow/MyMojo.java
deleted file mode 100644
index 0bc3073..0000000
--- a/src/main/java/com/dkirrane/maven/plugins/ggitflow/MyMojo.java
+++ /dev/null
@@ -1,84 +0,0 @@
-/* 
- * Copyright 2014 Desmond Kirrane.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.dkirrane.maven.plugins.ggitflow;
-
-/*
- * Copyright 2001-2005 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-import java.io.File;
-import java.io.FileWriter;
-import java.io.IOException;
-import org.apache.maven.plugin.AbstractMojo;
-import org.apache.maven.plugin.MojoExecutionException;
-import org.apache.maven.plugins.annotations.LifecyclePhase;
-import org.apache.maven.plugins.annotations.Mojo;
-import org.apache.maven.plugins.annotations.Parameter;
-
-/**
- * Goal which touches a timestamp file.
- *
- * @deprecated Don't use!
- */
-@Mojo(name = "touch", defaultPhase = LifecyclePhase.PROCESS_SOURCES)
-public class MyMojo
-        extends AbstractMojo {
-
-    /**
-     * Location of the file.
-     */
-    @Parameter(defaultValue = "${project.build.directory}", property = "outputDir", required = true)
-    private File outputDirectory;
-
-    public void execute()
-            throws MojoExecutionException {
-        File f = outputDirectory;
-
-        if (!f.exists()) {
-            f.mkdirs();
-        }
-
-        File touch = new File(f, "touch.txt");
-
-        FileWriter w = null;
-        try {
-            w = new FileWriter(touch);
-
-            w.write("touch.txt");
-        } catch (IOException e) {
-            throw new MojoExecutionException("Error creating file " + touch, e);
-        } finally {
-            if (w != null) {
-                try {
-                    w.close();
-                } catch (IOException e) {
-                    // ignore
-                }
-            }
-        }
-    }
-}
diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/Prefixes.java b/src/main/java/com/dkirrane/maven/plugins/ggitflow/Prefixes.java
new file mode 100644
index 0000000..2e0d25e
--- /dev/null
+++ b/src/main/java/com/dkirrane/maven/plugins/ggitflow/Prefixes.java
@@ -0,0 +1,111 @@
+/*
+ * Copyright 2014 desmondkirrane.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *//*
+ * Copyright 2014 desmondkirrane.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.dkirrane.maven.plugins.ggitflow;
+
+/**
+ *
+ */
+public class Prefixes {
+
+    private String masterBranch;
+    private String developBranch;
+    private String featureBranchPrefix;
+    private String releaseBranchPrefix;
+    private String hotfixBranchPrefix;
+    private String supportBranchPrefix;
+    private String versionTagPrefix;
+
+    public Prefixes() {
+        this.masterBranch = "master";
+        this.developBranch = "develop";
+        this.featureBranchPrefix = "feature/";
+        this.releaseBranchPrefix = "release/";
+        this.hotfixBranchPrefix = "hotfix/";
+        this.supportBranchPrefix = "support/";
+        this.versionTagPrefix = "v-";
+    }
+
+    public String getMasterBranch() {
+        return masterBranch;
+    }
+
+    public void setMasterBranch(String masterBranch) {
+        this.masterBranch = masterBranch;
+    }
+
+    public String getDevelopBranch() {
+        return developBranch;
+    }
+
+    public void setDevelopBranch(String developBranch) {
+        this.developBranch = developBranch;
+    }
+
+    public String getFeatureBranchPrefix() {
+        return featureBranchPrefix;
+    }
+
+    public void setFeatureBranchPrefix(String featureBranchPrefix) {
+        this.featureBranchPrefix = featureBranchPrefix;
+    }
+
+    public String getReleaseBranchPrefix() {
+        return releaseBranchPrefix;
+    }
+
+    public void setReleaseBranchPrefix(String releaseBranchPrefix) {
+        this.releaseBranchPrefix = releaseBranchPrefix;
+    }
+
+    public String getHotfixBranchPrefix() {
+        return hotfixBranchPrefix;
+    }
+
+    public void setHotfixBranchPrefix(String hotfixBranchPrefix) {
+        this.hotfixBranchPrefix = hotfixBranchPrefix;
+    }
+
+    public String getSupportBranchPrefix() {
+        return supportBranchPrefix;
+    }
+
+    public void setSupportBranchPrefix(String supportBranchPrefix) {
+        this.supportBranchPrefix = supportBranchPrefix;
+    }
+
+    public String getVersionTagPrefix() {
+        return versionTagPrefix;
+    }
+
+    public void setVersionTagPrefix(String versionTagPrefix) {
+        this.versionTagPrefix = versionTagPrefix;
+    }
+
+}

commit 3a2e04249e87e546e5dbcd9141b8a34ad0d7926b
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Fri Jan 31 23:24:15 2014 +0000

    fix imports

diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java b/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
index 3a4db37..0717b34 100644
--- a/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
+++ b/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
@@ -18,7 +18,5 @@ package com.dkirrane.maven.plugins.ggitflow;
 
-import static com.dkirrane.gitflow.groovy.Constants.*;
-
+import static com.dkirrane.gitflow.groovy.Constants.DEFAULT_FEATURE_BRN_PREFIX;
 import org.apache.maven.plugin.MojoFailureException;
 import org.apache.maven.plugins.annotations.Parameter;
-import org.codehaus.plexus.components.interactivity.Prompter;
 import org.codehaus.plexus.util.StringUtils;
diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index a2c714b..46d0ea5 100644
--- a/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -18,3 +18,2 @@ package com.dkirrane.maven.plugins.ggitflow;
 import com.dkirrane.gitflow.groovy.GitflowInit;
-//import com.dkirrane.maven.plugins.ggitflow.prompt.Prompter;
 import org.apache.maven.execution.MavenSession;
@@ -24,3 +23,2 @@ import org.apache.maven.plugin.MojoExecutionException;
 import org.apache.maven.plugin.MojoFailureException;
-//import org.apache.maven.plugin.descriptor.PluginDescriptor;
 import org.apache.maven.plugins.annotations.Component;
@@ -28,3 +26,3 @@ import org.apache.maven.plugins.annotations.Parameter;
 import org.apache.maven.project.MavenProject;
-import org.codehaus.plexus.component.annotations.Requirement;
+import org.codehaus.plexus.components.interactivity.Prompter;
 import org.codehaus.plexus.util.StringUtils;
@@ -40,7 +38,5 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.plugin;
 import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
-import org.codehaus.plexus.components.interactivity.Prompter;
-import org.codehaus.plexus.components.interactivity.PrompterException;
 
 /**
  *
  */
diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java b/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java
index 703e738..e17f733 100644
--- a/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java
+++ b/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java
@@ -17,12 +17,10 @@ package com.dkirrane.maven.plugins.ggitflow;
 
+import static com.dkirrane.gitflow.groovy.Constants.DEFAULT_RELEASE_BRN_PREFIX;
 import org.apache.maven.plugin.MojoFailureException;
 import org.apache.maven.plugins.annotations.Parameter;
-import org.jfrog.hudson.util.GenericArtifactVersion;
-
-import static com.dkirrane.gitflow.groovy.Constants.*;
-
 import org.codehaus.plexus.util.StringUtils;
+import org.jfrog.hudson.util.GenericArtifactVersion;
 
 /**
  *
  */
diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java b/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
index a543ebc..a48ee19 100644
--- a/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
+++ b/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
@@ -20,2 +20,3 @@ import com.dkirrane.gitflow.groovy.ex.GitflowException;
 import com.dkirrane.gitflow.groovy.ex.GitflowMergeConflictException;
+import java.util.List;
 import org.apache.maven.plugin.MojoExecutionException;
@@ -23,4 +24,2 @@ import org.apache.maven.plugin.MojoFailureException;
 import org.apache.maven.plugins.annotations.Mojo;
-
-import java.util.List;
 import org.codehaus.plexus.components.interactivity.PrompterException;
@@ -28,7 +27,5 @@ import org.codehaus.plexus.util.StringUtils;
 
-import static org.twdata.maven.mojoexecutor.MojoExecutor.*;
-
 /**
  *
  */
 @Mojo(name = "feature-finish", aggregator = true)
diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java b/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
index 1fcbaee..de6c61d 100644
--- a/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
+++ b/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
@@ -17,3 +17,2 @@ package com.dkirrane.maven.plugins.ggitflow;
 
-import static com.dkirrane.gitflow.groovy.Constants.*;
 import com.dkirrane.gitflow.groovy.GitflowFeature;
@@ -22,3 +21,2 @@ import org.apache.maven.plugin.MojoExecutionException;
 import org.apache.maven.plugin.MojoFailureException;
-import org.apache.maven.plugins.annotations.Component;
 import org.apache.maven.plugins.annotations.LifecyclePhase;
@@ -26,11 +24,8 @@ import org.apache.maven.plugins.annotations.Mojo;
 import org.apache.maven.plugins.annotations.Parameter;
-import org.codehaus.plexus.component.annotations.Requirement;
-import org.codehaus.plexus.components.interactivity.Prompter;
 import org.codehaus.plexus.components.interactivity.PrompterException;
 import org.codehaus.plexus.util.StringUtils;
-import static org.twdata.maven.mojoexecutor.MojoExecutor.*;
 
 /**
  *
  */
 @Mojo(name = "feature-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/MyMojo.java b/src/main/java/com/dkirrane/maven/plugins/ggitflow/MyMojo.java
index 0d7f905..0bc3073 100644
--- a/src/main/java/com/dkirrane/maven/plugins/ggitflow/MyMojo.java
+++ b/src/main/java/com/dkirrane/maven/plugins/ggitflow/MyMojo.java
@@ -18,19 +18,21 @@ package com.dkirrane.maven.plugins.ggitflow;
 /*
  * Copyright 2001-2005 The Apache Software Foundation.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *
  *      http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+import java.io.File;
+import java.io.FileWriter;
+import java.io.IOException;
 import org.apache.maven.plugin.AbstractMojo;
 import org.apache.maven.plugin.MojoExecutionException;
-
 import org.apache.maven.plugins.annotations.LifecyclePhase;
@@ -38,13 +40,8 @@ import org.apache.maven.plugins.annotations.Mojo;
 import org.apache.maven.plugins.annotations.Parameter;
-import org.apache.maven.plugins.annotations.ResolutionScope;
-
-import java.io.File;
-import java.io.FileWriter;
-import java.io.IOException;
 
 /**
  * Goal which touches a timestamp file.
  *
  * @deprecated Don't use!
  */
 @Mojo(name = "touch", defaultPhase = LifecyclePhase.PROCESS_SOURCES)
diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index 6b48e21..70c864d 100644
--- a/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -17,3 +17,2 @@ package com.dkirrane.maven.plugins.ggitflow;
 
-import com.dkirrane.gitflow.groovy.GitflowFeature;
 import com.dkirrane.gitflow.groovy.GitflowRelease;
@@ -21,2 +20,3 @@ import com.dkirrane.gitflow.groovy.ex.GitflowException;
 import com.dkirrane.gitflow.groovy.ex.GitflowMergeConflictException;
+import java.util.List;
 import org.apache.maven.plugin.MojoExecutionException;
@@ -24,12 +24,7 @@ import org.apache.maven.plugin.MojoFailureException;
 import org.apache.maven.plugins.annotations.Mojo;
-
-import java.util.List;
 import org.codehaus.plexus.components.interactivity.PrompterException;
-import org.codehaus.plexus.util.StringUtils;
-
-import static org.twdata.maven.mojoexecutor.MojoExecutor.*;
 
 /**
  *
  */
 @Mojo(name = "release-finish", aggregator = true)
diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java b/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
index 4101985..c550c7a 100644
--- a/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
+++ b/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
@@ -17,2 +17,3 @@ package com.dkirrane.maven.plugins.ggitflow;
 
+import com.dkirrane.gitflow.groovy.GitflowRelease;
 import com.dkirrane.gitflow.groovy.ex.GitflowException;
@@ -20,6 +21,5 @@ import org.apache.maven.plugin.MojoExecutionException;
 import org.apache.maven.plugin.MojoFailureException;
+import org.apache.maven.plugins.annotations.LifecyclePhase;
 import org.apache.maven.plugins.annotations.Mojo;
 import org.apache.maven.plugins.annotations.Parameter;
-import com.dkirrane.gitflow.groovy.GitflowRelease;
-import org.apache.maven.plugins.annotations.LifecyclePhase;
 import org.codehaus.plexus.components.interactivity.PrompterException;
diff --git a/src/test/java/com/dkirrane/maven/plugins/ggitflow/SetupVerifyScriptHelper.java b/src/test/java/com/dkirrane/maven/plugins/ggitflow/SetupVerifyScriptHelper.java
index b0b8354..7511dbb 100644
--- a/src/test/java/com/dkirrane/maven/plugins/ggitflow/SetupVerifyScriptHelper.java
+++ b/src/test/java/com/dkirrane/maven/plugins/ggitflow/SetupVerifyScriptHelper.java
@@ -20,3 +20,2 @@ import java.io.File;
 import java.io.IOException;
-import java.util.List;
 import java.util.Map;

commit 99c0239ac40b630a3001c107911f23af005a2566
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Fri Jan 31 23:22:17 2014 +0000

    add prompter

diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java b/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
index 353cfcf..3a4db37 100644
--- a/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
+++ b/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
@@ -17,5 +17,2 @@ package com.dkirrane.maven.plugins.ggitflow;
 
-import org.apache.maven.plugin.MojoFailureException;
-import org.apache.maven.plugins.annotations.Parameter;
-import org.jfrog.hudson.util.GenericArtifactVersion;
 
@@ -23,97 +20,101 @@ import static com.dkirrane.gitflow.groovy.Constants.*;
 
+import org.apache.maven.plugin.MojoFailureException;
+import org.apache.maven.plugins.annotations.Parameter;
+import org.codehaus.plexus.components.interactivity.Prompter;
 import org.codehaus.plexus.util.StringUtils;
+import org.jfrog.hudson.util.GenericArtifactVersion;
 
 /**
  *
  */
 public class AbstractFeatureMojo extends AbstractGitflowMojo {
 
     @Parameter(property = "featureName")
     protected String featureName;
 
     @Parameter(defaultValue = "false", property = "enableFeatureVersions")
     protected boolean enableFeatureVersions = false;
 
     @Parameter(defaultValue = "false", property = "pushFeatures")
-    protected boolean pushFeatures = false;
+    protected boolean pushFeatures = false;   
 
     public String getFeatureBranchPrefix() {
         String prefix = getGitflowInit().getFeatureBranchPrefix();
         if (StringUtils.isBlank(prefix)) {
             prefix = DEFAULT_FEATURE_BRN_PREFIX;
         }
         return prefix;
     }
 
     public String getFeatureName(String featureLabel) throws MojoFailureException {
         if (StringUtils.isBlank(featureLabel)) {
             throw new MojoFailureException("Missing argument <featureName>");
         }
 
         featureLabel = featureLabel.replaceAll("\\s+", "");
 //        featureLabel = featureLabel.replaceAll("-+", "_");
         return featureLabel;
     }
 
     public String getFeatureVersion(String version, String featureLabel) throws MojoFailureException {
         getLog().info("Project version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         Character annotationSeparator = artifactVersion.getAnnotationRevisionSeparator();
         String buildSpecifier = artifactVersion.getBuildSpecifier();
         Character buildSpecifierSeparator = artifactVersion.getBuildSpecifierSeparator();
 
         getLog().info("Parsed version = " + artifactVersion.toString());
         if (!StringUtils.isBlank(annotationAsString)) {
             throw new MojoFailureException("Cannot add feature name to version. An annotation " + annotationAsString + " already exists");
         }
 
         final StringBuilder result = new StringBuilder(30);
 
         result.append(primaryNumbersAsString).append(annotationSeparator).append(featureLabel);
 
         if (buildSpecifier != null) {
             if (buildSpecifierSeparator != null) {
                 result.append(buildSpecifierSeparator);
             }
             result.append(buildSpecifier);
         }
 
         return result.toString();
     }
 
     public String getNonFeatureVersion(String version, String featureLabel) {
         getLog().info("Project version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifier = artifactVersion.getBuildSpecifier();
         Character buildSpecifierSeparator = artifactVersion.getBuildSpecifierSeparator();
 
         getLog().info("Parsed version = " + artifactVersion.toString());
         if (StringUtils.isBlank(annotationAsString)) {
             getLog().warn("Cannot remove feature name from pom version. The version annotation does not exists");
             return version;
         }
 
         if (featureLabel.equals(annotationAsString)) {
             final StringBuilder result = new StringBuilder(30);
             result.append(primaryNumbersAsString);
 
             if (buildSpecifier != null) {
                 if (buildSpecifierSeparator != null) {
                     result.append(buildSpecifierSeparator);
                 }
                 result.append(buildSpecifier);
             }
 
             return result.toString();
         } else {
             getLog().warn("Cannot remove feature name from pom version. The version annotation [" + annotationAsString + "] does not match the feature label [" + featureLabel + "]");
             return version;
         }
     }
 }
diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index 96493fb..a2c714b 100644
--- a/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -18,3 +18,3 @@ package com.dkirrane.maven.plugins.ggitflow;
 import com.dkirrane.gitflow.groovy.GitflowInit;
-import com.dkirrane.maven.plugins.ggitflow.prompt.Prompter;
+//import com.dkirrane.maven.plugins.ggitflow.prompt.Prompter;
 import org.apache.maven.execution.MavenSession;
@@ -40,114 +40,119 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.plugin;
 import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
+import org.codehaus.plexus.components.interactivity.Prompter;
+import org.codehaus.plexus.components.interactivity.PrompterException;
 
 /**
  *
  */
 public class AbstractGitflowMojo extends AbstractMojo {
 
     @Parameter(property = "msgPrefix", defaultValue = "")
     protected String msgPrefix;
 
     @Parameter(property = "msgSuffix", defaultValue = "")
     protected String msgSuffix;
 
-    @Requirement(role = Prompter.class, hint = "prompter", optional = false)
-    protected Prompter prompter;
+    /**
+     * Component used to prompt for input.
+     */
+    @Component
+    protected Prompter prompter;      
 
 //    /**
 //     * @parameter property="plugin"
 //     * @required
 //     */
 //    @Component
 //    protected PluginDescriptor pluginDescriptor;
 //
     /**
      * The project currently being build.
      *
      * @parameter expression="${project}"
      * @required
      * @readonly
      */
     @Component
     protected MavenProject project;
 
     /**
      * The current Maven session.
      *
      * @parameter expression="${session}"
      * @required
      * @readonly
      */
     @Component
     protected MavenSession session;
 
     /**
      * The Maven BuildPluginManager component.
      *
      * @component
      * @required
      */
     @Component
     protected BuildPluginManager pluginManager;
 
     private GitflowInit init;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     public void execute() throws MojoExecutionException, MojoFailureException {
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             getLog().info("Gitflow pom  '" + project.getBasedir() + "'");
         }
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
     public GitflowInit getGitflowInit() {
         if (null == init) {
             init = new GitflowInit();
             init.setRepoDir(getProject().getBasedir());
         }
         return init;
     }
 
     public void setVersion(String version) throws MojoExecutionException, MojoFailureException {
         getLog().info("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
         executeMojo(
                 plugin(
                         groupId("org.codehaus.mojo"),
                         artifactId("versions-maven-plugin"),
                         version("2.1")
                 ),
                 goal("set"),
                 configuration(
                         element(name("generateBackupPoms"), "false"),
                         element(name("newVersion"), version)
                 ),
                 executionEnvironment(
                         project,
                         session,
                         pluginManager
                 )
         );
         getLog().info("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
         } else {
             throw new MojoFailureException("Failed to update poms to version " + version);
         }
     }
 
 }
diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java b/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
index d7aab89..1fcbaee 100644
--- a/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
+++ b/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
@@ -17,2 +17,3 @@ package com.dkirrane.maven.plugins.ggitflow;
 
+import static com.dkirrane.gitflow.groovy.Constants.*;
 import com.dkirrane.gitflow.groovy.GitflowFeature;
@@ -21,65 +22,67 @@ import org.apache.maven.plugin.MojoExecutionException;
 import org.apache.maven.plugin.MojoFailureException;
+import org.apache.maven.plugins.annotations.Component;
+import org.apache.maven.plugins.annotations.LifecyclePhase;
 import org.apache.maven.plugins.annotations.Mojo;
 import org.apache.maven.plugins.annotations.Parameter;
-import static org.twdata.maven.mojoexecutor.MojoExecutor.*;
-import static com.dkirrane.gitflow.groovy.Constants.*;
-import org.apache.maven.plugins.annotations.LifecyclePhase;
+import org.codehaus.plexus.component.annotations.Requirement;
+import org.codehaus.plexus.components.interactivity.Prompter;
 import org.codehaus.plexus.components.interactivity.PrompterException;
 import org.codehaus.plexus.util.StringUtils;
+import static org.twdata.maven.mojoexecutor.MojoExecutor.*;
 
 /**
  *
  */
 @Mojo(name = "feature-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class FeatureStartMojo extends AbstractFeatureMojo {
 
     @Parameter(property = "startCommit", defaultValue = "")
-    private String startCommit;
+    private String startCommit;    
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         if (StringUtils.isBlank(featureName)) {
             String prefix = getFeatureBranchPrefix();
             System.out.println("prefix = " + prefix);
             System.out.println("prompter = " + prompter);
             String message = "What is the feature branch name? " + prefix;
             System.out.println("message = " + message);
             try {
                 featureName = prompter.prompt(message);
                 if (StringUtils.isBlank(featureName)) {
                     throw new MojoFailureException("Parameter <featureName> cannot be null or empty.");
                 }
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading feature name from command line " + ex.getMessage(), ex);
             }
         }
         featureName = getFeatureName(featureName);
 
         getLog().info("Starting feature '" + featureName + "'");
         getLog().info("msgPrefix '" + getMsgPrefix() + "'");
         getLog().info("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowFeature gitflowFeature = new GitflowFeature();
         gitflowFeature.setInit(getGitflowInit());
         gitflowFeature.setMsgPrefix(getMsgPrefix());
         gitflowFeature.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowFeature.start(featureName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         String version = project.getVersion();
 
         String featureVersion = getFeatureVersion(version, featureName);
 
         setVersion(featureVersion);
     }
 
     public String getFeatureName() {
         return featureName;
     }
 }
diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/Prompter.java b/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/Prompter.java
deleted file mode 100644
index 2044a97..0000000
--- a/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/Prompter.java
+++ /dev/null
@@ -1,38 +0,0 @@
-/* 
- * Copyright 2014 Desmond Kirrane.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.dkirrane.maven.plugins.ggitflow.prompt;
-
-import java.util.List;
-import org.codehaus.plexus.components.interactivity.PrompterException;
-
-/**
- *
- */
-public interface Prompter {
-
-    String prompt(String message) throws PrompterException;
-
-    String prompt(String message, String defaultReply) throws PrompterException;
-
-    String prompt(String message, List possibleValues, String defaultReply) throws PrompterException;
-
-    String prompt(String message, List possibleValues) throws PrompterException;
-
-    String promptForPassword(String message) throws PrompterException;
-
-    void showMessage(String message) throws PrompterException;
-
-}
diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/PrompterImpl.java b/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/PrompterImpl.java
deleted file mode 100644
index d8b86a5..0000000
--- a/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/PrompterImpl.java
+++ /dev/null
@@ -1,130 +0,0 @@
-/*
- * Copyright 2014 Desmond Kirrane.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.dkirrane.maven.plugins.ggitflow.prompt;
-
-import java.io.IOException;
-import java.util.List;
-import jline.console.ConsoleReader;
-import jline.console.completer.StringsCompleter;
-import org.codehaus.plexus.components.interactivity.DefaultPrompter;
-import org.codehaus.plexus.components.interactivity.PrompterException;
-
-import org.codehaus.plexus.component.annotations.Component;
-import org.codehaus.plexus.util.StringUtils;
-
-@Component(role = Prompter.class, hint = "prompter")
-public class PrompterImpl implements Prompter {
-
-    private DefaultPrompter defaultPrompter = new DefaultPrompter();
-    private final ConsoleReader console;
-
-    public PrompterImpl() {
-        try {
-            this.console = new ConsoleReader();
-            this.console.setHistoryEnabled(false);
-            this.console.setExpandEvents(false);
-        } catch (IOException ex) {
-            throw new RuntimeException(ex);
-        }
-    }
-
-    @Override
-    public String prompt(String message) throws PrompterException {
-        String value = defaultPrompter.prompt(message);
-        if (StringUtils.isBlank(value)) {
-            value = prompt(message);
-        }
-        return value;
-    }
-
-    @Override
-    public String prompt(String message, String defaultReply) throws PrompterException {
-        String value = defaultPrompter.prompt(message, defaultReply);
-        if (StringUtils.isBlank(value)) {
-            value = prompt(message, defaultReply);
-        }
-        return value;
-    }
-
-    @Override
-    public String prompt(String message, List possibleValues, String defaultReply) throws PrompterException {
-        try {
-            console.println(message + ":");
-            for (int i = 0; i < possibleValues.size(); i++) {
-                console.println(String.format("  %2d) %s", i, possibleValues.get(i)));
-            }
-            console.flush();
-
-            // setup completer
-            StringsCompleter completer = new StringsCompleter(possibleValues);
-            console.addCompleter(completer);
-
-            try {
-                String value;
-                while (true) {
-                    value = prompt(message).trim();
-
-                    // check if value is an index
-                    Integer i = null;
-                    try {
-                        i = Integer.parseInt(value);
-                    } catch (NumberFormatException numberFormatException) {
-                    }
-                    if (i != null && i >= 0 && i < possibleValues.size()) {
-                        value = (String) possibleValues.get(i);
-                        break;
-                    }
-
-                    // check if choice is valid
-                    if (possibleValues.contains(value)) {
-                        break;
-                    }
-
-                    console.println("Invalid selection: " + value);
-                }
-                return value;
-            } finally {
-                console.removeCompleter(completer);
-            }
-        } catch (IOException ex) {
-            throw new PrompterException(ex.getMessage(), ex);
-        }
-    }
-
-    @Override
-    public String prompt(String message, List possibleValues) throws PrompterException {
-        String value = defaultPrompter.prompt(message, possibleValues);
-        if (StringUtils.isBlank(value)) {
-            value = prompt(message);
-        }
-        return value;
-    }
-
-    @Override
-    public String promptForPassword(String message) throws PrompterException {
-        String value = defaultPrompter.promptForPassword(message);
-        if (StringUtils.isBlank(value)) {
-            value = prompt(message);
-        }
-        return value;
-    }
-
-    @Override
-    public void showMessage(String message) throws PrompterException {
-        defaultPrompter.showMessage(message);
-    }
-
-}

commit d3c54bfc99b67a4e4af0a982ca7e2b7c53a89408
Author: Dessie Kirrane <dkirrane@avaya.com>
Date:   Fri Jan 31 12:33:47 2014 +0000

    Sonatype Nexus deployment changes

diff --git a/pom.xml b/pom.xml
index 1a17a07..5a030e4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,149 +1,188 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
     <groupId>com.dkirrane.maven.plugins</groupId>
     <artifactId>ggitflow-maven-plugin</artifactId>
     <version>1.0-SNAPSHOT</version>
     <packaging>maven-plugin</packaging>
 
     <name>ggitflow-maven-plugin</name>
 
     <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
 
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <netbeans.hint.license>apache20</netbeans.hint.license>
     </properties>
 
     <dependencies>
         <dependency>
             <groupId>com.dkirrane.groovy.gitflow</groupId>
             <artifactId>ggitflow</artifactId>
             <version>1.0-SNAPSHOT</version>
         </dependency>
         <dependency>
             <groupId>org.twdata.maven</groupId>
             <artifactId>mojo-executor</artifactId>
             <version>2.2.0</version>
         </dependency>
         <dependency>
             <groupId>jline</groupId>
             <artifactId>jline</artifactId>
             <version>2.11</version>
             <type>jar</type>
         </dependency>
 
         <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
         </dependency>
         <dependency>
             <groupId>org.apache.maven.plugin-tools</groupId>
             <artifactId>maven-plugin-annotations</artifactId>
             <version>3.2</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-utils</artifactId>
             <version>3.0.8</version>
         </dependency>
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>4.11</version>
             <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.codehaus.plexus</groupId>
             <artifactId>plexus-interactivity-api</artifactId>
             <version>1.0-alpha-5</version>
             <type>jar</type>
         </dependency>
     </dependencies>
 
     <build>
         <resources>
             <resource>
                 <directory>src/it</directory>
                 <includes>
                     <include>**/**</include>
                 </includes>
             </resource>
         </resources>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-plugin-plugin</artifactId>
                 <version>3.2</version>
                 <configuration>
                     <goalPrefix>ggitflow</goalPrefix>
                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                 </configuration>
                 <executions>
                     <execution>
                         <id>mojo-descriptor</id>
                         <goals>
                             <goal>descriptor</goal>
                         </goals>
                     </execution>
                     <execution>
                         <id>help-goal</id>
                         <goals>
                             <goal>helpmojo</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
         </plugins>
     </build>
     <profiles>
         <profile>
             <id>run-its</id>
             <build>
 
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-invoker-plugin</artifactId>
                         <version>1.8</version>
                         <configuration>
                             <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
                             <settingsFile>src/it/settings.xml</settingsFile>
                             <debug>true</debug>
                             <showErrors>true</showErrors>
                             <detail>true</detail>
                             <streamLogs>true</streamLogs>
                             <projectsDirectory>src/it/projects</projectsDirectory>
                             <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
                             <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
                             <addTestClassPath>true</addTestClassPath>
                             <preBuildHookScript>setup</preBuildHookScript>
                             <postBuildHookScript>verify</postBuildHookScript>
                             <pomIncludes>
                                 <pomInclude>*/pom.xml</pomInclude>
                             </pomIncludes>
                             <goals>
                                 <goal>clean</goal>
                                 <goal>test-compile</goal>
                             </goals>
                         </configuration>
                         <executions>
                             <execution>
                                 <id>integration-test</id>
                                 <goals>
                                     <goal>install</goal>
                                     <goal>integration-test</goal>
                                     <goal>verify</goal>
                                 </goals>
                             </execution>
                         </executions>
                     </plugin>
                 </plugins>
 
             </build>
         </profile>
     </profiles>
+
+
+
+    <!--
+        Sonatype upload details:
+        http://jedicoder.blogspot.de/2011/11/automated-gradle-project-deployment-to.html
+        https://support.sonatype.com/entries/21580432-how-do-i-configure-my-gradle-build-to-publish-artifacts-to-nexus
+        https://support.sonatype.com/entries/21597257-how-do-i-stage-artifacts-to-a-nexus-staging-profile-from-a-gradle-build
+        https://support.sonatype.com/entries/21596297-how-do-i-configure-my-gradle-build-to-download-artifacts-from-nexus
+
+            - Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
+            - Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
+            - Promote staged artifacts into repository 'Releases'
+            - Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
+            - Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
+    -->
+
+    <distributionManagement>
+        <snapshotRepository>
+            <id>sonatype</id>
+            <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
+        </snapshotRepository>
+        <repository>
+            <id>sonatype</id>
+            <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
+        </repository>
+    </distributionManagement>
+    <repositories>
+        <repository>
+            <id>sonatype</id>
+            <url>https://oss.sonatype.org/content/groups/public</url>
+            <releases>
+                <enabled>true</enabled>
+            </releases>
+            <snapshots>
+                <enabled>true</enabled>
+            </snapshots>
+        </repository>
+    </repositories>
 </project>

commit 736aaaa5803e1a29e2032309fb1e0cb3e7415e6d
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Sun Jan 5 22:30:56 2014 +0000

    sdfds

diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index 221921b..96493fb 100644
--- a/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -42,112 +42,112 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 /**
  *
  */
 public class AbstractGitflowMojo extends AbstractMojo {
 
     @Parameter(property = "msgPrefix", defaultValue = "")
     protected String msgPrefix;
 
     @Parameter(property = "msgSuffix", defaultValue = "")
     protected String msgSuffix;
 
     @Requirement(role = Prompter.class, hint = "prompter", optional = false)
     protected Prompter prompter;
 
 //    /**
 //     * @parameter property="plugin"
 //     * @required
 //     */
 //    @Component
 //    protected PluginDescriptor pluginDescriptor;
 //
     /**
      * The project currently being build.
      *
      * @parameter expression="${project}"
      * @required
      * @readonly
      */
     @Component
     protected MavenProject project;
 
     /**
      * The current Maven session.
      *
      * @parameter expression="${session}"
      * @required
      * @readonly
      */
     @Component
     protected MavenSession session;
 
     /**
      * The Maven BuildPluginManager component.
      *
      * @component
      * @required
      */
     @Component
     protected BuildPluginManager pluginManager;
 
+    private GitflowInit init;
+
     protected final MavenProject getProject() {
         return project;
     }
 
     public void execute() throws MojoExecutionException, MojoFailureException {
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             getLog().info("Gitflow pom  '" + project.getBasedir() + "'");
         }
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
 
-    private GitflowInit init;
-
     public GitflowInit getGitflowInit() {
         if (null == init) {
             init = new GitflowInit();
             init.setRepoDir(getProject().getBasedir());
         }
         return init;
     }
 
     public void setVersion(String version) throws MojoExecutionException, MojoFailureException {
         getLog().info("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
         executeMojo(
                 plugin(
                         groupId("org.codehaus.mojo"),
                         artifactId("versions-maven-plugin"),
                         version("2.1")
                 ),
                 goal("set"),
                 configuration(
                         element(name("generateBackupPoms"), "false"),
                         element(name("newVersion"), version)
                 ),
                 executionEnvironment(
                         project,
                         session,
                         pluginManager
                 )
         );
         getLog().info("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
         } else {
             throw new MojoFailureException("Failed to update poms to version " + version);
         }
     }
 
 }
diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/PrompterImpl.java b/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/PrompterImpl.java
index 3e576d2..d8b86a5 100644
--- a/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/PrompterImpl.java
+++ b/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/PrompterImpl.java
@@ -1,15 +1,15 @@
-/* 
+/*
  * Copyright 2014 Desmond Kirrane.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *
  *      http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
@@ -21,3 +21,2 @@ import jline.console.ConsoleReader;
 import jline.console.completer.StringsCompleter;
-//import org.apache.commons.lang.StringUtils;
 import org.codehaus.plexus.components.interactivity.DefaultPrompter;

commit adfad2baa4666efd32d61dd239508bfd99a2cc58
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Sun Jan 5 21:27:00 2014 +0000

    fixes

diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java b/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
index ab2c619..353cfcf 100644
--- a/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
+++ b/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
@@ -1,15 +1,15 @@
-/* 
+/*
  * Copyright 2014 Desmond Kirrane.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *
  *      http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
@@ -23,3 +23,2 @@ import static com.dkirrane.gitflow.groovy.Constants.*;
 
-import com.dkirrane.gitflow.groovy.GitflowInit;
 import org.codehaus.plexus.util.StringUtils;
@@ -27,104 +26,94 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  *
  */
 public class AbstractFeatureMojo extends AbstractGitflowMojo {
 
     @Parameter(property = "featureName")
     protected String featureName;
 
     @Parameter(defaultValue = "false", property = "enableFeatureVersions")
     protected boolean enableFeatureVersions = false;
 
     @Parameter(defaultValue = "false", property = "pushFeatures")
     protected boolean pushFeatures = false;
 
-    private GitflowInit init;
-
-    public GitflowInit getGitflowInit() {
-        if (null == init) {
-            init = new GitflowInit();
-            init.setRepoDir(getProject().getBasedir());
-        }
-        return init;
-    }
-
     public String getFeatureBranchPrefix() {
         String prefix = getGitflowInit().getFeatureBranchPrefix();
         if (StringUtils.isBlank(prefix)) {
             prefix = DEFAULT_FEATURE_BRN_PREFIX;
         }
         return prefix;
     }
 
     public String getFeatureName(String featureLabel) throws MojoFailureException {
         if (StringUtils.isBlank(featureLabel)) {
             throw new MojoFailureException("Missing argument <featureName>");
         }
 
         featureLabel = featureLabel.replaceAll("\\s+", "");
 //        featureLabel = featureLabel.replaceAll("-+", "_");
         return featureLabel;
     }
 
     public String getFeatureVersion(String version, String featureLabel) throws MojoFailureException {
         getLog().info("Project version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         Character annotationSeparator = artifactVersion.getAnnotationRevisionSeparator();
         String buildSpecifier = artifactVersion.getBuildSpecifier();
         Character buildSpecifierSeparator = artifactVersion.getBuildSpecifierSeparator();
 
         getLog().info("Parsed version = " + artifactVersion.toString());
         if (!StringUtils.isBlank(annotationAsString)) {
             throw new MojoFailureException("Cannot add feature name to version. An annotation " + annotationAsString + " already exists");
         }
 
         final StringBuilder result = new StringBuilder(30);
 
         result.append(primaryNumbersAsString).append(annotationSeparator).append(featureLabel);
 
         if (buildSpecifier != null) {
             if (buildSpecifierSeparator != null) {
                 result.append(buildSpecifierSeparator);
             }
             result.append(buildSpecifier);
         }
 
         return result.toString();
     }
 
     public String getNonFeatureVersion(String version, String featureLabel) {
         getLog().info("Project version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifier = artifactVersion.getBuildSpecifier();
         Character buildSpecifierSeparator = artifactVersion.getBuildSpecifierSeparator();
 
         getLog().info("Parsed version = " + artifactVersion.toString());
         if (StringUtils.isBlank(annotationAsString)) {
             getLog().warn("Cannot remove feature name from pom version. The version annotation does not exists");
             return version;
         }
 
         if (featureLabel.equals(annotationAsString)) {
             final StringBuilder result = new StringBuilder(30);
             result.append(primaryNumbersAsString);
 
             if (buildSpecifier != null) {
                 if (buildSpecifierSeparator != null) {
                     result.append(buildSpecifierSeparator);
                 }
                 result.append(buildSpecifier);
             }
 
             return result.toString();
         } else {
             getLog().warn("Cannot remove feature name from pom version. The version annotation [" + annotationAsString + "] does not match the feature label [" + featureLabel + "]");
             return version;
         }
     }
 }
diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
index b4a6860..221921b 100644
--- a/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
+++ b/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -1,15 +1,15 @@
-/* 
+/*
  * Copyright 2014 Desmond Kirrane.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *
  *      http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
@@ -17,2 +17,3 @@ package com.dkirrane.maven.plugins.ggitflow;
 
+import com.dkirrane.gitflow.groovy.GitflowInit;
 import com.dkirrane.maven.plugins.ggitflow.prompt.Prompter;
@@ -29,72 +30,124 @@ import org.codehaus.plexus.component.annotations.Requirement;
 import org.codehaus.plexus.util.StringUtils;
+import static org.twdata.maven.mojoexecutor.MojoExecutor.artifactId;
+import static org.twdata.maven.mojoexecutor.MojoExecutor.configuration;
+import static org.twdata.maven.mojoexecutor.MojoExecutor.element;
+import static org.twdata.maven.mojoexecutor.MojoExecutor.executeMojo;
+import static org.twdata.maven.mojoexecutor.MojoExecutor.executionEnvironment;
+import static org.twdata.maven.mojoexecutor.MojoExecutor.goal;
+import static org.twdata.maven.mojoexecutor.MojoExecutor.groupId;
+import static org.twdata.maven.mojoexecutor.MojoExecutor.name;
+import static org.twdata.maven.mojoexecutor.MojoExecutor.plugin;
+import static org.twdata.maven.mojoexecutor.MojoExecutor.version;
 
 /**
  *
  */
 public class AbstractGitflowMojo extends AbstractMojo {
 
     @Parameter(property = "msgPrefix", defaultValue = "")
     protected String msgPrefix;
 
     @Parameter(property = "msgSuffix", defaultValue = "")
     protected String msgSuffix;
 
     @Requirement(role = Prompter.class, hint = "prompter", optional = false)
     protected Prompter prompter;
 
 //    /**
 //     * @parameter property="plugin"
 //     * @required
 //     */
 //    @Component
 //    protected PluginDescriptor pluginDescriptor;
 //
     /**
      * The project currently being build.
      *
      * @parameter expression="${project}"
      * @required
      * @readonly
      */
     @Component
     protected MavenProject project;
 
     /**
      * The current Maven session.
      *
      * @parameter expression="${session}"
      * @required
      * @readonly
      */
     @Component
     protected MavenSession session;
 
     /**
      * The Maven BuildPluginManager component.
      *
      * @component
      * @required
      */
     @Component
     protected BuildPluginManager pluginManager;
 
     protected final MavenProject getProject() {
         return project;
     }
 
     public void execute() throws MojoExecutionException, MojoFailureException {
         if (null == project) {
             throw new NullPointerException("MavenProject is null");
         } else {
             getLog().info("Gitflow pom  '" + project.getBasedir() + "'");
         }
     }
 
     public String getMsgPrefix() {
         return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
     }
 
     public String getMsgSuffix() {
         return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
     }
+
+    private GitflowInit init;
+
+    public GitflowInit getGitflowInit() {
+        if (null == init) {
+            init = new GitflowInit();
+            init.setRepoDir(getProject().getBasedir());
+        }
+        return init;
+    }
+
+    public void setVersion(String version) throws MojoExecutionException, MojoFailureException {
+        getLog().info("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
+        executeMojo(
+                plugin(
+                        groupId("org.codehaus.mojo"),
+                        artifactId("versions-maven-plugin"),
+                        version("2.1")
+                ),
+                goal("set"),
+                configuration(
+                        element(name("generateBackupPoms"), "false"),
+                        element(name("newVersion"), version)
+                ),
+                executionEnvironment(
+                        project,
+                        session,
+                        pluginManager
+                )
+        );
+        getLog().info("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + version + "'");
+
+        if (!getGitflowInit().gitIsCleanWorkingTree()) {
+            String msg = getMsgPrefix() + "Updating poms to version " + version + "" + getMsgSuffix();
+            getGitflowInit().executeLocal("git add -A .");
+            String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
+            getGitflowInit().executeLocal(cmtPom);
+        } else {
+            throw new MojoFailureException("Failed to update poms to version " + version);
+        }
+    }
+
 }
diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java b/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java
index 3b2fc06..703e738 100644
--- a/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java
+++ b/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java
@@ -23,3 +23,2 @@ import static com.dkirrane.gitflow.groovy.Constants.*;
 
-import com.dkirrane.gitflow.groovy.GitflowInit;
 import org.codehaus.plexus.util.StringUtils;
@@ -27,48 +26,48 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  *
  */
 public class AbstractReleaseMojo extends AbstractGitflowMojo {
 
     @Parameter(property = "releaseName")
     protected String releaseName;
 
     @Parameter(defaultValue = "false", property = "pushReleases")
     private boolean pushReleases = false;
 
-    private GitflowInit init;
-
-    public GitflowInit getGitflowInit() {
-        if (null == init) {
-            init = new GitflowInit();
-            init.setRepoDir(getProject().getBasedir());
-        }
-        return init;
-    }
-
     public String getReleaseBranchPrefix() {
         String prefix = getGitflowInit().getReleaseBranchPrefix();
         if (StringUtils.isBlank(prefix)) {
             prefix = DEFAULT_RELEASE_BRN_PREFIX;
         }
         return prefix;
     }
 
     public String getReleaseVersion(String version) throws MojoFailureException {
         getLog().info("Project version '" + version + "'");
 
         GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
 
         String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
         String annotationAsString = artifactVersion.getAnnotationAsString();
         String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
 
         final StringBuilder result = new StringBuilder(30);
         result.append(primaryNumbersAsString).append(annotationAsString);
 
         if (!StringUtils.isBlank(buildSpecifierAsString)) {
             getLog().warn("Removing build specifier " + buildSpecifierAsString + " from version " + version);
         }
 
         return result.toString();
     }
+
+    public String getNextDevelopmentVersion(String version) throws MojoFailureException {
+        getLog().info("Project version '" + version + "'");
+
+        GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
+        GenericArtifactVersion nextDevelopVersion = artifactVersion.upgradeLeastSignificantNumber();
+
+        getLog().info("Project version '" + nextDevelopVersion + "'");
+        return nextDevelopVersion.toString();
+    }
 }
diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java b/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
index bb22b07..a543ebc 100644
--- a/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
+++ b/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
@@ -1,15 +1,15 @@
-/* 
+/*
  * Copyright 2014 Desmond Kirrane.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *
  *      http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
@@ -31,84 +31,57 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.*;
 /**
  *
  */
 @Mojo(name = "feature-finish", aggregator = true)
 public class FeatureFinishMojo extends AbstractFeatureMojo {
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().info("Finishing feature '" + featureName + "'");
 
         if (StringUtils.isBlank(featureName)) {
             String currentBranch = getGitflowInit().gitCurrentBranch();
             if (currentBranch.startsWith(getFeatureBranchPrefix())) {
                 featureName = currentBranch;
             }
         } else {
             featureName = getFeatureName(featureName);
         }
 
         List<String> featureBranches = getGitflowInit().gitLocalFeatureBranches();
 
         featureName = promptForExistingFeatureName(featureBranches, featureName);
 
         String version = project.getVersion();
         String nonFeatureVersion = getNonFeatureVersion(version, featureName);
 
-        getLog().info("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + nonFeatureVersion + "'");
-        executeMojo(
-                plugin(
-                        groupId("org.codehaus.mojo"),
-                        artifactId("versions-maven-plugin"),
-                        version("2.1")
-                ),
-                goal("set"),
-                configuration(
-                        element(name("generateBackupPoms"), "false"),
-                        element(name("newVersion"), nonFeatureVersion)
-                ),
-                executionEnvironment(
-                        project,
-                        session,
-                        pluginManager
-                )
-        );
-        getLog().info("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + featureName + "'");
-
-        if (!getGitflowInit().gitIsCleanWorkingTree()) {
-            String msg = getMsgPrefix() + "Updating poms for " + featureName + " branch " + nonFeatureVersion + " version " + getMsgSuffix();
-            getGitflowInit().executeLocal("git add -A .");
-            String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
-            getGitflowInit().executeLocal(cmtPom);
-        } else {
-            getLog().error("Failed to update poms to the develop version " + nonFeatureVersion);
-        }
+        setVersion(nonFeatureVersion);
 
         GitflowFeature gitflowFeature = new GitflowFeature();
         gitflowFeature.setInit(getGitflowInit());
         gitflowFeature.setMsgPrefix(getMsgPrefix());
         gitflowFeature.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowFeature.finish(featureName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
     }
 
     private String promptForExistingFeatureName(List<String> featureBranches, String defaultFeatureName) throws MojoFailureException {
         String message = "Please select a feature branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, featureBranches, defaultFeatureName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading feature name from command line " + e.getMessage());
         }
 
         return name;
     }
 
 }
diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java b/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
index 92c17da..d7aab89 100644
--- a/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
+++ b/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
@@ -30,83 +30,56 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  *
  */
 @Mojo(name = "feature-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class FeatureStartMojo extends AbstractFeatureMojo {
 
     @Parameter(property = "startCommit", defaultValue = "")
     private String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         if (StringUtils.isBlank(featureName)) {
             String prefix = getFeatureBranchPrefix();
             System.out.println("prefix = " + prefix);
             System.out.println("prompter = " + prompter);
             String message = "What is the feature branch name? " + prefix;
             System.out.println("message = " + message);
             try {
                 featureName = prompter.prompt(message);
                 if (StringUtils.isBlank(featureName)) {
                     throw new MojoFailureException("Parameter <featureName> cannot be null or empty.");
                 }
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading feature name from command line " + ex.getMessage(), ex);
             }
         }
         featureName = getFeatureName(featureName);
 
         getLog().info("Starting feature '" + featureName + "'");
         getLog().info("msgPrefix '" + getMsgPrefix() + "'");
         getLog().info("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowFeature gitflowFeature = new GitflowFeature();
         gitflowFeature.setInit(getGitflowInit());
         gitflowFeature.setMsgPrefix(getMsgPrefix());
         gitflowFeature.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowFeature.start(featureName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         String version = project.getVersion();
 
         String featureVersion = getFeatureVersion(version, featureName);
 
-        getLog().info("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + featureVersion + "'");
-        executeMojo(
-                plugin(
-                        groupId("org.codehaus.mojo"),
-                        artifactId("versions-maven-plugin"),
-                        version("2.1")
-                ),
-                goal("set"),
-                configuration(
-                        element(name("generateBackupPoms"), "false"),
-                        element(name("newVersion"), featureVersion)
-                ),
-                executionEnvironment(
-                        project,
-                        session,
-                        pluginManager
-                )
-        );
-        getLog().info("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + featureName + "'");
-
-        if (!getGitflowInit().gitIsCleanWorkingTree()) {
-            String msg = getMsgPrefix() + "Updating poms for " + featureName + " branch " + featureVersion + " version " + getMsgSuffix();
-            getGitflowInit().executeLocal("git add -A .");
-            String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
-            getGitflowInit().executeLocal(cmtPom);
-        } else {
-            getLog().error("Failed to update poms to the feature version " + featureVersion);
-        }
+        setVersion(featureVersion);
     }
 
     public String getFeatureName() {
         return featureName;
     }
 }
diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
index 508e328..6b48e21 100644
--- a/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
+++ b/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -18,2 +18,3 @@ package com.dkirrane.maven.plugins.ggitflow;
 import com.dkirrane.gitflow.groovy.GitflowFeature;
+import com.dkirrane.gitflow.groovy.GitflowRelease;
 import com.dkirrane.gitflow.groovy.ex.GitflowException;
@@ -31,95 +32,78 @@ import static org.twdata.maven.mojoexecutor.MojoExecutor.*;
 /**
  *
  */
 @Mojo(name = "release-finish", aggregator = true)
 public class ReleaseFinishMojo extends AbstractReleaseMojo {
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
         getLog().info("Finishing release '" + releaseName + "'");
 
+        // checkout develop branch to get it's version
+        String developBranch = (String) getGitflowInit().getDevelopBrnName();
+        getGitflowInit().executeLocal("git checkout " + developBranch);
+        String developVersion = project.getVersion();
+
         List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
 
         if (releaseBranches.isEmpty()) {
             throw new MojoFailureException("Could not find release branch!");
         }
 
         if (releaseBranches.size() == 1) {
             releaseName = releaseBranches.get(1);
         } else {
             releaseName = promptForExistingReleaseName(releaseBranches, releaseName);
         }
 
-        //make sure we're on the release branch
+        // 1. make sure we're on the release branch
         if (!getGitflowInit().gitCurrentBranch().equals(releaseName)) {
-            getGitflowInit().executeLocal("git checkout -b " + releaseName);
+            getGitflowInit().executeLocal("git checkout " + releaseName);
         }
 
-        getLog().info("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + releaseName + "'");
-        executeMojo(
-                plugin(
-                        groupId("org.codehaus.mojo"),
-                        artifactId("versions-maven-plugin"),
-                        version("2.1")
-                ),
-                goal("set"),
-                configuration(
-                        element(name("generateBackupPoms"), "false"),
-                        element(name("newVersion"), releaseName)
-                ),
-                executionEnvironment(
-                        project,
-                        session,
-                        pluginManager
-                )
-        );
-        getLog().info("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + releaseName + "'");
-
-        if (!getGitflowInit().gitIsCleanWorkingTree()) {
-            String msg = getMsgPrefix() + "Updating poms for " + releaseName + " branch" + getMsgSuffix();
-            getGitflowInit().executeLocal("git add -A .");
-            String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
-            getGitflowInit().executeLocal(cmtPom);
-        } else {
-            getLog().error("Failed to update poms to the release version " + releaseName);
-        }
+        String releaseVersion = getReleaseVersion(project.getVersion());
+
+        // @todo we should run clean install first
+        // 2. update poms to release version
+        setVersion(releaseVersion);
 
-        GitflowFeature gitflowFeature = new GitflowFeature();
-        gitflowFeature.setInit(getGitflowInit());
-        gitflowFeature.setMsgPrefix(getMsgPrefix());
-        gitflowFeature.setMsgSuffix(getMsgSuffix());
+        // 4. finish feature
+        GitflowRelease gitflowRelease = new GitflowRelease();
+        gitflowRelease.setInit(getGitflowInit());
+        gitflowRelease.setMsgPrefix(getMsgPrefix());
+        gitflowRelease.setMsgSuffix(getMsgSuffix());
 
         try {
-            gitflowFeature.finish(releaseName);
+            gitflowRelease.finish(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         } catch (GitflowMergeConflictException gmce) {
             throw new MojoFailureException(gmce.getMessage());
         }
 
         //make sure we're on the develop branch
         String currentBranch = getGitflowInit().gitCurrentBranch();
         String developBrnName = (String) getGitflowInit().getDevelopBrnName();
         if (!currentBranch.equals(developBrnName)) {
-            getLog().error("Current branch should be " + developBrnName + " but was " + currentBranch);
-            getGitflowInit().executeLocal("git checkout -b " + developBrnName);
+            throw new MojoFailureException("Current branch should be " + developBrnName + " but was " + currentBranch);
         }
 
-        // @todo we should merge ours the release branch into develop
+        // @todo checkout and deploy the release tag
+        getGitflowInit().executeLocal("git checkout " + releaseVersion);
     }
 
     private String promptForExistingReleaseName(List<String> releaseBranches, String defaultReleaseName) throws MojoFailureException {
         String message = "Please select a release branch to finish?";
 
         String name = "";
         try {
             name = prompter.prompt(message, releaseBranches, defaultReleaseName);
         } catch (PrompterException e) {
             throw new MojoFailureException("Error reading release name from command line " + e.getMessage());
         }
 
         return name;
     }
 
 }
diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java b/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
index 2648aa7..4101985 100644
--- a/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
+++ b/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
@@ -29,64 +29,76 @@ import org.jfrog.hudson.util.GenericArtifactVersion;
 /**
  *
  */
 @Mojo(name = "release-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class ReleaseStartMojo extends AbstractReleaseMojo {
 
     @Parameter(property = "startCommit", defaultValue = "")
     private String startCommit;
 
     @Parameter(defaultValue = "false", property = "allowSnapshots")
     private boolean allowSnapshots = false;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         String releaseVersion = getReleaseVersion(project.getVersion());
+        String nextDevelopmentVersion = getNextDevelopmentVersion(project.getVersion());
+        String prefix = getReleaseBranchPrefix();
 
-        // first we should create release branch
+        // 1. first we should create release branch
         if (StringUtils.isBlank(releaseName)) {
-            String prefix = getReleaseBranchPrefix();
             System.out.println("prefix = " + prefix);
             System.out.println("prompter = " + prompter);
             String message = "What is the release branch name? " + prefix;
             System.out.println("message = " + message);
             try {
                 releaseName = prompter.prompt(message, releaseVersion);
                 if (StringUtils.isBlank(releaseName)) {
                     throw new MojoFailureException("Parameter <releaseName> cannot be null or empty.");
                 }
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading release name from command line " + ex.getMessage(), ex);
             }
         }
 
         try {
             new GenericArtifactVersion(releaseName);
         } catch (IllegalArgumentException e) {
             throw new MojoExecutionException("Provided releaseName " + releaseName + " is not a valid Maven version.");
         }
 
         getLog().info("Starting release '" + releaseName + "'");
         getLog().info("msgPrefix '" + getMsgPrefix() + "'");
         getLog().info("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowRelease gitflowRelease = new GitflowRelease();
         gitflowRelease.setInit(getGitflowInit());
         gitflowRelease.setMsgPrefix(getMsgPrefix());
         gitflowRelease.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowRelease.start(releaseName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
-        // @todo second we should update develop to new version
-        // @todo then we should merge ours release branch into develop
+        // current branch should be the release branch
+        String releaseBranch = getGitflowInit().gitCurrentBranch();
+        if (!releaseBranch.startsWith(prefix)) {
+            throw new MojoFailureException("Failed to create release version.");
+        }
+
+        // checkout develop branch and update it's version
+        String developBranch = (String) getGitflowInit().getDevelopBrnName();
+        getGitflowInit().executeLocal("git checkout " + developBranch);
+        setVersion(nextDevelopmentVersion);
+
+        // 3. then checkout release branch again
+        getGitflowInit().executeLocal("git checkout " + releaseBranch);
     }
 
     public String getReleaseName() {
         return releaseName;
     }
 }

commit d1a2b769bbc26fdd92fd97fdfcd46e0f49919dd3
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Sun Jan 5 19:59:30 2014 +0000

    release

diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java b/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java
new file mode 100644
index 0000000..3b2fc06
--- /dev/null
+++ b/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractReleaseMojo.java
@@ -0,0 +1,74 @@
+/*
+ * Copyright 2014 Desmond Kirrane.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.dkirrane.maven.plugins.ggitflow;
+
+import org.apache.maven.plugin.MojoFailureException;
+import org.apache.maven.plugins.annotations.Parameter;
+import org.jfrog.hudson.util.GenericArtifactVersion;
+
+import static com.dkirrane.gitflow.groovy.Constants.*;
+
+import com.dkirrane.gitflow.groovy.GitflowInit;
+import org.codehaus.plexus.util.StringUtils;
+
+/**
+ *
+ */
+public class AbstractReleaseMojo extends AbstractGitflowMojo {
+
+    @Parameter(property = "releaseName")
+    protected String releaseName;
+
+    @Parameter(defaultValue = "false", property = "pushReleases")
+    private boolean pushReleases = false;
+
+    private GitflowInit init;
+
+    public GitflowInit getGitflowInit() {
+        if (null == init) {
+            init = new GitflowInit();
+            init.setRepoDir(getProject().getBasedir());
+        }
+        return init;
+    }
+
+    public String getReleaseBranchPrefix() {
+        String prefix = getGitflowInit().getReleaseBranchPrefix();
+        if (StringUtils.isBlank(prefix)) {
+            prefix = DEFAULT_RELEASE_BRN_PREFIX;
+        }
+        return prefix;
+    }
+
+    public String getReleaseVersion(String version) throws MojoFailureException {
+        getLog().info("Project version '" + version + "'");
+
+        GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
+
+        String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
+        String annotationAsString = artifactVersion.getAnnotationAsString();
+        String buildSpecifierAsString = artifactVersion.getBuildSpecifierAsString();
+
+        final StringBuilder result = new StringBuilder(30);
+        result.append(primaryNumbersAsString).append(annotationAsString);
+
+        if (!StringUtils.isBlank(buildSpecifierAsString)) {
+            getLog().warn("Removing build specifier " + buildSpecifierAsString + " from version " + version);
+        }
+
+        return result.toString();
+    }
+}
diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java b/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
index 7bb2b3b..92c17da 100644
--- a/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
+++ b/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
@@ -30,83 +30,83 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  *
  */
 @Mojo(name = "feature-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
 public class FeatureStartMojo extends AbstractFeatureMojo {
 
     @Parameter(property = "startCommit", defaultValue = "")
     private String startCommit;
 
     @Override
     public void execute() throws MojoExecutionException, MojoFailureException {
         super.execute();
 
         if (StringUtils.isBlank(featureName)) {
-            String prefix = (null != getFeatureBranchPrefix()) ? getFeatureBranchPrefix() : DEFAULT_FEATURE_BRN_PREFIX;
+            String prefix = getFeatureBranchPrefix();
             System.out.println("prefix = " + prefix);
             System.out.println("prompter = " + prompter);
             String message = "What is the feature branch name? " + prefix;
             System.out.println("message = " + message);
             try {
                 featureName = prompter.prompt(message);
                 if (StringUtils.isBlank(featureName)) {
-                    throw new MojoFailureException("Parameter feature name cannot be null or empty.");
+                    throw new MojoFailureException("Parameter <featureName> cannot be null or empty.");
                 }
             } catch (PrompterException ex) {
                 throw new MojoExecutionException("Error reading feature name from command line " + ex.getMessage(), ex);
             }
         }
         featureName = getFeatureName(featureName);
 
         getLog().info("Starting feature '" + featureName + "'");
         getLog().info("msgPrefix '" + getMsgPrefix() + "'");
         getLog().info("msgSuffix '" + getMsgSuffix() + "'");
 
         GitflowFeature gitflowFeature = new GitflowFeature();
         gitflowFeature.setInit(getGitflowInit());
         gitflowFeature.setMsgPrefix(getMsgPrefix());
         gitflowFeature.setMsgSuffix(getMsgSuffix());
 
         try {
             gitflowFeature.start(featureName);
         } catch (GitflowException ge) {
             throw new MojoFailureException(ge.getMessage());
         }
 
         String version = project.getVersion();
 
         String featureVersion = getFeatureVersion(version, featureName);
 
         getLog().info("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + featureVersion + "'");
         executeMojo(
                 plugin(
                         groupId("org.codehaus.mojo"),
                         artifactId("versions-maven-plugin"),
                         version("2.1")
                 ),
                 goal("set"),
                 configuration(
                         element(name("generateBackupPoms"), "false"),
                         element(name("newVersion"), featureVersion)
                 ),
                 executionEnvironment(
                         project,
                         session,
                         pluginManager
                 )
         );
         getLog().info("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + featureName + "'");
 
         if (!getGitflowInit().gitIsCleanWorkingTree()) {
             String msg = getMsgPrefix() + "Updating poms for " + featureName + " branch " + featureVersion + " version " + getMsgSuffix();
             getGitflowInit().executeLocal("git add -A .");
             String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
             getGitflowInit().executeLocal(cmtPom);
         } else {
             getLog().error("Failed to update poms to the feature version " + featureVersion);
         }
     }
 
     public String getFeatureName() {
         return featureName;
     }
 }
diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java b/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
new file mode 100644
index 0000000..508e328
--- /dev/null
+++ b/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseFinishMojo.java
@@ -0,0 +1,125 @@
+/*
+ * Copyright 2014 Desmond Kirrane.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.dkirrane.maven.plugins.ggitflow;
+
+import com.dkirrane.gitflow.groovy.GitflowFeature;
+import com.dkirrane.gitflow.groovy.ex.GitflowException;
+import com.dkirrane.gitflow.groovy.ex.GitflowMergeConflictException;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.plugin.MojoFailureException;
+import org.apache.maven.plugins.annotations.Mojo;
+
+import java.util.List;
+import org.codehaus.plexus.components.interactivity.PrompterException;
+import org.codehaus.plexus.util.StringUtils;
+
+import static org.twdata.maven.mojoexecutor.MojoExecutor.*;
+
+/**
+ *
+ */
+@Mojo(name = "release-finish", aggregator = true)
+public class ReleaseFinishMojo extends AbstractReleaseMojo {
+
+    @Override
+    public void execute() throws MojoExecutionException, MojoFailureException {
+        super.execute();
+        getLog().info("Finishing release '" + releaseName + "'");
+
+        List<String> releaseBranches = getGitflowInit().gitLocalReleaseBranches();
+
+        if (releaseBranches.isEmpty()) {
+            throw new MojoFailureException("Could not find release branch!");
+        }
+
+        if (releaseBranches.size() == 1) {
+            releaseName = releaseBranches.get(1);
+        } else {
+            releaseName = promptForExistingReleaseName(releaseBranches, releaseName);
+        }
+
+        //make sure we're on the release branch
+        if (!getGitflowInit().gitCurrentBranch().equals(releaseName)) {
+            getGitflowInit().executeLocal("git checkout -b " + releaseName);
+        }
+
+        getLog().info("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + releaseName + "'");
+        executeMojo(
+                plugin(
+                        groupId("org.codehaus.mojo"),
+                        artifactId("versions-maven-plugin"),
+                        version("2.1")
+                ),
+                goal("set"),
+                configuration(
+                        element(name("generateBackupPoms"), "false"),
+                        element(name("newVersion"), releaseName)
+                ),
+                executionEnvironment(
+                        project,
+                        session,
+                        pluginManager
+                )
+        );
+        getLog().info("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + releaseName + "'");
+
+        if (!getGitflowInit().gitIsCleanWorkingTree()) {
+            String msg = getMsgPrefix() + "Updating poms for " + releaseName + " branch" + getMsgSuffix();
+            getGitflowInit().executeLocal("git add -A .");
+            String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
+            getGitflowInit().executeLocal(cmtPom);
+        } else {
+            getLog().error("Failed to update poms to the release version " + releaseName);
+        }
+
+        GitflowFeature gitflowFeature = new GitflowFeature();
+        gitflowFeature.setInit(getGitflowInit());
+        gitflowFeature.setMsgPrefix(getMsgPrefix());
+        gitflowFeature.setMsgSuffix(getMsgSuffix());
+
+        try {
+            gitflowFeature.finish(releaseName);
+        } catch (GitflowException ge) {
+            throw new MojoFailureException(ge.getMessage());
+        } catch (GitflowMergeConflictException gmce) {
+            throw new MojoFailureException(gmce.getMessage());
+        }
+
+        //make sure we're on the develop branch
+        String currentBranch = getGitflowInit().gitCurrentBranch();
+        String developBrnName = (String) getGitflowInit().getDevelopBrnName();
+        if (!currentBranch.equals(developBrnName)) {
+            getLog().error("Current branch should be " + developBrnName + " but was " + currentBranch);
+            getGitflowInit().executeLocal("git checkout -b " + developBrnName);
+        }
+
+        // @todo we should merge ours the release branch into develop
+    }
+
+    private String promptForExistingReleaseName(List<String> releaseBranches, String defaultReleaseName) throws MojoFailureException {
+        String message = "Please select a release branch to finish?";
+
+        String name = "";
+        try {
+            name = prompter.prompt(message, releaseBranches, defaultReleaseName);
+        } catch (PrompterException e) {
+            throw new MojoFailureException("Error reading release name from command line " + e.getMessage());
+        }
+
+        return name;
+    }
+
+}
diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java b/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
new file mode 100644
index 0000000..2648aa7
--- /dev/null
+++ b/src/main/java/com/dkirrane/maven/plugins/ggitflow/ReleaseStartMojo.java
@@ -0,0 +1,92 @@
+/*
+ * Copyright 2014 Desmond Kirrane.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.dkirrane.maven.plugins.ggitflow;
+
+import com.dkirrane.gitflow.groovy.ex.GitflowException;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.plugin.MojoFailureException;
+import org.apache.maven.plugins.annotations.Mojo;
+import org.apache.maven.plugins.annotations.Parameter;
+import com.dkirrane.gitflow.groovy.GitflowRelease;
+import org.apache.maven.plugins.annotations.LifecyclePhase;
+import org.codehaus.plexus.components.interactivity.PrompterException;
+import org.codehaus.plexus.util.StringUtils;
+import org.jfrog.hudson.util.GenericArtifactVersion;
+
+/**
+ *
+ */
+@Mojo(name = "release-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
+public class ReleaseStartMojo extends AbstractReleaseMojo {
+
+    @Parameter(property = "startCommit", defaultValue = "")
+    private String startCommit;
+
+    @Parameter(defaultValue = "false", property = "allowSnapshots")
+    private boolean allowSnapshots = false;
+
+    @Override
+    public void execute() throws MojoExecutionException, MojoFailureException {
+        super.execute();
+
+        String releaseVersion = getReleaseVersion(project.getVersion());
+
+        // first we should create release branch
+        if (StringUtils.isBlank(releaseName)) {
+            String prefix = getReleaseBranchPrefix();
+            System.out.println("prefix = " + prefix);
+            System.out.println("prompter = " + prompter);
+            String message = "What is the release branch name? " + prefix;
+            System.out.println("message = " + message);
+            try {
+                releaseName = prompter.prompt(message, releaseVersion);
+                if (StringUtils.isBlank(releaseName)) {
+                    throw new MojoFailureException("Parameter <releaseName> cannot be null or empty.");
+                }
+            } catch (PrompterException ex) {
+                throw new MojoExecutionException("Error reading release name from command line " + ex.getMessage(), ex);
+            }
+        }
+
+        try {
+            new GenericArtifactVersion(releaseName);
+        } catch (IllegalArgumentException e) {
+            throw new MojoExecutionException("Provided releaseName " + releaseName + " is not a valid Maven version.");
+        }
+
+        getLog().info("Starting release '" + releaseName + "'");
+        getLog().info("msgPrefix '" + getMsgPrefix() + "'");
+        getLog().info("msgSuffix '" + getMsgSuffix() + "'");
+
+        GitflowRelease gitflowRelease = new GitflowRelease();
+        gitflowRelease.setInit(getGitflowInit());
+        gitflowRelease.setMsgPrefix(getMsgPrefix());
+        gitflowRelease.setMsgSuffix(getMsgSuffix());
+
+        try {
+            gitflowRelease.start(releaseName);
+        } catch (GitflowException ge) {
+            throw new MojoFailureException(ge.getMessage());
+        }
+
+        // @todo second we should update develop to new version
+        // @todo then we should merge ours release branch into develop
+    }
+
+    public String getReleaseName() {
+        return releaseName;
+    }
+}
diff --git a/src/main/java/org/jfrog/hudson/util/GenericArtifactVersion.java b/src/main/java/org/jfrog/hudson/util/GenericArtifactVersion.java
index d32d6cd..6bbb3f4 100644
--- a/src/main/java/org/jfrog/hudson/util/GenericArtifactVersion.java
+++ b/src/main/java/org/jfrog/hudson/util/GenericArtifactVersion.java
@@ -7,653 +7,676 @@ import org.codehaus.plexus.util.StringUtils;
 /**
  * Represents a generic standard artifact version. This class can be used either
  * for parsing a version string and/or for building a version string
  * programatically. Consistency is guaranteed at all times so that no invalid
  * version is formed. Also, new
  * {@link GenericArtifactVersion}(versionString).toString().equals(versionString)
  * is guaranteed to be always true if 'versionString' is in the right format.
  *
  * A standard artifact version is a string in the following format:
  *
  * <pre>
  * <primary_numbers>[[-_]<annotation>][[-_]<annotation_revision>][[-_]<build_specifier>]
  * </pre>
  * <ul>
  * where:
  * <li>primary_numbers: <p1>[.<p2>[...<pn>]...] are non-negative integers
  * separated by '.'. Examples: 1; 1.2; 1.2.3; etc.</li>
  * <li>annotation: Sequence of letters that usually describe the release type.
  * Examples: alpha, beta, RC, etc.</li>
  * <li>annotation_revision: A non-negative integer associated to the
  * annotation.</li>
  * <li>build_specifier: SNAPSHOT|YYYYMMdd.hhmmss-n[n[...[n]...]] Examples:
  * SNAPSHOT, 20120110.152615-1, 20120110.152615-543</li>
  * </ul>
  *
  * Note that we used generic terms as components. Even though "major", "minor",
  * and "incremental" are terms used for the first three primary components, we
  * want to abstract that to be as generic as possible. Other implementations can
  * reuse this class and rename components as desired.
  *
  * Notes: The version format is based on Maven's
  * org.apache.maven.shared.release.versions.DefaultVersionInfo. As of today,
  * that class can be found in the following artifact:
  * org.apache.maven.release:maven-release-manager:2.2
  * <p>
  * The reason why I decided to reimplement this is becase of the unwanted
  * dependencies added with that artifact that clash with some Jenkins'
  * dependencies. Besides that, the implementation is not very flexible, it does
  * not provide means to retrieve the component separators and it cannot be
  * extended either. Moreover, if we depended on that class, our code can easily
  * break if we upgrade that artifact and they update their version scheme. What
  * we do when releasing is tied to our interpretation of version schemes.
  *
  *
  * @author Nicolas Grobisa
  *
  */
 public class GenericArtifactVersion {
 
     private static final String SNAPSHOT_QUALIFIER = "SNAPSHOT";
 
     private static final Character DEFAULT_VERSION_COMPONENT_SEPARATOR = '-';
 
     private static final Integer DEFAULT_BASE_ANNOTATION_REVISION = 1;
 
     private static final String VERSION_COMPONENT_SEPARATOR_REGEX = "([-_]?)";
 
     private static final Pattern VERSION_COMPONENT_SEPARATOR_PATTERN = Pattern.compile(VERSION_COMPONENT_SEPARATOR_REGEX);
 
     private static final String VERSION_PRIMARY_NUMBERS_REGEX = "(\\d(\\.\\d)*)";
 
     private static final String VERSION_ANNOTATION_REGEX = "([a-zA-Z]+)";
 
     private static final Pattern VERSION_ANNOTATION_PATTERN = Pattern.compile(VERSION_ANNOTATION_REGEX);
 
     private static final String VERSION_ANNOTATIONREV_REGEX = "(\\d+)";
 
     private static final String VERSION_BUILD_SPECIFIER_REGEX = "((?i)" + SNAPSHOT_QUALIFIER + "|\\d{8}\\.\\d{6}\\-(\\d+))";
 
     private static final Pattern VERSION_BUILD_SPECIFIER_PATTERN = Pattern.compile(VERSION_BUILD_SPECIFIER_REGEX);
 
     private static final String VERSION_REGEX = "^" + VERSION_PRIMARY_NUMBERS_REGEX + "(" + VERSION_COMPONENT_SEPARATOR_REGEX
             + VERSION_ANNOTATION_REGEX + ")?(" + VERSION_COMPONENT_SEPARATOR_REGEX + VERSION_ANNOTATIONREV_REGEX + ")?("
             + VERSION_COMPONENT_SEPARATOR_REGEX + VERSION_BUILD_SPECIFIER_REGEX + ")?$";
 
     private static final int VERSION_REGEXGROUP_PRIMARYNUMS = 1;
 
     private static final int VERSION_REGEXGROUP_ANNOTATION_SEPARATOR = 4;
 
     private static final int VERSION_REGEXGROUP_ANNOTATION = 5;
 
     private static final int VERSION_REGEXGROUP_ANNOTATIONREV_SEPARATOR = 7;
 
     private static final int VERSION_REGEXGROUP_ANNOTATIONREV = 8;
 
     private static final int VERSION_REGEXGROUP_BUILDSPEC_SEPARATOR = 10;
 
     private static final int VERSION_REGEXGROUP_BUILDSPEC = 11;
 
     private static final Pattern VERSION_PATTERN = Pattern.compile(VERSION_REGEX);
 
     private final Integer[] primaryNumbers;
 
     private Character annotationSeparator;
 
     private String annotation;
 
     private Character annotationRevisionSeparator;
 
     private Integer annotationRevision;
 
     private Character buildSpecifierSeparator;
 
     private String buildSpecifier;
 
     public GenericArtifactVersion(final String versionString) {
         final Matcher matcher = VERSION_PATTERN.matcher(versionString);
 
         if (!matcher.matches()) {
             throw new IllegalArgumentException("Provided version string is not a valid version.");
         }
 
         Integer annotationRevision = parseAnnotationRevision(matcher.group(VERSION_REGEXGROUP_ANNOTATIONREV));
         Character annotationSeparator = parseSeparator(matcher.group(VERSION_REGEXGROUP_ANNOTATION_SEPARATOR));
         String annotation = nullIfBlank(matcher.group(VERSION_REGEXGROUP_ANNOTATION));
         Character buildSpecifierSeparator = parseSeparator(matcher.group(VERSION_REGEXGROUP_BUILDSPEC_SEPARATOR));
         String buildSpecifier = nullIfBlank(matcher.group(VERSION_REGEXGROUP_BUILDSPEC));
 
         // The regex will capture the snapshot qualifier as an annotation.
         // Therefore, we need to set it as the build specifier.
         if (buildSpecifier == null && SNAPSHOT_QUALIFIER.equalsIgnoreCase(annotation)) {
             buildSpecifierSeparator = annotationSeparator;
             buildSpecifier = annotation;
             annotationSeparator = null;
             annotation = null;
         }
 
         // Set the separators, using the default ones where appropriate. This is a subtle use case. The user might have provided a
         // version with annotation but no annotation revision. E.g., 1.0_alpha.
         // This means that we would know what the annotation separator is ('_' in the example) but we don't have information about
         // the annotation revision separator. If later the user wants to add an annotation revision, we want to be sure that the
         // default separator is used instead of the null separator. Example, if the users adds a revision of '5', then the result
         // would be "1.0_alpha-5", and not "1.0_alpha5".
         this.annotationSeparator = (annotation == null) ? DEFAULT_VERSION_COMPONENT_SEPARATOR : annotationSeparator;
         this.annotationRevisionSeparator = (annotationRevision == null) ? DEFAULT_VERSION_COMPONENT_SEPARATOR
                 : parseSeparator(matcher.group(VERSION_REGEXGROUP_ANNOTATIONREV_SEPARATOR));
         this.buildSpecifierSeparator = (buildSpecifier == null) ? DEFAULT_VERSION_COMPONENT_SEPARATOR : buildSpecifierSeparator;
 
         // Set version components
         this.primaryNumbers = parsePrimaryNumber(matcher.group(VERSION_REGEXGROUP_PRIMARYNUMS));
         this.annotation = annotation;
         this.annotationRevision = annotationRevision;
         this.buildSpecifier = buildSpecifier;
     }
 
     /**
      * Parses a primary component number.
      *
      * @param primaryNumbers A string representing a sequence of primary numbers
      * separated by dot ('.'). Examples: "1", "1.2.3". Must be in the correct
      * format.
      * @return An array where each element is an integer. Index 0 contains the
      * most significant primary number.
      */
     private Integer[] parsePrimaryNumber(final String primaryNumbers) {
         final String[] primaryNumberStrings = primaryNumbers.split("\\.");
         final int n = primaryNumberStrings.length;
         final Integer[] result = new Integer[n];
 
         for (int i = 0; i < n; i++) {
             result[i] = Integer.parseInt(primaryNumberStrings[i]);
         }
 
         return result;
     }
 
     /**
      * Returns the input string or null if that string is blank or null.
      *
      * @param string The input string.
      * @return The input string or null if that string is blank or null.
      */
     private String nullIfBlank(final String string) {
         return StringUtils.isBlank(string) ? null : string;
     }
 
     /**
      * Parses a version component separator string and returns it as a
      * character.
      *
      * @param separator The separator string to parse.
      * @return The first character of the string, or null if that string is
      * empty.
      */
     private Character parseSeparator(final String separator) {
         return StringUtils.isNotEmpty(separator) ? separator.charAt(0) : null;
     }
 
     /**
      * Parses a string representing the version annotation revision.
      *
      * @param annotationRev The string to parse.
      * @return An integer representing the version annotation revision, or null
      * if the string is empty.
      */
     private Integer parseAnnotationRevision(final String annotationRev) {
         return StringUtils.isNotEmpty(annotationRev) ? Integer.parseInt(annotationRev) : null;
     }
 
     /**
      * Increments the least significant number in the version components by 1.
      * <p>
      * If the annotation revision is defined, it's incremented. Otherwise, the
      * last primary number is incremented.
      * <p>
      * Examples:
      * <ul>
      * <li>"1.2.3.4-alpha-5" is upgraded to "1.2.3.4-alpha-6"</li>
      * <li>"1.2.3.4-alpha" is upgraded to "1.2.3.5-alpha"</li>
      * <li>"1-SNAPSHOT" is upgraded to "2-SNAPSHOT"</li>
      * </ul>
      *
      * @return The instance, for method chaining.
      */
     public GenericArtifactVersion upgradeLeastSignificantNumber() {
         if (this.annotationRevision != null) {
             upgradeAnnotationRevision();
         } else {
             upgradeLeastSignificantPrimaryNumber();
         }
 
         return this;
     }
 
     /**
      * Increments the least significant primary number by 1, resetting the
      * annotation revision if it is defined.
      * <p>
      * Examples (assuming a base annotation revision of 1):
      * <ul>
      * <li>"1.2.3.4-alpha-5" is upgraded to "1.2.3.5-alpha-1"</li>
      * <li>"1.2.3.4-alpha" is upgraded to "1.2.3.5-alpha"</li>
      * <li>"1-SNAPSHOT" is upgraded to "2-SNAPSHOT"</li>
      * </ul>
      *
      * @return The instance, for method chaining.
      */
     public GenericArtifactVersion upgradeLeastSignificantPrimaryNumber() {
         upgradePrimaryNumber(this.primaryNumbers.length - 1);
 
         return this;
     }
 
     /**
      * Increments a primary number by 1, resetting the remaining less
      * significant components.
      * <p>
      * Examples (assuming a base annotation revision of 1):
      * <ul>
      * <li>"1.2.3.4-alpha-5" is upgraded to "2.0.0.0-alpha-1" with an index of
      * 0</li>
      * <li>"1.2.3.4-alpha-5" is upgraded to "1.2.3.0-alpha-1" with an index of
      * 3</li>
      * <li>"1.2-alpha" is upgraded to "1.3-alpha" with an index of 1</li>
      * <li>"1-SNAPSHOT" is upgraded to "2-SNAPSHOT" with an index of 0</li>
      * </ul>
      *
      * @param primaryNumberIndex The index identifying the primary number to
      * increase.
      * @return The instance, for method chaining.
      * @throws IllegalArgumentException if the index is negative.
      * @throws IllegalStateException if this version doesn't have a primary
      * number at the specified index.
      */
     public GenericArtifactVersion upgradePrimaryNumber(final int primaryNumberIndex) {
         if (primaryNumberIndex < 0) {
             throw new IllegalArgumentException("Primary number index cannot be negative.");
         }
         if (this.primaryNumbers.length <= primaryNumberIndex) {
             throw new IllegalStateException("Cannot upgrade version becase '" + this + "' does not have a "
                     + "primary number at index " + primaryNumberIndex);
         }
 
         this.primaryNumbers[primaryNumberIndex]++;
         resetPrimaryNumbers(primaryNumberIndex + 1);
         resetAnnotationRevision();
 
         return this;
     }
 
     /**
      * Increments the annotation revision by 1.
      *
      * @return The instance, for method chaining.
      * @throws IllegalStateException if this version doesn't have an annotation
      * revision defined.
      */
     public GenericArtifactVersion upgradeAnnotationRevision() {
         if (this.annotationRevision == null) {
             throw new IllegalStateException("Cannot upgrade annotation revision for version '" + this
                     + "' because it does not have that component.");
         }
 
         this.annotationRevision++;
         return this;
     }
 
     /**
      * Resets (sets to 0) all consecutive primary numbers starting at a specific
      * index.
      *
      * @param fromIndex The index pointing to the first primary number that will
      * be reset.
      */
     private void resetPrimaryNumbers(final int fromIndex) {
         for (int i = fromIndex, n = this.primaryNumbers.length; i < n; i++) {
             this.primaryNumbers[i] = 0;
         }
     }
 
     /**
      * Resets the annotation revision (if it is defined). It is set to
      * {@link #DEFAULT_BASE_ANNOTATION_REVISION}.
      */
     private void resetAnnotationRevision() {
         if (this.annotationRevision != null) {
             this.annotationRevision = DEFAULT_BASE_ANNOTATION_REVISION;
         }
     }
 
     /**
      * Returns the string representation of the primary numbers.
      * <p>
      * The string representation is the concatenation of all numbers separated
      * by the dot character ('.').
      *
      * @return The primary numbers as a single string.
      */
     public String getPrimaryNumbersAsString() {
         return createPrimaryNumbersString(new StringBuilder(8)).toString();
     }
 
     /**
      * Returns the string representation of the annotation string.
      *
      * [[-_]<annotation>][[-_]<annotation_revision>]
      *
-     * @return The primary numbers as a single string.
+     * @return The annotation as a single string.
      */
     public String getAnnotationAsString() {
         return createAnnotationString(new StringBuilder(0)).toString();
     }
 
+    /**
+     * Returns the string representation of the annotation string.
+     *
+     * [[-_]<build_specifier>]
+     *
+     * @return The build specifier as a single string.
+     */
+    public String getBuildSpecifierAsString() {
+        return createBuildSpecifierString(new StringBuilder(0)).toString();
+    }
+
     /**
      * Returns how many primary numbers are defined for this version.
      *
      * @return The primary number count.
      */
     public int getPrimaryNumberCount() {
         return this.primaryNumbers.length;
     }
 
     /**
      * Returns the primary number located at a specific index.
      *
      * @param index The index pointing to the primary number. Must be
      * non-negative.
      * @return The primary number, or null if it's not defined.
      * @throws IllegalArgumentException if the index is provided is negative.
      */
     public Integer getPrimaryNumber(final int index) {
         if (index < 0) {
             throw new IllegalArgumentException("Primary number index must be non-negative.");
         }
 
         return (this.primaryNumbers.length > index) ? this.primaryNumbers[index] : null;
     }
 
     /**
      * Defines the primary number located at a specific index.
      *
      * @param index The index pointing to the primary number to define. Must be
      * non-negative.
      * @param value The number to define as the primary component. Must be
      * non-negative.
      * @return The instance, for method chaining.
      * @throws IllegalArgumentException if the index or value is negative, or if
      * a primary number does not exist at that index.
      */
     public GenericArtifactVersion setPrimaryNumber(final int index, final int value) {
         if (index < 0) {
             throw new IllegalArgumentException("Primary number index must be non-negative.");
         }
         if (index >= this.primaryNumbers.length) {
             throw new IllegalArgumentException("Invalid index for version digit. Maximum digit index for this version is "
                     + (this.primaryNumbers.length - 1));
         }
         if (value < 0) {
             throw new IllegalArgumentException("Primary numbers must be non-negative.");
         }
 
         this.primaryNumbers[index] = value;
 
         return this;
     }
 
     /**
      * Returns the separator character for the version annotation component.
      *
      * @return The annotation separator, or null if there's none.
      */
     public Character getAnnotationSeparator() {
         return this.annotationSeparator;
     }
 
     /**
      * Sets the separator character for the version annotation component.
      *
      * @param annotationSeparator A valid separator character (read this class'
      * documentation for more information about the valid format). null can be
      * used to indicate that there's no separator.
      * @return The instance, for method chaining.
      * @throws IllegalArgumentException if the character provided is invalid.
      */
     public GenericArtifactVersion setAnnotationSeparator(final Character annotationSeparator) {
         validateSeparator(annotationSeparator);
         this.annotationSeparator = annotationSeparator;
 
         return this;
     }
 
     /**
      * Returns the version annotation component.
      *
      * @return The annotation, or null if it is not defined.
      */
     public String getAnnotation() {
         return this.annotation;
     }
 
     /**
      * Defines the version annotation component.
      *
      * @param annotation A valid annotation string (read this class'
      * documentation for more information about the valid format). null can be
      * used to indicate that there's no annotation.
      * @return The instance, for method chaining.
      * @throws IllegalArgumentException if the annotation is invalid.
      */
     public GenericArtifactVersion setAnnotation(final String annotation) {
         if (annotation != null && !VERSION_ANNOTATION_PATTERN.matcher(annotation).matches()) {
             throw new IllegalArgumentException("Invalid version separator.");
         }
         this.annotation = annotation;
 
         return this;
     }
 
     /**
      * Returns the separator character for the annotation revision.
      *
      * @return The separator, or null if there's none.
      */
     public Character getAnnotationRevisionSeparator() {
         return annotationRevisionSeparator;
     }
 
     /**
      * Defines the separator character for the version annotation revision
      * component.
      *
      * @param annotationRevisionSeparator A valid separator character (read this
      * class' documentation for more information about the valid format). null
      * can be used to indicate that there's no separator.
      * @return The instance, for method chaining.
      * @throws IllegalArgumentException if the character provided is invalid.
      */
     public GenericArtifactVersion setAnnotationRevisionSeparator(final Character annotationRevisionSeparator) {
         validateSeparator(annotationRevisionSeparator);
         this.annotationRevisionSeparator = annotationRevisionSeparator;
 
         return this;
     }
 
     /**
      * Returns the annotation revision number.
      *
      * @return The revision number, or null if it's not defined.
      */
     public Integer getAnnotationRevision() {
         return annotationRevision;
     }
 
     /**
      * Defines the annotation revision number.
      *
      * @param annotationRevision The revision number. Must be non-negative. null
      * can be used to indicate that there's no annotation revision number.
      * @return The instance, for method chaining.
      * @throws IllegalArgumentException if 'annotationRevision' is negative.
      */
     public GenericArtifactVersion setAnnotationRevision(final Integer annotationRevision) {
         if (annotationRevision != null && annotationRevision < 0) {
             throw new IllegalArgumentException("Annotation revision must be non-negative.");
         }
         this.annotationRevision = annotationRevision;
 
         return this;
     }
 
     /**
      * Returns the separator character for the build specifier component.
      *
      * @return The separator, or null if there's none.
      */
     public Character getBuildSpecifierSeparator() {
         return buildSpecifierSeparator;
     }
 
     /**
      * Defines the separator character for the version build specifier
      * component.
      *
      * @param buildSpecifierSeparator A valid separator character (read this
      * class' documentation for more information about the valid format). null
      * can be used to indicate that there's no separator.
      * @return The instance, for method chaining.
      * @throws IllegalArgumentException if the character provided is invalid.
      */
     public GenericArtifactVersion setBuildSpecifierSeparator(final Character buildSpecifierSeparator) {
         validateSeparator(buildSpecifierSeparator);
         this.buildSpecifierSeparator = buildSpecifierSeparator;
 
         return this;
     }
 
     /**
      * Returns the build specifier component.
      *
      * @return The build specifier, or null if it's not defined.
      */
     public String getBuildSpecifier() {
         return buildSpecifier;
     }
 
     /**
      * Defines the build specifier component.
      *
      * @param buildSpecifier A valid build specifier (read this class'
      * documentation for more information about the valid format). null can be
      * used to indicate that there's no build specifier component.
      * @return The instance, for method chaining.
      * @throws IllegalArgumentException if the build specifier is invalid.
      */
     public GenericArtifactVersion setBuildSpecifier(final String buildSpecifier) {
         if (buildSpecifier != null && !VERSION_BUILD_SPECIFIER_PATTERN.matcher(buildSpecifier).matches()) {
             throw new IllegalArgumentException("Invalid build specifier.");
         }
         this.buildSpecifier = buildSpecifier;
 
         return this;
     }
 
     /**
      * Checks that a character is a valid version component separator, only if
      * it's not null.
      *
      * @param separator The separator character that we want to check.
      * @throws IllegalArgumentException if the character is not a valid version
      * component separator.
      */
     private void validateSeparator(final Character separator) {
         if (separator != null && !VERSION_COMPONENT_SEPARATOR_PATTERN.matcher(String.valueOf(separator)).matches()) {
             throw new IllegalArgumentException("Invalid version separator.");
         }
     }
 
     /**
      * Returns a string representation of this version object.
      * <p>
      * The following condition is always true: new
      * {@link GenericArtifactVersion} (versionString).equals(versionString)
      * <p>
      * The result is the concatenation of all the version components, separated
      * with their respective separator characters:
      * <ul>
      * <li>primary components separated by the dot character ('.').</li>
      * <li>annotation separator</li>
      * <li>annotation</li>
      * <li>annotation revision separator</li>
      * <li>annotation revision</li>
      * <li>build specifier separator</li>
      * <li>build specifier</li>
      * </ul>
      *
      */
     @Override
     public String toString() {
         final StringBuilder result = new StringBuilder(30);
 
         createPrimaryNumbersString(result);
 
         if (this.annotation != null) {
             if (this.annotationSeparator != null) {
                 result.append(this.annotationSeparator);
             }
             result.append(this.annotation);
         }
 
         if (this.annotationRevision != null) {
             if (this.annotationRevisionSeparator != null) {
                 result.append(this.annotationRevisionSeparator);
             }
             result.append(this.annotationRevision);
         }
 
         if (this.buildSpecifier != null) {
             if (this.buildSpecifierSeparator != null) {
                 result.append(this.buildSpecifierSeparator);
             }
             result.append(this.buildSpecifier);
         }
 
         return result.toString();
     }
 
     /**
      * Creates a string concatenating the primary numbers separated by the dot
      * character ('.').
      * <p>
      * The result is appended to the provided string builder and returned.
      *
      * @param result The string builder where to append the string.
      * @return The provided string builder.
      */
     private StringBuilder createPrimaryNumbersString(final StringBuilder result) {
         for (int i = 0, n = this.primaryNumbers.length; i < n; i++) {
             if (i > 0) {
                 result.append('.');
             }
             result.append(this.primaryNumbers[i]);
         }
 
         return result;
     }
 
     /**
      * [[-_]<annotation>][[-_]<annotation_revision>]
      *
      * @param result
      * @return
      */
     private StringBuilder createAnnotationString(final StringBuilder result) {
         if (null != this.annotation) {
             result.append(this.annotationSeparator).append(this.annotation);
         }
         if (null != this.annotationRevision) {
             result.append(this.annotationRevisionSeparator).append(this.annotationRevision);
         }
         return result;
     }
 
+    /**
+     * [[-_]<build_specifier>]
+     *
+     * @param result
+     * @return
+     */
+    private StringBuilder createBuildSpecifierString(final StringBuilder result) {
+        if (null != this.buildSpecifier) {
+            result.append(this.buildSpecifierSeparator).append(this.buildSpecifier);
+        }
+        return result;
+    }
 }

commit fe6d9ce934715f6cee77bf3bbf93e34afe83275e
Author: Desmond Kirrane <desmond.kirrane@gmail.com>
Date:   Fri Jan 3 22:16:10 2014 +0000

    Initial commit

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..eefbb4f
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,50 @@
+### Maven ###
+target/
+
+### NetBeans ###
+nbproject/
+build/
+nbbuild/
+dist/
+nbdist/
+nbactions.xml
+nb-configuration.xml
+build.xml
+build.properties
+
+
+### Eclipse ###
+*.pydevproject
+.project
+.metadata
+bin/**
+tmp/**
+tmp/**/*
+*.tmp
+*.bak
+*.swp
+*~.nib
+local.properties
+.classpath
+.settings/
+.loadpath
+
+# External tool builders
+.externalToolBuilders/
+
+# Locally stored "Eclipse launch configurations"
+*.launch
+
+# CDT-specific
+.cproject
+
+# PDT-specific
+.buildpath
+
+### IntelliJ ###
+*.iml
+*.ipr
+*.iws
+.idea/
+
+*.orig
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..cc4fa18
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,202 @@
+Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "{}"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright 2014 Desmond Kirrane
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..d19cf1a
--- /dev/null
+++ b/README.md
@@ -0,0 +1,3 @@
+Gitflow Maven Plugin that uses Groovy Gitflow
+
+ggitflow-maven-plugin
\ No newline at end of file
diff --git a/clearHistory.sh b/clearHistory.sh
new file mode 100644
index 0000000..19131ee
--- /dev/null
+++ b/clearHistory.sh
@@ -0,0 +1,9 @@
+
+
+rm -rf .git
+git init
+git add .
+git commit -m "Initial commit"
+
+git remote add origin https://github.com/dkirrane/ggitflow-maven-plugin.git
+git push -u --force origin master
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..1a17a07
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,149 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+
+    <groupId>com.dkirrane.maven.plugins</groupId>
+    <artifactId>ggitflow-maven-plugin</artifactId>
+    <version>1.0-SNAPSHOT</version>
+    <packaging>maven-plugin</packaging>
+
+    <name>ggitflow-maven-plugin</name>
+
+    <url>https://github.com/dkirrane/ggitflow-maven-plugin</url>
+
+    <properties>
+        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+        <netbeans.hint.license>apache20</netbeans.hint.license>
+    </properties>
+
+    <dependencies>
+        <dependency>
+            <groupId>com.dkirrane.groovy.gitflow</groupId>
+            <artifactId>ggitflow</artifactId>
+            <version>1.0-SNAPSHOT</version>
+        </dependency>
+        <dependency>
+            <groupId>org.twdata.maven</groupId>
+            <artifactId>mojo-executor</artifactId>
+            <version>2.2.0</version>
+        </dependency>
+        <dependency>
+            <groupId>jline</groupId>
+            <artifactId>jline</artifactId>
+            <version>2.11</version>
+            <type>jar</type>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.maven</groupId>
+            <artifactId>maven-plugin-api</artifactId>
+            <version>2.0</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.maven.plugin-tools</groupId>
+            <artifactId>maven-plugin-annotations</artifactId>
+            <version>3.2</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.codehaus.plexus</groupId>
+            <artifactId>plexus-utils</artifactId>
+            <version>3.0.8</version>
+        </dependency>
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <version>4.11</version>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.codehaus.plexus</groupId>
+            <artifactId>plexus-interactivity-api</artifactId>
+            <version>1.0-alpha-5</version>
+            <type>jar</type>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <resources>
+            <resource>
+                <directory>src/it</directory>
+                <includes>
+                    <include>**/**</include>
+                </includes>
+            </resource>
+        </resources>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-plugin-plugin</artifactId>
+                <version>3.2</version>
+                <configuration>
+                    <goalPrefix>ggitflow</goalPrefix>
+                    <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
+                </configuration>
+                <executions>
+                    <execution>
+                        <id>mojo-descriptor</id>
+                        <goals>
+                            <goal>descriptor</goal>
+                        </goals>
+                    </execution>
+                    <execution>
+                        <id>help-goal</id>
+                        <goals>
+                            <goal>helpmojo</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+    <profiles>
+        <profile>
+            <id>run-its</id>
+            <build>
+
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-invoker-plugin</artifactId>
+                        <version>1.8</version>
+                        <configuration>
+                            <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
+                            <settingsFile>src/it/settings.xml</settingsFile>
+                            <debug>true</debug>
+                            <showErrors>true</showErrors>
+                            <detail>true</detail>
+                            <streamLogs>true</streamLogs>
+                            <projectsDirectory>src/it/projects</projectsDirectory>
+                            <cloneProjectsTo>${java.io.tmpdir}/it/projects</cloneProjectsTo>
+                            <!--<cloneProjectsTo>${project.build.directory}/it/projects</cloneProjectsTo>-->
+                            <addTestClassPath>true</addTestClassPath>
+                            <preBuildHookScript>setup</preBuildHookScript>
+                            <postBuildHookScript>verify</postBuildHookScript>
+                            <pomIncludes>
+                                <pomInclude>*/pom.xml</pomInclude>
+                            </pomIncludes>
+                            <goals>
+                                <goal>clean</goal>
+                                <goal>test-compile</goal>
+                            </goals>
+                        </configuration>
+                        <executions>
+                            <execution>
+                                <id>integration-test</id>
+                                <goals>
+                                    <goal>install</goal>
+                                    <goal>integration-test</goal>
+                                    <goal>verify</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+
+            </build>
+        </profile>
+    </profiles>
+</project>
diff --git a/src/it/projects/feature-start-proj/.gitignore b/src/it/projects/feature-start-proj/.gitignore
new file mode 100644
index 0000000..9f9b575
--- /dev/null
+++ b/src/it/projects/feature-start-proj/.gitignore
@@ -0,0 +1,6 @@
+### Maven Invoker build.log ###
+*.log
+
+### Maven ###
+target/
+
diff --git a/src/it/projects/feature-start-proj/invoker.properties b/src/it/projects/feature-start-proj/invoker.properties
new file mode 100644
index 0000000..5ce1f39
--- /dev/null
+++ b/src/it/projects/feature-start-proj/invoker.properties
@@ -0,0 +1,60 @@
+# A comma or space separated list of goals/phases to execute, may
+# specify an empty list to execute the default goal of the IT project
+invoker.goals = clean ggitflow:feature-start -B -X -U
+
+# The value for the environment variable MAVEN_OPTS
+#invoker.mavenOpts = -Dfile.encoding=UTF-16 -Xms32m -Xmx256m
+#invoker.mavenOpts = -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
+
+# An optional human friendly name for this build job to be included in the build reports.
+# Since plugin version 1.4
+invoker.name = feature-start
+
+# An optional description for this build job to be included in the build reports.
+# Since plugin version 1.4
+invoker.description = Checks the feature start use case.
+
+# A boolean value controlling the debug logging level of Maven, , defaults to "false"
+# Since plugin version 1.8
+invoker.debug = true
+
+# Optionally, a list of goals to run during further invocations of Maven
+#invoker.goals.2 = ${project.groupId}:${project.artifactId}:${project.version}:run
+
+# A comma or space separated list of profiles to activate
+#invoker.profiles = its,jdk15
+
+# The path to an alternative POM or base directory to invoke Maven on, defaults to the
+# project that was originally specified in the plugin configuration
+# Since plugin version 1.4
+#invoker.project = sub-module
+
+# Possible values are "fail-fast" (default), "fail-at-end" and "fail-never"
+#invoker.failureBehavior = fail-never
+
+# The expected result of the build, possible values are "success" (default) and "failure"
+#invoker.buildResult = success
+
+# A boolean value controlling the aggregator mode of Maven, defaults to "false"
+#invoker.nonRecursive = true
+
+# A boolean value controlling the network behavior of Maven, defaults to "false"
+# Since plugin version 1.4
+#invoker.offline = true
+
+# The path to the properties file from which to load system properties, defaults to the
+# filename given by the plugin parameter testPropertiesFile
+# Since plugin version 1.4
+#invoker.systemPropertiesFile = test.properties
+
+# A comma separated list of JRE versions on which this build job should be run.
+# Since plugin version 1.4
+#invoker.java.version = 1.4+, !1.4.1, 1.7-
+
+# A comma separated list of OS families on which this build job should be run.
+# Since plugin version 1.4
+#invoker.os.family = !windows, unix, mac
+
+# A comma separated list of Maven versions on which this build should be run.
+# Since plugin version 1.5
+#invoker.maven.version = 2.0.10+, !2.1.0, !2.2.0
\ No newline at end of file
diff --git a/src/it/projects/feature-start-proj/pom.xml b/src/it/projects/feature-start-proj/pom.xml
new file mode 100644
index 0000000..565c33f
--- /dev/null
+++ b/src/it/projects/feature-start-proj/pom.xml
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+
+    <groupId>com.dkirrane.maven.plugins.it</groupId>
+    <artifactId>feature-start-proj</artifactId>
+    <version>1.0-SNAPSHOT</version>
+
+    <description>A simple IT verifying the basic feature start use case.</description>
+
+    <properties>
+        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+    </properties>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>@project.groupId@</groupId>
+                <artifactId>@project.artifactId@</artifactId>
+                <version>@project.version@</version>
+                <executions>
+                    <execution>
+                        <id>feature-start</id>
+                        <goals>
+                            <goal>feature-start</goal>
+                        </goals>
+                        <configuration>
+                            <featureName>Feature-123</featureName>
+                            <msgPrefix>Message Prefix</msgPrefix>
+                            <msgSuffix>Message Suffix</msgSuffix>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <version>2.3.2</version>
+                <dependencies>
+                    <dependency>
+                        <groupId>org.codehaus.groovy</groupId>
+                        <artifactId>groovy-eclipse-compiler</artifactId>
+                        <version>2.6.0-01</version>
+                    </dependency>
+                </dependencies>
+                <configuration>
+                    <compilerId>groovy-eclipse-compiler</compilerId>
+                </configuration>
+            </plugin>
+            <plugin>
+                <artifactId>groovy-eclipse-compiler</artifactId>
+                <groupId>org.codehaus.groovy</groupId>
+                <version>2.6.0-01</version>
+                <extensions>true</extensions>
+            </plugin>
+        </plugins>
+    </build>
+    <dependencies>
+        <dependency>
+            <artifactId>groovy-all</artifactId>
+            <groupId>org.codehaus.groovy</groupId>
+            <version>2.0.5</version>
+        </dependency>
+    </dependencies>
+</project>
diff --git a/src/it/projects/feature-start-proj/setup.groovy b/src/it/projects/feature-start-proj/setup.groovy
new file mode 100644
index 0000000..09205f6
--- /dev/null
+++ b/src/it/projects/feature-start-proj/setup.groovy
@@ -0,0 +1,15 @@
+import com.dkirrane.maven.plugins.ggitflow.SetupVerifyScriptHelper;
+
+try {
+
+    println "setup.groovy start"
+
+    def helper = new SetupVerifyScriptHelper(basedir, localRepositoryPath, context)
+    helper.setUp()
+    
+    println "setup.groovy complete"
+
+} catch (Exception e) {
+    System.err.println(e.getMessage())
+    return false;
+}
diff --git a/src/it/projects/feature-start-proj/verify.groovy b/src/it/projects/feature-start-proj/verify.groovy
new file mode 100644
index 0000000..a05e541
--- /dev/null
+++ b/src/it/projects/feature-start-proj/verify.groovy
@@ -0,0 +1,46 @@
+import com.dkirrane.maven.plugins.ggitflow.SetupVerifyScriptHelper;
+
+try {
+
+    println "verify.groovy start"
+
+    def helper = new SetupVerifyScriptHelper(basedir, localRepositoryPath, context)
+
+    // vagrant-maven-plugin invoked
+    helper.assertBuildLogContains("vagrant-maven-plugin:")
+
+    // feature-start goal successful
+    helper.assertBuildLogContains(":feature-start")
+
+    // the feature branch should be created
+    helper.featureBranchExists("Feature-123")
+
+    helper.tearDown()
+
+    println "verify.groovy complete"
+
+} catch (Exception e) {
+    System.err.println(e.getMessage())
+    return false;
+}
+
+
+////import net.nicoulaj.maven.plugins.vagrant.it.PrePostBuildScriptHelper
+//
+//try {
+//    helper = new PrePostBuildScriptHelper(basedir, localRepositoryPath, context)
+//
+//    // vagrant-maven-plugin invoked
+//    helper.assertBuildLogContains("vagrant-maven-plugin:")
+//
+//    // init goal successful
+//    helper.assertBuildLogContains(":init")
+//    helper.assertBuildLogContains("A `Vagrantfile` has been placed in this directory")
+//    helper.assertFileExists("Vagrantfile")
+//    helper.assertFileContains("Vagrantfile", "config.vm.box = \"testbox\"")
+//
+//}
+//catch (Exception e) {
+//    System.err.println(e.getMessage())
+//    return false;
+//}
diff --git a/src/it/settings.xml b/src/it/settings.xml
new file mode 100644
index 0000000..5ee363c
--- /dev/null
+++ b/src/it/settings.xml
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<settings>
+    <profiles>
+        <profile>
+            <id>it-repo</id>
+            <activation>
+                <activeByDefault>true</activeByDefault>
+            </activation>
+            <repositories>
+                <repository>
+                    <id>local.central</id>
+                    <url>@localRepositoryUrl@</url>
+                    <releases>
+                        <enabled>true</enabled>
+                    </releases>
+                    <snapshots>
+                        <enabled>true</enabled>
+                    </snapshots>
+                </repository>
+            </repositories>
+            <pluginRepositories>
+                <pluginRepository>
+                    <id>local.central</id>
+                    <url>@localRepositoryUrl@</url>
+                    <releases>
+                        <enabled>true</enabled>
+                    </releases>
+                    <snapshots>
+                        <enabled>true</enabled>
+                    </snapshots>
+                </pluginRepository>
+            </pluginRepositories>
+        </profile>
+    </profiles>
+</settings>
diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java b/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
new file mode 100644
index 0000000..ab2c619
--- /dev/null
+++ b/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractFeatureMojo.java
@@ -0,0 +1,130 @@
+/* 
+ * Copyright 2014 Desmond Kirrane.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.dkirrane.maven.plugins.ggitflow;
+
+import org.apache.maven.plugin.MojoFailureException;
+import org.apache.maven.plugins.annotations.Parameter;
+import org.jfrog.hudson.util.GenericArtifactVersion;
+
+import static com.dkirrane.gitflow.groovy.Constants.*;
+
+import com.dkirrane.gitflow.groovy.GitflowInit;
+import org.codehaus.plexus.util.StringUtils;
+
+/**
+ *
+ */
+public class AbstractFeatureMojo extends AbstractGitflowMojo {
+
+    @Parameter(property = "featureName")
+    protected String featureName;
+
+    @Parameter(defaultValue = "false", property = "enableFeatureVersions")
+    protected boolean enableFeatureVersions = false;
+
+    @Parameter(defaultValue = "false", property = "pushFeatures")
+    protected boolean pushFeatures = false;
+
+    private GitflowInit init;
+
+    public GitflowInit getGitflowInit() {
+        if (null == init) {
+            init = new GitflowInit();
+            init.setRepoDir(getProject().getBasedir());
+        }
+        return init;
+    }
+
+    public String getFeatureBranchPrefix() {
+        String prefix = getGitflowInit().getFeatureBranchPrefix();
+        if (StringUtils.isBlank(prefix)) {
+            prefix = DEFAULT_FEATURE_BRN_PREFIX;
+        }
+        return prefix;
+    }
+
+    public String getFeatureName(String featureLabel) throws MojoFailureException {
+        if (StringUtils.isBlank(featureLabel)) {
+            throw new MojoFailureException("Missing argument <featureName>");
+        }
+
+        featureLabel = featureLabel.replaceAll("\\s+", "");
+//        featureLabel = featureLabel.replaceAll("-+", "_");
+        return featureLabel;
+    }
+
+    public String getFeatureVersion(String version, String featureLabel) throws MojoFailureException {
+        getLog().info("Project version '" + version + "'");
+
+        GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
+        String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
+        String annotationAsString = artifactVersion.getAnnotationAsString();
+        Character annotationSeparator = artifactVersion.getAnnotationRevisionSeparator();
+        String buildSpecifier = artifactVersion.getBuildSpecifier();
+        Character buildSpecifierSeparator = artifactVersion.getBuildSpecifierSeparator();
+
+        getLog().info("Parsed version = " + artifactVersion.toString());
+        if (!StringUtils.isBlank(annotationAsString)) {
+            throw new MojoFailureException("Cannot add feature name to version. An annotation " + annotationAsString + " already exists");
+        }
+
+        final StringBuilder result = new StringBuilder(30);
+
+        result.append(primaryNumbersAsString).append(annotationSeparator).append(featureLabel);
+
+        if (buildSpecifier != null) {
+            if (buildSpecifierSeparator != null) {
+                result.append(buildSpecifierSeparator);
+            }
+            result.append(buildSpecifier);
+        }
+
+        return result.toString();
+    }
+
+    public String getNonFeatureVersion(String version, String featureLabel) {
+        getLog().info("Project version '" + version + "'");
+
+        GenericArtifactVersion artifactVersion = new GenericArtifactVersion(version);
+        String primaryNumbersAsString = artifactVersion.getPrimaryNumbersAsString();
+        String annotationAsString = artifactVersion.getAnnotationAsString();
+        String buildSpecifier = artifactVersion.getBuildSpecifier();
+        Character buildSpecifierSeparator = artifactVersion.getBuildSpecifierSeparator();
+
+        getLog().info("Parsed version = " + artifactVersion.toString());
+        if (StringUtils.isBlank(annotationAsString)) {
+            getLog().warn("Cannot remove feature name from pom version. The version annotation does not exists");
+            return version;
+        }
+
+        if (featureLabel.equals(annotationAsString)) {
+            final StringBuilder result = new StringBuilder(30);
+            result.append(primaryNumbersAsString);
+
+            if (buildSpecifier != null) {
+                if (buildSpecifierSeparator != null) {
+                    result.append(buildSpecifierSeparator);
+                }
+                result.append(buildSpecifier);
+            }
+
+            return result.toString();
+        } else {
+            getLog().warn("Cannot remove feature name from pom version. The version annotation [" + annotationAsString + "] does not match the feature label [" + featureLabel + "]");
+            return version;
+        }
+    }
+}
diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java b/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
new file mode 100644
index 0000000..b4a6860
--- /dev/null
+++ b/src/main/java/com/dkirrane/maven/plugins/ggitflow/AbstractGitflowMojo.java
@@ -0,0 +1,100 @@
+/* 
+ * Copyright 2014 Desmond Kirrane.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.dkirrane.maven.plugins.ggitflow;
+
+import com.dkirrane.maven.plugins.ggitflow.prompt.Prompter;
+import org.apache.maven.execution.MavenSession;
+import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.plugin.BuildPluginManager;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.plugin.MojoFailureException;
+//import org.apache.maven.plugin.descriptor.PluginDescriptor;
+import org.apache.maven.plugins.annotations.Component;
+import org.apache.maven.plugins.annotations.Parameter;
+import org.apache.maven.project.MavenProject;
+import org.codehaus.plexus.component.annotations.Requirement;
+import org.codehaus.plexus.util.StringUtils;
+
+/**
+ *
+ */
+public class AbstractGitflowMojo extends AbstractMojo {
+
+    @Parameter(property = "msgPrefix", defaultValue = "")
+    protected String msgPrefix;
+
+    @Parameter(property = "msgSuffix", defaultValue = "")
+    protected String msgSuffix;
+
+    @Requirement(role = Prompter.class, hint = "prompter", optional = false)
+    protected Prompter prompter;
+
+//    /**
+//     * @parameter property="plugin"
+//     * @required
+//     */
+//    @Component
+//    protected PluginDescriptor pluginDescriptor;
+//
+    /**
+     * The project currently being build.
+     *
+     * @parameter expression="${project}"
+     * @required
+     * @readonly
+     */
+    @Component
+    protected MavenProject project;
+
+    /**
+     * The current Maven session.
+     *
+     * @parameter expression="${session}"
+     * @required
+     * @readonly
+     */
+    @Component
+    protected MavenSession session;
+
+    /**
+     * The Maven BuildPluginManager component.
+     *
+     * @component
+     * @required
+     */
+    @Component
+    protected BuildPluginManager pluginManager;
+
+    protected final MavenProject getProject() {
+        return project;
+    }
+
+    public void execute() throws MojoExecutionException, MojoFailureException {
+        if (null == project) {
+            throw new NullPointerException("MavenProject is null");
+        } else {
+            getLog().info("Gitflow pom  '" + project.getBasedir() + "'");
+        }
+    }
+
+    public String getMsgPrefix() {
+        return (StringUtils.isBlank(msgPrefix)) ? "" : msgPrefix + " ";
+    }
+
+    public String getMsgSuffix() {
+        return (StringUtils.isBlank(msgSuffix)) ? "" : " " + msgSuffix;
+    }
+}
diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java b/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
new file mode 100644
index 0000000..bb22b07
--- /dev/null
+++ b/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureFinishMojo.java
@@ -0,0 +1,114 @@
+/* 
+ * Copyright 2014 Desmond Kirrane.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.dkirrane.maven.plugins.ggitflow;
+
+import com.dkirrane.gitflow.groovy.GitflowFeature;
+import com.dkirrane.gitflow.groovy.ex.GitflowException;
+import com.dkirrane.gitflow.groovy.ex.GitflowMergeConflictException;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.plugin.MojoFailureException;
+import org.apache.maven.plugins.annotations.Mojo;
+
+import java.util.List;
+import org.codehaus.plexus.components.interactivity.PrompterException;
+import org.codehaus.plexus.util.StringUtils;
+
+import static org.twdata.maven.mojoexecutor.MojoExecutor.*;
+
+/**
+ *
+ */
+@Mojo(name = "feature-finish", aggregator = true)
+public class FeatureFinishMojo extends AbstractFeatureMojo {
+
+    @Override
+    public void execute() throws MojoExecutionException, MojoFailureException {
+        super.execute();
+        getLog().info("Finishing feature '" + featureName + "'");
+
+        if (StringUtils.isBlank(featureName)) {
+            String currentBranch = getGitflowInit().gitCurrentBranch();
+            if (currentBranch.startsWith(getFeatureBranchPrefix())) {
+                featureName = currentBranch;
+            }
+        } else {
+            featureName = getFeatureName(featureName);
+        }
+
+        List<String> featureBranches = getGitflowInit().gitLocalFeatureBranches();
+
+        featureName = promptForExistingFeatureName(featureBranches, featureName);
+
+        String version = project.getVersion();
+        String nonFeatureVersion = getNonFeatureVersion(version, featureName);
+
+        getLog().info("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + nonFeatureVersion + "'");
+        executeMojo(
+                plugin(
+                        groupId("org.codehaus.mojo"),
+                        artifactId("versions-maven-plugin"),
+                        version("2.1")
+                ),
+                goal("set"),
+                configuration(
+                        element(name("generateBackupPoms"), "false"),
+                        element(name("newVersion"), nonFeatureVersion)
+                ),
+                executionEnvironment(
+                        project,
+                        session,
+                        pluginManager
+                )
+        );
+        getLog().info("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + featureName + "'");
+
+        if (!getGitflowInit().gitIsCleanWorkingTree()) {
+            String msg = getMsgPrefix() + "Updating poms for " + featureName + " branch " + nonFeatureVersion + " version " + getMsgSuffix();
+            getGitflowInit().executeLocal("git add -A .");
+            String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
+            getGitflowInit().executeLocal(cmtPom);
+        } else {
+            getLog().error("Failed to update poms to the develop version " + nonFeatureVersion);
+        }
+
+        GitflowFeature gitflowFeature = new GitflowFeature();
+        gitflowFeature.setInit(getGitflowInit());
+        gitflowFeature.setMsgPrefix(getMsgPrefix());
+        gitflowFeature.setMsgSuffix(getMsgSuffix());
+
+        try {
+            gitflowFeature.finish(featureName);
+        } catch (GitflowException ge) {
+            throw new MojoFailureException(ge.getMessage());
+        } catch (GitflowMergeConflictException gmce) {
+            throw new MojoFailureException(gmce.getMessage());
+        }
+    }
+
+    private String promptForExistingFeatureName(List<String> featureBranches, String defaultFeatureName) throws MojoFailureException {
+        String message = "Please select a feature branch to finish?";
+
+        String name = "";
+        try {
+            name = prompter.prompt(message, featureBranches, defaultFeatureName);
+        } catch (PrompterException e) {
+            throw new MojoFailureException("Error reading feature name from command line " + e.getMessage());
+        }
+
+        return name;
+    }
+
+}
diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java b/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
new file mode 100644
index 0000000..7bb2b3b
--- /dev/null
+++ b/src/main/java/com/dkirrane/maven/plugins/ggitflow/FeatureStartMojo.java
@@ -0,0 +1,112 @@
+/*
+ * Copyright 2014 Desmond Kirrane.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.dkirrane.maven.plugins.ggitflow;
+
+import com.dkirrane.gitflow.groovy.GitflowFeature;
+import com.dkirrane.gitflow.groovy.ex.GitflowException;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.plugin.MojoFailureException;
+import org.apache.maven.plugins.annotations.Mojo;
+import org.apache.maven.plugins.annotations.Parameter;
+import static org.twdata.maven.mojoexecutor.MojoExecutor.*;
+import static com.dkirrane.gitflow.groovy.Constants.*;
+import org.apache.maven.plugins.annotations.LifecyclePhase;
+import org.codehaus.plexus.components.interactivity.PrompterException;
+import org.codehaus.plexus.util.StringUtils;
+
+/**
+ *
+ */
+@Mojo(name = "feature-start", aggregator = true, defaultPhase = LifecyclePhase.PROCESS_SOURCES)
+public class FeatureStartMojo extends AbstractFeatureMojo {
+
+    @Parameter(property = "startCommit", defaultValue = "")
+    private String startCommit;
+
+    @Override
+    public void execute() throws MojoExecutionException, MojoFailureException {
+        super.execute();
+
+        if (StringUtils.isBlank(featureName)) {
+            String prefix = (null != getFeatureBranchPrefix()) ? getFeatureBranchPrefix() : DEFAULT_FEATURE_BRN_PREFIX;
+            System.out.println("prefix = " + prefix);
+            System.out.println("prompter = " + prompter);
+            String message = "What is the feature branch name? " + prefix;
+            System.out.println("message = " + message);
+            try {
+                featureName = prompter.prompt(message);
+                if (StringUtils.isBlank(featureName)) {
+                    throw new MojoFailureException("Parameter feature name cannot be null or empty.");
+                }
+            } catch (PrompterException ex) {
+                throw new MojoExecutionException("Error reading feature name from command line " + ex.getMessage(), ex);
+            }
+        }
+        featureName = getFeatureName(featureName);
+
+        getLog().info("Starting feature '" + featureName + "'");
+        getLog().info("msgPrefix '" + getMsgPrefix() + "'");
+        getLog().info("msgSuffix '" + getMsgSuffix() + "'");
+
+        GitflowFeature gitflowFeature = new GitflowFeature();
+        gitflowFeature.setInit(getGitflowInit());
+        gitflowFeature.setMsgPrefix(getMsgPrefix());
+        gitflowFeature.setMsgSuffix(getMsgSuffix());
+
+        try {
+            gitflowFeature.start(featureName);
+        } catch (GitflowException ge) {
+            throw new MojoFailureException(ge.getMessage());
+        }
+
+        String version = project.getVersion();
+
+        String featureVersion = getFeatureVersion(version, featureName);
+
+        getLog().info("START org.codehaus.mojo:versions-maven-plugin:2.1:set '" + featureVersion + "'");
+        executeMojo(
+                plugin(
+                        groupId("org.codehaus.mojo"),
+                        artifactId("versions-maven-plugin"),
+                        version("2.1")
+                ),
+                goal("set"),
+                configuration(
+                        element(name("generateBackupPoms"), "false"),
+                        element(name("newVersion"), featureVersion)
+                ),
+                executionEnvironment(
+                        project,
+                        session,
+                        pluginManager
+                )
+        );
+        getLog().info("DONE org.codehaus.mojo:versions-maven-plugin:2.1:set '" + featureName + "'");
+
+        if (!getGitflowInit().gitIsCleanWorkingTree()) {
+            String msg = getMsgPrefix() + "Updating poms for " + featureName + " branch " + featureVersion + " version " + getMsgSuffix();
+            getGitflowInit().executeLocal("git add -A .");
+            String[] cmtPom = {"git", "commit", "-m", "\"" + msg + "\""};
+            getGitflowInit().executeLocal(cmtPom);
+        } else {
+            getLog().error("Failed to update poms to the feature version " + featureVersion);
+        }
+    }
+
+    public String getFeatureName() {
+        return featureName;
+    }
+}
diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/MavenGitflow.java b/src/main/java/com/dkirrane/maven/plugins/ggitflow/MavenGitflow.java
new file mode 100644
index 0000000..7c0f3ba
--- /dev/null
+++ b/src/main/java/com/dkirrane/maven/plugins/ggitflow/MavenGitflow.java
@@ -0,0 +1,28 @@
+/* 
+ * Copyright 2014 Desmond Kirrane.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.dkirrane.maven.plugins.ggitflow;
+
+/**
+ *
+ */
+public final class MavenGitflow {
+
+    static final String groupId = "com.dkirrane";
+
+    static final String artifactId = "gitflow4j-maven-plugin";
+
+    static final String artifactKey = groupId + ":" + artifactId;
+}
diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/MyMojo.java b/src/main/java/com/dkirrane/maven/plugins/ggitflow/MyMojo.java
new file mode 100644
index 0000000..0d7f905
--- /dev/null
+++ b/src/main/java/com/dkirrane/maven/plugins/ggitflow/MyMojo.java
@@ -0,0 +1,87 @@
+/* 
+ * Copyright 2014 Desmond Kirrane.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.dkirrane.maven.plugins.ggitflow;
+
+/*
+ * Copyright 2001-2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.plugin.MojoExecutionException;
+
+import org.apache.maven.plugins.annotations.LifecyclePhase;
+import org.apache.maven.plugins.annotations.Mojo;
+import org.apache.maven.plugins.annotations.Parameter;
+import org.apache.maven.plugins.annotations.ResolutionScope;
+
+import java.io.File;
+import java.io.FileWriter;
+import java.io.IOException;
+
+/**
+ * Goal which touches a timestamp file.
+ *
+ * @deprecated Don't use!
+ */
+@Mojo(name = "touch", defaultPhase = LifecyclePhase.PROCESS_SOURCES)
+public class MyMojo
+        extends AbstractMojo {
+
+    /**
+     * Location of the file.
+     */
+    @Parameter(defaultValue = "${project.build.directory}", property = "outputDir", required = true)
+    private File outputDirectory;
+
+    public void execute()
+            throws MojoExecutionException {
+        File f = outputDirectory;
+
+        if (!f.exists()) {
+            f.mkdirs();
+        }
+
+        File touch = new File(f, "touch.txt");
+
+        FileWriter w = null;
+        try {
+            w = new FileWriter(touch);
+
+            w.write("touch.txt");
+        } catch (IOException e) {
+            throw new MojoExecutionException("Error creating file " + touch, e);
+        } finally {
+            if (w != null) {
+                try {
+                    w.close();
+                } catch (IOException e) {
+                    // ignore
+                }
+            }
+        }
+    }
+}
diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/Prompter.java b/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/Prompter.java
new file mode 100644
index 0000000..2044a97
--- /dev/null
+++ b/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/Prompter.java
@@ -0,0 +1,38 @@
+/* 
+ * Copyright 2014 Desmond Kirrane.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.dkirrane.maven.plugins.ggitflow.prompt;
+
+import java.util.List;
+import org.codehaus.plexus.components.interactivity.PrompterException;
+
+/**
+ *
+ */
+public interface Prompter {
+
+    String prompt(String message) throws PrompterException;
+
+    String prompt(String message, String defaultReply) throws PrompterException;
+
+    String prompt(String message, List possibleValues, String defaultReply) throws PrompterException;
+
+    String prompt(String message, List possibleValues) throws PrompterException;
+
+    String promptForPassword(String message) throws PrompterException;
+
+    void showMessage(String message) throws PrompterException;
+
+}
diff --git a/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/PrompterImpl.java b/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/PrompterImpl.java
new file mode 100644
index 0000000..3e576d2
--- /dev/null
+++ b/src/main/java/com/dkirrane/maven/plugins/ggitflow/prompt/PrompterImpl.java
@@ -0,0 +1,131 @@
+/* 
+ * Copyright 2014 Desmond Kirrane.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.dkirrane.maven.plugins.ggitflow.prompt;
+
+import java.io.IOException;
+import java.util.List;
+import jline.console.ConsoleReader;
+import jline.console.completer.StringsCompleter;
+//import org.apache.commons.lang.StringUtils;
+import org.codehaus.plexus.components.interactivity.DefaultPrompter;
+import org.codehaus.plexus.components.interactivity.PrompterException;
+
+import org.codehaus.plexus.component.annotations.Component;
+import org.codehaus.plexus.util.StringUtils;
+
+@Component(role = Prompter.class, hint = "prompter")
+public class PrompterImpl implements Prompter {
+
+    private DefaultPrompter defaultPrompter = new DefaultPrompter();
+    private final ConsoleReader console;
+
+    public PrompterImpl() {
+        try {
+            this.console = new ConsoleReader();
+            this.console.setHistoryEnabled(false);
+            this.console.setExpandEvents(false);
+        } catch (IOException ex) {
+            throw new RuntimeException(ex);
+        }
+    }
+
+    @Override
+    public String prompt(String message) throws PrompterException {
+        String value = defaultPrompter.prompt(message);
+        if (StringUtils.isBlank(value)) {
+            value = prompt(message);
+        }
+        return value;
+    }
+
+    @Override
+    public String prompt(String message, String defaultReply) throws PrompterException {
+        String value = defaultPrompter.prompt(message, defaultReply);
+        if (StringUtils.isBlank(value)) {
+            value = prompt(message, defaultReply);
+        }
+        return value;
+    }
+
+    @Override
+    public String prompt(String message, List possibleValues, String defaultReply) throws PrompterException {
+        try {
+            console.println(message + ":");
+            for (int i = 0; i < possibleValues.size(); i++) {
+                console.println(String.format("  %2d) %s", i, possibleValues.get(i)));
+            }
+            console.flush();
+
+            // setup completer
+            StringsCompleter completer = new StringsCompleter(possibleValues);
+            console.addCompleter(completer);
+
+            try {
+                String value;
+                while (true) {
+                    value = prompt(message).trim();
+
+                    // check if value is an index
+                    Integer i = null;
+                    try {
+                        i = Integer.parseInt(value);
+                    } catch (NumberFormatException numberFormatException) {
+                    }
+                    if (i != null && i >= 0 && i < possibleValues.size()) {
+                        value = (String) possibleValues.get(i);
+                        break;
+                    }
+
+                    // check if choice is valid
+                    if (possibleValues.contains(value)) {
+                        break;
+                    }
+
+                    console.println("Invalid selection: " + value);
+                }
+                return value;
+            } finally {
+                console.removeCompleter(completer);
+            }
+        } catch (IOException ex) {
+            throw new PrompterException(ex.getMessage(), ex);
+        }
+    }
+
+    @Override
+    public String prompt(String message, List possibleValues) throws PrompterException {
+        String value = defaultPrompter.prompt(message, possibleValues);
+        if (StringUtils.isBlank(value)) {
+            value = prompt(message);
+        }
+        return value;
+    }
+
+    @Override
+    public String promptForPassword(String message) throws PrompterException {
+        String value = defaultPrompter.promptForPassword(message);
+        if (StringUtils.isBlank(value)) {
+            value = prompt(message);
+        }
+        return value;
+    }
+
+    @Override
+    public void showMessage(String message) throws PrompterException {
+        defaultPrompter.showMessage(message);
+    }
+
+}
diff --git a/src/main/java/org/jfrog/hudson/util/GenericArtifactVersion.java b/src/main/java/org/jfrog/hudson/util/GenericArtifactVersion.java
new file mode 100644
index 0000000..d32d6cd
--- /dev/null
+++ b/src/main/java/org/jfrog/hudson/util/GenericArtifactVersion.java
@@ -0,0 +1,659 @@
+package org.jfrog.hudson.util;
+
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
+import org.codehaus.plexus.util.StringUtils;
+
+/**
+ * Represents a generic standard artifact version. This class can be used either
+ * for parsing a version string and/or for building a version string
+ * programatically. Consistency is guaranteed at all times so that no invalid
+ * version is formed. Also, new
+ * {@link GenericArtifactVersion}(versionString).toString().equals(versionString)
+ * is guaranteed to be always true if 'versionString' is in the right format.
+ *
+ * A standard artifact version is a string in the following format:
+ *
+ * <pre>
+ * <primary_numbers>[[-_]<annotation>][[-_]<annotation_revision>][[-_]<build_specifier>]
+ * </pre>
+ * <ul>
+ * where:
+ * <li>primary_numbers: <p1>[.<p2>[...<pn>]...] are non-negative integers
+ * separated by '.'. Examples: 1; 1.2; 1.2.3; etc.</li>
+ * <li>annotation: Sequence of letters that usually describe the release type.
+ * Examples: alpha, beta, RC, etc.</li>
+ * <li>annotation_revision: A non-negative integer associated to the
+ * annotation.</li>
+ * <li>build_specifier: SNAPSHOT|YYYYMMdd.hhmmss-n[n[...[n]...]] Examples:
+ * SNAPSHOT, 20120110.152615-1, 20120110.152615-543</li>
+ * </ul>
+ *
+ * Note that we used generic terms as components. Even though "major", "minor",
+ * and "incremental" are terms used for the first three primary components, we
+ * want to abstract that to be as generic as possible. Other implementations can
+ * reuse this class and rename components as desired.
+ *
+ * Notes: The version format is based on Maven's
+ * org.apache.maven.shared.release.versions.DefaultVersionInfo. As of today,
+ * that class can be found in the following artifact:
+ * org.apache.maven.release:maven-release-manager:2.2
+ * <p>
+ * The reason why I decided to reimplement this is becase of the unwanted
+ * dependencies added with that artifact that clash with some Jenkins'
+ * dependencies. Besides that, the implementation is not very flexible, it does
+ * not provide means to retrieve the component separators and it cannot be
+ * extended either. Moreover, if we depended on that class, our code can easily
+ * break if we upgrade that artifact and they update their version scheme. What
+ * we do when releasing is tied to our interpretation of version schemes.
+ *
+ *
+ * @author Nicolas Grobisa
+ *
+ */
+public class GenericArtifactVersion {
+
+    private static final String SNAPSHOT_QUALIFIER = "SNAPSHOT";
+
+    private static final Character DEFAULT_VERSION_COMPONENT_SEPARATOR = '-';
+
+    private static final Integer DEFAULT_BASE_ANNOTATION_REVISION = 1;
+
+    private static final String VERSION_COMPONENT_SEPARATOR_REGEX = "([-_]?)";
+
+    private static final Pattern VERSION_COMPONENT_SEPARATOR_PATTERN = Pattern.compile(VERSION_COMPONENT_SEPARATOR_REGEX);
+
+    private static final String VERSION_PRIMARY_NUMBERS_REGEX = "(\\d(\\.\\d)*)";
+
+    private static final String VERSION_ANNOTATION_REGEX = "([a-zA-Z]+)";
+
+    private static final Pattern VERSION_ANNOTATION_PATTERN = Pattern.compile(VERSION_ANNOTATION_REGEX);
+
+    private static final String VERSION_ANNOTATIONREV_REGEX = "(\\d+)";
+
+    private static final String VERSION_BUILD_SPECIFIER_REGEX = "((?i)" + SNAPSHOT_QUALIFIER + "|\\d{8}\\.\\d{6}\\-(\\d+))";
+
+    private static final Pattern VERSION_BUILD_SPECIFIER_PATTERN = Pattern.compile(VERSION_BUILD_SPECIFIER_REGEX);
+
+    private static final String VERSION_REGEX = "^" + VERSION_PRIMARY_NUMBERS_REGEX + "(" + VERSION_COMPONENT_SEPARATOR_REGEX
+            + VERSION_ANNOTATION_REGEX + ")?(" + VERSION_COMPONENT_SEPARATOR_REGEX + VERSION_ANNOTATIONREV_REGEX + ")?("
+            + VERSION_COMPONENT_SEPARATOR_REGEX + VERSION_BUILD_SPECIFIER_REGEX + ")?$";
+
+    private static final int VERSION_REGEXGROUP_PRIMARYNUMS = 1;
+
+    private static final int VERSION_REGEXGROUP_ANNOTATION_SEPARATOR = 4;
+
+    private static final int VERSION_REGEXGROUP_ANNOTATION = 5;
+
+    private static final int VERSION_REGEXGROUP_ANNOTATIONREV_SEPARATOR = 7;
+
+    private static final int VERSION_REGEXGROUP_ANNOTATIONREV = 8;
+
+    private static final int VERSION_REGEXGROUP_BUILDSPEC_SEPARATOR = 10;
+
+    private static final int VERSION_REGEXGROUP_BUILDSPEC = 11;
+
+    private static final Pattern VERSION_PATTERN = Pattern.compile(VERSION_REGEX);
+
+    private final Integer[] primaryNumbers;
+
+    private Character annotationSeparator;
+
+    private String annotation;
+
+    private Character annotationRevisionSeparator;
+
+    private Integer annotationRevision;
+
+    private Character buildSpecifierSeparator;
+
+    private String buildSpecifier;
+
+    public GenericArtifactVersion(final String versionString) {
+        final Matcher matcher = VERSION_PATTERN.matcher(versionString);
+
+        if (!matcher.matches()) {
+            throw new IllegalArgumentException("Provided version string is not a valid version.");
+        }
+
+        Integer annotationRevision = parseAnnotationRevision(matcher.group(VERSION_REGEXGROUP_ANNOTATIONREV));
+        Character annotationSeparator = parseSeparator(matcher.group(VERSION_REGEXGROUP_ANNOTATION_SEPARATOR));
+        String annotation = nullIfBlank(matcher.group(VERSION_REGEXGROUP_ANNOTATION));
+        Character buildSpecifierSeparator = parseSeparator(matcher.group(VERSION_REGEXGROUP_BUILDSPEC_SEPARATOR));
+        String buildSpecifier = nullIfBlank(matcher.group(VERSION_REGEXGROUP_BUILDSPEC));
+
+        // The regex will capture the snapshot qualifier as an annotation.
+        // Therefore, we need to set it as the build specifier.
+        if (buildSpecifier == null && SNAPSHOT_QUALIFIER.equalsIgnoreCase(annotation)) {
+            buildSpecifierSeparator = annotationSeparator;
+            buildSpecifier = annotation;
+            annotationSeparator = null;
+            annotation = null;
+        }
+
+        // Set the separators, using the default ones where appropriate. This is a subtle use case. The user might have provided a
+        // version with annotation but no annotation revision. E.g., 1.0_alpha.
+        // This means that we would know what the annotation separator is ('_' in the example) but we don't have information about
+        // the annotation revision separator. If later the user wants to add an annotation revision, we want to be sure that the
+        // default separator is used instead of the null separator. Example, if the users adds a revision of '5', then the result
+        // would be "1.0_alpha-5", and not "1.0_alpha5".
+        this.annotationSeparator = (annotation == null) ? DEFAULT_VERSION_COMPONENT_SEPARATOR : annotationSeparator;
+        this.annotationRevisionSeparator = (annotationRevision == null) ? DEFAULT_VERSION_COMPONENT_SEPARATOR
+                : parseSeparator(matcher.group(VERSION_REGEXGROUP_ANNOTATIONREV_SEPARATOR));
+        this.buildSpecifierSeparator = (buildSpecifier == null) ? DEFAULT_VERSION_COMPONENT_SEPARATOR : buildSpecifierSeparator;
+
+        // Set version components
+        this.primaryNumbers = parsePrimaryNumber(matcher.group(VERSION_REGEXGROUP_PRIMARYNUMS));
+        this.annotation = annotation;
+        this.annotationRevision = annotationRevision;
+        this.buildSpecifier = buildSpecifier;
+    }
+
+    /**
+     * Parses a primary component number.
+     *
+     * @param primaryNumbers A string representing a sequence of primary numbers
+     * separated by dot ('.'). Examples: "1", "1.2.3". Must be in the correct
+     * format.
+     * @return An array where each element is an integer. Index 0 contains the
+     * most significant primary number.
+     */
+    private Integer[] parsePrimaryNumber(final String primaryNumbers) {
+        final String[] primaryNumberStrings = primaryNumbers.split("\\.");
+        final int n = primaryNumberStrings.length;
+        final Integer[] result = new Integer[n];
+
+        for (int i = 0; i < n; i++) {
+            result[i] = Integer.parseInt(primaryNumberStrings[i]);
+        }
+
+        return result;
+    }
+
+    /**
+     * Returns the input string or null if that string is blank or null.
+     *
+     * @param string The input string.
+     * @return The input string or null if that string is blank or null.
+     */
+    private String nullIfBlank(final String string) {
+        return StringUtils.isBlank(string) ? null : string;
+    }
+
+    /**
+     * Parses a version component separator string and returns it as a
+     * character.
+     *
+     * @param separator The separator string to parse.
+     * @return The first character of the string, or null if that string is
+     * empty.
+     */
+    private Character parseSeparator(final String separator) {
+        return StringUtils.isNotEmpty(separator) ? separator.charAt(0) : null;
+    }
+
+    /**
+     * Parses a string representing the version annotation revision.
+     *
+     * @param annotationRev The string to parse.
+     * @return An integer representing the version annotation revision, or null
+     * if the string is empty.
+     */
+    private Integer parseAnnotationRevision(final String annotationRev) {
+        return StringUtils.isNotEmpty(annotationRev) ? Integer.parseInt(annotationRev) : null;
+    }
+
+    /**
+     * Increments the least significant number in the version components by 1.
+     * <p>
+     * If the annotation revision is defined, it's incremented. Otherwise, the
+     * last primary number is incremented.
+     * <p>
+     * Examples:
+     * <ul>
+     * <li>"1.2.3.4-alpha-5" is upgraded to "1.2.3.4-alpha-6"</li>
+     * <li>"1.2.3.4-alpha" is upgraded to "1.2.3.5-alpha"</li>
+     * <li>"1-SNAPSHOT" is upgraded to "2-SNAPSHOT"</li>
+     * </ul>
+     *
+     * @return The instance, for method chaining.
+     */
+    public GenericArtifactVersion upgradeLeastSignificantNumber() {
+        if (this.annotationRevision != null) {
+            upgradeAnnotationRevision();
+        } else {
+            upgradeLeastSignificantPrimaryNumber();
+        }
+
+        return this;
+    }
+
+    /**
+     * Increments the least significant primary number by 1, resetting the
+     * annotation revision if it is defined.
+     * <p>
+     * Examples (assuming a base annotation revision of 1):
+     * <ul>
+     * <li>"1.2.3.4-alpha-5" is upgraded to "1.2.3.5-alpha-1"</li>
+     * <li>"1.2.3.4-alpha" is upgraded to "1.2.3.5-alpha"</li>
+     * <li>"1-SNAPSHOT" is upgraded to "2-SNAPSHOT"</li>
+     * </ul>
+     *
+     * @return The instance, for method chaining.
+     */
+    public GenericArtifactVersion upgradeLeastSignificantPrimaryNumber() {
+        upgradePrimaryNumber(this.primaryNumbers.length - 1);
+
+        return this;
+    }
+
+    /**
+     * Increments a primary number by 1, resetting the remaining less
+     * significant components.
+     * <p>
+     * Examples (assuming a base annotation revision of 1):
+     * <ul>
+     * <li>"1.2.3.4-alpha-5" is upgraded to "2.0.0.0-alpha-1" with an index of
+     * 0</li>
+     * <li>"1.2.3.4-alpha-5" is upgraded to "1.2.3.0-alpha-1" with an index of
+     * 3</li>
+     * <li>"1.2-alpha" is upgraded to "1.3-alpha" with an index of 1</li>
+     * <li>"1-SNAPSHOT" is upgraded to "2-SNAPSHOT" with an index of 0</li>
+     * </ul>
+     *
+     * @param primaryNumberIndex The index identifying the primary number to
+     * increase.
+     * @return The instance, for method chaining.
+     * @throws IllegalArgumentException if the index is negative.
+     * @throws IllegalStateException if this version doesn't have a primary
+     * number at the specified index.
+     */
+    public GenericArtifactVersion upgradePrimaryNumber(final int primaryNumberIndex) {
+        if (primaryNumberIndex < 0) {
+            throw new IllegalArgumentException("Primary number index cannot be negative.");
+        }
+        if (this.primaryNumbers.length <= primaryNumberIndex) {
+            throw new IllegalStateException("Cannot upgrade version becase '" + this + "' does not have a "
+                    + "primary number at index " + primaryNumberIndex);
+        }
+
+        this.primaryNumbers[primaryNumberIndex]++;
+        resetPrimaryNumbers(primaryNumberIndex + 1);
+        resetAnnotationRevision();
+
+        return this;
+    }
+
+    /**
+     * Increments the annotation revision by 1.
+     *
+     * @return The instance, for method chaining.
+     * @throws IllegalStateException if this version doesn't have an annotation
+     * revision defined.
+     */
+    public GenericArtifactVersion upgradeAnnotationRevision() {
+        if (this.annotationRevision == null) {
+            throw new IllegalStateException("Cannot upgrade annotation revision for version '" + this
+                    + "' because it does not have that component.");
+        }
+
+        this.annotationRevision++;
+        return this;
+    }
+
+    /**
+     * Resets (sets to 0) all consecutive primary numbers starting at a specific
+     * index.
+     *
+     * @param fromIndex The index pointing to the first primary number that will
+     * be reset.
+     */
+    private void resetPrimaryNumbers(final int fromIndex) {
+        for (int i = fromIndex, n = this.primaryNumbers.length; i < n; i++) {
+            this.primaryNumbers[i] = 0;
+        }
+    }
+
+    /**
+     * Resets the annotation revision (if it is defined). It is set to
+     * {@link #DEFAULT_BASE_ANNOTATION_REVISION}.
+     */
+    private void resetAnnotationRevision() {
+        if (this.annotationRevision != null) {
+            this.annotationRevision = DEFAULT_BASE_ANNOTATION_REVISION;
+        }
+    }
+
+    /**
+     * Returns the string representation of the primary numbers.
+     * <p>
+     * The string representation is the concatenation of all numbers separated
+     * by the dot character ('.').
+     *
+     * @return The primary numbers as a single string.
+     */
+    public String getPrimaryNumbersAsString() {
+        return createPrimaryNumbersString(new StringBuilder(8)).toString();
+    }
+
+    /**
+     * Returns the string representation of the annotation string.
+     *
+     * [[-_]<annotation>][[-_]<annotation_revision>]
+     *
+     * @return The primary numbers as a single string.
+     */
+    public String getAnnotationAsString() {
+        return createAnnotationString(new StringBuilder(0)).toString();
+    }
+
+    /**
+     * Returns how many primary numbers are defined for this version.
+     *
+     * @return The primary number count.
+     */
+    public int getPrimaryNumberCount() {
+        return this.primaryNumbers.length;
+    }
+
+    /**
+     * Returns the primary number located at a specific index.
+     *
+     * @param index The index pointing to the primary number. Must be
+     * non-negative.
+     * @return The primary number, or null if it's not defined.
+     * @throws IllegalArgumentException if the index is provided is negative.
+     */
+    public Integer getPrimaryNumber(final int index) {
+        if (index < 0) {
+            throw new IllegalArgumentException("Primary number index must be non-negative.");
+        }
+
+        return (this.primaryNumbers.length > index) ? this.primaryNumbers[index] : null;
+    }
+
+    /**
+     * Defines the primary number located at a specific index.
+     *
+     * @param index The index pointing to the primary number to define. Must be
+     * non-negative.
+     * @param value The number to define as the primary component. Must be
+     * non-negative.
+     * @return The instance, for method chaining.
+     * @throws IllegalArgumentException if the index or value is negative, or if
+     * a primary number does not exist at that index.
+     */
+    public GenericArtifactVersion setPrimaryNumber(final int index, final int value) {
+        if (index < 0) {
+            throw new IllegalArgumentException("Primary number index must be non-negative.");
+        }
+        if (index >= this.primaryNumbers.length) {
+            throw new IllegalArgumentException("Invalid index for version digit. Maximum digit index for this version is "
+                    + (this.primaryNumbers.length - 1));
+        }
+        if (value < 0) {
+            throw new IllegalArgumentException("Primary numbers must be non-negative.");
+        }
+
+        this.primaryNumbers[index] = value;
+
+        return this;
+    }
+
+    /**
+     * Returns the separator character for the version annotation component.
+     *
+     * @return The annotation separator, or null if there's none.
+     */
+    public Character getAnnotationSeparator() {
+        return this.annotationSeparator;
+    }
+
+    /**
+     * Sets the separator character for the version annotation component.
+     *
+     * @param annotationSeparator A valid separator character (read this class'
+     * documentation for more information about the valid format). null can be
+     * used to indicate that there's no separator.
+     * @return The instance, for method chaining.
+     * @throws IllegalArgumentException if the character provided is invalid.
+     */
+    public GenericArtifactVersion setAnnotationSeparator(final Character annotationSeparator) {
+        validateSeparator(annotationSeparator);
+        this.annotationSeparator = annotationSeparator;
+
+        return this;
+    }
+
+    /**
+     * Returns the version annotation component.
+     *
+     * @return The annotation, or null if it is not defined.
+     */
+    public String getAnnotation() {
+        return this.annotation;
+    }
+
+    /**
+     * Defines the version annotation component.
+     *
+     * @param annotation A valid annotation string (read this class'
+     * documentation for more information about the valid format). null can be
+     * used to indicate that there's no annotation.
+     * @return The instance, for method chaining.
+     * @throws IllegalArgumentException if the annotation is invalid.
+     */
+    public GenericArtifactVersion setAnnotation(final String annotation) {
+        if (annotation != null && !VERSION_ANNOTATION_PATTERN.matcher(annotation).matches()) {
+            throw new IllegalArgumentException("Invalid version separator.");
+        }
+        this.annotation = annotation;
+
+        return this;
+    }
+
+    /**
+     * Returns the separator character for the annotation revision.
+     *
+     * @return The separator, or null if there's none.
+     */
+    public Character getAnnotationRevisionSeparator() {
+        return annotationRevisionSeparator;
+    }
+
+    /**
+     * Defines the separator character for the version annotation revision
+     * component.
+     *
+     * @param annotationRevisionSeparator A valid separator character (read this
+     * class' documentation for more information about the valid format). null
+     * can be used to indicate that there's no separator.
+     * @return The instance, for method chaining.
+     * @throws IllegalArgumentException if the character provided is invalid.
+     */
+    public GenericArtifactVersion setAnnotationRevisionSeparator(final Character annotationRevisionSeparator) {
+        validateSeparator(annotationRevisionSeparator);
+        this.annotationRevisionSeparator = annotationRevisionSeparator;
+
+        return this;
+    }
+
+    /**
+     * Returns the annotation revision number.
+     *
+     * @return The revision number, or null if it's not defined.
+     */
+    public Integer getAnnotationRevision() {
+        return annotationRevision;
+    }
+
+    /**
+     * Defines the annotation revision number.
+     *
+     * @param annotationRevision The revision number. Must be non-negative. null
+     * can be used to indicate that there's no annotation revision number.
+     * @return The instance, for method chaining.
+     * @throws IllegalArgumentException if 'annotationRevision' is negative.
+     */
+    public GenericArtifactVersion setAnnotationRevision(final Integer annotationRevision) {
+        if (annotationRevision != null && annotationRevision < 0) {
+            throw new IllegalArgumentException("Annotation revision must be non-negative.");
+        }
+        this.annotationRevision = annotationRevision;
+
+        return this;
+    }
+
+    /**
+     * Returns the separator character for the build specifier component.
+     *
+     * @return The separator, or null if there's none.
+     */
+    public Character getBuildSpecifierSeparator() {
+        return buildSpecifierSeparator;
+    }
+
+    /**
+     * Defines the separator character for the version build specifier
+     * component.
+     *
+     * @param buildSpecifierSeparator A valid separator character (read this
+     * class' documentation for more information about the valid format). null
+     * can be used to indicate that there's no separator.
+     * @return The instance, for method chaining.
+     * @throws IllegalArgumentException if the character provided is invalid.
+     */
+    public GenericArtifactVersion setBuildSpecifierSeparator(final Character buildSpecifierSeparator) {
+        validateSeparator(buildSpecifierSeparator);
+        this.buildSpecifierSeparator = buildSpecifierSeparator;
+
+        return this;
+    }
+
+    /**
+     * Returns the build specifier component.
+     *
+     * @return The build specifier, or null if it's not defined.
+     */
+    public String getBuildSpecifier() {
+        return buildSpecifier;
+    }
+
+    /**
+     * Defines the build specifier component.
+     *
+     * @param buildSpecifier A valid build specifier (read this class'
+     * documentation for more information about the valid format). null can be
+     * used to indicate that there's no build specifier component.
+     * @return The instance, for method chaining.
+     * @throws IllegalArgumentException if the build specifier is invalid.
+     */
+    public GenericArtifactVersion setBuildSpecifier(final String buildSpecifier) {
+        if (buildSpecifier != null && !VERSION_BUILD_SPECIFIER_PATTERN.matcher(buildSpecifier).matches()) {
+            throw new IllegalArgumentException("Invalid build specifier.");
+        }
+        this.buildSpecifier = buildSpecifier;
+
+        return this;
+    }
+
+    /**
+     * Checks that a character is a valid version component separator, only if
+     * it's not null.
+     *
+     * @param separator The separator character that we want to check.
+     * @throws IllegalArgumentException if the character is not a valid version
+     * component separator.
+     */
+    private void validateSeparator(final Character separator) {
+        if (separator != null && !VERSION_COMPONENT_SEPARATOR_PATTERN.matcher(String.valueOf(separator)).matches()) {
+            throw new IllegalArgumentException("Invalid version separator.");
+        }
+    }
+
+    /**
+     * Returns a string representation of this version object.
+     * <p>
+     * The following condition is always true: new
+     * {@link GenericArtifactVersion} (versionString).equals(versionString)
+     * <p>
+     * The result is the concatenation of all the version components, separated
+     * with their respective separator characters:
+     * <ul>
+     * <li>primary components separated by the dot character ('.').</li>
+     * <li>annotation separator</li>
+     * <li>annotation</li>
+     * <li>annotation revision separator</li>
+     * <li>annotation revision</li>
+     * <li>build specifier separator</li>
+     * <li>build specifier</li>
+     * </ul>
+     *
+     */
+    @Override
+    public String toString() {
+        final StringBuilder result = new StringBuilder(30);
+
+        createPrimaryNumbersString(result);
+
+        if (this.annotation != null) {
+            if (this.annotationSeparator != null) {
+                result.append(this.annotationSeparator);
+            }
+            result.append(this.annotation);
+        }
+
+        if (this.annotationRevision != null) {
+            if (this.annotationRevisionSeparator != null) {
+                result.append(this.annotationRevisionSeparator);
+            }
+            result.append(this.annotationRevision);
+        }
+
+        if (this.buildSpecifier != null) {
+            if (this.buildSpecifierSeparator != null) {
+                result.append(this.buildSpecifierSeparator);
+            }
+            result.append(this.buildSpecifier);
+        }
+
+        return result.toString();
+    }
+
+    /**
+     * Creates a string concatenating the primary numbers separated by the dot
+     * character ('.').
+     * <p>
+     * The result is appended to the provided string builder and returned.
+     *
+     * @param result The string builder where to append the string.
+     * @return The provided string builder.
+     */
+    private StringBuilder createPrimaryNumbersString(final StringBuilder result) {
+        for (int i = 0, n = this.primaryNumbers.length; i < n; i++) {
+            if (i > 0) {
+                result.append('.');
+            }
+            result.append(this.primaryNumbers[i]);
+        }
+
+        return result;
+    }
+
+    /**
+     * [[-_]<annotation>][[-_]<annotation_revision>]
+     *
+     * @param result
+     * @return
+     */
+    private StringBuilder createAnnotationString(final StringBuilder result) {
+        if (null != this.annotation) {
+            result.append(this.annotationSeparator).append(this.annotation);
+        }
+        if (null != this.annotationRevision) {
+            result.append(this.annotationRevisionSeparator).append(this.annotationRevision);
+        }
+        return result;
+    }
+
+}
diff --git a/src/main/resources/LICENSE b/src/main/resources/LICENSE
new file mode 100644
index 0000000..1ab51f2
--- /dev/null
+++ b/src/main/resources/LICENSE
@@ -0,0 +1,202 @@
+
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright 2014 Desmond Kirrane
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
\ No newline at end of file
diff --git a/src/main/resources/VERSION b/src/main/resources/VERSION
new file mode 100644
index 0000000..f2ab45c
--- /dev/null
+++ b/src/main/resources/VERSION
@@ -0,0 +1 @@
+${project.version}
\ No newline at end of file
diff --git a/src/test/java/com/dkirrane/maven/plugins/ggitflow/SetupVerifyScriptHelper.java b/src/test/java/com/dkirrane/maven/plugins/ggitflow/SetupVerifyScriptHelper.java
new file mode 100644
index 0000000..b0b8354
--- /dev/null
+++ b/src/test/java/com/dkirrane/maven/plugins/ggitflow/SetupVerifyScriptHelper.java
@@ -0,0 +1,98 @@
+/* 
+ * Copyright 2014 Desmond Kirrane.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.dkirrane.maven.plugins.ggitflow;
+
+import com.dkirrane.gitflow.groovy.GitflowInit;
+import java.io.File;
+import java.io.IOException;
+import java.util.List;
+import java.util.Map;
+import org.codehaus.plexus.util.FileUtils;
+
+/**
+ *
+ */
+public class SetupVerifyScriptHelper {
+
+    public static final String BUILD_LOG_FILE = "build.log";
+
+    /**
+     * The absolute path to the base directory of the test project.
+     */
+    protected File baseDirectory;
+
+    /**
+     * The absolute path to the local repository used for the Maven invocation
+     * on the test project.
+     */
+    protected File localRepositoryPath;
+
+    /**
+     * The storage of key-value pairs used to pass data from the pre-build hook
+     * script to the post-build hook script.
+     */
+    protected Map context;
+
+    public SetupVerifyScriptHelper(File baseDirectory, File localRepositoryPath, Map context) {
+        this.baseDirectory = baseDirectory;
+        System.out.println("baseDirectory = " + baseDirectory);
+        this.localRepositoryPath = localRepositoryPath;
+        System.out.println("localRepositoryPath = " + localRepositoryPath);
+        this.context = context;
+        System.out.println("context = " + context);
+    }
+
+    public void setUp() throws IOException {
+//
+//        File pluginXml = new File(getBasedir(), "src/test/resources/test-case1/plugin.xml");
+//        testPom = new File(repoDir, "pom.xml");
+//        FileUtils.copyFile(pluginXml, testPom);
+//
+//        assertTrue(testPom.exists());
+
+        GitflowInit init = new GitflowInit();
+        init.setRepoDir(this.baseDirectory);
+        init.executeLocal("git init");
+        init.executeLocal("git add -A .");
+        String[] cmtPom = {"git", "commit", "-m", "\"Commit pom.xml\""};
+        init.executeLocal(cmtPom);
+
+//        init.executeLocal("/usr/local/bin/stree " + this.baseDirectory.getCanonicalPath());
+    }
+
+    public void tearDown() {
+        baseDirectory.deleteOnExit();
+    }
+
+    public void assertBuildLogContains(String search) throws Exception {
+        assertFileContains(BUILD_LOG_FILE, search);
+    }
+
+    public void assertFileContains(String path, String search) throws Exception {
+        if (!FileUtils.fileRead(new File(baseDirectory, path)).contains(search)) {
+            throw new Exception(path + " does not contain '" + search + "'.");
+        }
+    }
+
+    public void featureBranchExists(String branchName) throws Exception {
+        GitflowInit init = new GitflowInit();
+        init.setRepoDir(this.baseDirectory);
+        Boolean exists = init.gitLocalBranchExists(init.getFeatureBranchPrefix() + branchName);
+        if (!exists) {
+            throw new Exception("Feature branch does not exist " + branchName);
+        }
+    }
+}
