March 15, 2020
Estimated Post Reading Time ~

How to import AEM Maven project into Eclipse

These steps show how to import an AEM Maven Project into eclipse.

Select File > Import
Select an Import Wizard - Maven - Existing Maven Projects

Import Dialog
Browse for the Maven project

Import Maven Projects Dialog
Once the project is imported into Eclipse, note that each module is a separate Eclipse project.

Project Explorer
Continue to build the OSGi bundle and deploy using Maven from the command line. Use Eclipse for remote debugging, to make file updates and export component files as needed with Sling export. See my Developer Tools for Eclipse page for more info on Sling export.
For example, the -PautoInstallPackage the command automatically deploys the OSGi bundle to AEM.
mvn -PautoInstallPackage install


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.