Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-2478

add "resources-filtered" filtered resource directories to super POM

    Details

    • Type: New Feature
    • Status: Reopened
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0.4
    • Component/s: POM
    • Labels:
      None
    • Environment:
      any

      Description

      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 "resources-filtered" 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/resources-filtered</directory>
              <filtering>true</filtering>
            </resource>
            <!-- END: addition -->
          </resources>
          <testResources>
            <testResource>
              <directory>src/test/resources</directory>
            </testResource>
            <!-- BEGIN: addition -->
            <testResource>
              <directory>src/test/resources-filtered</directory>
              <filtering>true</filtering>
            </testResource>
            <!-- END: addition -->
          </testResources>

      Update: The folder name has been changed to "resources-filtered".

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                joerg.hohwiller@sdm.de Jörg Hohwiller
              • Votes:
                3 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated: