I am using maven with the jacoco plugin to generate code coverage metrics. I am having some difficulty in configuring the surefire plugin with the java opt
Try using
@{argLine}
instead of
${argLine}
(or surefire.argLine
in your case)
It allows surefire to read a property as modified by other plugins instead of reading the one substituted by Maven itself. Then you can set the argLine
param to empty in Maven properties:
Which now will not cause any problems. More here: How do I use properties set by other plugins in argLine?