Chapter 11. Set Up and Configure the Infinispan Query API
11.1. Set Up Infinispan Query Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
11.1.1. Infinispan Query Dependencies in Library Mode Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
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>org.infinispan</groupId>
<artifactId>infinispan-embedded-query</artifactId>
<version>${infinispan.version}</version>
</dependency>
Non-Maven users must install all of the
infinispan-embedded-query.jar and infinispan-embedded.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.