![BlogImage.jpg](https://media-exp1.licdn.com/dms/image/C5612AQF9IuZIq-6lng/article-inline_image-shrink_1000_1488/0/1627707072845?e=1633564800&v=beta&t=4rAcQElM_Qd_d7V4j2djS55gVc7wELQJp3d31-hcoE0)
Abstract
#AEMGyaan Time . For latest archetype supporting 6.5 , the OSGI Configs structure has been changed a bit. If you check your code base in AEM , you will see a node called osgiconfig under /apps/
No alt text provided for this image
All your OSGI configurations are going to be added to this node and will be picked up from here .
As you might be aware , we should not be adding any OSGI Conifgurations directly to the Felix Console. It should always be added via config node of your project.
Now when using AEM archetype 26 and above ( which is mainly targeted for 6.5 and above) , the way the code and content is organized is bit different
mvn archetype:generate -D archetypeGroupId=com.adobe.aem -D archetypeArtifactId=aem-project-archetype -D archetypeVersion=26
Once you create a project with these archetype and check your code base , you will see quite a lot of folder separations.
In addition to the ui.apps , core , all , ui.content, ui.frontend ; we have ui.config
Prior to this when the project is created we had fewer no of folder structure
All our configs were inside the ui.apps along with the rest of the components and templates. (config, config.author in this image is an example)
Now coming back to AEM Archetype 26 ; the content structure is different and the ui.apps has lesser folders than prior ones
So the questions comes back to "Where is osgi configs ? How do we add it to our codebase if we want to do it proper way ?"
Answer is simple , as you might have noticed before (or as I have mentioned before), there is some additional folders and one of those is ui.config
Going forward , you have to add all your OSGI Configs to this folder, which at the time of build will be compiled and added to the /apps/ as /apps//osgiconfig.
Read Full Blog
Q&A
Please use this thread to ask the related questions.
Kautuk Sahni