Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
299 views
in Technique[技术] by (71.8m points)

How to use hooks in filevault-package-maven-plugin

I'm trying to deploy ACL groups to AEM 6.5 instance. Currently recommended way is to use filevault-package-maven-plugin with AcToolInstallHook. According to documentation (https://github.com/Netcentric/accesscontroltool/blob/develop/docs/ApplyConfig.md) it should be possible. However I'm getting given error:

[ERROR] ValidationViolation: "jackrabbit-packagetype: Package of type 'APPLICATION' must not contain package hooks but has '{actool=biz.netcentric.cq.tools.actool.installhook.AcToolInstallHook}'!"

In a pom config I have package type set to application, but in documentation are examples with exactly the same config! I don't know what should I change to make it work. My plugin config in pom file:

<plugin>
  <groupId>org.apache.jackrabbit</groupId>
   <artifactId>filevault-package-maven-plugin</artifactId>
   <configuration>
     <group>com.mygroup</group>
     <name>name.myname</name>
     <packageType>application</packageType>
     <accessControlHandling>merge</accessControlHandling>
     <properties>
         <installhook.actool.class>biz.netcentric.cq.tools.actool.installhook.AcToolInstallHook</installhook.actool.class>
     </properties>
</plugin>

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...