You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jason van Zyl (JIRA)" <ji...@codehaus.org> on 2009/12/27 22:02:55 UTC

[jira] Updated: (MNG-2478) add filtered resource directories to super POM

     [ http://jira.codehaus.org/browse/MNG-2478?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jason van Zyl updated MNG-2478:
-------------------------------

    Fix Version/s:     (was: 2.3.x)
                   3.0-alpha-7

Should be easy to add and makes sense.

> add filtered resource directories to super POM
> ----------------------------------------------
>
>                 Key: MNG-2478
>                 URL: http://jira.codehaus.org/browse/MNG-2478
>             Project: Maven 2 & 3
>          Issue Type: New Feature
>          Components: POM
>    Affects Versions: 2.0.4
>         Environment: any
>            Reporter: Jörg Hohwiller
>             Fix For: 3.0-alpha-7
>
>
> The super POM contains default folders for resources that are NOT filtered (src/main/resources and src/test/resources). If one (additionally) needs a filtered resources folder, it needs to override the default and therefore has to add all default folders if he does NOT want to "loose" the defaults.
> To make this easier my suggestion is to add filtered resource folders to the super POM. This should also fit to the philosophy of maven that aims to have defaults and only declare as little custom configuration as needed.
> My personal favorite for the foldernames would be "templates" but to make things more obvious to the user maybe "filtered-resources" would be better. Actually I do not care to much about the name...
> So the resources in the super POM should look like this:
>     <resources>
>       <resource>
>         <directory>src/main/resources</directory>
>       </resource>
>       <!-- BEGIN: addition -->
>       <resource>
>         <directory>src/main/filtered-resources</directory>
>         <filtering>true</filtering>
>       </resource>
>       <!-- END: addition -->
>     </resources>
>     <testResources>
>       <testResource>
>         <directory>src/test/resources</directory>
>       </testResource>
>       <!-- BEGIN: addition -->
>       <testResource>
>         <directory>src/test/filtered-resources</directory>
>         <filtering>true</filtering>
>       </testResource>
>       <!-- END: addition -->
>     </testResources>

-- 
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