Maven Eclipse Plugin
  1. Maven Eclipse Plugin
  2. MECLIPSE-706

[regression] Resources are excluded if resource dir is declared twice

    Details

    • Number of attachments :
      0

      Description

      <build>
        <resources>
          <resource>
            <directory>src/main/java</directory>
            <includes>
              <include>**/*.properties</include>
            </includes>
          </resource>
        </resources>
      </build>
      

      For a non-standard project layout like sketched above where some resource files reside next to the source files (e.g. Messages.properties in Mercury), the change for MECLIPSE-443 causes these resources files to be excluded from the build path since they don't match the filter "*/.java". This can for instance cause test failures in Eclipse due to resources missing on the class path.

      When source and resource directories equal, the includes/excludes need to be merged.

        Activity

        Hide
        Gabriel Goc added a comment -

        wrongly cloned, will create a proper new one

        Show
        Gabriel Goc added a comment - wrongly cloned, will create a proper new one

          People

          • Assignee:
            Barrie Treloar
            Reporter:
            Gabriel Goc
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: