Uploaded image for project: 'Maven Resources Plugin'
  1. Maven Resources Plugin
  2. MRESOURCES-40

Filtering of resources using a templating engine (e.g. Freemarker)

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • None
    • filtering
    • None

    Description

      Resource Filtering is often used to generate different configuration files for different environments...

      It often makes sense to use different values (debug set to true for the development profile, to false for the production environment). However, it is sometimes impossible to just switch values, and additional sections need to be added or removed depending on the environment.

      Additionally, the configuration could sometimes be cleaner by adopting conventions based on the environment name. (if the application needs to connect to 5 databases whose url depends on the environment name, only part of the settings can be required in the .properties files).

      That's why I believe it would be nice to have a plugin that would filter a set of resources using some templating engine (freemarker, velocity, ...). Each resource would then be a freemarker/velocity-compliant file, and the possibilities then become endless

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              samokk Sami Dalouche
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: