You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Karl Heinz Marbaise (JIRA)" <ji...@apache.org> on 2016/08/07 10:26:20 UTC

[jira] [Closed] (MNG-6077) Options given in maven.config can not be overridden via command line

     [ https://issues.apache.org/jira/browse/MNG-6077?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karl Heinz Marbaise closed MNG-6077.
------------------------------------
    Resolution: Not A Problem
      Assignee: Karl Heinz Marbaise

My assumption was wrong that command line options like {{-T }} can't be overwritten via command line. The original implementation did that right. The only problem was that no properties could be redefined via command line.

> Options given in maven.config can not be overridden via command line
> --------------------------------------------------------------------
>
>                 Key: MNG-6077
>                 URL: https://issues.apache.org/jira/browse/MNG-6077
>             Project: Maven
>          Issue Type: Improvement
>          Components: Command Line
>    Affects Versions: 3.3.9
>            Reporter: Karl Heinz Marbaise
>            Assignee: Karl Heinz Marbaise
>            Priority: Minor
>
> If you use the {{.mvn/maven.config}} and define for example {{-T 3}} in it you will always use it if you run Maven. There is no possibility to change this except to change the {{.mvn/maven.config}} file. The expected behaviour would be simply to define options on command line like:
> {code}
> mvn -T 1 clean package
> {code}
> and those options from command line should have precedence over them in the {{.mvn/maven.config}} file.
> With the change in MNG-6076 you can overwrite properties from command lie. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)