Posts

Showing posts from March, 2020

Debugging OSGi Java Code in AEM: A Simple Guide

Debugging OSGi Java Code in AEM Debugging OSGi Java Code in AEM: A Simple Guide Steps to Debug OSGi Code in AEM Start AEM in Debug Mode java -Xmx2g -agentlib:jdwp=transport=dt_socket,address=5402,server=y,suspend=n -jar cq-author-p4502.jar -gui Note: Replace cq-author-p4502.jar with your specific jar file name. Ensure the port number ( 5402 in this example) matches the one you use. Set Up Eclipse for Remote Debugging - Open Eclipse and navigate to Debug Configurations by selecting Run -> Debug Configurations . - Choose Remote Java Application and click on New Launch Configuration . Configure Debug Settings - Enter a name for your configuration. - Set the Host to localhost (or your server’s IP address if remote). - Set the Port to 5402 (or the port nu...

Core components classes/models in Eclipse

Finding Core Components Classes and Models in Eclipse Finding Core Components Classes and Models in Eclipse Date: March 07, 2020 Hello Everyone, AEM provides a range of out-of-the-box components, such as lists, images, navigation, and more. Whether you’re developing custom components or enhancing existing ones, understanding the core components' implementation is crucial. If you want to locate the core components' implementation classes and models in Eclipse or any other IDE, you’ll need to include specific dependencies in your POM file. Steps to Locate Core Components Classes Add Dependencies in Your POM File To access the core components, you need to add dependencies to your project’s POM file. In the Parent POM of Your Project: <dependency> <groupId>com.adobe.cq</groupId> <artifactId>core.wcm.components.core</artifactId...