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

filteredResources in Eclipse .project is not supported and discarded by the Maven 2.x Eclipse Plugin

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.8
    • None
    • Core : .project
    • None
    • Maven 3, Windows 7, Eclipse Indigo Service Release 1

    Description

      There is a beautiful way to let Eclipse ignore the target folder:

      .project
      <?xml version="1.0" encoding="UTF-8"?>
      <projectDescription>
      	...
      	<filteredResources>
      		<filter>
      			<id>1328280594689</id>
      			<name></name>
      			<type>10</type>
      			<matcher>
      				<id>org.eclipse.ui.ide.multiFilter</id>
      				<arguments>1.0-projectRelativePath-matches-true-false-target</arguments>
      			</matcher>
      		</filter>
      	</filteredResources>
      </projectDescription>
      

      Which in Eclipse means (in the Edit Resource Filter window): "Exclude all", "Folders", "not recursive", "Project Relative Path matches "target" case sensitive".

      This will cause Eclipse to completely ignore this folder and its contents.

      Problem is, after running mvn eclipse:eclipse, this section is removed from the .project file.
      It is also not possible to configure the maven eclipse plugin to add this filteredResources section.

      Maybe it could even be generated by default by the maven eclipse plugin?

      Attachments

        1. screenshot-1.jpg
          46 kB
          René de Bloois

        Activity

          People

            rfscholte Robert Scholte
            rene.de.bloois René de Bloois
            Votes:
            6 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: