【发布时间】:2020-04-09 00:39:22
【问题描述】:
我有一个内容包,其中包含在 AEM 6.5 上安装此包时要排除的节点。排除配置在 filter.xml (META-INF/vault/filter.xml) 中定义。
下面是我的 filter.xml 的表示
<?xml version="1.0" encoding="UTF-8"?>
<workspaceFilter version="1.0">
<filter root="/apps/amzn-biz">
<exclude pattern="/apps/amzn-biz/i18n(.*)"/>
</filter>
<filter root="/apps/sling"/>
</workspaceFilter>
我的 pom.xml 有以下配置
<!-- ====================================================================== -->
<!-- V A U L T P A C K A G E P L U G I N S -->
<!-- ====================================================================== -->
<plugin>
<groupId>org.apache.jackrabbit</groupId>
<artifactId>filevault-package-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<group>amzn-biz</group>
<acHandling>merge_preserve</acHandling>
<packageType>content</packageType>
<embeddeds>
<embedded>
<groupId>com.amazon.business</groupId>
<artifactId>amzn-biz-foundation.core</artifactId>
<target>/apps/amzn-biz/install</target>
</embedded>
</embeddeds>
<subPackages>
<subPackage>
<groupId>com.adobe.cq</groupId>
<artifactId>core.wcm.components.all</artifactId>
<filter>true</filter>
</subPackage>
<subPackage>
<groupId>com.adobe.cq</groupId>
<artifactId>core.wcm.components.examples</artifactId>
<filter>true</filter>
</subPackage>
</subPackages>
</configuration>
</plugin>
<plugin>
<groupId>com.day.jcr.vault</groupId>
<artifactId>content-package-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<verbose>true</verbose>
<failOnError>true</failOnError>
</configuration>
</plugin>
我尝试了多种方法,将我的排除模式更改为 ./i18n。 但它对我不起作用。
我也尝试将 filterSource 添加到 filevault-package-maven-plugin 配置,但随后我收到错误 Project contains filter.xml in META-INF/vault but also specified an filter source.
【问题讨论】:
-
你解决了吗?我尝试了不同的规则,但没有运气,i18n 仍在 ui.apps 内容包中!