Bug 412689 - Ctrl Shift R shows derivative/duplicate files for parent maven modules
Summary: Ctrl Shift R shows derivative/duplicate files for parent maven modules
Status: CLOSED WONTFIX
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: m2e (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 245412
Blocks:
  Show dependency tree
 
Reported: 2013-07-10 11:30 EDT by Julian Gerson CLA
Modified: 2021-04-19 13:23 EDT (History)
3 users (show)

See Also:


Attachments
Screenshots 1 and 2. (85.11 KB, image/png)
2013-07-10 11:30 EDT, Julian Gerson CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Julian Gerson CLA 2013-07-10 11:30:20 EDT
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
Comment 1 Igor Fedorenko CLA 2013-07-10 11:38:25 EDT
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).
Comment 2 Julian Gerson CLA 2013-07-10 11:48:01 EDT
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).
Comment 3 Fred Bricon CLA 2013-07-10 12:05:35 EDT
You can enable Preferences > Maven > Hide folders of physically nested modules, and then (re)import your projects as Maven projects.
Comment 4 Igor Fedorenko CLA 2014-09-12 18:26:35 EDT
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.
Comment 5 Denis Roy CLA 2021-04-19 13:23:24 EDT
Moved to https://github.com/eclipse-m2e/m2e-core/issues/