Maven 2 & 3

property not resolved in <dependency><optional> for war projects

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Won't Fix
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: POM
  • Labels:
    None
  • Number of attachments :
    1

Description

I am trying to make some sort of custom skinny war files without having to use profiles which tend to be very verbose.

So I am using <optional>true</optional> to make those dependencies not being packaged.

In order to make this conditional, I tried to use a <property> to define the default value, which I can override in the command line.

This doesn't work. See attached test case.

Activity

Hide
Brett Porter added a comment -

check for bug - but is this better achieved with profiles?

Show
Brett Porter added a comment - check for bug - but is this better achieved with profiles?
Hide
Barend Garvelink added a comment -

Could this be related to MNG-3269?

Show
Barend Garvelink added a comment - Could this be related to MNG-3269?

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: