[
https://issues.apache.org/jira/browse/KARAF-4181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16275590#comment-16275590
]
Grzegorz Grzybek commented on KARAF-4181:
-----------------------------------------
With {{etc/org.apache.karaf.features.xml}} like this:
{code:xml}
<featuresProcessing
xmlns="http://karaf.apache.org/xmlns/features-processing/v1.0.0"
xmlns:f="http://karaf.apache.org/xmlns/features/v1.5.0">
<!-- A list of blacklisted features XML repository URIs - they can't be
added later -->
<blacklistedRepositories>
<repository>mvn:org.hibernate/*</repository>
</blacklistedRepositories>
<!-- A list of blacklisted feature identifiers that can't be installed in
Karaf and are not part of the distribution -->
<blacklistedFeatures>
<feature>*cdi*</feature>
</blacklistedFeatures>
</featuresProcessing>
{code}
We can see this information at runtime as well (which was not the case with
{{overrides.properties}} and {{blacklist.properties}}:
{noformat}
karaf@root()> feature:repo-list -b
Repository │ URL
│ Blacklisted
──────────────────────────────────┼────────────────────────────────────────────────────────────────────────────────────┼────────────
org.ops4j.pax.cdi-1.0.0.RC2 │
mvn:org.ops4j.pax.cdi/pax-cdi-features/1.0.0.RC2/xml/features
│ no
pax-transx-0.2.0 │
mvn:org.ops4j.pax.transx/pax-transx-features/0.2.0/xml/features
│ no
pax-jms-0.1.0 │
mvn:org.ops4j.pax.jms/pax-jms-features/0.1.0/xml/features
│ no
org.ops4j.pax.web-6.1.0-SNAPSHOT │
mvn:org.ops4j.pax.web/pax-web-features/6.1.0-SNAPSHOT/xml/features
│ no
spring-4.2.0-SNAPSHOT │
mvn:org.apache.karaf.features/spring/4.2.0-SNAPSHOT/xml/features
│ no
hibernate-validator-osgi-features │
mvn:org.hibernate/hibernate-validator-osgi-karaf-features/5.3.4.Final/xml/features
│ yes
hibernate-osgi │
mvn:org.hibernate/hibernate-osgi/5.2.8.Final/xml/karaf
│ yes
framework-4.2.0-SNAPSHOT │
mvn:org.apache.karaf.features/framework/4.2.0-SNAPSHOT/xml/features
│ no
org.ops4j.pax.jdbc-1.2.0 │
mvn:org.ops4j.pax.jdbc/pax-jdbc-features/1.2.0/xml/features
│ no
enterprise-4.2.0-SNAPSHOT │
mvn:org.apache.karaf.features/enterprise/4.2.0-SNAPSHOT/xml/features
│ no
standard-4.2.0-SNAPSHOT │
mvn:org.apache.karaf.features/standard/4.2.0-SNAPSHOT/xml/features
│ no
aries-jpa-2.6.1 │
mvn:org.apache.aries.jpa/jpa-features/2.6.1/xml/features
│ no
karaf@root()> feature:list -b
Name │ Version │ Required │ State │
Repository │ Description
│ Blacklisted
──────────────────────────────┼──────────────────┼──────────┼─────────────┼───────────────────────────────────┼────────────────────────────────────────────────────┼────────────
pax-cdi │ 1.0.0.RC2 │ │ Uninstalled │
org.ops4j.pax.cdi-1.0.0.RC2 │ Provide CDI support
│ yes
pax-cdi-weld │ 1.0.0.RC2 │ │ Uninstalled │
org.ops4j.pax.cdi-1.0.0.RC2 │ Weld CDI 1.2 support
│ yes
pax-cdi-openwebbeans │ 1.0.0.RC2 │ │ Uninstalled │
org.ops4j.pax.cdi-1.0.0.RC2 │ OpenWebBeans CDI support
│ yes
pax-cdi-web │ 1.0.0.RC2 │ │ Uninstalled │
org.ops4j.pax.cdi-1.0.0.RC2 │ Web CDI support
│ yes
pax-cdi-web-weld │ 1.0.0.RC2 │ │ Uninstalled │
org.ops4j.pax.cdi-1.0.0.RC2 │ Weld Web CDI support
│ yes
pax-cdi-web-openwebbeans │ 1.0.0.RC2 │ │ Uninstalled │
org.ops4j.pax.cdi-1.0.0.RC2 │ OpenWebBeans Web CDI support
│ yes
deltaspike-core │ 1.4.2 │ │ Uninstalled │
org.ops4j.pax.cdi-1.0.0.RC2 │ Apache Deltaspike core support
│ no
deltaspike-jpa │ 1.4.2 │ │ Uninstalled │
org.ops4j.pax.cdi-1.0.0.RC2 │ Apache Deltaspike jpa support
│ no
...
{noformat}
> blacklist.properties and overrides.properties are not properties file
> ---------------------------------------------------------------------
>
> Key: KARAF-4181
> URL: https://issues.apache.org/jira/browse/KARAF-4181
> Project: Karaf
> Issue Type: Bug
> Components: karaf-profile
> Affects Versions: 4.0.3
> Reporter: Benson Margulies
> Assignee: Grzegorz Grzybek
> Fix For: 4.2.0
>
>
> It's confusing that a file named 'blacklist.properties' does not, in fact,
> contain a properties file. Rather, it's just a list of blacklisted bundles.
> It seems to me that the name 'blacklist.properties' might be deprecated and
> the name 'bundle-blacklist.txt' would be more informative.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)