_rep_policy.xml config nodes does not work in /conf/my-brand | Community
Skip to main content
Level 6
May 16, 2022
Solved

_rep_policy.xml config nodes does not work in /conf/my-brand

  • May 16, 2022
  • 2 replies
  • 1292 views

I am trying to create a _rep_policy.xml on my /conf/my-brand, so that everyone can view this file. Whenever I bundle the code into AEM platform, the _rep_policy does not show up.
Please can someone explain to me why this is happening?

 

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 arunpatidar

Hi,

You need to add aclhandling in content-package-maven-plugin plugin in your content pom e.g.

 

<!-- ====================================================================== -->
<!-- V A U L T P A C K A G E P L U G I N -->
<!-- ====================================================================== -->
<plugin>
<groupId>com.day.jcr.vault</groupId>
<artifactId>content-package-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<filterSource>src/main/content/META-INF/vault/filter.xml</filterSource>
<verbose>true</verbose>
<failOnError>true</failOnError>
<group>myPorj</group>
<properties>
<acHandling>merge</acHandling>
</properties>
</configuration>
</plugin>

 

 

 

 

2 replies

lukasz-m
Community Advisor
Community Advisor
May 16, 2022

Hi @supportmember,

By default _rep_policy.xml files are ignored. You have to properly configured acHandling property in your crx package. Here are some links to Adobe and FileVault Package Maven plugin documentation, that describes all available options and shows how to do this.

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
May 17, 2022

Hi,

You need to add aclhandling in content-package-maven-plugin plugin in your content pom e.g.

 

<!-- ====================================================================== -->
<!-- V A U L T P A C K A G E P L U G I N -->
<!-- ====================================================================== -->
<plugin>
<groupId>com.day.jcr.vault</groupId>
<artifactId>content-package-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<filterSource>src/main/content/META-INF/vault/filter.xml</filterSource>
<verbose>true</verbose>
<failOnError>true</failOnError>
<group>myPorj</group>
<properties>
<acHandling>merge</acHandling>
</properties>
</configuration>
</plugin>

 

 

 

 

Arun Patidar
Level 6
May 17, 2022

thanks, but what is your content-package-maven-plugin version?

arunpatidar
Community Advisor
Community Advisor
May 17, 2022

hi,

I am using 0.5.1

Arun Patidar