Maven Resources Plugin
  1. Maven Resources Plugin

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


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


      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:


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


        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 ]


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


            • Created: