After manually trying to install hibernate search feature using the feature file existing in the test (using Karaf 3.0.2), the resolution mechanism fails:
karaf@root()> feature:repo-add mvn:org.hibernate/hibernate-search-integrationtest-osgi-features/5.0.0-SNAPSHOT/xml/features
Adding feature url mvn:org.hibernate/hibernate-search-integrationtest-osgi-features/5.0.0-SNAPSHOT/xml/features
karaf@root()> feature:install hibernate-search
Error executing command: Could not start bundle wrap:mvn:org.apache.lucene/lucene-queryparser/4.10.3 in feature(s) hibernate-search-5.0.0-SNAPSHOT: Uses constraint violation. Unable to resolve bundle revision wrap_mvn_org.apache.lucene_lucene-queryparser_4.10.3 [72.0] because it is exposed to package 'org.apache.lucene.search' from bundle revisions wrap_mvn_org.apache.lucene_lucene-sandbox_4.10.3 [74.0] and wrap_mvn_org.apache.lucene_lucene-core_4.10.3_Export-Package_org.apache.lucene_version__4.10.3__org.apache.lucene.analysis_version__4.10.3__org.apache.lucene.analysis.tokenattributes_version__4.10.3__org.apache.lucene.codecs_version__4.10.3__org.apache.lucene.codecs.compressing_version__4.10.3__org.apache.lucene.codecs.lucene3x_version__4.10.3__org.apache.lucene.codecs.lucene40_version__4.10.3__org.apache.lucene.codecs.lucene41_version__4.10.3__org.apache.lucene.codecs.lucene42_version__4.10.3__org.apache.lucene.codecs.lucene45_version__4.10.3__org.apache.lucene.codecs.lucene46_version__4.10.3__org.apache.lucene.codecs.perfield_version__4.10.3__org.apache.lucene.document_version__4.10.3__org.apache.lucene.index_version__4.10.3__org.apache.lucene.search_version__4.10.3__org.apache.lucene.search.payloads_version__4.10.3__org.apache.lucene.search.similarities_version__4.10.3__org.apache.lucene.search.spans_version__4.10.3__org.apache.lucene.store_version__4.10.3__org.apache.lucene.util_version__4.10.3__org.apache.lucene.util.automaton_version__4.10.3__org.apache.lucene.util.fst_version__4.10.3__org.apache.lucene.util.mutable_version__4.10.3__org.apache.lucene.util.packed_version__4.10.3_ [71.0] via two dependency chains.
karaf@root()> list
START LEVEL 100 , List Threshold: 50
ID | State | Lvl | Version | Name
---------------------------------
karaf@root()>
Yet, HibernateSearchWithKarafIT test passes, hiding the issue. This may be related to https://ops4j1.jira.com/browse/PAXEXAM-499
|