Expand my Community achievements bar.

SOLVED

Embeded vendor packages are not getting installed automatically

Avatar

Level 2

I have included the asset share commons package in the all/pom.xml. However, the vendor packages do not get installed automatically after running the build command (mvn clean install -PautoInstallSinglePackage).

 

<embedded>
<groupId>com.adobe.aem.guides</groupId>
<artifactId>aem-guides-wknd-shared.ui.content</artifactId>
<type>zip</type>
<target>/apps/wknd-vendor-packages/content/install</target>
</embedded>
<embedded>
<groupId>com.adobe.aem.commons</groupId>
<artifactId>assetshare.all</artifactId>
<type>zip</type>
<target>/apps/wknd-vendor-packages/container/install</target>
</embedded>
Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@KarthickVijay 

 

Please look for any errors while installing these bundles. Manually install and check logs

  • Package install logs in CRX package manager
  • in error.log

 

If there are any, please resolve them. 

 

 


Aanchal Sikka

View solution in original post

7 Replies

Avatar

Community Advisor

You are trying this in wknd repo itself ? And have you added the asset share's dependency as well in your pom ? 

 

Avatar

Level 2

Yes, have added asset share's dependency in all/pom and main/pom as well

Avatar

Community Advisor

Can you check once from package manager which pakages are getting installed when you do a project build? Do you see asset share commons package there or not ?
Also cross check once if wknd-vendor-packages is present in your all filter.xml or not (all/src/main/content/META-INF/vault/filter.xml) 

    <filter root="/apps/wknd-vendor-packages"/>

  

Avatar

Community Advisor

If you are using AEMaaCS then I also found this (https://opensource.adobe.com/asset-share-commons/pages/development/deploying/ ) in Asset share commons documentation which suggests to add a cloud classifier as well in the dependency 

<dependency>
         <groupId>com.adobe.aem.commons</groupId>
         <artifactId>assetshare.all</artifactId>
         <version>3.x.x</version>
         <!-- Add the cloud classifier when deploying to AEM as a Cloud Service; omit if deploying to AEM 6.5 -->
         <classifier>cloud</classifier>  
         <type>zip</type>
     </dependency>

 Can you try that as well if you are using AEM as cloud? 

Avatar

Level 2

There was a mismatch between the SDK version specified in the main/pom.xml file and the local SDK version. Thank you for your pointers

Avatar

Correct answer by
Community Advisor

@KarthickVijay 

 

Please look for any errors while installing these bundles. Manually install and check logs

  • Package install logs in CRX package manager
  • in error.log

 

If there are any, please resolve them. 

 

 


Aanchal Sikka

Avatar

Community Advisor

Hi @KarthickVijay 
Did you added as dependency as well?

https://github.com/arunpatidar02/aemaacs-aemlab/blob/e31fc62bfd147e56ecaca740c6e2739c66c75f75/all/po...

 

Sometimes it may take time to install and reflect the status.



Arun Patidar
The following has evaluated to null or missing: ==> liql("SELECT id, subject, body, depth, post_time, author.login, author.id, author.rank, metrics.views FROM messages WHERE topic.id = '${topicId}' AND is_solution = true").data.items[0] [in template "analytics-container" at line 82, column 31] ---- Tip: It's the final [] step that caused this error, not those before it. ---- Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign acceptedAnswer = liql("SELECT... [in template "analytics-container" at line 82, column 5] ----