Unbalanced quotes exception when executing Maven exec plugin in Bamboo plan
Asked Answered
B

1

8

So I got this annoying exception in one of my Bamboo plans while I try to execute Maven exec plugin: Unbalanced quotes "-Dargument=value.

The command I'm trying to run is:

mvn exec:exec -Dexec.args="-Dargument=value"

The same command works just fine when I execute it in my command line. Any ideas?

Billionaire answered 12/8, 2015 at 13:33 Comment(0)
B
14

The solution is pretty simple. Thanks to a comment on this Jira ticket I found that the correct way to pass such arguments is:

mvn exec:exec "-Dexec.args=-Dargument=value"

instead of:

mvn exec:exec -Dexec.args="-Dargument=value"
Billionaire answered 12/8, 2015 at 13:41 Comment(1)
Quite annoying bug". I would have thought that bamboo would be able to pass commands with quotes without any issues.Restaurateur

© 2022 - 2024 — McMap. All rights reserved.