You can also add these options to your start script in crx-quickstart/bin/start as shown below. Java -Xdebug -Xrunjdwp:transport=dt_socket,address=58242,suspend=n,server=y -Xmx1024m -XX:MaxPermSize=256M -jar cq-quickstart-5.6.1.jar You can do this by starting the AEM jar file directly and adding these options, for example with the following command line: The last step required is to start AEM with the JVM options proposed by IntelliJ IDEA.
Copy the command line arguments that IntelliJ IDEA proposes.On the Startup/Connection pane, adjust the port if required.Remove all Before launch tasks if you use vlt autosync, or configure appropriate Maven tasks if you don’t.Set the start page to an appropriate URL if you want to open a browser when you start debugging.In the configuration dialog, select Configure next to Application Server and configure a Generic server.Restart IntelliJ IDEA when requested to.Navigate to the JSR45 Integration Plugin and select the check box next to it.Go to the Plugins pane in the IntelliJ IDEA settings.As the Web Resource Directory, select the content/src/main/content/jcr_root subdirectory of your project as shown in the screen shot below.Click + above the list of modules and select Web.As IDEA cannot interpret the content-package-maven-plugin settings, this needs to be configured manually. IntelliJ IDEA needs to understand where to find the JSPs for debugging.
The following steps are necessary for debugging JSPs with IntelliJ IDEA You are now set up for AEM Development using IntelliJ IDEA In the Import dialog, select the POM file of your project.Ĭontinue with the default settings as shown in the dialog below.Ĭontinue through the following dialogs by clicking Next and Finish.
Intellij idea maven install#
Install IntelliJ IDEAĭownload IntelliJ IDEA from the Downloads page at JetBrains.
This guide is based on IntelliJ IDEA Ultimate Edition 12.1.4 and AEM 5.6.1.