Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Content Migration - Templates problem

Avatar

Avatar
Boost 10
Level 2
AD-Engineer
Level 2

Likes

10 likes

Total Posts

28 posts

Correct Reply

0 solutions
Top badges earned
Boost 10
Validate 1
Ignite 1
Give Back 3
Give Back
View profile

Avatar
Boost 10
Level 2
AD-Engineer
Level 2

Likes

10 likes

Total Posts

28 posts

Correct Reply

0 solutions
Top badges earned
Boost 10
Validate 1
Ignite 1
Give Back 3
Give Back
View profile
AD-Engineer
Level 2

06-05-2021

Hi,

Hope you are doing well!

We are trying to migrate content from dev to cloud server. For this we are using Content Migration from AEM (please, find attached). But, every time we migrate content, the templates or any of updated on them are not migrated. Also when I ran this command mvn clean install -PautoInstallSinglePackage all the new templates are removed. I would really appreciate your help on this!

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give Back 100
Level 10
asutosh_jena
Level 10

Likes

570 likes

Total Posts

687 posts

Correct Reply

197 solutions
Top badges earned
Give Back 100
Boost 500
Affirm 100
Ignite 1
Establish
View profile

Avatar
Give Back 100
Level 10
asutosh_jena
Level 10

Likes

570 likes

Total Posts

687 posts

Correct Reply

197 solutions
Top badges earned
Give Back 100
Boost 500
Affirm 100
Ignite 1
Establish
View profile
asutosh_jena
Level 10

07-05-2021

Hi @AD-Engineer 

 

Templates and template related settings are stored under /conf/{your-project}/settings/wcm node in crx and the same should be checked in via code which will be kept under ui.content package as per the latest maven archetype code.

 

if you are making any change to the template, and then deploying the code and the updated changes are not available in your code, then the build will remove all the changes that you have made on the server.

 

So everytime you make any changes to the template or component related policy, make sure to pull those changes into your code using vlt or any other plugin such as intellivault, and checkin those code so that the next deployment, the changes will be deployed along with code and will not be removed from the server. Also the same will be deployed to all the upper environments including the cloud instance.

 

When you use mvn clean install -PautoInstallSinglePackage command it will deploy the complete code base into the cloud or the instance.

 

In your code base, ui.content filter.xml should have the below code:

 

<workspaceFilter version="1.0">
<filter root="/conf/{your-project-name}"/>
</workspaceFilter>

 

As part of the content package you just need to mode the site content which can be deployed manually on the cloud.

 

Hope this helps!

 

Thanks

Answers (2)

Answers (2)

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,358 likes

Total Posts

3,228 posts

Correct Reply

918 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,358 likes

Total Posts

3,228 posts

Correct Reply

918 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

08-05-2021

Hi,

Please check the filter.xml in ui.content package against below rules.

https://jackrabbit.apache.org/filevault/filter.html

Avatar

Avatar
Springboard
Level 7
Prince_Shivhare
Level 7

Likes

112 likes

Total Posts

394 posts

Correct Reply

64 solutions
Top badges earned
Springboard
Establish
Give Back 100
Boost 100
Validate 1
View profile

Avatar
Springboard
Level 7
Prince_Shivhare
Level 7

Likes

112 likes

Total Posts

394 posts

Correct Reply

64 solutions
Top badges earned
Springboard
Establish
Give Back 100
Boost 100
Validate 1
View profile
Prince_Shivhare
Level 7

07-05-2021

Hi @AD-Engineer ,

 

Can you please confirm what is written on filter.xml which you can find under the META-INF/vault/filter.xml

 

mode should be merge if you want to merge the changes.

 

<workspaceFilter version="1.0">
<filter root="/conf/project" mode="merge"/>
</workspaceFilter>

 

Thanks,

Prince