René de Bloois created MECLIPSE-712:
----------------------------------------

             Summary: filteredResources in Eclipse .project is not supported 
and discarded by the Maven 2.x Eclipse Plugin
                 Key: MECLIPSE-712
                 URL: https://jira.codehaus.org/browse/MECLIPSE-712
             Project: Maven 2.x Eclipse Plugin
          Issue Type: Bug
          Components: Core : .project
    Affects Versions: 2.8
         Environment: Maven 3, Windows 7, Eclipse Indigo Service Release 1
            Reporter: René de Bloois


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

{code:xml|title=.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>
{code}

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?


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to