Unbalanced quotation mark 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 the 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 fine when I execute it on the command line. Any ideas?

+4
source share
1 answer

The solution is pretty simple. Thanks to the comment on this ticket in Jira, I found that the right way to convey such arguments is:

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

instead:

 mvn exec:exec -Dexec.args="-Dargument=value" 
+7
source

All Articles