[ 
https://issues.apache.org/jira/browse/KARAF-3635?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14381904#comment-14381904
 ] 

Ancoron Luciferis edited comment on KARAF-3635 at 3/29/15 11:07 AM:
--------------------------------------------------------------------

In addition I would like to fail a custom distribution maven project build when 
blacklisted features and/or bundles would be included into my custom 
distribution, either directly or transitively. The reported error should show 
by which feature dependency paths the blacklisted feature/bundle would have 
been introduced.

This would be an extension of the existing maven plugin.

A plugin configuration could look like this:
{code:xml}
<plugin>
    <groupId>org.apache.karaf.tooling</groupId>
    <artifactId>karaf-maven-plugin</artifactId>
    <extensions>true</extensions>
    <configuration>
        <!-- no startupFeatures -->
        <bootFeatures>
            <feature>standard</feature>
            <feature>management</feature>
            <feature>my-app</feature>
        </bootFeatures>
        <!-- no installedFeatures -->
        <blacklistFeatures>
            <feature>spring</feature>
            <feature version="[0,3)">cxf</feature>
        </blacklistFeatures>
        <blacklistArtifacts>
            <blacklistArtifact>org.springsource*:*</blacklistArtifact>
        </blacklistArtifacts>
    </configuration>
</plugin>
{code}
...which would create a distribution including feature "my-app" but would fail 
as soon as:
* the "spring" feature would be distributed
* the "cxf" feature in any version lower than 3 would be distributed
* a bundle would be distributed which has a Maven artifact groupId starting 
with "org.springsource" (globbing here - maybe also real regex?)


was (Author: ancoron):
In addition I would like to fail a custom distribution maven project build when 
blacklisted features and/or bundles would be included into my custom 
distribution, either directly or transitively. The reported error should show 
by which feature dependency paths the blacklisted feature/bundle would have 
been introduced.

This would be an extension of the existing maven plugin.


> Provide a black list for features
> ---------------------------------
>
>                 Key: KARAF-3635
>                 URL: https://issues.apache.org/jira/browse/KARAF-3635
>             Project: Karaf
>          Issue Type: New Feature
>            Reporter: Guillaume Nodet
>            Assignee: Guillaume Nodet
>             Fix For: 4.0.0
>
>
> In some cases when you build more "closed" products, it may be necessary to 
> include certain features because they are not supported.
> If those features are provided transitively or from some code that is not 
> directly owned, there is no way to exclude those.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to