maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Olivier Lamy (JIRA)" <>
Subject [jira] Updated: (MRESOURCES-39) Filtering fails for command line properties
Date Thu, 28 Feb 2008 21:34:28 GMT


Olivier Lamy updated MRESOURCES-39:

    Fix Version/s: 2.3

> Filtering fails for command line properties
> -------------------------------------------
>                 Key: MRESOURCES-39
>                 URL:
>             Project: Maven 2.x Resources Plugin
>          Issue Type: Bug
>         Environment: maven-2.0.4 and maven-2.0.5
> Mac OS X
>            Reporter: Matt Brozowski
>            Priority: Critical
>             Fix For: 2.3
>         Attachments: filtering-bug.tar, maven-resources-plugin-prop-filtering-r630241.patch
> 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 file in src/main/filtered/
 I have also included a test that gets passed the filtered property as a System property via
the surefire plugin.  It then loaded the 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.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message