lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Lucene-java Wiki] Update of "HowtoConfigureIntelliJ" by IamJabour
Date Fri, 24 Sep 2010 16:43:33 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Lucene-java Wiki" for change notification.

The "HowtoConfigureIntelliJ" page has been changed by IamJabour.


New page:
= Configure IntelliJ =
(Original [[|HowTOContribute]]

== IntelliJ (9.0.3) ==

There used to be a long, complex song-and-dance for doing this, but Steven Rowe did a really
cool patch, see: LUCENE-2611. Essentially, all you have to do is download the patch, run "ant
idea", bring up IntelliJ and set the project-level java SDK. See the comments at the JIRA.
I haven't tried to run SOLR after this setup, but since the previous version of these instructions
didn't try either, it's no loss.

This patch has not been committed yet, and there's no guarantee it will be. Even if it's not,
though, applying this patch is so much easier than doing things by hand that it's worth the

=== Step by Step ===

1 - Get Lucene patch from
$ wget --no-check-certificate

2 - Apply this patch in branch. 
$ cd branch_3x; patch -p0 < ../LUCENE-2611-branch-3x.patch

3 - Run ant idea.
$ ant idea 

4 - take a look for instructions, it's necessarily configure IntelliJ JDK.
* File\Project Settings, and in the right-hand pane, "Project SDK" dropdown is set to "<No

=== Adding Code Style ===

Installing code style

To install the Lucene/SOLR codestyle files, get the IntelliJ codestyle file from this site
and put it in the magic place so IntelliJ can find it. On my Mac that is in ~/Library/Preferences/IntelliJ90/codestyles
and restart IntelliJ. On a Windows7 box, this magic directory was in /Users/<username>/.IntellijIdea90/config/codestyles.

Now click on the "Settings" icon (the little in the toolbar) and click "codestyle". You should
see the new code style configuration in the select box. NOTE: the name in the select box is
the name from the <code_scheme....> tag in the xml file. It is NOT the name you put
on the file, which can be a bit confusing..

IntelliJ also allows you to create patches very easily...

* [[attachment:Intellij-Lucene-Codestyle.xml|IntelliJ IDEA codestyle.xml file for Lucene's
coding conventions]]
it's ready to start.

View raw message