Creating custom Adobe Experience Manager 6.2 commerce providers | Community
Skip to main content
DEBAL_DAS
New Member
April 6, 2017
Solved

Creating custom Adobe Experience Manager 6.2 commerce providers

  • April 6, 2017
  • 3 replies
  • 1740 views

Hi,

 I am working on custom commerce provider and similar to geometrixx I am creating custom commerce provider and CSVProductImporter as well.

I am referring following link: https://helpx.adobe.com/experience-manager/using/creating-custom-cq-commerce-providers.html and even decompiled cq-wcm-geometrixx-5.8.2.jar and cq-geometrixx-commons-core-1.4.8.jar to have better understanding.

I have created similar commerce provider and CSVProductImporter , as of now I am dealing with only add action.

After deployment i am getting -

Imported Packages    com.adobe.cq.commerce.api,version=[1.2,2) -- Cannot be resolved
com.adobe.cq.commerce.api.promotion,version=[1.2,2) from com.adobe.cq.commerce.cq-commerce-core (225)
com.adobe.cq.commerce.common,version=[1.2,2) -- Cannot be resolved


I have verified depfinder as well and got below information for AEM6.2 -

 

<dependency> <groupId>com.adobe.cq.commerce</groupId> 

<artifactId>cq-commerce-core</artifactId> 

<version>5.14.102</version> 

<scope>provided</scope>

 </dependency>

But, I couldn't get any cq-commerce-core-5.14.102.jar with version 5.14.xx here: https://repo.adobe.com/nexus/content/groups/public/com/adobe/cq/commerce/cq-commerce-core/.

Even, geometrixx has following dependency -

<dependency>
            <groupId>com.adobe.cq.commerce</groupId>
            <artifactId>cq-commerce-core</artifactId>
            <version>5.14.22</version>
            <scope>provided</scope>
        </dependency>

How can we get the relevant bundle with version 5.14.xx.Please suggest.

Thanks,

Debal

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

Hi Scott,

Finally the issue got resolved. In the following link:  https://helpx.adobe.com/experience-manager/using/ecommerce62.html it was suggested to add uber jar dependency and I have added -

 

<dependency>

               <groupId>com.adobe.aem</groupId>

               <artifactId>uber-jar</artifactId>

               <version>6.2.0</version>

               <!-- for AEM6.1 use this version     : <version>6.1.0</version> -->

               <!-- for AEM6.1 SP1 use this version : <version>6.1.0-SP1-B0001</version> -->

               <!-- for AEM6.1 SP2 use this version : <version>6.1.0-SP2</version> -->

               <!-- for AEM6.2 use this version     : <version>6.2.0</version> -->

               <classifier>obfuscated-apis</classifier>

               <scope>provided</scope>

           </dependency>

  But, every time build was getting failed with obfuscated-apis classifier. Then

I have replaced the above classifier with <classifier>apis</classifier>

                 <dependency>

                                                                <groupId>com.adobe.aem</groupId>

                                                                <artifactId>uber-jar</artifactId>

                                                                <version>6.2.0</version>

                                                                <classifier>apis</classifier>

                                                                <scope>provided</scope>

                                                </dependency>

 


Now, I am able to build OSGi bundle with custom commerce provider and custom commerce provide option is also getting populated also.

 

Thanks for your help and guidance.


Thanks,

Debal

3 replies

smacdonald2008
Level 10
April 6, 2017

The issue you have is because you are using a 5.6 article for 6,2. 

To perform what you want to do - see the 6.2 version: 

http://scottsdigitalcommunity.blogspot.ca/2016/08/creating-custom-adobe-experience.html

Also - see this Ask the AEM Community Experts session on this subject:

http://scottsdigitalcommunity.blogspot.ca/2016/08/working-with-aem-ecommerce-august-2016.html

DEBAL_DAS
DEBAL_DASAuthor
New Member
April 8, 2017

Hi Scot,

 

Yes it's my bad I have mentioned different version here. I am referring https://helpx.adobe.com/experience-manager/using/ecommerce62.html and I couldn't get 5.14.x  here: https://repo.adobe.com/nexus/content/groups/public/com/adobe/cq/commerce/cq-commerce-core/.

 

Sorry for the inconvenience.

Thanks,

Debal

Debal Das, Senior AEM Consultant
DEBAL_DAS
DEBAL_DASAuthorAccepted solution
New Member
April 14, 2017

Hi Scott,

Finally the issue got resolved. In the following link:  https://helpx.adobe.com/experience-manager/using/ecommerce62.html it was suggested to add uber jar dependency and I have added -

 

<dependency>

               <groupId>com.adobe.aem</groupId>

               <artifactId>uber-jar</artifactId>

               <version>6.2.0</version>

               <!-- for AEM6.1 use this version     : <version>6.1.0</version> -->

               <!-- for AEM6.1 SP1 use this version : <version>6.1.0-SP1-B0001</version> -->

               <!-- for AEM6.1 SP2 use this version : <version>6.1.0-SP2</version> -->

               <!-- for AEM6.2 use this version     : <version>6.2.0</version> -->

               <classifier>obfuscated-apis</classifier>

               <scope>provided</scope>

           </dependency>

  But, every time build was getting failed with obfuscated-apis classifier. Then

I have replaced the above classifier with <classifier>apis</classifier>

                 <dependency>

                                                                <groupId>com.adobe.aem</groupId>

                                                                <artifactId>uber-jar</artifactId>

                                                                <version>6.2.0</version>

                                                                <classifier>apis</classifier>

                                                                <scope>provided</scope>

                                                </dependency>

 


Now, I am able to build OSGi bundle with custom commerce provider and custom commerce provide option is also getting populated also.

 

Thanks for your help and guidance.


Thanks,

Debal

Debal Das, Senior AEM Consultant