Expand my Community achievements bar.

SOLVED

maven-vault-plugin - How to set "ACL Handling" (acHandling=Merge) in pom.xml for CQ package

Avatar

Level 4

Hi all,

 

This is regarding generating CQ Package using maven-vault-plugin in pom.xml . I am trying to set "AC Handling" in my package.

 

using CURL command you can do this as below (passing -F acHandling=Merge)

Create your package first

curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/rohit/rohit.zip?cmd=create -d packageName=rohit -d groupName=rohit

 

 

Then Update your package adding acHandling=Merge

curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/update.jsp -F path=/etc/packages/rohit/rohit.zip -F packageName=rohit -F groupName=rohit -F  acHandling=Merge

 

Now trying to figure out how I can add "acHandling=Merge" using maven-vault-plugin in pom.xml

 

Below is my pom.xml (Tried adding  <acHandling>Merge</acHandling> but its not picking this attribute)

----------------------------------

 

<plugin>

 

  <groupId>com.day.jcr.vault</groupId>

  <artifactId>maven-vault-plugin</artifactId>

  <extensions>true</extensions>

  <!--<inherited>true</inherited> -->

  <configuration>

  <group>att-group</group>

  <userId>${cq.installer.userid}</userId>

  <password>${cq.installer.password}</password>

  <targetURL>http://${executor.host}:${executor.port}/crx/packmgr/service.jsp</targetURL>

  <packageFile>target/${project.artifactId}-${project.version}.zip</packageFile>

  <timeout>${cq.installer.timeout}</timeout>

  <useProxy>false</useProxy>

  <acHandling>Merge</acHandling>

  <filters>

  <filter>

  <root>${vault.filter.root}</root>

  </filter>

  </filters>

  </configuration>

  </plugin>

----------------------------------

 

Any help is appreciated.

1 Accepted Solution

Avatar

Correct answer by
Level 10
2 Replies

Avatar

Correct answer by
Level 10