Fun times with migrating maven projects from netbeans to eclipse

I have an interesting problem. So, we have a multi-module maven based project, that was originally written on Netbeans. The task is to migrate it to the Eclipse. I imported the project as an existing maven project, which created .project and .classpath files and configured pom's a little.

Now, the entire project looked very ugly - multiple projects all over the place. I found a solution online, to import the project as "Existing Projects into Workspace" and since m2e already created .project/.classpath files, Eclipse recognized it and presented it a nice, top-level view. However, all of the Eclipses functionality is now missing. So, for example, when someone tries to "Open a Declaration" (pressing F3), eclipse spits out this message:

Problems opening an editor.

Reason:
[projectname] does not exist

Has anyone came across a similar problem or knows where the problem might be?

Thank you

Answers


There is no problem. When you import a Maven multi-module project one project will be created for each module (and one for the parent). This is how those multi-module projects are handled in eclipse. So your first approach was the correct one. If there are really plenty of projects you can use working sets to filter out the ones you want to see.

Another way would be to create the eclipse .project files etc by the command line tool by calling mvn eclipse:eclipse. Then you can import them as "existing java projects" but you won't get a project containing the parent pom then.


Need Your Help

RAM Checksum in C language

c testing automated-tests microcontroller ram

I need to check the RAM of a MCU at startup using a checkerboard-like algorithm. I do not want to lose whatever data is already in RAM, and also i do not know how not to affect the variables im usi...

Upload Jruby on rails on Google App Engine - cannot find gem appengine-rack

google-app-engine gem jrubyonrails

Just trying to deploy a simple Jruby on rails app on Google App Engine but falling at first hurdle.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.