Uploaded image for project: 'Maven Shared Components'
  1. Maven Shared Components
  2. MSHARED-63

Filtering Resources does not match patterns strictly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • maven-filtering-1.0-beta-1
    • None
    • maven-filtering
    • None

    Description

      When using Maven Filtering, maven-war-plugin, variables within the JSP that do not correspond to configured properties are updated as well ie.

      [code]
      ${users.id}
      ${user.id}
      ${adfadfadf.id}
      [/code]

      All of those patterns are matched to the project id which causes the JSP throw an exception. Having these properties set at build time lets me configure the context.path and links dynamically depending on the environment. The problem appears to be associated with the plexus pattern matching plugin as it is what decides to match any variable ending in .id

      I suggest that an option is added to configure which patterns are matched and if the pattern matching is strict. For example, in my JSPs, it would be ideal to only allow @context.path@ and not ${users.id} so the variables within the JSP remain just that and configured properties are updated accordingly.

      Attachments

        Issue Links

          Activity

            People

              olamy Olivier Lamy
              walterw Walter White
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: