【发布时间】:2020-07-28 17:00:12
【问题描述】:
在我的应用程序包 filter.xml 中,我给出如下:
<filter root="/apps/site">
<include pattern="/apps/site/components"/>
<include pattern="/apps/site/config"/>
<include pattern="/apps/site/config(.*)?"/>
<include pattern="/apps/site/install"/>
<include pattern="/apps/site/pages"/>
<include pattern="/apps/site/templates"/>
</filter>
使用上面的代码,当我部署我的包时, 创建的任何新文件夹/文件都会在 crxde 中更新 任何现有的 html 文件更改都会在 crxde 中更新 但是对组件 dialog.xml 的更改没有在 crxde 中更新(解释一下,我直接在 crxde 中的一个组件对话框中进行更改,然后部署我的包。我所做的更改没有从我的代码库中更新是问题)
然后我将以下模式也添加到 filter.xml 中,它就可以工作了。
<include pattern="/apps/site/components(/.*)"/>
如果我们需要在过滤器中包含以下两种模式(如果这需要工作)或者我们是否有替代方法,有人可以帮助我吗?
<include pattern="/apps/site/components"/>
<include pattern="/apps/site/components(/.*)"/>
【问题讨论】:
标签: maven filter build package aem