[
https://jira.codehaus.org/browse/SUREFIRE-1060?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tibor Digana closed SUREFIRE-1060.
----------------------------------
Resolution: Duplicate
Already fixed in 2.18, see https://jira.codehaus.org/browse/SUREFIRE-1053
This behavior already works fine in 2.18:
"If -Dfile.encoding is set as a system property, and it is also set using
argLine then you should suppress this warning because the latter will override
the former."
> Suppress warning if argLine is set
> ----------------------------------
>
> Key: SUREFIRE-1060
> URL: https://jira.codehaus.org/browse/SUREFIRE-1060
> Project: Maven Surefire
> Issue Type: Improvement
> Components: Maven Surefire Plugin, process forking
> Affects Versions: 2.15
> Reporter: Gili
>
> As a follow-up to SUREFIRE-951, I am getting {{file.encoding cannot be set as
> system property, use <argLine>-Dfile.encoding=...<argLine> instead}} in spite
> of the fact that I did set {{file.encoding}} as the warning recommends. If
> {{-Dfile.encoding}} is set as a system property, and it is also set using
> {{argLine}} then you should suppress this warning because the latter will
> override the former.
> I don't have the ability to remove <argLine>-Dfile.encoding=...<argLine>
> because this is added by Netbeans at build-time (they have no way of knowing
> we fork the JVM).
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)