You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@karaf.apache.org by nitin <ni...@gmail.com> on 2019/02/20 09:16:33 UTC
Blacklist of bundle from feature
Hi
I am using karaf version 4.1.4 ,
and while investing karaf-maven-plugin I found blacklistedBundles attribute
tag
I tried it but there is nothing is changed in generated feature.xml
below is my code snippet
<build>
<plugins>
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>karaf-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<blacklistedBundles>
<blacklistedBundle>com.xyz.event[;type=gen]</blacklistedBundle>
</blacklistedBundles>
<includeTransitiveDependency>true</includeTransitiveDependency>
<aggregateFeatures>true</aggregateFeatures>
</configuration>
<version>4.1.4</version>
</plugin>
</plugins>
</build>
com.xyz.event -- groupID
gen -- artifactId
Please suggest what is wrong here .
--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html
Re: Blacklist of bundle from feature
Posted by Grzegorz Grzybek <gr...@gmail.com>.
Hello
blacklistedBundles is a configuration option for assemnbly goal, not for
the goal to generate features. I still didn't prepare relevant
documentation section (the draft is in this jira comment[1]).
But I just saw that "new" blacklisting&overriding is implemented in 4.2.0.
The above is true in 4.1.x - blacklistedBundles is not for feature
generation. It's for assembly goal and I think the blacklisted bundle will
be declared in etc/overrides.properties.
regards
Grzegorz Grzybek
===
[1]:
https://issues.apache.org/jira/browse/KARAF-5376?focusedCommentId=16431939&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-16431939
śr., 20 lut 2019 o 12:23 nitin <ni...@gmail.com> napisał(a):
> Hi
>
> I am using karaf version 4.1.4 ,
> and while investing karaf-maven-plugin I found blacklistedBundles
> attribute
> tag
> I tried it but there is nothing is changed in generated feature.xml
>
> below is my code snippet
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.karaf.tooling</groupId>
> <artifactId>karaf-maven-plugin</artifactId>
> <extensions>true</extensions>
> <configuration>
> <blacklistedBundles>
>
> <blacklistedBundle>com.xyz.event[;type=gen]</blacklistedBundle>
> </blacklistedBundles>
>
> <includeTransitiveDependency>true</includeTransitiveDependency>
> <aggregateFeatures>true</aggregateFeatures>
> </configuration>
> <version>4.1.4</version>
> </plugin>
> </plugins>
> </build>
>
> com.xyz.event -- groupID
> gen -- artifactId
>
> Please suggest what is wrong here .
>
>
>
>
>
>
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html
>