Dashboard > Magnolia Development > ... > Development Tips & Tricks > Intellij IDEA
Intellij IDEA Log In View a printable version of the current page.

Added by Grégory Joseph , last edited by Grégory Joseph on Aug 29, 2008  (view change)
Labels: 

Here's a quick how to for setting up IntelliJ with the latest trunk of Magnolia.

Prerequisites:

  • Running on a Unix system, OSX, or having cygwin installed on your Windows machine (how could you not?)
  • Having the 1.5 of the subversion client.
  • Using IntelliJ 7 or more recent.

Checkout everything from the community subversion repository:

mkdir magnolia-subversion-repo
cd magnolia-subversion-repo
svn co --depth=files http://svn.magnolia.info/svn/community
cd community
./checkout.sh

If you only want parts of this (for instance, you might not be interested in all modules), I'll simply advise to pick what you need from http://svn.magnolia.info/svn/community/ and do what the checkout.sh script does manually.

From here on you have two options:

Importing

Start IntelliJ, create a new project with the "Import project from external model" option, and "Maven" as the type, give it the magnolia-subversion-repo/community directory as its root. Once IntelliJ has figured out all the modules which are in there, it will ask which ones you want to import. Take your pick, but make sure you uncheck the archetypes skeletons(which are easily recognizable, as their group and artifact IDs contains $'s. You don't need to select a specific profile. Now go get a coffee. Or smoke a cigarette. Or do something healthier if you are so inclined, but this is gonna take a moment, as it will import all the projects you just checked out and selected.

Generating

Instead of importing, you can also run

mvn idea:idea
and let the Maven IDEA Plugin create project files for you. Just doubleclick on the file with IDEA icon/ipr-extension to start IDEA and load the project.

Oliver, mvn idea:idea is what I was using before, but we're probably going to remove a bunch of now useless profiles from the pom files (which were only there to satisfy this), if the import thing is satisfying. (I'm still experimenting, and having quite a hard time getting IntelliJ to chill and stop reloading tons of projects all the time)

Powered by a free Atlassian Confluence Open Source Project License granted to Magnolia International. Evaluate Confluence today.
Powered by Atlassian Confluence 2.7, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators