Uploaded image for project: 'Maven Eclipse Plugin (RETIRED)'
  1. Maven Eclipse Plugin (RETIRED)
  2. MECLIPSE-576

Merge resource dirs shall pass gracefully

Attach filesAttach ScreenshotVotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.7
    • None
    • Core : .project
    • None
    • Patch

    Description

      .project generation is failing for folks in our team that have updated to the 2.7 release. It's due to EclipseSourceDir#merge() added in this version. The reason why it is failing at our end because we use resource filtering on resources appearing on the same path, i.e.

      <resources>
      	<resource>
      		<directory>src/main/resources</directory>
      		<includes>
      			<include>**/*</include>
      		</includes>
      	</resource>
      	<resource>
      		<directory>src/main/resources</directory>
      		<includes>
      			<include>**/*.properties</include>
      		</includes>
      		<filtering>true</filtering>
      	</resource>
      </resources>
      
      
      

      [INFO] Request to merge when 'filtering' is not identical. Original=resource src/main/resources: output=target/classes, include=[**/*], exclude=[**/*.java], test=false, filtering=false, merging with=resource src/main/resources: output=target/classes, include=[**/*.properties], exclude=[**/*.java], test=false, filtering=true

      {noforrmat}

      I don't think fixing the POM to fit the plugin is a feasible solution. We have Spring XML files and other documents that use ant style properties and we don't wish Maven to perform filtering for us on them (see first <resource> tag). It should just pass it like what it used to be in previous versions.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            fgiust Fabrizio Giustina
            yclian yclian
            Votes:
            11 Vote for this issue
            Watchers:
            11 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment