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

Avatar

Avatar

uafzal

Avatar

uafzal

uafzal

17-03-2021

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>

 

 

 

 

 

 

 

Asset Asset-Share-Commons Assets-Site

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

davidjgonzalezzzz

Avatar

davidjgonzalezzzz

davidjgonzalezzzz

17-03-2021

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...

Answers (0)