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: Closed
    • Priority: Minor Minor
    • Resolution: Auto Closed
    • 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 ]
        Hide
        Michael Osipov added a comment -

        This issue has been auto closed because it has been inactive for a long period of time. If you think this issue still applies, retest your problem with the most recent version of Maven and the affected component, reopen and post your results.

        Show
        Michael Osipov added a comment - This issue has been auto closed because it has been inactive for a long period of time. If you think this issue still applies, retest your problem with the most recent version of Maven and the affected component, reopen and post your results.
        Michael Osipov made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Auto Closed [ 10000 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        1361d 13h 10m 1 Michael Osipov 06/Sep/15 20:44

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development