We have a requirement to have classes related to components to be with in the component folder it self. And after I compile a java class in CRXDE lite where will be the class files gets generated? and how can we access this?
Also if we have to write JUnit test classes for the same how do I do it? We are using AEM 6.1 and sightly for our components
That requirement is not best practice when working with AEM. Best practice is to place Java into OSGi bundles and build OSGi bundles using Maven. See this article on how to use Maven Archetype 10:
For community members reading this thread and using an earlier version of AEM (ie 6) - see:
Hope this helps
You do you want tohave "classes related to components to be with in the component folder it self" ? It is not a recommended way.
Please have a look at :- https://helpx.adobe.com/experience-manager/using/first-arch10.html
This article covers :-
Some Reference article for Junit Testing :-
I hope this will help you.
Thanks and Regards
Never use CRXDE lite to write Java Classes for an HTL Component - always build your Java using a Maven Project and deploy to AEM. See Adobe Experience Manager Help | Creating an Adobe Experience Manager HTML Template Language componen...
YEs -- when working with AEM HTL component - you can use these development techniques:
1 - WCMUsePojo -- see this article: Adobe Experience Manager Help | Creating an Adobe Experience Manager HTML Template Language componen...
2 - Sling Models -- see this article: Creating a custom Touch UI Grid Component for Adobe Experience Manager
3 - JS USE API - see: Creating a Tab layout component for Adobe Experience Manager
Hope this helps ....