我的 pom.xml 中有以下插件配置:
<plugin>
<groupId>com.day.jcr.vault</groupId>
<artifactId>maven-vault-plugin</artifactId>
<extensions>true</extensions>
<executions>
<execution>
...
<configuration>
...
<embeddeds>
<embedded>
<groupId>foo</groupId>
<artifactId>bar</artifactId>
<filter>true</filter>
</embedded>
...
我不明白这个参数的意思:
<filter>true</filter>
我注意到,如果我将其设置为 false,则相应的 jar 未安装到 jcr(在 cq 5.6.1 中)
附言
在 CQ 5.5 中,无论此参数如何,都会安装此 jar。
请澄清。
最佳答案
我们用它来将嵌入项添加到 filter.xml 文件中。
我的发现:
VaultMojo.class:
Line 504: creates a workspace filter
Filter.class
Line 58: creates the filter xml part for the item.
如果您将它设置为 false 或将其遗漏,则 jar 将不会与包一起安装,因为它在 filter.xml 中没有条目。
希望对您有所帮助。不幸的是,该插件没有很好的文档记录。
关于java - maven-vault-plugin->configuration->embeddeds->embedded 中过滤器标签的含义?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24082610/