pom.xml 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  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>org.junit.vintage</groupId>
  154. <artifactId>junit-vintage-engine</artifactId>
  155. <scope>test</scope>
  156. </dependency>
  157. <dependency>
  158. <groupId>org.junit.jupiter</groupId>
  159. <artifactId>junit-jupiter-api</artifactId>
  160. <scope>test</scope>
  161. </dependency>
  162. <dependency>
  163. <groupId>org.junit.jupiter</groupId>
  164. <artifactId>junit-jupiter-engine</artifactId>
  165. <scope>test</scope>
  166. </dependency>
  167. <dependency>
  168. <groupId>org.junit.jupiter</groupId>
  169. <artifactId>junit-jupiter-params</artifactId>
  170. <scope>test</scope>
  171. </dependency>
  172. <dependency>
  173. <groupId>org.junit.platform</groupId>
  174. <artifactId>junit-platform-runner</artifactId>
  175. <scope>test</scope>
  176. </dependency>
  177. <dependency>
  178. <groupId>org.xerial.snappy</groupId>
  179. <artifactId>snappy-java</artifactId>
  180. <scope>provided</scope>
  181. </dependency>
  182. </dependencies>
  183. <build>
  184. <plugins>
  185. <plugin>
  186. <groupId>org.codehaus.mojo</groupId>
  187. <artifactId>build-helper-maven-plugin</artifactId>
  188. <executions>
  189. <execution>
  190. <!-- ${maven.build.timestamp} does not support timezone :( -->
  191. <id>tbuild-time</id>
  192. <goals>
  193. <goal>timestamp-property</goal>
  194. </goals>
  195. <configuration>
  196. <name>build.time</name>
  197. <pattern>yyyy-MM-dd HH:mm zz</pattern>
  198. <locale>en_US</locale>
  199. <timeZone>UTC</timeZone>
  200. </configuration>
  201. </execution>
  202. <execution>
  203. <id>parse-version</id>
  204. <goals>
  205. <goal>parse-version</goal>
  206. </goals>
  207. </execution>
  208. <execution>
  209. <phase>generate-sources</phase>
  210. <goals>
  211. <goal>add-source</goal>
  212. </goals>
  213. <configuration>
  214. <sources>
  215. <source>${project.build.directory}/generated-sources/java</source>
  216. </sources>
  217. </configuration>
  218. </execution>
  219. </executions>
  220. </plugin>
  221. <plugin>
  222. <groupId>org.apache.maven.plugins</groupId>
  223. <artifactId>maven-resources-plugin</artifactId>
  224. <executions>
  225. <execution>
  226. <id>prepare-filtered-java-source</id>
  227. <goals>
  228. <goal>copy-resources</goal>
  229. </goals>
  230. <phase>generate-sources</phase>
  231. <configuration>
  232. <outputDirectory>${project.build.directory}/generated-sources/java</outputDirectory>
  233. <resources>
  234. <resource>
  235. <directory>src/main/java-filtered</directory>
  236. <filtering>true</filtering>
  237. </resource>
  238. </resources>
  239. </configuration>
  240. </execution>
  241. </executions>
  242. </plugin>
  243. <plugin>
  244. <groupId>org.apache.maven.plugins</groupId>
  245. <artifactId>maven-dependency-plugin</artifactId>
  246. <executions>
  247. <execution>
  248. <id>copy-dependencies</id>
  249. <phase>package</phase>
  250. <goals>
  251. <goal>copy-dependencies</goal>
  252. </goals>
  253. <configuration>
  254. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  255. <overWriteReleases>false</overWriteReleases>
  256. <overWriteSnapshots>true</overWriteSnapshots>
  257. <excludeTransitive>false</excludeTransitive>
  258. </configuration>
  259. </execution>
  260. </executions>
  261. </plugin>
  262. <plugin>
  263. <groupId>org.apache.maven.plugins</groupId>
  264. <artifactId>maven-surefire-plugin</artifactId>
  265. <configuration>
  266. <includes>
  267. <include>**/*Test.java</include>
  268. </includes>
  269. <forkCount>${surefire-forkcount}</forkCount>
  270. <reuseForks>false</reuseForks>
  271. <argLine>-Xmx512m -Dtest.junit.threads=${surefire-forkcount} -Dzookeeper.junit.threadid=${surefire.forkNumber} -javaagent:${org.jmockit:jmockit:jar}</argLine>
  272. <basedir>${project.basedir}</basedir>
  273. <redirectTestOutputToFile>true</redirectTestOutputToFile>
  274. <systemPropertyVariables>
  275. <build.test.dir>${project.build.directory}/surefire</build.test.dir>
  276. <zookeeper.DigestAuthenticationProvider.superDigest>super:D/InIHSb7yEEbrWz8b9l71RjZJU=</zookeeper.DigestAuthenticationProvider.superDigest>
  277. </systemPropertyVariables>
  278. </configuration>
  279. </plugin>
  280. <plugin>
  281. <groupId>org.apache.maven.plugins</groupId>
  282. <artifactId>maven-jar-plugin</artifactId>
  283. <executions>
  284. <execution>
  285. <id>publish-test-jar</id>
  286. <goals>
  287. <goal>test-jar</goal>
  288. </goals>
  289. </execution>
  290. </executions>
  291. </plugin>
  292. </plugins>
  293. </build>
  294. </project>