How to create Osgi bundle in AEM 6.4 | Community
Skip to main content
yash558824
Level 2
September 17, 2018

How to create Osgi bundle in AEM 6.4

  • September 17, 2018
  • 2 replies
  • 6800 views

Hello friend

I am new to AEM and trying to create a OSGi bundle so i found 2 ways to do it

1. Crx/de

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 :

mvn archetype:generate

-DarchetypeRepository=http://repo.adobe.com/nexus/content/groups/public/

-DarchetypeGroupId=com.day.jcr.vault

-DarchetypeArtifactId=multimodule-content-package-archetype

-DarchetypeVersion=1.0.2

-DgroupId=com.adobe.cq

-DartifactId=key61

-Dversion=1.0-SNAPSHOT

-Dpackage=com.adobe.cq

-DappsFolderName=myproject

-DartifactName="My Project"

-DcqVersion="6.4"

-DpackageGroup="My Company"

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

arunpatidar
Community Advisor
Community Advisor
September 18, 2018

Hi,

Please check

Creating an Adobe Experience Manager 6.4 Project using Adobe Maven Archetype 13

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.

Arun Patidar
yash558824
Level 2
September 18, 2018

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.

edubey
Level 10
September 18, 2018

Those will go into core

VeenaVikraman
Community Advisor
Community Advisor
September 18, 2018

Also, could you please specify where exactly you are stuck in the below ?

smacdonald2008
Level 10
September 18, 2018

In AEM 6.x - never use CRXDE lite to create OSGi bundles. Always use a Maven Archetype.

Creating an Adobe Experience Manager 6.4 Project using Adobe Maven Archetype 13

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)

smacdonald2008
Level 10
September 18, 2018

Also when you use HELPX articles - please refer to the version.

One of the issues you have is you are trying to use an article meant for AEM 5.5 on 6.4. See below. Always match the article version with the AEM version.