Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 346798 - artifacts in hierarchical Maven projects show up twice in context
Summary: artifacts in hierarchical Maven projects show up twice in context
Status: CLOSED MOVED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 minor with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-21 17:20 EDT by Steffen Pingel CLA
Modified: 2018-09-10 03:29 EDT (History)
4 users (show)

See Also:


Attachments
screenshot (125.11 KB, image/png)
2018-09-10 03:29 EDT, Andi Huber CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steffen Pingel CLA 2011-05-21 17:20:40 EDT
Steps:
1. Add a Maven parent project to the workspace
2. Add Maven module projects to the workspace

If a file is added to the context it shows up twice: In the module project as well as the parent project, since the parent project contains all modules.
Comment 1 Steffen Pingel CLA 2011-05-21 17:21:43 EDT
The work-around is to add a resource filter for the parent project. 

Not sure if there is anything that can be done in the context framework to support this better out of the box.
Comment 2 Eugene Kuleshov CLA 2013-03-13 13:12:51 EDT
The context framework must remember "remove from context" and not repeatedly reincarnate visibility on resources visible trough the parent projects when they gain interest from user activities on them trough child projects.

Now that m2e project is part of several Eclipse distributions this issue is becoming severe and makes Mylyn context almost impossible to use with most Maven projects.
Comment 3 Andi Huber CLA 2018-09-10 03:29:42 EDT
Created attachment 275758 [details]
screenshot

I'm not sure whether I do address this correctly, but looking up the bug database, this existing bug report seems the closed I could find ...

While working with Maven projects, provided screenshot depicts what happens when we open a Java source file, when it gets added to the 'Task-focused View'.

1) The focused project's parent project also gets added to the 'Task-focused View' context, even though the focused (child) project is marked as a 'derived' resource.(We regard this as minor.)

2) The focused project's 'src' folder gets displayed twice. Which currently prevents me from using the 'Task-focused View', due too much visual clutter.

I'm using Mylyn for some months now, it otherwise is doing great.

Cheers, Andi!
Comment 4 Eclipse Webmaster CLA 2022-11-15 11:45:08 EST
Mylyn has been restructured, and our issue tracking has moved to GitHub [1].

We are closing ~14K Bugzilla issues to give the new team a fresh start. If you feel that this issue is still relevant, please create a new one on GitHub.

[1] https://github.com/orgs/eclipse-mylyn