Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 369932 - update project configuration / dependencies does not show any project when nested projects are hidden
Summary: update project configuration / dependencies does not show any project when ne...
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: m2e (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Igor Fedorenko CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-27 09:57 EST by dan carter CLA
Modified: 2021-04-19 13:23 EDT (History)
3 users (show)

See Also:


Attachments
maven project tree (2.50 KB, application/octet-stream)
2012-01-27 10:36 EST, dan carter CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description dan carter CLA 2012-01-27 09:57:29 EST
I have flat project structure, all projects exist at the same level in the directory in including the maven parent, but in this directory there is also a pom.xml which is a multimodule pom, to facilitate building the whole application with one command.

./myparentproj/pom.xml
./myliba/pom.xml
./mylibb/pom.xml
pom.xml

When i have this open as 4 projects, 

I have the multi-module pom.xml open as a project so that I can edit the pom.xml and commit atomically, but i add filters to the multimodule project to ignore the child projects, otherwise:
- all the files show up twice in the resource browser
- all the launch files show up twice in run/debug
- all the files show up twice in team synchronise and it's get very confused.

But when i right click on a project and Maven ->  Update
Dependencies… or Maven ->  Update Project Configuration… it does not show any projects at all.

If I close the multimodule project, now the update project configuration dialog shows everything. (but now i can't do atomic commits)

If I keep the project open but remove the resource filters, it works too. (but now everything shows up twice in eclipse)


Attached is a workspace / maven project tree which demonstrates the problem.

Open the workspace testMvn, right click on test-libA, Maven -> Update Dependencies...  and the dialog shows no project to update.
Comment 1 Matthew Piggott CLA 2012-01-27 10:08:36 EST
Maybe I'm not following your steps in exactly the same way, but I have existing projects in my workspace as you've described, and adding resource filters doesn't prevent m2e from populating the dialog.
Comment 2 Igor Fedorenko CLA 2012-01-27 10:17:49 EST
(In reply to comment #0)
> 
> 
> Attached is a workspace / maven project tree which demonstrates the problem.
> 

Did you forget to attach the example project?
Comment 3 dan carter CLA 2012-01-27 10:30:46 EST
Seems to be a project with the workspace, when i open on another machine it says the test-libA/.project is missing, although it is there!

Let me try again.
Comment 4 dan carter CLA 2012-01-27 10:31:28 EST
Hrm, and the attachment failed to upload anyway!
Comment 5 dan carter CLA 2012-01-27 10:36:05 EST
Created attachment 210190 [details]
maven project tree

 mkdir newworkspace/
 cd newworkspace/
 tar xvfj ../test-aggregator.tbz


open newworkspace as an eclipse workspace
File -> Import -> Maven -> Existing Maven Projects
select test-aggregator -> (leave all 3 selected ) -> Finish

Right click test-libA -> Maven -> Update Project Configuration

no projects displayed.
Comment 6 dan carter CLA 2012-01-27 10:42:13 EST
(In reply to comment #1)
> Maybe I'm not following your steps in exactly the same way, but I have existing
> projects in my workspace as you've described, and adding resource filters
> doesn't prevent m2e from populating the dialog.

Please try the attached project, now that i've finally attached successfully.
Comment 7 dan carter CLA 2012-01-28 13:09:35 EST
(In reply to comment #1)
> Maybe I'm not following your steps in exactly the same way, but I have existing
> projects in my workspace as you've described, and adding resource filters
> doesn't prevent m2e from populating the dialog.

Also,

If you do have a similar setup that allows nested maven projects, where the filesystem represents the maven project hierarchy, and you do not suffer the duplicated resource issue, nor the issue i mention in this report, then i would be interested to know how you have your eclipse workspace setup.
Comment 9 Denis Roy CLA 2021-04-19 13:23:12 EDT
Moved to https://github.com/eclipse-m2e/m2e-core/issues/