Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.

AEM | How to add osgiconfig in archetype 26 and above !? | AEM Community Blog Seeding

Avatar

Administrator

BlogImage.jpg

AEM | How to add osgiconfig in archetype 26 and above !? by Veena Vikraman

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

AEM | How to add osgiconfig in archetype 26 and above !?

Q&A

Please use this thread to ask the related questions.



Kautuk Sahni
0 Replies