Appending JVM parameter to the parameter specified explicitly in plugin configuration?

StackOverflow https://stackoverflow.com/questions/4578971

  •  14-10-2019
  •  | 
  •  

문제

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.

도움이 되었습니까?

해결책

I have never used argLine but maybe this is what you are looking for.. i.e.:

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

(I used skip tests as an example :))

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top