Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-7495

Support wildcard in maven-filtering filter

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      Wildcard is not supported, the expected configuration is like this:

       <profile>
                  <id>dev</id>
                  <activation>
                      <activeByDefault>true</activeByDefault>
                  </activation>
                  <build>
                      <filters>
                          <!-- wildcard is not supported here -->
                          <filter>env/dev/*.properties</filter>
                      </filters>
                  </build>
      </profile>
      

      But actually, it has to be:

       <profile>
                  <id>dev</id>
                  <activation>
                      <activeByDefault>true</activeByDefault>
                  </activation>
                  <build>
                      <filters>
                          <filter>env/dev/1.properties</filter>
                          <filter>env/dev/2.properties</filter>
                          <filter>env/dev/3.properties</filter>
                      </filters>
                  </build>
      </profile>
      

      In my case, the number of properties file might increase. Please make this enhancement, thanks.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              malcolmshen malcolmshen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: