This guide explains how to import a project in Intellij Idea 7.0.4 based on the support of Idea for Maven.

We suppose that you already have created a $EXO_BASE_DIRECTORY as explained in the page Building+from+sources.

We will show how to import a project among all the projects located under $EXO_BASE_DIRECTORY/eXoProjects and we will use the portal module as example.

First we need to be sure that the maven repository $EXO_BASE_DIRECTORY/exo-dependencies/repository is populated in order to have Idea find all the correct classes when it will analyze the differents poms of the project.

File/New Project Check "Import project from external model"

Next Choose the "Maven" option

Next Use the path "$EXO_BASE_DIRECTORY/eXoProjects/portal/trunk" as "Select root directory" value. Check the "Keep .ipr and .iml files in" and use the path "$EXO_BASE_DIRECTORY/idea" (create the directory)

Click on the "Advanced..." button Check "Override" for the maven home directory and use the path "$EXO_BASE_DIRECTORY/maven2 Check "Override" for the local repository and use the path "$EXO_BASE_DIRECTORY/exo-dependencie/repository"

Click Ok and the Next Nothing to do

Next Nothing do to

Next chose the project name you want, here we use "portal" for project file location use "$EXO_BASE_DIRECTORY/idea"

Finish


Creator: Julien Viet on 2008/08/28 21:12
Copyright (c) 2000-2009. Allright reserved - eXo platform SAS
1.6.13286