Community
Participate
Working Groups
Created attachment 233325 [details] Screenshots 1 and 2. Attached are screenshots for looking at a library called TriplePlay (https://github.com/threerings/tripleplay). You'll notice when a parent project is open there are duplicates of files even though the parent project does not have a source(src) directory defined. It becomes worse when you enabled "Show Derived Resources" (see second screenshot). If this was fixed, there would only be one file showing in the screenshot. ie: /tripleplay-demo-core/src/main/java/tripleplay/demo/anim/AnimDemo.java
Eclipse workspace does not have proper support for nested project structure common in maven. Until this is supported by eclipse platform, it is not possible to provide such support in m2e. There is a number of platform bugreports about this and I think bug 245412 is the current one platform devs did not close (although I am not sure I like the approach being discussed in 245412).
Well, maybe this bug is then filed in the wrong place. I had thought it the responsibility of m2e to add parent filtering support, but given that as you mention this isn't possible until the wider eclipse project supports this, then perhaps a different route is possible. If Ctrl-Shift-R could add a feature to filter only over defined source directories, then this would suffice until such time as a maven-aware solution could be enacted (since maven parent modules don't usually have the same source directories defined). Any help into triaging this bug to the right eclipse category would be appreciated (not familiar enough with the eclipse project to know where it should be located).
You can enable Preferences > Maven > Hide folders of physically nested modules, and then (re)import your projects as Maven projects.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.
Moved to https://github.com/eclipse-m2e/m2e-core/issues/