Rate This Document
Findability
Accuracy
Completeness
Readability

Creating a Project

To set up the development project environment, configure the JDK, install the Scala and Maven plugins, and create a project.

  1. Install IntelliJ IDEA and JDK, and configure the JDK in IntelliJ IDEA.
    1. Start IntelliJ IDEA and select Configure.

    2. Select Project Defaults from the Configure drop-down list.

    3. Select Project Structure under Project Defaults.

    4. On the Project Structure page, select SDKs and click the plus sign (+) to add the JDK.

    5. In the displayed Select Home Directory for JDK window, select the JDK directory and click OK.

    6. After selecting the JDK, click OK to complete the configuration.

  2. Install the Scala plugin in IntelliJ IDEA to use the Scala development environment.
    1. Select Plugins from the Configure drop-down list.

    2. On the Plugins page, search for scala. Select Scala and click OK to start the installation.

  3. After installing the Scala plugin, configure Maven in IntelliJ IDEA.
    1. Select Settings from the Configure drop-down list.

    2. Enter maven in the search box, select Maven from the navigation tree on the left, add the local Maven directory to Maven home directory on the right, and click OK.

  4. Create a project.
    1. Start IntelliJ IDEA. On the Quick Start page, select Create New Project. Or if IntelliJ IDEA has been started, choose File > New project to directly add a new project.

    2. Choose Maven > Project SDK and click Next.

    3. Set Groupld and Artifactld and click Next.

    4. Set the path and name of the new project and click Finish.

    5. After the project is created, the new project directory is displayed on the IDEA home page, as shown in the following figure: