Package metadata nodes under a hierarchy | Community
Skip to main content
Level 3
October 16, 2015
Solved

Package metadata nodes under a hierarchy

  • October 16, 2015
  • 4 replies
  • 1854 views

We are trying to create a package of all metadata nodes under a specific hierarchy.

Is this possible? Tried the following:

 

We have a hierarchy: 

/content/dam/projectname/master/video/

Want to package all metadata nodes under this hierarchy, for example:
/content/dam/projectname/master/video/(A...Z)/example_video.mov/jcr:content/metadata

 

Filter:
/content/dam/projectname/master/video

Include:
/content/dam/projectname/master/video/[^/]+/[^/]+/jcr:content/metadata

 

Result:
Building package
A META-INF
A META-INF/vault
A META-INF/vault/config.xml
A META-INF/vault/filter.xml
A META-INF/vault/nodetypes.cnd
A META-INF/vault/properties.xml
A /.content.xml
A /content
A /content/.content.xml
A /content/dam
A /content/dam/.content.xml
A /content/dam/projectname
A /content/dam/projectname/.content.xml
A /content/dam/projectname/master
A /content/dam/projectname/master/.content.xml
A /content/dam/projectname/master/video
A /content/dam/projectname/master/video/.content.xml
- Aggregation status: 5 of 3 prepared, 4 collected
A META-INF/vault/definition/.content.xml

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Kunal_Gaba_

You can just add the following exclude rule for updating only the metadata - 

exclude    /content/dam/projectname/master/video(.*)/jcr:content/[ar].*

4 replies

smacdonald2008
Level 10
October 16, 2015

I packaged up DAM content and when i deployed - all content - including MetaData is deployed. I used AEM 6.1:

[img]PackageMetadata.png[/img]

smacdonald2008
Level 10
October 16, 2015

When you deploy the package  - the metadata nodes are missing? 

a_lex_Author
Level 3
October 16, 2015

smacdonald2008 wrote...

I packaged up DAM content and when i deployed - all content - including MetaData is deployed. I used AEM 6.1:

 

Sorry, I should have mentioned - I want to exclude everything else under the filter besides the metadata nodes. 

For example, I don't want to package the renditions folder.

Kunal_Gaba_
Kunal_Gaba_Accepted solution
October 16, 2015

You can just add the following exclude rule for updating only the metadata - 

exclude    /content/dam/projectname/master/video(.*)/jcr:content/[ar].*