Add Kafka dependency.
This commit is contained in:
parent
9d94fff545
commit
d4a86831bd
459
pom.xml
459
pom.xml
@ -1,231 +1,254 @@
|
|||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
<modelVersion>4.0.0</modelVersion>
|
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>
|
||||||
|
|
||||||
<groupId>com.hpcloud</groupId>
|
<groupId>com.hpcloud</groupId>
|
||||||
<artifactId>mon-thresh</artifactId>
|
<artifactId>mon-thresh</artifactId>
|
||||||
<version>${computedVersion}</version>
|
<version>${computedVersion}</version>
|
||||||
<url>http://hpcloud.net</url>
|
<url>http://hpcloud.net</url>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<prerequisites>
|
<prerequisites>
|
||||||
<maven>3.0</maven>
|
<maven>3.0</maven>
|
||||||
</prerequisites>
|
</prerequisites>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<versionNumber>1.0.0</versionNumber>
|
<versionNumber>1.0.0</versionNumber>
|
||||||
<computedVersion>${versionNumber}-SNAPSHOT</computedVersion>
|
<computedVersion>${versionNumber}-SNAPSHOT</computedVersion>
|
||||||
<mon.common.version>1.0.0-SNAPSHOT</mon.common.version>
|
<mon.common.version>1.0.0-SNAPSHOT</mon.common.version>
|
||||||
<dropwizard.version>0.7.0-rc1</dropwizard.version>
|
<dropwizard.version>0.7.0-rc1</dropwizard.version>
|
||||||
|
|
||||||
<skipITs>true</skipITs>
|
<skipITs>true</skipITs>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<scm>
|
<scm>
|
||||||
<connection>scm:git:git@git.hpcloud.net:mon/mon-thresh.git</connection>
|
<connection>scm:git:git@git.hpcloud.net:mon/mon-thresh.git</connection>
|
||||||
<developerConnection>scm:git:git@git.hpcloud.net:mon/mon-thresh.git</developerConnection>
|
<developerConnection>scm:git:git@git.hpcloud.net:mon/mon-thresh.git</developerConnection>
|
||||||
</scm>
|
</scm>
|
||||||
|
|
||||||
<repositories>
|
<repositories>
|
||||||
<repository>
|
<repository>
|
||||||
<id>nexus releases</id>
|
<id>nexus releases</id>
|
||||||
<url>http://nexus.paas.hpcloud.net:8081/nexus/content/repositories/releases</url>
|
<url>http://nexus.paas.hpcloud.net:8081/nexus/content/repositories/releases</url>
|
||||||
</repository>
|
</repository>
|
||||||
<repository>
|
<repository>
|
||||||
<id>nexus 3rd party</id>
|
<id>nexus 3rd party</id>
|
||||||
<url>http://nexus.paas.hpcloud.net:8081/nexus/content/repositories/thirdparty</url>
|
<url>http://nexus.paas.hpcloud.net:8081/nexus/content/repositories/thirdparty</url>
|
||||||
</repository>
|
</repository>
|
||||||
<repository>
|
<repository>
|
||||||
<id>nexus-snapshots</id>
|
<id>nexus-snapshots</id>
|
||||||
<name>nexus snapshots</name>
|
<name>nexus snapshots</name>
|
||||||
<url>http://nexus.paas.hpcloud.net:8081/nexus/content/repositories/snapshots</url>
|
<url>http://nexus.paas.hpcloud.net:8081/nexus/content/repositories/snapshots</url>
|
||||||
</repository>
|
</repository>
|
||||||
<repository>
|
<repository>
|
||||||
<id>clojars.org</id>
|
<id>clojars.org</id>
|
||||||
<url>http://clojars.org/repo</url>
|
<url>http://clojars.org/repo</url>
|
||||||
</repository>
|
</repository>
|
||||||
</repositories>
|
</repositories>
|
||||||
|
|
||||||
<profiles>
|
<profiles>
|
||||||
<profile>
|
<profile>
|
||||||
<id>release-deploy-url-override</id>
|
<id>release-deploy-url-override</id>
|
||||||
<activation>
|
<activation>
|
||||||
<property>
|
<property>
|
||||||
<name>BUILD_NUM</name>
|
<name>BUILD_NUM</name>
|
||||||
</property>
|
</property>
|
||||||
</activation>
|
</activation>
|
||||||
<properties>
|
<properties>
|
||||||
<computedVersion>${versionNumber}.${BUILD_NUM}</computedVersion>
|
<computedVersion>${versionNumber}.${BUILD_NUM}</computedVersion>
|
||||||
</properties>
|
</properties>
|
||||||
</profile>
|
</profile>
|
||||||
</profiles>
|
</profiles>
|
||||||
|
|
||||||
|
<dependencyManagement>
|
||||||
|
<!-- Resolve dependency mismatch between Dropwizard and Storm -->
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.slf4j</groupId>
|
||||||
|
<artifactId>slf4j-api</artifactId>
|
||||||
|
<version>1.7.2</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.slf4j</groupId>
|
||||||
|
<artifactId>slf4j-log4j12</artifactId>
|
||||||
|
<version>1.7.2</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</dependencyManagement>
|
||||||
|
|
||||||
<dependencyManagement>
|
|
||||||
<!-- Resolve dependency mismatch between Dropwizard and Storm -->
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.slf4j</groupId>
|
<groupId>storm</groupId>
|
||||||
<artifactId>slf4j-api</artifactId>
|
<artifactId>storm</artifactId>
|
||||||
<version>1.7.2</version>
|
<version>0.9.0.1</version>
|
||||||
</dependency>
|
<scope>provided</scope>
|
||||||
<dependency>
|
</dependency>
|
||||||
<groupId>org.slf4j</groupId>
|
<dependency>
|
||||||
<artifactId>slf4j-log4j12</artifactId>
|
<groupId>com.hpcloud</groupId>
|
||||||
<version>1.7.2</version>
|
<artifactId>mon-util</artifactId>
|
||||||
</dependency>
|
<version>${mon.common.version}</version>
|
||||||
|
<exclusions>
|
||||||
|
<exclusion>
|
||||||
|
<groupId>ch.qos.logback</groupId>
|
||||||
|
<artifactId>logback-core</artifactId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<groupId>ch.qos.logback</groupId>
|
||||||
|
<artifactId>logback-classic</artifactId>
|
||||||
|
</exclusion>
|
||||||
|
</exclusions>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.hpcloud</groupId>
|
||||||
|
<artifactId>mon-model</artifactId>
|
||||||
|
<version>${mon.common.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.hpcloud</groupId>
|
||||||
|
<artifactId>mon-persistence</artifactId>
|
||||||
|
<version>${mon.common.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.hpcloud</groupId>
|
||||||
|
<artifactId>mon-streaming</artifactId>
|
||||||
|
<version>${mon.common.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>io.dropwizard</groupId>
|
||||||
|
<artifactId>dropwizard-db</artifactId>
|
||||||
|
<version>${dropwizard.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>io.dropwizard</groupId>
|
||||||
|
<artifactId>dropwizard-jdbi</artifactId>
|
||||||
|
<version>${dropwizard.version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>mysql</groupId>
|
||||||
|
<artifactId>mysql-connector-java</artifactId>
|
||||||
|
<version>5.1.18</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.kafka</groupId>
|
||||||
|
<artifactId>kafka_2.10</artifactId>
|
||||||
|
<version>0.8.0</version>
|
||||||
|
<exclusions>
|
||||||
|
<exclusion>
|
||||||
|
<groupId>com.sun.jmx</groupId>
|
||||||
|
<artifactId>jmxri</artifactId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<groupId>com.sun.jdmk</groupId>
|
||||||
|
<artifactId>jmxtools</artifactId>
|
||||||
|
</exclusion>
|
||||||
|
<exclusion>
|
||||||
|
<groupId>org.slf4j</groupId>
|
||||||
|
<artifactId>slf4j-simple</artifactId>
|
||||||
|
</exclusion>
|
||||||
|
</exclusions>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<!-- Test dependencies -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.hpcloud</groupId>
|
||||||
|
<artifactId>mon-testing</artifactId>
|
||||||
|
<version>${mon.common.version}</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.hpcloud</groupId>
|
||||||
|
<artifactId>mon-streaming</artifactId>
|
||||||
|
<version>${mon.common.version}</version>
|
||||||
|
<type>test-jar</type>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</dependencyManagement>
|
|
||||||
|
|
||||||
<dependencies>
|
<build>
|
||||||
<dependency>
|
<plugins>
|
||||||
<groupId>storm</groupId>
|
<plugin>
|
||||||
<artifactId>storm</artifactId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<version>0.9.0.1</version>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<scope>provided</scope>
|
<configuration>
|
||||||
</dependency>
|
<source>1.7</source>
|
||||||
<dependency>
|
<target>1.7</target>
|
||||||
<groupId>com.hpcloud</groupId>
|
</configuration>
|
||||||
<artifactId>mon-util</artifactId>
|
</plugin>
|
||||||
<version>${mon.common.version}</version>
|
<plugin>
|
||||||
<exclusions>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<exclusion>
|
<artifactId>maven-surefire-plugin</artifactId>
|
||||||
<groupId>ch.qos.logback</groupId>
|
<configuration>
|
||||||
<artifactId>logback-core</artifactId>
|
<excludedGroups>performance,functional,integration,database,slow
|
||||||
</exclusion>
|
</excludedGroups>
|
||||||
<exclusion>
|
</configuration>
|
||||||
<groupId>ch.qos.logback</groupId>
|
</plugin>
|
||||||
<artifactId>logback-classic</artifactId>
|
<plugin>
|
||||||
</exclusion>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
</exclusions>
|
<artifactId>maven-failsafe-plugin</artifactId>
|
||||||
</dependency>
|
<configuration>
|
||||||
<dependency>
|
<groups>performance,functional,integration,database,slow</groups>
|
||||||
<groupId>com.hpcloud</groupId>
|
<skipTests>${skipITs}</skipTests>
|
||||||
<artifactId>mon-model</artifactId>
|
</configuration>
|
||||||
<version>${mon.common.version}</version>
|
<executions>
|
||||||
</dependency>
|
<execution>
|
||||||
<dependency>
|
<goals>
|
||||||
<groupId>com.hpcloud</groupId>
|
<goal>integration-test</goal>
|
||||||
<artifactId>mon-persistence</artifactId>
|
</goals>
|
||||||
<version>${mon.common.version}</version>
|
<configuration>
|
||||||
</dependency>
|
<includes>
|
||||||
<dependency>
|
<include>**/*.class</include>
|
||||||
<groupId>com.hpcloud</groupId>
|
</includes>
|
||||||
<artifactId>mon-streaming</artifactId>
|
</configuration>
|
||||||
<version>${mon.common.version}</version>
|
</execution>
|
||||||
</dependency>
|
</executions>
|
||||||
<dependency>
|
</plugin>
|
||||||
<groupId>io.dropwizard</groupId>
|
<plugin>
|
||||||
<artifactId>dropwizard-db</artifactId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<version>${dropwizard.version}</version>
|
<artifactId>maven-shade-plugin</artifactId>
|
||||||
</dependency>
|
<configuration>
|
||||||
<dependency>
|
<finalName>mon-thresh</finalName>
|
||||||
<groupId>io.dropwizard</groupId>
|
<createDependencyReducedPom>true</createDependencyReducedPom>
|
||||||
<artifactId>dropwizard-jdbi</artifactId>
|
<filters>
|
||||||
<version>${dropwizard.version}</version>
|
<filter>
|
||||||
</dependency>
|
<artifact>*:*</artifact>
|
||||||
<dependency>
|
<excludes>
|
||||||
<groupId>mysql</groupId>
|
<exclude>META-INF/*.SF</exclude>
|
||||||
<artifactId>mysql-connector-java</artifactId>
|
<exclude>META-INF/*.DSA</exclude>
|
||||||
<version>5.1.18</version>
|
<exclude>META-INF/*.RSA</exclude>
|
||||||
</dependency>
|
</excludes>
|
||||||
|
</filter>
|
||||||
<!-- Test dependencies -->
|
</filters>
|
||||||
<dependency>
|
</configuration>
|
||||||
<groupId>com.hpcloud</groupId>
|
<executions>
|
||||||
<artifactId>mon-testing</artifactId>
|
<execution>
|
||||||
<version>${mon.common.version}</version>
|
<phase>package</phase>
|
||||||
<scope>test</scope>
|
<goals>
|
||||||
</dependency>
|
<goal>shade</goal>
|
||||||
<dependency>
|
</goals>
|
||||||
<groupId>com.hpcloud</groupId>
|
<configuration>
|
||||||
<artifactId>mon-streaming</artifactId>
|
<transformers>
|
||||||
<version>${mon.common.version}</version>
|
<transformer
|
||||||
<type>test-jar</type>
|
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
|
||||||
<scope>test</scope>
|
<mainClass>com.hpcloud.mon.ThresholdingEngine</mainClass>
|
||||||
</dependency>
|
</transformer>
|
||||||
</dependencies>
|
</transformers>
|
||||||
|
<shadedArtifactAttached>true</shadedArtifactAttached>
|
||||||
<build>
|
</configuration>
|
||||||
<plugins>
|
</execution>
|
||||||
<plugin>
|
</executions>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
</plugin>
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<plugin>
|
||||||
<configuration>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<source>1.7</source>
|
<artifactId>maven-scm-plugin</artifactId>
|
||||||
<target>1.7</target>
|
<configuration>
|
||||||
</configuration>
|
<tag>${project.version}</tag>
|
||||||
</plugin>
|
</configuration>
|
||||||
<plugin>
|
</plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
</plugins>
|
||||||
<artifactId>maven-surefire-plugin</artifactId>
|
</build>
|
||||||
<configuration>
|
|
||||||
<excludedGroups>performance,functional,integration,database,slow</excludedGroups>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-failsafe-plugin</artifactId>
|
|
||||||
<configuration>
|
|
||||||
<groups>performance,functional,integration,database,slow</groups>
|
|
||||||
<skipTests>${skipITs}</skipTests>
|
|
||||||
</configuration>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<goals>
|
|
||||||
<goal>integration-test</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<includes>
|
|
||||||
<include>**/*.class</include>
|
|
||||||
</includes>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-shade-plugin</artifactId>
|
|
||||||
<configuration>
|
|
||||||
<finalName>mon-thresh</finalName>
|
|
||||||
<createDependencyReducedPom>true</createDependencyReducedPom>
|
|
||||||
<filters>
|
|
||||||
<filter>
|
|
||||||
<artifact>*:*</artifact>
|
|
||||||
<excludes>
|
|
||||||
<exclude>META-INF/*.SF</exclude>
|
|
||||||
<exclude>META-INF/*.DSA</exclude>
|
|
||||||
<exclude>META-INF/*.RSA</exclude>
|
|
||||||
</excludes>
|
|
||||||
</filter>
|
|
||||||
</filters>
|
|
||||||
</configuration>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<phase>package</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>shade</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<transformers>
|
|
||||||
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
|
|
||||||
<mainClass>com.hpcloud.mon.ThresholdingEngine</mainClass>
|
|
||||||
</transformer>
|
|
||||||
</transformers>
|
|
||||||
<shadedArtifactAttached>true</shadedArtifactAttached>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-scm-plugin</artifactId>
|
|
||||||
<configuration>
|
|
||||||
<tag>${project.version}</tag>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user