Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Bug
-
None
-
None
-
None
-
Maven 3.5.0
Description
I need to specify argLine for my tests. I also need it to work with Java agent Jacoco when a certain Maven profile is activated.
So I added `@
{argLine}` to my argLine property and it works fine when running with Jacoco agent activated.When running the tests without profile that activates Jacoco agent, the surefire plugin fails with following line (relevant maven logs attached) :
Error: Could not find or load main class @{argLine}
I guess @{argLine}
is only replaced if an argLine has been defined before by another plugin but if not it is not replaced at all.
Should'nt it be replaced in any case and if none defined, just replace with empty value?