[
https://issues.apache.org/jira/browse/SUREFIRE-1431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17154145#comment-17154145
]
Eric B commented on SUREFIRE-1431:
----------------------------------
[~vmassol] I have encountered a very similar problem to you. Although mine
comes from the fact that my `argLine` is defined in my `PluginManagement`
configuration and so the plugin itself doesn't take it into account if I
override it. And using the `@\{argLine}` argument throws an error if no
argLine is predefined.
> @{argLine} not replaced if undefined
> ------------------------------------
>
> Key: SUREFIRE-1431
> URL: https://issues.apache.org/jira/browse/SUREFIRE-1431
> Project: Maven Surefire
> Issue Type: Bug
> Components: Maven Surefire Plugin
> Affects Versions: 2.21.1
> Environment: Maven 3.5.0
> Reporter: Matthieu Fillon
> Assignee: Tibor Digana
> Priority: Major
> Attachments: maven.log
>
>
> 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) :
> {color:red}Error: Could not find or load main class @\{argLine} {color}
> 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?
--
This message was sent by Atlassian Jira
(v8.3.4#803005)