1

Sometimes I need the parameter to be appended, instead of overriding the one in configuration:

for instance

mvn test  -DargLine="-Dportal.test=huge"    

should be added to

<argLine>-XX:+CMSClassUnloadingEnabled</argLine>

so the result would equal to

<argLine>-XX:+CMSClassUnloadingEnabled -Dportal.test=huge</argLine>

Could please anybody tell me if it is possible and how ?

EDIT: Please don't answer with " Why would you want to do that" kind of annoying questions.

4

1 回答 1

3

我从未使用过 argLine 但也许这就是您要寻找的东西..即:

<argLine>-DskipTests=true ${argLine}</argLine>

(我以跳过测试为例:))

于 2011-01-02T15:28:19.870 回答