Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Exclude target folder from search results in Eclipse

I was wondering if it's possible to exclude target folder from eclipse quick search :

Ctrl+Shift+R

If anyone knows how to do that, please advise.

Update: I am using Maven 2, and M2E , WTP Eclipse plug-ins.

like image 720
Mahmoud Saleh Avatar asked Nov 21 '11 14:11

Mahmoud Saleh


People also ask

What is the target folder in eclipse?

The target folder is the maven default output folder. When a project is build or packaged, all the content of the sources, resources and web files will be put inside of it, it will be used for construct the artifacts and for run tests. You can delete all the target folder content with mvn clean command.

How do I open target folder in eclipse?

Solution was: Right click project -> properties -> build path -> Source tab -> "Allow output folders for source folders" and add the output folder target/classes explicit to each source folder.


1 Answers

  1. Mark the "target" folders as "derived" resource from the properties screen of those folders (this option is next to read only and archive property).

  2. In the quick search (Ctrl+Shift+R) screen press the arrow in the top right corner and untick "Show derived resources".

Then those target-files will not be considered in the quick search anymore.

like image 156
Chris Avatar answered Sep 24 '22 09:09

Chris