Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unbalanced quotes exception when executing Maven exec plugin in Bamboo plan

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?

like image 723
vadim Avatar asked Aug 12 '15 13:08

vadim


1 Answers

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"
like image 69
vadim Avatar answered Oct 25 '22 22:10

vadim