How to package and install content packages | Community
Skip to main content
Level 4
August 26, 2020
Solved

How to package and install content packages

  • August 26, 2020
  • 4 replies
  • 4962 views

HI,

 

We are in process to migrate to Cloud Manager. We are using AEM 6.5.5.

Question: Can someone point me to a good documentation which shows step by step how to install content packages through our Code base (i guess by using ui.content..?).

So far we were installing content package zips manually through Package manager.

Also need to know how we can tell the build to install the content package in Auth and not in Publisher...

 

Note: To clarify my requirement, I have latest contents in Stage and I want to install them in Prod using Maven. So when Prod build/install process will run, it needs to install Stage contents specified by certain path/package name in Stage into Prod...Is that possible..?

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 harishv63553358

hi @mayukh007  - hope you have followed this link - https://docs.adobe.com/content/help/en/experience-manager-cloud-service/moving/home.html
You need to go deep into those links on the specific areas you are looking for guidance, it has everything. 

If you are facing any specific issue, please call out, happy to share thoughts.

4 replies

harishv63553358Accepted solution
Level 2
August 26, 2020

hi @mayukh007  - hope you have followed this link - https://docs.adobe.com/content/help/en/experience-manager-cloud-service/moving/home.html
You need to go deep into those links on the specific areas you are looking for guidance, it has everything. 

If you are facing any specific issue, please call out, happy to share thoughts.

arunpatidar
Community Advisor
Community Advisor
August 26, 2020
Arun Patidar
Mayukh007Author
Level 4
August 27, 2020

Thank you for your suggestion Arun.

I have some doubts here:

1.  In the pom.xml file "<artifactId>core.wcm.components.core</artifactId>" this artifact id is name of the content package zip file..?

 

2.If I have content sitting in Stage env and I want to zip it up and install in Prod, how will this step work...?

BrianKasingli
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
August 26, 2020

@mayukh007 

All your troubles can be found on Adobe's documentation, 

How to Build AEM Projects using Apache Maven : https://helpx.adobe.com/uk/experience-manager/6-3/sites/developing/using/ht-projects-maven.html

I hope this helps,

Brian.

Mayukh007Author
Level 4
August 27, 2020

Thank you Brian for the suggestion. So as per the doc, I need to add content paths in filter.xml under ui.content module like this:

<?xml version="1.0" encoding="UTF-8"?>
<workspaceFilter version="1.0">
    <filter root="/apps/myproject"/>
    <filter root="/content/myproject/sample-content"/>
</workspaceFilter>

But if I have content sitting in Stage env and I want to zip it up and install in Prod, how will this step work...? This will build content package in Stage taking the contents I want using filters provided. But how it will deploy those content packages into Prod when I run Prod build..? 

Nikhil-Kumar
Community Advisor
Community Advisor
August 26, 2020

@mayukh007 

First of when we create a project out of any archetype it comes with auto upload of ui.content package. Where inital pages gets uploaded on AEM after the build.

 

But as we don’t want to build and deploy the pages every time, so remove the deployment of content pages using the filters inside ui.content.

 

So I guess in your current architecture your ui.content is deploying only conf and other items only. So along with that place the downloaded content inside the ui.content and add it into the filters. In this case along with conf folder content will also be deployed as part of every build.

 

But if you are totally not building and uploading the ui.content then you should go and update the POM.xml

 

 

Refer a sample project for the configuration https://github.com/adobe/aem-project-archetype 

 

Thanks,

Nikhil