Import the Maven Project

  1. Open the Import dialog in IntelliJ IDEA by

    • selecting Import Project on the welcome screen if you have no project open yet
    • selecting File > Import Project from the main menu
  2. In the Import dialog, select the POM file of your project.

    chlimage_1-45

  3. Continue with the default settings as shown in the dialog below.

    chlimage_1-46

  4. Continue through the following dialogs by clicking Next and Finish.

  5. You are now set up for AEM Development using IntelliJ IDEA

    chlimage_1-47

Debugging JSPs with IntelliJ IDEA

The following steps are necessary for debugging JSPs with IntelliJ IDEA

  • Set up a Web Facet in the Project
  • Install the JSR45 support plugin
  • Configure a Debug Profile
  • Configure AEM for Debug Mode

Set up a Web Facet in the Project

IntelliJ IDEA must understand where to find the JSPs for debugging. Because IDEA cannot interpret the content-package-maven-plugin settings, it must be configured manually.

  1. Go to File > Project Structure
  2. Select the Content module
  3. Click + above the list of modules and select Web
  4. As the Web Resource Directory, select the content/src/main/content/jcr_root subdirectory of your project as shown in the screenshot below.

chlimage_1-48