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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

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

Avatar

Level 4

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?

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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>

 

 

 

 

View solution in original post

2 Replies

Avatar

Community Advisor

Hi @AEMWizard,

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.

Avatar

Correct answer by
Community Advisor

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>