Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
2.8
-
None
-
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?