| POM文件内容: |
<?xml version="1.0"?>
<!--
~ Copyright (c) 2011-2014 The original author or authors
~
~ All rights reserved. This program and the accompanying materials
~ are made available under the terms of the Eclipse Public License v1.0
~ and Apache License v2.0 which accompanies this distribution.
~
~ The Eclipse Public License is available at
~ http://www.eclipse.org/legal/epl-v10.html
~
~ The Apache License v2.0 is available at
~ http://www.opensource.org/licenses/apache2.0.php
~
~ You may elect to redistribute this code under either of these licenses.
--><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>io.vertx</groupId>
<artifactId>vertx-ext-parent</artifactId>
<version>26</version>
</parent>
<artifactId>vertx-redis-client</artifactId>
<version>3.4.0</version>
<name>Vert.x Redis Client</name>
<properties>
<stack.version>3.4.0</stack.version>
<codegen.rxjava.deprecated>true</codegen.rxjava.deprecated>
</properties>
<!--
Tests uses embedded Redis by default in the test framework, however it is possible to use
an existing Redis server by specifying the host and/or port system properties, for instance:
% mvn test -Dhost=.... -Dport=....
-->
<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-dependencies</artifactId>
<version>${stack.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-core</artifactId>
</dependency>
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-codegen</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-lang-groovy</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-lang-kotlin</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-lang-ruby</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-lang-js</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-docgen</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-rx-java</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-codetrans</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-core</artifactId>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
<version>4.12</version>
</dependency>
<dependency>
<groupId>com.github.kstyrc</groupId>
<artifactId>embedded-redis</artifactId>
<version>0.6</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<!-- Copy resources after compilation phase as we generate JS in src/main/resources -->
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>default-resources</id>
<phase>process-classes</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<useDefaultManifestFile>true</useDefaultManifestFile>
</configuration>
</plugin>
<plugin>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-maven-plugin</artifactId>
<version>3.2.0</version>
<executions>
<execution>
<id>default-bnd-process</id>
<goals>
<goal>bnd-process</goal>
</goals>
</execution>
</executions>
<configuration>
<bnd><![CDATA[
Import-Package: \
groovy.lang.*;resolution:=optional,\
org.codehaus.groovy.*;resolution:=optional,\
kotlin.*;resolution:=optional,\
io.vertx.groovy.*;resolution:=optional,\
io.vertx.ext.auth.*;resolution:=optional,\
io.vertx.lang.rxjava.*;resolution:=optional,\
io.vertx.lang.groovy.*;resolution:=optional,\
io.vertx.codegen.annotations;resolution:=optional,\
io.vertx.rx.java;resolution:=optional,\
io.vertx.rxjava.core.*;resolution:=optional,\
io.vertx.rxjava.ext.auth.*;resolution:=optional,\
rx.*;resolution:=optional,\
*
-exportcontents: !*impl, !examples, *
]]></bnd>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<!-- Use this profile with latest redis already running on localhost:6379 -->
<id>server</id>
<activation>
<property>
<name>server</name>
</property>
</activation>
</profile>
<profile>
<id>redis-embedded</id>
<activation>
<property>
<name>!server</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<excludedGroups>io.vertx.test.redis.RedisPost28Tests</excludedGroups>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
|