I’m using Eclipse Kepler on Mac 10.9.5, the M2Eclipse plugin and Maven 3.2.3. I would like to prevent Eclipse from indexing JAR files, in particular things referenced in my M2_REPO directory. Within Eclipse, I click Shift+Command+t, type “OrderServiceImpl” (A name of class in the project), and saw
OrderServiceImpl - org.mainco.subco.myproject.service - orders/src/main/java
OrderServiceImpl - org.mainco.subco.myproject.service - M2_REPO/org/mainco/subco/orders/79.0.0-SNAPSHOT/orders-79.0.0-SNAPSHOT.jar - /Users/davea/.m2/repository/org/mainco/subco/orders/79.0.0-SNAPSHOT/orders-79.0.0-SNAPSHOT.jar
Is there a way I can prevent Eclipse from indexing things in JAR files? I would like to exclude all of them but if that’s not possible, at least things included in my M2_REPO directory (dependencies brought in through my pom.xml file).
Regardless of what Eclipse indexes, you can specify filters on what the "Open Type" window shows using Working Sets: