Hello -
We were using SVN and recently migrated to GIT. So to release the projects from GIT repo, I am trying to use jgitflow-maven-plugin version 1.0-m1 to release the projects off of GIT repo.
We are following the "git flow" work flow and i would like to release the project off of develop branch. I created a branch "release-test" from develop branch and trying to release it. When i do a release my understanding is that from branch "release-test" it should do the following:-
- runs a maven build (deploy or install)
- merges the release branch to develop
- updates pom(s) with development versions in the develop branch
Below are the logs from my console and any help is highly appreciated.
Thanks,
Sudhakar
------------------------------------------------------------------------------------------------------------------------------------------------
$ git checkout release-test
Switched to branch 'release-test'
------------------------------------------------------------------------------------------------------------------------------------------------
$ mvn jgitflow:release-start
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building PRODUCT Features 1.3.3-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- jgitflow-maven-plugin:1.0-m1:release-start (default-cli) @ PRODUCTNAME-features ---
[INFO] detected cygwin:
[INFO] - turning off filemode...
[INFO] - fixing maven prompter...
[INFO] Checking for SNAPSHOT version in projects...
[INFO] Checking dependencies and plugins for snapshots ...
[INFO] ensuring origin exists...
What is the release version for "PRODUCT Features"? (com.pearson.ltg.PRODUCT:PRODUCTNAME-features) [1.3.3]:
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.605s
[INFO] Finished at: Wed Apr 16 06:39:05 EDT 2014
[INFO] Final Memory: 13M/981M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal external.atlassian.jgitflow:jgitflow-maven-plugin:1.0-m1:release-start (default-cli) on project PRODUCTNAME-features: Error starting release: Error starting release: a release branch [refs/heads/release-test] already exists. Finish that first! -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException------------------------------------------------------------------------------------------------------------------------------------------------
$ git branch -a
* develop
master
release-test
remotes/origin/develop
remotes/origin/master