hibernate-ogm-redis
Used in
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>org.hibernate.ogm</groupId> <artifactId>hibernate-ogm-redis</artifactId> <version>5.0.4.Final</version> </dependency>
<?xml version="1.0" encoding="UTF-8"?> <!-- ~ Hibernate OGM, Domain model persistence for NoSQL datastores ~ ~ License: GNU Lesser General Public License (LGPL), version 2.1 or later ~ See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. --> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.hibernate.ogm</groupId> <artifactId>hibernate-ogm-parent</artifactId> <version>5.0.4.Final</version> <relativePath>../pom.xml</relativePath> </parent> <artifactId>hibernate-ogm-redis</artifactId> <packaging>jar</packaging> <name>Hibernate OGM for Redis</name> <description>Persist objects in Redis</description> <dependencies> <dependency> <groupId>org.hibernate.ogm</groupId> <artifactId>hibernate-ogm-core</artifactId> </dependency> <dependency> <groupId>org.hibernate.hql</groupId> <artifactId>hibernate-hql-lucene</artifactId> </dependency> <dependency> <groupId>org.jboss.logging</groupId> <artifactId>jboss-logging-processor</artifactId> <!-- "provided" is used as "compile-only" here; It's NOT needed at runtime --> <scope>provided</scope> </dependency> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-entitymanager</artifactId> </dependency> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-search-orm</artifactId> </dependency> <dependency> <groupId>biz.paluch.redis</groupId> <artifactId>lettuce</artifactId> <exclusions> <exclusion> <artifactId>netty-handler</artifactId> <groupId>io.netty</groupId> </exclusion> <exclusion> <artifactId>netty-common</artifactId> <groupId>io.netty</groupId> </exclusion> <exclusion> <artifactId>netty-transport</artifactId> <groupId>io.netty</groupId> </exclusion> </exclusions> </dependency> <dependency> <artifactId>netty-handler</artifactId> <groupId>io.netty</groupId> <version>${netty4Version}</version> </dependency> <dependency> <artifactId>netty-common</artifactId> <groupId>io.netty</groupId> <version>${netty4Version}</version> </dependency> <dependency> <artifactId>netty-transport</artifactId> <groupId>io.netty</groupId> <version>${netty4Version}</version> </dependency> <dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-annotations</artifactId> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> </dependency> <!-- test dependencies --> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.hibernate.ogm</groupId> <artifactId>hibernate-ogm-core</artifactId> <type>test-jar</type> <scope>test</scope> </dependency> <dependency> <groupId>org.jboss.narayana.jta</groupId> <artifactId>narayana-jta</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.easytesting</groupId> <artifactId>fest-assert</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.jboss.shrinkwrap</groupId> <artifactId>shrinkwrap-impl-base</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.mockito</groupId> <artifactId>mockito-core</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>io.takari.junit</groupId> <artifactId>takari-cpsuite</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.skyscreamer</groupId> <artifactId>jsonassert</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.jboss.spec.javax.transaction</groupId> <artifactId>jboss-transaction-api_1.2_spec</artifactId> <scope>provided</scope> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <!-- Skip the main run here. Dialect-specific executions are defined below --> <skipExec>true</skipExec> <environmentVariables> <REDIS_HOSTNAME>${env.REDIS_HOSTNAME}</REDIS_HOSTNAME> <REDIS_PORT>${env.REDIS_PORT}</REDIS_PORT> <REDIS_CLUSTER>${env.REDIS_CLUSTER}</REDIS_CLUSTER> </environmentVariables> <forkMode>once</forkMode> <dependenciesToScan> <dependency>org.hibernate.ogm:hibernate-ogm-core</dependency> </dependenciesToScan> </configuration> <executions> <execution> <id>redis-json</id> <goals> <goal>test</goal> </goals> <configuration> <skipExec>${skipRedisUnitTests}</skipExec> <systemProperties> <hibernate.ogm.datastore.grid_dialect>org.hibernate.ogm.datastore.redis.RedisJsonDialect</hibernate.ogm.datastore.grid_dialect> </systemProperties> </configuration> </execution> <execution> <id>redis-hash</id> <goals> <goal>test</goal> </goals> <configuration> <skipExec>${skipRedisUnitTests}</skipExec> <systemProperties> <hibernate.ogm.datastore.grid_dialect>org.hibernate.ogm.datastore.redis.RedisHashDialect</hibernate.ogm.datastore.grid_dialect> </systemProperties> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> </plugin> </plugins> </build> <profiles> <profile> <id>skip-redis-unit-tests</id> <!-- To run the tests you need to define the environment property: REDIS_HOSTNAME --> <activation> <property> <name>!env.REDIS_HOSTNAME</name> </property> </activation> <properties> <skipRedisUnitTests>true</skipRedisUnitTests> </properties> <build> <plugins> <plugin> <groupId>org.codehaus.gmaven</groupId> <artifactId>gmaven-plugin</artifactId> <executions> <execution> <id>log-info</id> <phase>test</phase> <goals> <goal>execute</goal> </goals> <configuration> <source> println "[INFO] ------------------------------------------------------------------------"; println "[INFO] REDIS BUILD INFO "; println "[INFO] ------------------------------------------------------------------------"; println "[INFO] Skipping unit tests. Specify Redis host and port via the environment "; println "[INFO] variables REDIS_HOSTNAME and REDIS_PORT, respectively. "; println "[INFO] ------------------------------------------------------------------------"; </source> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile> </profiles> </project>