May 10, 2020
Estimated Post Reading Time ~ 2 mins

AEM Eclipse Dev Environment Setup

1) Download the Eclipse from Eclipse Website
https://www.eclipse.org/downloads/.
2) Double Click on the Executable JAR after the download.

3) Select Eclipse IDE for Java EE Deveopers
ecilpse1

4) Provide the installation Path and click install.
ecilpse2

5) After the successful installation, click on Launch
ecilpse3

6) While starting the Eclipse please select the workspace
ecilpse4

7) By Default only JRE will be configured. So need to add JDK path too. otherwise maven install will fail.
Window – >Preferences
Java -> Installed JREs
Click Add button
ecilpse5

8) Select Standard VM
ecilpse6

9) Browse the JDK installation directory and Finish
ecilpse7

10) JDK path will added.
ecilpse8

11) For working with AEM projects. AEM plugins is required to install.
Help -> Eclipse Marketplace
Search for AEM
install AEM Developer Tools for Eclipse
ecilpse9

12) Accept the terms and conditions
ecilpse10

13) Select Install anyway
ecilpse11

14) Restart Eclipse to take effect changes
ecilpse12

15) After restart AEM project will be visible in projects.
File->New -> Project
Select AEM Sample Multi-Module Project and click next
ecilpse14

16) Select com.adobe.granite.archetypes : aem-project-archetype : 10
ecilpse15

17) For Configuring Archetype Properties, provide Name, Group Id and Artifact ID.
ecilpse16

18) Select the server details as per the requirement and click Finish
ecilpse17

19) For First time Eclipse workspace setup.
Run -> Run Configurations
Select Maven Build
click on New Launch Configurations
Provide the Name : Eclipse Setup
Select Base directory
Set Goals as eclipse:eclipse
click Apply and run.
ecilpse18

20) Below Success message will be displayed in console
Reactor Summary:
[INFO]
[INFO] myproject …………………………………… SUCCESS [ 2.175 s]
[INFO] AEM Sample – Core ……………………………. SUCCESS [ 1.368 s]
[INFO] AEM Sample – UI apps …………………………. SUCCESS [ 1.113 s]
[INFO] AEM Sample – UI content ………………………. SUCCESS [ 0.074 s]
[INFO] AEM Sample – Integration Tests Bundles …………. SUCCESS [ 0.194 s]
[INFO] AEM Sample – Integration Tests Launcher ………… SUCCESS [ 1.129 s]
[INFO] ————————————————————————
[INFO] BUILD SUCCESS

21) Configure Maven for Clean install
Run -> Run Configurations
Select Maven Build
click on New Launch Configurations
Provide the Name : Clean Install
Select Base directory
Set Goals as clean install
click Apply and run.
ecilpse19

22) Below success message will be displayed in console
[INFO] Reactor Summary:
[INFO]
[INFO] myproject …………………………………… SUCCESS [ 8.242 s]
[INFO] AEM Sample – Core ……………………………. SUCCESS [ 7.524 s]
[INFO] AEM Sample – UI apps …………………………. SUCCESS [ 3.208 s]
[INFO] AEM Sample – UI content ………………………. SUCCESS [ 0.778 s]
[INFO] AEM Sample – Integration Tests Bundles …………. SUCCESS [ 0.859 s]
[INFO] AEM Sample – Integration Tests Launcher ………… SUCCESS [ 5.062 s]
[INFO] ————————————————————————
[INFO] BUILD SUCCESS

23) Now in Project explore, a clean AEM project will be created.
ecilpse20
aem4beginner.blogspot


By aem4beginner

No comments:

Post a Comment

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

Ad Blocker Detected :(

Please consider supporting us by disabling your ad blocker.

Please Disable your adblocker and Refresh the page to view the site content.