pom.xml 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <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/maven-v4_0_0.xsd">
  3. <!--
  4. /**
  5. * Licensed to the Apache Software Foundation (ASF) under one
  6. * or more contributor license agreements. See the NOTICE file
  7. * distributed with this work for additional information
  8. * regarding copyright ownership. The ASF licenses this file
  9. * to you under the Apache License, Version 2.0 (the
  10. * "License"); you may not use this file except in compliance
  11. * with the License. You may obtain a copy of the License at
  12. *
  13. * http://www.apache.org/licenses/LICENSE-2.0
  14. *
  15. * Unless required by applicable law or agreed to in writing, software
  16. * distributed under the License is distributed on an "AS IS" BASIS,
  17. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  18. * See the License for the specific language governing permissions and
  19. * limitations under the License.
  20. */
  21. -->
  22. <modelVersion>4.0.0</modelVersion>
  23. <parent>
  24. <groupId>org.apache.zookeeper</groupId>
  25. <artifactId>parent</artifactId>
  26. <version>3.7.0-SNAPSHOT</version>
  27. </parent>
  28. <artifactId>zookeeper</artifactId>
  29. <packaging>jar</packaging>
  30. <name>Apache ZooKeeper - Server</name>
  31. <description>ZooKeeper server</description>
  32. <dependencies>
  33. <dependency>
  34. <groupId>com.github.spotbugs</groupId>
  35. <artifactId>spotbugs-annotations</artifactId>
  36. <scope>provided</scope>
  37. <optional>true</optional>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.hamcrest</groupId>
  41. <artifactId>hamcrest-all</artifactId>
  42. <scope>test</scope>
  43. </dependency>
  44. <dependency>
  45. <groupId>commons-collections</groupId>
  46. <artifactId>commons-collections</artifactId>
  47. <scope>test</scope>
  48. </dependency>
  49. <dependency>
  50. <groupId>commons-lang</groupId>
  51. <artifactId>commons-lang</artifactId>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.apache.zookeeper</groupId>
  55. <artifactId>zookeeper-jute</artifactId>
  56. <version>${project.version}</version>
  57. </dependency>
  58. <dependency>
  59. <groupId>commons-cli</groupId>
  60. <artifactId>commons-cli</artifactId>
  61. <scope>provided</scope>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.apache.yetus</groupId>
  65. <artifactId>audience-annotations</artifactId>
  66. </dependency>
  67. <dependency>
  68. <groupId>io.netty</groupId>
  69. <artifactId>netty-handler</artifactId>
  70. </dependency>
  71. <dependency>
  72. <groupId>io.netty</groupId>
  73. <artifactId>netty-transport-native-epoll</artifactId>
  74. </dependency>
  75. <dependency>
  76. <groupId>org.slf4j</groupId>
  77. <artifactId>slf4j-api</artifactId>
  78. </dependency>
  79. <dependency>
  80. <groupId>org.slf4j</groupId>
  81. <artifactId>slf4j-log4j12</artifactId>
  82. </dependency>
  83. <dependency>
  84. <groupId>org.eclipse.jetty</groupId>
  85. <artifactId>jetty-server</artifactId>
  86. <scope>provided</scope>
  87. </dependency>
  88. <dependency>
  89. <groupId>org.eclipse.jetty</groupId>
  90. <artifactId>jetty-servlet</artifactId>
  91. <scope>provided</scope>
  92. </dependency>
  93. <dependency>
  94. <groupId>com.fasterxml.jackson.core</groupId>
  95. <artifactId>jackson-databind</artifactId>
  96. <scope>provided</scope>
  97. </dependency>
  98. <dependency>
  99. <groupId>com.googlecode.json-simple</groupId>
  100. <artifactId>json-simple</artifactId>
  101. <scope>provided</scope>
  102. </dependency>
  103. <dependency>
  104. <groupId>org.bouncycastle</groupId>
  105. <artifactId>bcprov-jdk15on</artifactId>
  106. <scope>test</scope>
  107. </dependency>
  108. <dependency>
  109. <groupId>org.bouncycastle</groupId>
  110. <artifactId>bcpkix-jdk15on</artifactId>
  111. <scope>test</scope>
  112. </dependency>
  113. <dependency>
  114. <groupId>jline</groupId>
  115. <artifactId>jline</artifactId>
  116. <scope>provided</scope>
  117. </dependency>
  118. <dependency>
  119. <groupId>io.dropwizard.metrics</groupId>
  120. <artifactId>metrics-core</artifactId>
  121. <scope>provided</scope>
  122. </dependency>
  123. <dependency>
  124. <groupId>log4j</groupId>
  125. <artifactId>log4j</artifactId>
  126. </dependency>
  127. <dependency>
  128. <groupId>org.apache.kerby</groupId>
  129. <artifactId>kerb-core</artifactId>
  130. <scope>test</scope>
  131. </dependency>
  132. <dependency>
  133. <groupId>org.apache.kerby</groupId>
  134. <artifactId>kerb-simplekdc</artifactId>
  135. <scope>test</scope>
  136. </dependency>
  137. <dependency>
  138. <groupId>org.apache.kerby</groupId>
  139. <artifactId>kerby-config</artifactId>
  140. <scope>test</scope>
  141. </dependency>
  142. <dependency>
  143. <groupId>org.mockito</groupId>
  144. <artifactId>mockito-core</artifactId>
  145. <scope>test</scope>
  146. </dependency>
  147. <dependency>
  148. <groupId>org.jmockit</groupId>
  149. <artifactId>jmockit</artifactId>
  150. <scope>test</scope>
  151. </dependency>
  152. <dependency>
  153. <groupId>junit</groupId>
  154. <artifactId>junit</artifactId>
  155. <scope>test</scope>
  156. </dependency>
  157. <dependency>
  158. <groupId>org.xerial.snappy</groupId>
  159. <artifactId>snappy-java</artifactId>
  160. <scope>provided</scope>
  161. </dependency>
  162. </dependencies>
  163. <build>
  164. <plugins>
  165. <plugin>
  166. <groupId>org.codehaus.mojo</groupId>
  167. <artifactId>build-helper-maven-plugin</artifactId>
  168. <executions>
  169. <execution>
  170. <!-- ${maven.build.timestamp} does not support timezone :( -->
  171. <id>tbuild-time</id>
  172. <goals>
  173. <goal>timestamp-property</goal>
  174. </goals>
  175. <configuration>
  176. <name>build.time</name>
  177. <pattern>yyyy-MM-dd HH:mm zz</pattern>
  178. <locale>en_US</locale>
  179. <timeZone>UTC</timeZone>
  180. </configuration>
  181. </execution>
  182. <execution>
  183. <id>parse-version</id>
  184. <goals>
  185. <goal>parse-version</goal>
  186. </goals>
  187. </execution>
  188. <execution>
  189. <phase>generate-sources</phase>
  190. <goals>
  191. <goal>add-source</goal>
  192. </goals>
  193. <configuration>
  194. <sources>
  195. <source>${project.build.directory}/generated-sources/java</source>
  196. </sources>
  197. </configuration>
  198. </execution>
  199. </executions>
  200. </plugin>
  201. <plugin>
  202. <groupId>org.apache.maven.plugins</groupId>
  203. <artifactId>maven-resources-plugin</artifactId>
  204. <executions>
  205. <execution>
  206. <id>prepare-filtered-java-source</id>
  207. <goals>
  208. <goal>copy-resources</goal>
  209. </goals>
  210. <phase>generate-sources</phase>
  211. <configuration>
  212. <outputDirectory>${project.build.directory}/generated-sources/java</outputDirectory>
  213. <resources>
  214. <resource>
  215. <directory>src/main/java-filtered</directory>
  216. <filtering>true</filtering>
  217. </resource>
  218. </resources>
  219. </configuration>
  220. </execution>
  221. </executions>
  222. </plugin>
  223. <plugin>
  224. <groupId>org.apache.maven.plugins</groupId>
  225. <artifactId>maven-dependency-plugin</artifactId>
  226. <executions>
  227. <execution>
  228. <id>copy-dependencies</id>
  229. <phase>package</phase>
  230. <goals>
  231. <goal>copy-dependencies</goal>
  232. </goals>
  233. <configuration>
  234. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  235. <overWriteReleases>false</overWriteReleases>
  236. <overWriteSnapshots>true</overWriteSnapshots>
  237. <excludeTransitive>false</excludeTransitive>
  238. </configuration>
  239. </execution>
  240. </executions>
  241. </plugin>
  242. <plugin>
  243. <groupId>org.apache.maven.plugins</groupId>
  244. <artifactId>maven-surefire-plugin</artifactId>
  245. <configuration>
  246. <includes>
  247. <include>**/*Test.java</include>
  248. </includes>
  249. <forkCount>${surefire-forkcount}</forkCount>
  250. <reuseForks>false</reuseForks>
  251. <argLine>-Xmx512m -Dtest.junit.threads=${surefire-forkcount} -Dzookeeper.junit.threadid=${surefire.forkNumber} -javaagent:${org.jmockit:jmockit:jar}</argLine>
  252. <basedir>${project.basedir}</basedir>
  253. <redirectTestOutputToFile>true</redirectTestOutputToFile>
  254. <systemPropertyVariables>
  255. <build.test.dir>${project.build.directory}/surefire</build.test.dir>
  256. <zookeeper.DigestAuthenticationProvider.superDigest>super:D/InIHSb7yEEbrWz8b9l71RjZJU=</zookeeper.DigestAuthenticationProvider.superDigest>
  257. </systemPropertyVariables>
  258. </configuration>
  259. </plugin>
  260. <plugin>
  261. <groupId>org.apache.maven.plugins</groupId>
  262. <artifactId>maven-jar-plugin</artifactId>
  263. <executions>
  264. <execution>
  265. <id>publish-test-jar</id>
  266. <goals>
  267. <goal>test-jar</goal>
  268. </goals>
  269. </execution>
  270. </executions>
  271. </plugin>
  272. </plugins>
  273. </build>
  274. </project>