Expand my Community achievements bar.

SOLVED

How to integrate Asset Share Commons into an existing AEM project?

Avatar

Level 2

I am trying to integrate Asset Share Commons into an existing AEM maven project. The build and deployment to a local AEM SDK as well as in the Cloud are successful - the features work fine in AEM local SDK. In the cloud, I am able to open the Asset Share Commons Site but, the "download", "add to cart", and, "searching" etc features are not working - looks like it was not installed properly. Am I missing anything crucial?

 

I am adding it in the pom.xml file as follows which downloads the artifacts from the Maven Repo:

 

 

<!-- Asset Share Commons as EMBED -->
<embedded>
	<groupId>com.adobe.aem.commons</groupId>
	<artifactId>assetshare.ui.apps</artifactId>
	<type>zip</type>
	<target>/apps/application/install</target>
</embedded>              
<embedded>
	<groupId>com.adobe.aem.commons</groupId>
	<artifactId>assetshare.ui.content</artifactId>
	<type>zip</type>
	<target>/apps/content/install</target>
</embedded>    



<!-- Asset Share Commons as Dependnecy -->
<dependency>
	<groupId>com.adobe.aem.commons</groupId>
	<artifactId>assetshare.ui.apps</artifactId>
	<version>1.9.6</version>
	<type>zip</type>
</dependency>
<dependency>
	<groupId>com.adobe.aem.commons</groupId>
	<artifactId>assetshare.ui.content</artifactId>
	<version>1.9.6</version>
	<type>zip</type>
</dependency>

 

 

 

 

 

 

 

1 Accepted Solution

Avatar

Correct answer by
Employee

This looks correct (though i'd probably scope the /apps/<MY-APP>-packages/application/install and /apps/<MY-APP>-packages/content/install just to align w/ common convention.

 

Assuming the search itself actually works, that means the Bundle is active, etc. - which is a great sign. If search doesnt work/page is broken - then youll need to do some more investigating.

 

If it's just the actions (share, download, add to cart) that arent available - double-check that on your Search page's Page Properties that you have them enabled on the Asset Share tab as described in the Docs [1].

 

[1] https://adobe-marketing-cloud.github.io/asset-share-commons/pages/search/search-page/https://adobe-m...

View solution in original post

7 Replies

Avatar

Correct answer by
Employee

This looks correct (though i'd probably scope the /apps/<MY-APP>-packages/application/install and /apps/<MY-APP>-packages/content/install just to align w/ common convention.

 

Assuming the search itself actually works, that means the Bundle is active, etc. - which is a great sign. If search doesnt work/page is broken - then youll need to do some more investigating.

 

If it's just the actions (share, download, add to cart) that arent available - double-check that on your Search page's Page Properties that you have them enabled on the Asset Share tab as described in the Docs [1].

 

[1] https://adobe-marketing-cloud.github.io/asset-share-commons/pages/search/search-page/https://adobe-m...

Avatar

Level 2

Hi, @davidjgonzalezzzz yes, I have the same scope as you mentioned.

 

I compared the files for Asset Share Commons in my Local AEM SDK and Cloud. Looks like, the following are missing in cloud:

 

/etc/cloudsettings/asset-share-commons
/etc/notification/email/asset-share-commons
/etc/notification/email/rep:policy

 

Make a package of those from local and install on Cloud and see if it works. I dont think that should break the functionality you said it broken though. After packaging them up - you could also try to removing them from SDK to see if you can reproduce the breaking behavior that way.

Avatar

Level 2

@davidjgonzalezzYes, it worked. I packaged the missing filters from the local SDK and uploaded it to the Cloud.

 

Is there a way to add these missing filters in the codebase and then deploy them through the pipeline?

Well - they are, theyre just in the wrong package (for AEM as a Cloud Service) .. theyre in the ui.apps package.

I assume you have your own ui.content package (thats a sibling to your all pacakge)? Just add them in there... 

 

You can copy them from here:

https://github.com/Adobe-Marketing-Cloud/asset-share-commons/tree/master/ui.apps/src/main/content/jc...

Avatar

Level 2
@davidjgonzalezzzz Yes, I have ui.apps as well as ui.content. So, I copied the files from the github link you shared into ui.content jcr_root. I ran the pipeline to deploy but, I still don't see the prior missing cloudsettings and notification files
Did you add those paths to your filter.xml? and make sur that the merge modes make sense based on what content you might have at those filter paths?