Import the Maven Project
-
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
-
In the Import dialog, select the POM file of your project.
-
Continue with the default settings as shown in the dialog below.
-
Continue through the following dialogs by clicking Next and Finish.
-
You are now set up for AEM Development using IntelliJ IDEA
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.
- Go to File > Project Structure
- Select the Content module
- Click + above the list of modules and select Web
- As the Web Resource Directory, select the
content/src/main/content/jcr_root subdirectory
of your project as shown in the screenshot below.