Show Table of Contents
5.2. Run JBoss Data Grid (Library Mode)
Use the provided instructions to run Red Hat JBoss Data Grid with Maven in Library mode.
- Add the following mandatory dependency to the
pom.xmlfile:<dependency> <groupId>org.infinispan</groupId> <artifactId>infinispan-core</artifactId> <version>6.1.0.Final-redhat-4</version> </dependency>
- Add the desired dependencies from the following to the
pom.xmlfile:- Embedded query dependency:
<dependency> <groupId>org.infinispan</groupId> <artifactId>infinispan-query</artifactId> <version>6.1.0.Final-redhat-4</version> </dependency>
- JDBC Cache Store dependency:
<dependency> <groupId>org.infinispan</groupId> <artifactId>infinispan-cachestore-jdbc</artifactId> <version>6.1.0.Final-redhat-4</version> </dependency>
- JPA Cache Store dependency:
<dependency> <groupId>org.infinispan</groupId> <artifactId>infinispan-cachestore-jpa</artifactId> <version>6.1.0.Final-redhat-4</version> </dependency>
- LevelDB Cache Store Dependency:
<dependency> <groupId>org.infinispan</groupId> <artifactId>infinispan-cachestore-leveldb</artifactId> <version>6.1.0.Final-redhat-4</version> </dependency> <dependency> <groupId>org.fusesource.leveldbjni</groupId> <artifactId>leveldbjni-all</artifactId> <version>1.13-redhat.002</version> </dependency>
Note
For the LevelDB Cache Store dependency, ensure that you have the same version ofleveldbjni-allas specified in the JBoss Data Grid maven repository.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.