AEM Cloud. What package may contain indices | Community
Skip to main content
Level 2
June 4, 2021
Solved

AEM Cloud. What package may contain indices

  • June 4, 2021
  • 1 reply
  • 1475 views

Hi there!

 

I build a translation connector with ui.apps package and put `/apps/smartling-connector` and `/oak:index` into them.

Embedded the connector into WKND site project and deployed them into AEM Cloud. AEM Cloud Code Scanning says this warning:

Inclusion of both /apps/smartling-connector and /oak:index/smtl.fileUri-custom-1 in the same package violates the separation of immutable and mutable paths in the same package.

But according to https://experienceleague.adobe.com/docs/experience-manager-cloud-service/implementing/developing/aem-project-content-package-structure.html#oak-indexes it is proper way to deliver indices as a part of ui.apps.

 

Does anybody have the same warning? Is there a way to fix them?

 

Thank you!

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 joerghoh

packages with mixed mutable and unmutable content are not working. For indexing I would recommend to start here [1] in the docs.

 

[1] https://experienceleague.adobe.com/docs/experience-manager-cloud-service/implementing/developing/aem-project-content-package-structure.html?lang=en#oak-indexes

1 reply

joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
June 4, 2021

packages with mixed mutable and unmutable content are not working. For indexing I would recommend to start here [1] in the docs.

 

[1] https://experienceleague.adobe.com/docs/experience-manager-cloud-service/implementing/developing/aem-project-content-package-structure.html?lang=en#oak-indexes

mpmuradovAuthor
Level 2
June 7, 2021

I mentioned the same link ))
Both /apps and /oak:index should be put into ui.apps package according to the doc. Here is explanation
For this reason, although Oak indexes are mutable at run time, they must be deployed as code so that they can be installed before any mutable packages are installed. Therefore /oak:index configurations are part of the Code Package and not part of the Content Package