How to install the AEM Developer Tools for Eclipse

Once you have fulfilled the requirements above, you can install the plugin as follows:

  1. Browse the AEM Developer Tools website at https://eclipse.adobe.com/aem/dev-tools/.

  2. Copy the Installation Link.

    Alternatively, you can download an archive instead of using the installation link. Doing so allows offline installation but you miss automatic update notifications.

  3. In Eclipse, open the Help menu.

  4. Click Install New Software.

  5. Click Add….

  6. In Name type AEM Developer Tools.

  7. In Location copy the installation URL.

  8. Click Ok.

  9. Check both AEM and Sling plugins.

  10. Click Next.

  11. Click Next.

  12. Accept the lincese agreements and click Finish.

  13. Click Yes to restart Eclipse.

How To Import Existing Projects

The AEM Perspective

The AEM Development Tools for Eclipse ships with a Perspective that offers you full control over your AEM Projects and instances.

chlimage_1-2

Sample Multi-Module Project

“AEM Developer Tools” include a sample, multi-module project that helps you quickly get up to speed with a project setup in Eclipse. It also serves as a best-practice guide to several AEM features. Learn more about the Project Archetype.

To create the sample project, complete the following steps:

  1. In the File > New > Project menu, browse to the AEM section and select AEM Sample Multi-Module Project.

    chlimage_1-69

  2. Click Next.

    NOTE
    This step might take a while because m2eclipse must scan the archetype catalogs.

    chlimage_1-70

  3. Choose com.adobe.granite.archetypes : sample-project-archetype : (highest number) from the menu, then click Next.

    chlimage_1-71

  4. Fill in a Name, Group id, and an Artifact id for the sample project. You can also opt to set some advanced properties.

    chlimage_1-72

  5. Now configure an AEM server to which Eclipse can connect.

    To use the debugger feature, be sure you started AEM in debug mode, which can be achieved by adding the following to the command line:

        -nofork -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=10123
    

    chlimage_1-73

  6. Click Finish. The project structure is created.

    NOTE
    On a fresh installation (more specifically: when maven dependencies have never been downloaded) you might get the project created with errors. In this case, follow the procedure describe in Resolving Invalid Project Definition.

Troubleshooting

Resolving Invalid Project Definition

To resolve invalid dependencies and project definition proceed as follows:

  1. Select all created projects.
  2. Right-click. In menu Maven, select Update Projects.
  3. Check Force Updates of Snapshot/Releases.
  4. Click OK. Eclipse tries to download the required dependencies.

Enabling tag library autocompletion in JSP files

Tag library autocompletion works out of the box, given that the proper dependencies are added to the project. There is one known issue when using the AEM Uber Jar, which does not include the needed tld and TagExtraInfo files.

To work around it, ensure that the org.apache.sling.scripting.jsp.taglib artifact is in the classpath before the AEM Uber Jar. For Maven projects, place the following dependency in the pom.xml before the Uber Jar.

<dependency>
  <groupId>org.apache.sling</groupId>
  <artifactId>org.apache.sling.scripting.jsp.taglib</artifactId>
  <scope>provided</scope>
</dependency>

Make sure to add the proper version for your deployment of AEM.

More information

The official Apache Sling IDE tooling for Eclipse website provides you with useful information:

The following official Eclipse documentation can help to set up your environment:

Experience Manager


The True Cost of a Failed Implementation

Online | Session | General Audience

A failed implementation isn’t just an inconvenience — it costs real revenue. Poor execution and misaligned tools disrupt pipelines,...

Wed, Mar 19, 2:00 PM PDT (9:00 PM UTC)

Register

Driving Marketing Agility and Scale: Transforming your Content Supply Chain with AI

Online | Strategy Keynote | General Audience

Marketers everywhere are feeling the pressure to deliver impactful campaigns faster and at greater scale. This Strategy Keynote explores...

Tue, Mar 18, 2:30 PM PDT (9:30 PM UTC)

Register

Connect with Experience League at Summit!

Get front-row access to top sessions, hands-on activities, and networking—wherever you are!

Learn more