Issue Details (XML | Word | Printable)

Key: MNG-3238
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Jerome Lacoste
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Maven 2

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

Created: 15/Oct/07 03:05 AM   Updated: 04/Apr/08 07:49 AM
Component/s: POM
Affects Version/s: None
Fix Version/s: 2.2.x

Time Tracking:
Not Specified

File Attachments: 1. File optional-properties-taken-from-pom.tar (10 kB)



 Description  « Hide
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.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Brett Porter added a comment - 29/Oct/07 08:11 PM
check for bug - but is this better achieved with profiles?

Barend Garvelink added a comment - 04/Apr/08 07:49 AM
Could this be related to MNG-3269?