[ 
https://issues.apache.org/jira/browse/MNG-7031?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17238044#comment-17238044
 ] 

Piotr Zygielo commented on MNG-7031:
------------------------------------

Do not be mislead by MAVEN_OPTS name. It holds options for java used to execute 
maven.
{quote}MAVEN_OPTS (Optional) Java runtime options used when Maven is executed
{quote}
As Michael asked "Does it work when you pass to Maven directly?" - it does work 
this way.

{{-D}} for java is not the same as {{-D}} for maven.

> Unable to use -Dstyle.color with MAVEN_OPTS & JAVA_TOOL_OPTIONS
> ---------------------------------------------------------------
>
>                 Key: MNG-7031
>                 URL: https://issues.apache.org/jira/browse/MNG-7031
>             Project: Maven
>          Issue Type: Bug
>    Affects Versions: 3.6.3
>         Environment: Apache Maven 3.6.3 
> (cecedd343002696d0abb50b32b541b8a6ba2883f)
>            Reporter: Andrei Osipov
>            Priority: Major
>         Attachments: mvn1.png, mvn2.png, mvn3.png
>
>
> Options -Dstyle.color=never and -Dmaven.color=false have no effect when set 
> in MAVEN_OPTS or JAVA_TOOL_OPTIONS
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to