Maven 2 & 3

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.

People

Vote (3)
Watch (5)

Dates

  • Created:
    Updated:
    Resolved: