Hi @Ricky99999 ,
You just need to change the merge mode of the package
Steps to change the filter mode
Create the package with the required path through the AEM package manager(http://localhost:8080/crx/packmgr/index.jsp) and download to the local file system
Unzip the package zip file on your computer(execute through command prompt or terminal) — jar -xvf test_mode-1.0.zip META-INF/vault/filter.xml
Open the file META-INF/vault/filter.xml in a text editor.
Add mode=”merge” to the <filter …> tag, the merge mode should be added to all the required filters defined in filter.xml:
<?xml version=”1.0" encoding=”UTF-8"?>
<workspaceFilter version=”1.0">
<filter root=”xxxxx” mode=”merge” >
<exclude pattern=”xxxxx” />
</filter>
<filter root=”xxxx” mode=”merge”/>
</workspaceFilter>
e.g
<?xml version=”1.0" encoding=”UTF-8"?>
<workspaceFilter version=”1.0">
<filter root=”/content/we-retail/us/en/products/men” mode=”merge” />
</workspaceFilter>
Re-zip the modified package contents so it includes the filter.xml changes — jar -uvf test_mode-1.0.zip META-INF/vault/filter.xml
Upload the modified package to target server through package manager— the filter changes(“merge” mode) will make sure the target server changes are not overwritten.