Maintaining Common Project Configuration in a Mixed-IDE Team
When you are working in a team that uses different IDEs, keeping project configuration in sync between team members is very complicated task. Sometimes it can be so cumbersome that you may want to stop trying to put them all together and resort to sharing Ant scripts as the repository for project configurations.
With IntelliJ IDEA 7 (Selena), you can export, import and synchronize IntelliJ IDEA and Eclipse projects.
To import existing EcIipse projects to IntelliJ IDEA:
- Open the File menu, select Import from Eclipse
- Select whether you want a New project or import to the Current project
- If you selected to create the new project, walk through the wizard steps
- Specify the Eclipse projects you want to import (each Eclipse project is converted to a separate IntelliJ IDEA module)
- Select the Link option for all specified projects if you want them automatically synchronized between IntelliJ IDEA and Eclipse and click Finish
Note that if the option is cleared, the one-time import operation is performed and no future synchronization is done.
In case you want to export an IntelliJ IDEA project to Eclipse, open the File menu and select Export to Eclipse. Selecting the Link option keeps Eclipse project file automatically synchronized with IntelliJ IDEA.
You can also convert the arbitrary IntelliJ IDEA project module to an Eclipse-compatible format by adjusting the module settings.
Open the Project Structure dialog, click Dependencies tab and select the appropriate storage format.
This table shows the mapping between some Eclipse and IntelliJ IDEA concepts:
|A number of projects||Project|
|Project-specific JRE||Module JDK|
|User library||Global library|
|Classpath variable||Path variable|
|Project dependency||Module dependency|
Named entities are converted to the entities with the same names. If imported Eclipse projects refer to user libraries or classpath variables that do not exist in IntelliJ IDEA project, IntelliJ IDEA will prompt to create them.
As of yet some limitations apply to migrating projects between IntelliJ IDEA and Eclipse:
- IntelliJ IDEA modules with multiple content roots are not migrated
- External sources in Eclipse are not migrated
- Only Java modules created automatically when importing. However, any module can be converted to Eclipse
compatible format manually
- Default workspace JRE is not converted to/from Project JDK