java - maven-vault-plugin->configuration->embeddeds->embedded 中过滤器标签的含义?

标签 java maven aem jcr

我的 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 文件中。

我刚刚反编译了 jar:http://repo.adobe.com/nexus/content/groups/public/com/day/jcr/vault/maven-vault-plugin/0.0.10/maven-vault-plugin-0.0.10.jar

我的发现:

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/

相关文章:

Java : Is it possible to deserialize objects without reflection

java - 如何在 jgit 中调用 git show --first-parent?

android - 如何知道maven android项目中任何外部jar的groupid和artifactid

java - 如何部分覆盖 OOTB 组件的 osgi 配置?

java - java中链表代码出现意外结果

java - 嵌套 For 循环说明

java - Alfresco maven sdk错误

macos - 如何在终端中使用 IntelliJ 捆绑的 maven?

java - 从工作流步骤查找工作流实例

aem - 如何以编程方式创建新版本的 CQ5 页面?