Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot finish release with plugin 1.0.7 #3

Closed
antusus opened this issue Feb 2, 2015 · 5 comments
Closed

Cannot finish release with plugin 1.0.7 #3

antusus opened this issue Feb 2, 2015 · 5 comments
Assignees

Comments

@antusus
Copy link

antusus commented Feb 2, 2015

I'm getting an error during finish of release:

[ERROR] Failed to execute goal com.amashchenko.maven.plugin:gitflow-maven-plugin:1.0.7:release-finish (default-cli) on project base: /bin/sh: -c: line 0: unexpected EOF while looking for matching `"'
[ERROR] /bin/sh: -c: line 1: syntax error: unexpected end of file

You can easily reproduce this on sample project : https://github.com/antusus/release-test

There is develop branch on which I'm executing

mvn gitflow:release-start

mvn gitflow:release-finish
@aleksandr-m
Copy link
Owner

Are you running maven commands from some script? Can you post an output of the release-finish goal.

@aleksandr-m aleksandr-m self-assigned this Feb 3, 2015
@antusus
Copy link
Author

antusus commented Feb 3, 2015

I'm not using script. I've this problem on zsh and bash shell (one is running on MAC and other on Linux Mint).

Heres the output from release-finish

➜  base git:(release/1.10) mvn gitflow:release-finish
Picked up _JAVA_OPTIONS: -Dapple.awt.UIElement=true
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] base
[INFO] model
[INFO] web
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building base 1.10
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- gitflow-maven-plugin:1.0.7:release-finish (default-cli) @ base ---
[INFO] Checking for uncommitted changes.
[INFO] Checking out '"release/1.10"' branch.
[INFO] Cleaning and testing the project.
[INFO] Checking out 'master' branch.
[INFO] Merging 'release/1.10"' branch.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] base .............................................. FAILURE [3.099s]
[INFO] model ............................................. SKIPPED
[INFO] web ............................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.249s
[INFO] Finished at: Tue Feb 03 22:36:20 CET 2015
[INFO] Final Memory: 9M/309M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.amashchenko.maven.plugin:gitflow-maven-plugin:1.0.7:release-finish (default-cli) on project base: /bin/sh: -c: line 0: unexpected EOF while looking for matching `"'
[ERROR] /bin/sh: -c: line 1: syntax error: unexpected end of file
[ERROR] -> [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/MojoFailureException

aleksandr-m added a commit that referenced this issue Feb 5, 2015
@aleksandr-m
Copy link
Owner

Don't know why but on *nix systems return values from git for-each-ref are wrapped in quotes ('"release/1.10"' and 'release/1.10"'). The fix is pushed into develop branch. I'll try to release a new version next week.

@antusus
Copy link
Author

antusus commented Feb 6, 2015

Tried 1.0.8-SNAPSHOT and it worked. Thanks!

@aleksandr-m
Copy link
Owner

Version 1.0.8 released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants