[ http://jira.codehaus.org/browse/MWAR-67?page=comments#action_84835 ] Robert Watkins commented on MWAR-67: ------------------------------------
While this patch allows for properties to be specified on the command line, it doesn't allow properties to be specified in a profile. Setting properties for filtering in a profile works with normal JAR resources. > webResource filtering needs filter > ---------------------------------- > > Key: MWAR-67 > URL: http://jira.codehaus.org/browse/MWAR-67 > Project: Maven 2.x War Plugin > Issue Type: Bug > Reporter: Tomasz Pik > Assigned To: Brett Porter > Priority: Minor > Fix For: 2.0.2 > > Attachments: MWAR-67-maven-war-plugin-2.patch, > MWAR-67-maven-war-plugin.patch > > > Filtering of webResources works only, if there's at least one > <filter>path/to/properties</filter> defined in pom. > So without such a configuration there's no possiblity to build war file with > filtering using values specified during build invocation, with -D options > (System properties are ignored). > Adding reference to (even empty) file using <filter> element 'solves' the > problem and properties defined using -D are used. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira