You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2022/12/26 19:30:28 UTC

[GitHub] [maven] michael-o commented on pull request #936: [MNG-5857] Arguments from command line should override those in .mvn/maven.config (alternative 1)

michael-o commented on PR #936:
URL: https://github.com/apache/maven/pull/936#issuecomment-1365400128

   This does not work due to:
   ```
           /* Although this looks wrong in terms of order Commons CLI stores the value of options in
            * an array and when a value is potentionally overriden it is added to the array. The single
            * arg option value is retrieved and instead of returning values[values.length-1] it returns
            * values[0] which means that the original value instead of the overridden one is returned
            * (first wins). With properties values are truely overriden since at the end a map is used
            * to merge which means last wins.
            *
            * TODO Report this behavioral bug with Commons CLI
            */
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org