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

A. J. David Bosschaert updated SLING-9136:
------------------------------------------
    Description: 
If a feature model that doesn't opt-in to the api-regions exports packages that 
overlap with packages exported from the api regions, this can have problematic 
results.

We need an analyzer that can report on this. The analyser should generally be 
used on aggregate feature models. It can identify in those aggregates:
 * The exported packages from various API Regions
 * Bundles that originate from feature models that don't participate in the 
api-regions and obtain the exported packages from those bundles.

Then it will produce an error if there is any package in the intersection of 
the exported package lists.

We need to add additional configuration that lists packages
 * to be ignored completely
 * to produce a warning instead of an error if it appears in the intersection

  was:
Create a new Mojo that takes 2 (or more) feature models as input. For each 
feature model it will construct a list of exported packages for all regions 
requested. If the feature model does not opt-in to the API Regions mechanism, 
all exported packages from all bundles in that feature will be added to the 
global region.

Then it will produce an error if there is any package in the intersection of 
the exported package lists.

We need to add additional configuration that lists packages
 * to be ignored completely
 * to produce a warning instead of an error if it appears in the intersection


> Check if a feature model exports overlapping packages with an API Region
> ------------------------------------------------------------------------
>
>                 Key: SLING-9136
>                 URL: https://issues.apache.org/jira/browse/SLING-9136
>             Project: Sling
>          Issue Type: New Feature
>          Components: Feature Model
>            Reporter: A. J. David Bosschaert
>            Assignee: A. J. David Bosschaert
>            Priority: Major
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> If a feature model that doesn't opt-in to the api-regions exports packages 
> that overlap with packages exported from the api regions, this can have 
> problematic results.
> We need an analyzer that can report on this. The analyser should generally be 
> used on aggregate feature models. It can identify in those aggregates:
>  * The exported packages from various API Regions
>  * Bundles that originate from feature models that don't participate in the 
> api-regions and obtain the exported packages from those bundles.
> Then it will produce an error if there is any package in the intersection of 
> the exported package lists.
> We need to add additional configuration that lists packages
>  * to be ignored completely
>  * to produce a warning instead of an error if it appears in the intersection



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

Reply via email to