I have this simple question how to import whole project source into Ecplise so I can browse it easily? Specifically, I have downloaded Maven source code http://maven.apache.org/download.html and I just want to view it same as other projects in my Eclipse. I've tried to import it with use of two possible options (as archive and as a project) without luck.
Thank you in advance!
Maven itself is a Mavenized multi-module project, Generally there are two ways to import a Mavenized project into a IDE like eclipse:
Pre-requirment:
Option 1 -- Import as Java Project:
Open a command prompt and go to the extracted source folder, run mvn eclipse:eclipse and waiting for it finish, make sure it doesn't popup any message start with [ERROR], this will download all required jar dependencies from internet to you local maven repository and create .project and .classpath for Eclipse to use when doing import.
In eclipse, go to File -- Import -- General -- Existing Project into Workspace, select the extracted source folder as root directory. This will import a group of projects into Eclipse as bunch of regular java projects (i.e. project icon inside Package Explorer watermarked with a capital J).
Option 2 -- Import as Maven Project:
Hope this helps.
The maven repository versions are not uploaded in the exact format they are on disc (from where the the mvn deploy goal is run. I can think of 3 options assuming I understand your question correctly: