Maven Resources Plugin
  1. Maven Resources Plugin
  2. MRESOURCES-154

Support maven-site-plugin-like filtering convention (filter files ending in .vm)

    Details

    • Type: Wish Wish
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.5
    • Fix Version/s: None
    • Component/s: filtering
    • Labels:
      None

      Description

      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:

      <resource>
      <directory>src/main/resources</directory>
      <filtering>true</filtering>
      </resource>

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

        Activity

        Andreas Sewe created issue -
        Mark Thomas made changes -
        Field Original Value New Value
        Project Import Sun Apr 05 12:20:57 UTC 2015 [ 1428236457206 ]
        Mark Thomas made changes -
        Workflow jira [ 12724974 ] Default workflow, editable Closed status [ 12756625 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 01:00:00 UTC 2015 [ 1428282000487 ]
        Mark Thomas made changes -
        Workflow jira [ 12962656 ] Default workflow, editable Closed status [ 12998730 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Andreas Sewe
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development