Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 2.2
-
Fix Version/s: 2.3
-
Component/s: None
-
Labels:None
-
Environment:maven-2.0.4 and maven-2.0.5
Mac OS X
-
Testcase included:yes
-
Number of attachments :
Description
When passing a property on the command line to maven using -D it does not properly override values passed to filters.
I have attached a sample project that defines a property in the pom.xml called 'filtered' This property is used as a filter in the filtered.properties file in src/main/filtered/filtered.properties. I have also included a test that gets passed the filtered property as a System property via the surefire plugin. It then loaded the filtered.properties file and tests to ensure the filters match.
The tests pass when run as
mvn test
BUT if I run as
mvn -Dfiltered=from-cmd-line teset
They fail.
I have also included the antrun plugin print its perspective on the value of the property.
Issue Links
- depends upon
-
MRESOURCES-56
use (and release) the maven-filtering component
-
- is duplicated by
-
MRESOURCES-85
command line cannot overwrite pom properties
-
-
MRESOURCES-101
command-line properties not regarded sometimes
-
- is related to
-
MRESOURCES-6
When filtering, properties defined in <project><properties> should be allowed as well.
-
Activity
| Field | Original Value | New Value |
|---|---|---|
| Link | This issue is duplicated by MNG-3417 [ MNG-3417 ] |
| Attachment | maven-resources-plugin-prop-filtering-r630241.patch [ 32748 ] |
| Link |
This issue is related to |
| Fix Version/s | 2.3 [ 12622 ] |
| Link | This issue relates to MNG-3546 [ MNG-3546 ] |
| Affects Version/s | 2.2 [ 12486 ] |
| Link |
This issue depends upon |
| Assignee | Olivier Lamy [ olamy ] |
| Status | Open [ 1 ] | Closed [ 6 ] |
| Resolution | Fixed [ 1 ] |
| Link |
This issue is duplicated by |
| Link |
This issue relates to |