You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Andreas Sewe (JIRA)" <ji...@codehaus.org> on 2011/12/15 14:34:02 UTC
[jira] (MRESOURCES-154) Support maven-site-plugin-like filtering
convention (filter files ending in .vm)
Andreas Sewe created MRESOURCES-154:
---------------------------------------
Summary: Support maven-site-plugin-like filtering convention (filter files ending in .vm)
Key: MRESOURCES-154
URL: https://jira.codehaus.org/browse/MRESOURCES-154
Project: Maven 2.x Resources Plugin
Issue Type: Wish
Components: filtering
Affects Versions: 2.5
Reporter: Andreas Sewe
Priority: Minor
If one wants to enable resource filtering, the {{maven-resources-plugin}} currently requires one to explicitly enable it. This, in itself, is not a problem, as it prevents accidental filtering. Alas, the current means to enable filtering rely not only on manual configuration, but also force error-prone repetition:
{quote}
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
{quote}
Why should one be forced to repeat the fact that the resource directory is {{src/main/resources}} if one does not want to stray from this convention?
It would hence be great if the {{maven-resources-plugin}} would offer a way to enable filtering that is closer to the convention-side of _convention over configuration_. The {{maven-site-plugin}}, e.g., does just this: all files whose name ends in {{.vm}} are filtered <http://maven.apache.org/plugins/maven-site-plugin/examples/creating-content.html#Filtering>. IMHO, this would make a useful addition to the {{maven-resources-plugin}} as well. (Of course, it would need to be explicitly enabled in the plugin's configuration, to avoid the issue accidental filtering.)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira