Q: How configure maven additional parameters with spaces (TC 7.1, maven 3.0.4)

Hi,

how it is possible to configure additional maven parameters with spaces like

-Darguments="-Dproperty1=123 -Dpropery2=234 -Dproperty3=567"

arguments is a user property of the maven-release-plugin.

TC 7.1 (on windows 7 and jdk 1.7) transform the input into
"-Darguments="-Dproperty1=123 -Dpropery2=234 -Dproperty3=567""

and so, the release plugin get only the value -Dproperty1=123 :(

Thanks for a hint
Torsten

4 comments
Comment actions Permalink

Hello, Torsten.
Please, try double quotes "" as workaround.
And vote for the issue TW-7964, that addresses this problem.

0
Comment actions Permalink

Hi Inna,

You mean

  -Darguments=""-Dprop1=abc prop2=def .......""    
?

If Yes, TC calls java.exe with

   -Darguments=""-Dprop1=abc prop2=def .......""

what is the same as specified in maven configuration dialog.

And the maven-release-plugin get

    -Dprop1=abc

But I need here -Dprop1=abc -Dprop2=def ...
:-(

- Dprop1
0
Comment actions Permalink

As a workaround, couldyou try to specif your parameters as follows:

"-Daruments=-Dproperty1=123 -D property2=234 -Dproperty3=567"

(use double quotes around all the expression, without anything inside)

I think this is the related issue: http://youtrack.jetbrains.com/issue/TW-11176

0
Comment actions Permalink

Thanks, Nigita! It works fine.

Regards
Torsten

.
0

Please sign in to leave a comment.