I am new to AEM and trying to create a OSGi bundle so i found 2 ways to do it
2. Maven command.
and follow links below :
Adobe Experience Manager Help | Creating OSGi bundles for the Adobe Digital Marketing Suite using CRXDE
Adobe Experience Manager Help | Creating your first Adobe Experience Manager Service using an Maven Archetype project
Respectively for crx/de and maven .
so as far as i have researched we cannot create bundle in 6.4 using Crx/de(please tell me if we can?) so now when i am following the second way using maven i am stuck on the step four which is creation of project using command and i am using the following command :
Also i am not sure about the setting.xml which they are coping to the user profile in step 3, That what is the use of doing it ?
Please help on this.
Thanks in Advance
settings.xml is used to do global changes for maven similar like POM.xml
In above tutorials adobe public repo is added to download dependencies hosted to adobe public repo instead of maven repo.
Thanks for the reply.
But in the above tutorial if you see there are two folder which are getting created i.e. content and bundle but in our case of AEM 6.4 i am getting 5 folders core, test, content, app and launcher,
so where i have to write the code for keyservice interface and keyserviceImpl.
The correct way to create an AEM project is to use either Maven or Lazybones. Since you are starting with the AEM development , I would recoomend you to go with Maven. You can follow the link Arun mentioned.Now to answer your question specifically , when you create a project using Maven command , it actually create an initial structure for you. Depending on the archetype you are using it will generate the folder structures for you. So when you create your initial project , you will have a structure something like below
To brief you
core - all your backend code will be inside this folder
it.launcher - Your AEM integration tests can go here
it.tests - Integration tests
ui.apps - this will have the components , (In simple words your apps)
ui.content - this can have content, conf and anything which facilitate content
All your java coding should go inside your core folder. When you import your maven project to eclipse , it will have a structure similar to below.
and all the java coding will go inside , in this case , utilities.core .
also , since you are starting with AEM development,. your initial code base will have a set of sample code for you to understand different modules like servlets , services, schedulers so and so.
If you need more info , please let us know. Happy coding . And welcome to AEM world
In AEM 6.x - never use CRXDE lite to create OSGi bundles. Always use a Maven Archetype.
Also - as you are new to AEM -- see Getting Started with AEM-Sites
Please start with this article too -- Getting Started with AEM Sites - WKND Tutorial (This will teach you how to really get up and running with AEM)
By the help of your resources i have created a project and has the bundle in my web console under osgi> bundle.
but now i want to see how two component communicate with each other,
so what should be the steps to check that.
Thanks in advance