浏览代码

ZOOKEEPER-3251: Add new server metric types - fix Maven build

Add Dropwizard dependency on Maven configuration files in order to make the build work on Maven

Author: Enrico Olivelli <eolivelli@apache.org>

Reviewers: andor@apache.org

Closes #793 from eolivelli/fix/fix-build-maven
Enrico Olivelli 6 年之前
父节点
当前提交
4a85ce2dc3
共有 2 个文件被更改,包括 16 次插入0 次删除
  1. 12 0
      pom.xml
  2. 4 0
      zookeeper-server/pom.xml

+ 12 - 0
pom.xml

@@ -279,6 +279,7 @@
     <bouncycastle.version>1.60</bouncycastle.version>
     <commons-collections.version>3.2.2</commons-collections.version>
     <commons-lang.version>2.6</commons-lang.version>
+    <dropwizard.version>3.2.5</dropwizard.version>
     <spotbugsannotations.version>3.1.9</spotbugsannotations.version>
   </properties>
 
@@ -402,6 +403,17 @@
         <artifactId>jetty-servlet</artifactId>
         <version>${jetty.version}</version>
       </dependency>
+      <dependency>
+        <groupId>io.dropwizard.metrics</groupId>
+        <artifactId>metrics-core</artifactId>
+        <version>${dropwizard.version}</version>
+        <exclusions>
+           <exclusion>
+              <groupId>org.slf4j</groupId>
+              <artifactId>slf4j-api</artifactId>
+           </exclusion>
+        </exclusions>
+      </dependency>
       <dependency>
         <groupId>com.fasterxml.jackson.core</groupId>
         <artifactId>jackson-databind</artifactId>

+ 4 - 0
zookeeper-server/pom.xml

@@ -107,6 +107,10 @@
       <groupId>jline</groupId>
       <artifactId>jline</artifactId>
     </dependency>
+    <dependency>
+       <groupId>io.dropwizard.metrics</groupId>
+       <artifactId>metrics-core</artifactId>
+    </dependency>
     <dependency>
       <groupId>log4j</groupId>
       <artifactId>log4j</artifactId>