このコンテンツは選択した言語では利用できません。
Chapter 2. Set Up and Configure Infinispan Query
2.1. Set Up Infinispan Query
2.1.1. Infinispan Query Dependencies in Library Mode
To use the JBoss Data Grid Infinispan Query via Maven, add the following dependencies:
<dependency> <groupId>org.infinispan</groupId> <artifactId>infinispan-embedded-query</artifactId> <version>${infinispan.version}</version> </dependency> <dependency> <groupId>javax.transaction</groupId> <artifactId>transaction-api</artifactId> <version>1.1</version> </dependency>
Non-Maven users must install all
infinispan-embedded-query.jar
, infinispan-embedded.jar
, jboss-transaction-api_1.1_spec-1.0.1.Final-redhat-2.jar
files from the JBoss Data Grid distribution.
Warning
The Infinispan query API directly exposes the Hibernate Search and the Lucene APIs and cannot be embedded within the
infinispan-embedded-query.jar
file. Do not include other versions of Hibernate Search and Lucene in the same deployment as infinispan-embedded-query
. This action will cause classpath conflicts and result in unexpected behavior.