Uploaded image for project: 'Maven Resources Plugin'
  1. Maven Resources Plugin
  2. MRESOURCES-79

<resources> are filtered by test filters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3
    • 2.4
    • None
    • None
    • Maven 2.0.9, Java 1.6.0_07 OS_X

    Description

      With the following configuration I assume <resources> should get filtered by src/main/filters/* and <testResources> by src/test/filters/* :

      <filters>
      <filter>src/main/filters/dev.filter.properties</filter>
      <filter>src/test/filters/dev.filter.properties</filter>
      </filters>
      <resources>
      <resource>
      <directory>src/main/resources</directory>
      <filtering>true</filtering>
      </resource>
      </resources>
      <testResources>
      <testResource>
      <directory>src/test/resources</directory>
      <filtering>true</filtering>
      </testResource>
      </testResources>

      But all resources files end up being filtered by the src/test/filters/*.

      Attached is the simpliest Maven2 proect reproducing this behavior.

      Attachments

        Activity

          People

            jdcasey John Dennis Casey
            nodje nodje
            Votes:
            4 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: