Maven
  1. Maven
  2. MNG-1992

CLI -D should override properties in settings.xml

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.2
    • Fix Version/s: 2.1.0, 3.0-alpha-1
    • Component/s: Command Line
    • Labels:
      None
    • Environment:
      xp
    • Complexity:
      Intermediate
    • Number of attachments :
      0

      Description

      I have a mojo that takes a parameter as an expression, simple boolean. If I set it to true in my settings.xml, setting it to false with -D doesn't have any effect. The CLI should have the final say.

        Issue Links

          Activity

          Hide
          Jason van Zyl added a comment -

          Put the processing of CLI properties (executionProperties) first.

          Show
          Jason van Zyl added a comment - Put the processing of CLI properties (executionProperties) first.
          Hide
          Benjamin Bentmann added a comment -

          Merged to 2.1.x in r739274.

          Show
          Benjamin Bentmann added a comment - Merged to 2.1.x in r739274 .
          Hide
          Arnaud Heritier added a comment -

          Can't we backport this fix in 2.0.x branch ? This is a really annoying bug...

          Show
          Arnaud Heritier added a comment - Can't we backport this fix in 2.0.x branch ? This is a really annoying bug...
          Hide
          Lars Corneliussen added a comment -

          I'd like to see that in the 2.2.x-branch, too.

          Show
          Lars Corneliussen added a comment - I'd like to see that in the 2.2.x-branch, too.
          Hide
          Eric Miller added a comment - - edited

          Command line property overrides work in 2.4, but do NOT work in 2.5.

          Show
          Eric Miller added a comment - - edited Command line property overrides work in 2.4, but do NOT work in 2.5.

            People

            • Assignee:
              Jason van Zyl
              Reporter:
              brianfox brianfox
            • Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: