You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (Jira)" <ji...@apache.org> on 2020/11/13 12:56:00 UTC

[jira] [Resolved] (SLING-9904) Provide an option to globally set metadata to bundles and artifacts

     [ https://issues.apache.org/jira/browse/SLING-9904?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carsten Ziegeler resolved SLING-9904.
-------------------------------------
    Resolution: Fixed

Implemented in [1]

The below configuration sets start-order to 5 and foo to bar for bundles, and start-order to 1 for content -packages. The first key is the name of the extension:
{noformat}
<defaultMetadata>
    <bundles>
     <start-order>5</start-order>
    <foo>bar</foo>
   </bundles>
   <content-packages>
     <start-order>1</start-order>
   </content-packages
{noformat}
[1] https://github.com/apache/sling-slingfeature-maven-plugin/commit/f5920836e94ecdfeeb53e54bff545cc7aeea4220

> Provide an option to globally set metadata to bundles and artifacts
> -------------------------------------------------------------------
>
>                 Key: SLING-9904
>                 URL: https://issues.apache.org/jira/browse/SLING-9904
>             Project: Sling
>          Issue Type: Improvement
>          Components: Feature Model, Maven Plugins and Archetypes
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>            Priority: Major
>             Fix For: slingfeature-maven-plugin 1.4.8
>
>
> Verify often all bundles and all content packages (artifacts) need to be configured with exactly the same value of some metadata property, for example the start order (for a bundle or content package)
> While this can be done in a feature model, it is very tidous to do - we could provide an option for the maven plugin which applies then to all bundles/artifacts metadata, unless that metadata is already set in the feature. This makes authoring features in a maven project easier



--
This message was sent by Atlassian Jira
(v8.3.4#803005)