1

I have a complex Maven project in eclipse, with a parent pom.xml file and a few childs. When I import as an Existing Maven project in Eclipse, I cannot open any of the files - the workspace shows an empty page. I have gone through this solution here - Eclipse opens blank workspace After restarting, I am able to view 1 or 2 files but in a min my workspace starts showing empty pages again.

Any workaround? In eclipse's configuration/congif.ini osgi.instance.area.default= points to my current workspace, and Maven's settings and repo are set to .m2 folder.

Eclipse gives me no errors.

I have tried deleting an entire .metadata folder and re-creating a project but a workspace for my project is still empty. For no-complex project pages are shown correctly.

Community
  • 1
  • 1
magic_turtle
  • 1,243
  • 3
  • 17
  • 37

2 Answers2

0

I suggest that you can try to create a new workspace and import the parent project into it.

Romeo
  • 129
  • 4
  • 1
    It did not help. What have helped, since a few times I had a NullPointerException, I followed this thread https://bugs.eclipse.org/bugs/show_bug.cgi?id=386648 and removed .metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi because Error Log in Eclipse was complaining about this plugin. After restarting, I was able to view files in the project. – magic_turtle Dec 16 '16 at 04:09
0

I could have this fixed simply by trying to select/expand the folders above it. For e.g. Double click on 'src' and then click on the the folders 'main' and 'test' below it. Then click 'target' and finally click on 'pom.xml'. It works like wonders and strangely the content of pom.xml started to shown up in the workspace!!