Setup: Installing Intellij - ColoradoSchoolOfMines/interface_sdk GitHub Wiki
Installing Intellij
NOTE: As Intellij is a Java development tool, you will need the Java Development Kit when using Intellij. If you have not yet installed the JDK, see this page.
Intellij is a powerful cross-platform IDE. To install:
- Go to the Intellij downloads
- Select your OS at the top and download the community version.
- Install it.
Creating Project
You can create a Intellij project using the built-in Maven plugin. To create project:
- Open up Intellij.
- You should be presented with a screen that says "Import Project". If you are not (you have used Intellij before), go to "File"->"Import Project".
- Select the path of the Maven "pom.xml" file.
- Hit ok.
Configuring Maven
Intellij comes with built-in Maven support to import projects, but requires a Maven install for compiling. At this time, if you have not already, please install maven. To configure:
-
Add a environment variable M2_HOME with the value being the path to your Maven install. If you are unsure how to do this, you can configure the path directly within Intellij:
- Go to "File"->"Settings" and on the side you will see Maven listed. Click on Maven.
- You will see a field named "Maven home directory". Check the "Override" box.
- Enter in the path to your Maven install.
Using Maven
To build the project, you must go through the Maven plugin. To use Maven in Intellij:
- "Maven Projects" should be listed on the right side of the screen. Click it.
- A pop-out windows should appear with different commands. Expand "Lifecycle".
- Select command (say "Compile") to run.
- Click green arrow at top. This will run that command.
Running compile for the first time will download all the needed libraries.
For additional installation help, see Intellij's download page.