Closed ofuangka closed 4 years ago
Can you share a project which reproduces this problem? I can't fix the issue without reproducing.
Unfortunately I can't share my source, but the problem seems to have to do with config.xml when it contains the following:
<aggregate type="full" title="Full Coverage Aggregate">
<matches>
<include nodeType="rep:AccessControl" respectSupertype="true" />
<include nodeType="cq:Widget" respectSupertype="true" />
<include nodeType="cq:WidgetCollection" respectSupertype="true" />
<include nodeType="cq:EditConfig" respectSupertype="true" />
<include nodeType="cq:WorkflowModel" respectSupertype="true" />
<include nodeType="vlt:FullCoverage" respectSupertype="true" />
<include nodeType="mix:language" respectSupertype="true" />
<include nodeType="sling:OsgiConfig" respectSupertype="true" />
</matches>
</aggregate>
instead of
<aggregate type="full" title="Full Coverage Aggregate">
<matches>
<include nodeType="rep:AccessControl" respectSupertype="true" />
<include nodeType="rep:Policy" respectSupertype="true" />
<include nodeType="cq:Widget" respectSupertype="true" />
<include nodeType="cq:EditConfig" respectSupertype="true" />
<include nodeType="cq:WorkflowModel" respectSupertype="true" />
<include nodeType="vlt:FullCoverage" respectSupertype="true" />
<include nodeType="mix:language" respectSupertype="true" />
<include nodeType="sling:OsgiConfig" respectSupertype="true" />
</matches>
</aggregate>
Basically you should be able to create a dummy content-package project with a filter.xml and a filter-vlt.xml that contains <filter root="/libs/foundation"/>
and a config.xml that contains the first snippet above. Then run vlt export http://localhost:4502 .
in the content folder. For some reason that changes the contents of filter.xml, so you have to then remove <filter root="/libs/foundation"/>
from it. Then try to publish the project using the plugin.
Closing this as there hasn't been activity for over a year.
I've exported /libs/foundation to jcr_root to get my JSPs to validate, but even though my filter.xml does not include /libs/foundation, the plugin fails to export:
Could not publish to the server. Resource at path /libs/foundation/components/form/defaults/field is not a direct child of /libs/foundation/components/form/defaults/items