The hibernate-search-infinispan bundle relies on unexported packages from hibernate search engine. Steps to reproduce using karaf 3.0.2:
karaf@root()> bundle:install "wrap:mvn:org.apache.lucene/lucene-core/4.10.3\$Bundle-Name=Apache Lucene Core&Bundle-Version=4.10.3&Export-Package=org.apache.lucene.*;version=4.10.3"
karaf@root()> bundle:install "wrap:mvn:org.apache.lucene/lucene-queries/4.10.3\$Bundle-Name=Apache Lucene Queries&Bundle-Version=4.10.3&Export-Package=org.apache.lucene.queries.*;version=4.10.3"
karaf@root()> bundle:install "wrap:mvn:org.apache.lucene/lucene-analyzers-common/4.10.3\$Bundle-Name=Apache Lucene Common Analyzers&Bundle-Version=4.10.3&Export-Package=org.apache.lucene.analysis.*;version=4.10.3,org.tartarus.*;version=4.10.3"
karaf@root()> feature:repo-add mvn:org.infinispan/infinispan-core/7.1.0-SNAPSHOT/xml/features
karaf@root()> feature:install infinispan-core
karaf@root()> bundle:install mvn:org.infinispan/infinispan-lucene-directory/7.1.0-SNAPSHOT
karaf@root()> bundle:install mvn:org.hibernate/hibernate-search-engine/5.0.0-SNAPSHOT
karaf@root()> bundle:install wrap:mvn:org.hibernate.common/hibernate-commons-annotations/4.0.5.Final
karaf@root()> bundle:install mvn:org.hibernate/hibernate-search-infinispan/5.0.0-SNAPSHOT
karaf@root()> bundle:list
START LEVEL 100 , List Threshold: 50
ID | State | Lvl | Version | Name
--------------------------------------------------------------------------------------
64 | Active | 80 | 4.10.3 | Apache Lucene Core
65 | Active | 80 | 4.10.3 | Apache Lucene Queries
66 | Active | 80 | 4.10.3 | Apache Lucene Common Analyzers
67 | Active | 80 | 7.1.0.SNAPSHOT | Infinispan Commons
68 | Active | 80 | 3.1.2.GA | JBoss Logging 3
69 | Active | 80 | 1.4.4.Final | JBoss Marshalling OSGi Bundle
73 | Active | 80 | 7.1.0.SNAPSHOT | Infinispan Core
74 | Active | 80 | 3.6.1.Final | JGroups
75 | Active | 80 | 7.1.0.SNAPSHOT | Infinispan Lucene Directory Implementation
77 | Active | 80 | 5.0.0.SNAPSHOT | Hibernate Search Engine
78 | Installed | 80 | 5.0.0.SNAPSHOT | Hibernate Search Infinispan Directory Provider
79 | Active | 80 | 4.0.5.Final | hibernate-commons-annotations
bundle:start 78 will throw:
Error executing command: Error executing command on bundles:
Unable to execute command on bundle 78: Unresolved constraint in bundle org.hibernate.search-infinispan [78]: Unable to resolve 78.0: missing requirement [78.0] osgi.wiring.package; (&(osgi.wiring.package=org.hibernate.search.store.impl)(version>=5.0.0.SNAPSHOT)(version<=5.0.0.SNAPSHOT))
The hibernate-search-infinispan uses the following not exported packages:
org.hibernate.search.util.configuration.impl org.hibernate.search.store.impl
|