Expand my Community achievements bar.

How can i merge .content.xml/_rep_policy.xml from maven build?

Avatar

Level 2

Hi

I have configured new groups and i made some changes to OOTB groups like dam-users. when i install it on DEV/QA environment its overwriting, not merging the content.

In .content.xml i have added values "rep:memebrs"

<?xml version="1.0" encoding="UTF-8"?>

-<jcr:root rep:principalName="dam-users" rep:members="{WeakReference}[a2be06f4-4bc4-3804-ad5c-46ff6232ce68,fdd1547a-b19a-3154-90da-1eae8c2c3504,8e054e1b-3197-33a5-b865-8d8cd3ac99aa,93ef39ff-6c41-3f13-8f52-3491e0871c06,ce544214-e3a6-3167-a131-b96aec3a7ce6]" jcr:uuid="f5777a0b-a933-3b4d-9405-613d8bc39cc7" jcr:primaryType="rep:Group" jcr:mixinTypes="[rep:AccessControllable]" cq:lastModifiedBy="admin" cq:lastModified="{Date}2015-07-09T16:50:16.367-05:00" xmlns:rep="internal" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:sling="http://sling.apache.org/jcr/sling/1.0">

<preferences jcr:primaryType="nt:unstructured" sling:resourceType="cq:Preferences"/>

<profile jcr:primaryType="nt:unstructured" sling:resourceType="cq/security/components/profile" givenName="DAM Users" aboutMe="Users of the DAM system"/>

</jcr:root>

In _rep_policy.xml i have added some deny and allow tags

Please advise

Thanks

2 Replies

Avatar

Level 10

while installing set acHandling=merge

Avatar

Level 2

I tried with merge and merge-preserve, merge will overwrite and merge-preserve will ignore the changes