Java maven vault插件中过滤器标记的含义->;配置->;嵌入式系统->;嵌入的
我的pom.xml中有以下插件配置:Java maven vault插件中过滤器标记的含义->;配置->;嵌入式系统->;嵌入的,java,maven,aem,jcr,Java,Maven,Aem,Jcr,我的pom.xml中有以下插件配置: <plugin> <groupId>com.day.jcr.vault</groupId> <artifactId>maven-vault-plugin</artifactId> <extensions>true</extensions>
<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>
...
com.day.jcr.vault
maven vault插件
真的
...
...
福
酒吧
真的
...
我不明白这个参数的含义:
<filter>true</filter>
true
我注意到,如果我将其设置为false,那么对应的jar就没有安装到jcr(在cq 5.6.1中)
p.S.
在CQ5.5中,不管这个参数如何,都安装了这个jar
请澄清。我们使用它将嵌入项添加到filter.xml文件中 我刚刚反编译了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中没有条目
我希望这有帮助。不幸的是,插件没有很好的文档记录