pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349
  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.10.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-library</artifactId>
  42. <scope>test</scope>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.apache.commons</groupId>
  46. <artifactId>commons-collections4</artifactId>
  47. <scope>test</scope>
  48. </dependency>
  49. <dependency>
  50. <groupId>org.apache.zookeeper</groupId>
  51. <artifactId>zookeeper-jute</artifactId>
  52. <version>${project.version}</version>
  53. </dependency>
  54. <dependency>
  55. <groupId>commons-cli</groupId>
  56. <artifactId>commons-cli</artifactId>
  57. <scope>provided</scope>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.apache.yetus</groupId>
  61. <artifactId>audience-annotations</artifactId>
  62. </dependency>
  63. <dependency>
  64. <groupId>io.netty</groupId>
  65. <artifactId>netty-handler</artifactId>
  66. </dependency>
  67. <dependency>
  68. <groupId>io.netty</groupId>
  69. <artifactId>netty-transport-native-epoll</artifactId>
  70. <classifier>linux-x86_64</classifier>
  71. </dependency>
  72. <dependency>
  73. <groupId>io.netty</groupId>
  74. <artifactId>netty-tcnative-boringssl-static</artifactId>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.slf4j</groupId>
  78. <artifactId>slf4j-api</artifactId>
  79. </dependency>
  80. <dependency>
  81. <groupId>ch.qos.logback</groupId>
  82. <artifactId>logback-core</artifactId>
  83. </dependency>
  84. <dependency>
  85. <groupId>ch.qos.logback</groupId>
  86. <artifactId>logback-classic</artifactId>
  87. </dependency>
  88. <dependency>
  89. <groupId>org.eclipse.jetty</groupId>
  90. <artifactId>jetty-server</artifactId>
  91. <scope>provided</scope>
  92. </dependency>
  93. <dependency>
  94. <groupId>org.eclipse.jetty</groupId>
  95. <artifactId>jetty-servlet</artifactId>
  96. <scope>provided</scope>
  97. </dependency>
  98. <dependency>
  99. <groupId>org.eclipse.jetty</groupId>
  100. <artifactId>jetty-client</artifactId>
  101. <scope>provided</scope>
  102. </dependency>
  103. <dependency>
  104. <groupId>com.fasterxml.jackson.core</groupId>
  105. <artifactId>jackson-databind</artifactId>
  106. <scope>provided</scope>
  107. </dependency>
  108. <dependency>
  109. <groupId>org.bouncycastle</groupId>
  110. <artifactId>bcprov-jdk18on</artifactId>
  111. <scope>test</scope>
  112. </dependency>
  113. <dependency>
  114. <groupId>org.bouncycastle</groupId>
  115. <artifactId>bcpkix-jdk18on</artifactId>
  116. <scope>test</scope>
  117. </dependency>
  118. <dependency>
  119. <groupId>jline</groupId>
  120. <artifactId>jline</artifactId>
  121. <scope>provided</scope>
  122. </dependency>
  123. <dependency>
  124. <groupId>io.dropwizard.metrics</groupId>
  125. <artifactId>metrics-core</artifactId>
  126. <scope>provided</scope>
  127. </dependency>
  128. <dependency>
  129. <groupId>org.apache.kerby</groupId>
  130. <artifactId>kerb-core</artifactId>
  131. <scope>test</scope>
  132. </dependency>
  133. <dependency>
  134. <groupId>org.apache.kerby</groupId>
  135. <artifactId>kerb-simplekdc</artifactId>
  136. <scope>test</scope>
  137. </dependency>
  138. <dependency>
  139. <groupId>org.apache.kerby</groupId>
  140. <artifactId>kerby-config</artifactId>
  141. <scope>test</scope>
  142. </dependency>
  143. <dependency>
  144. <groupId>org.mockito</groupId>
  145. <artifactId>mockito-core</artifactId>
  146. <scope>test</scope>
  147. </dependency>
  148. <dependency>
  149. <groupId>org.jmockit</groupId>
  150. <artifactId>jmockit</artifactId>
  151. <scope>test</scope>
  152. </dependency>
  153. <dependency>
  154. <groupId>org.junit.jupiter</groupId>
  155. <artifactId>junit-jupiter-api</artifactId>
  156. <scope>test</scope>
  157. </dependency>
  158. <dependency>
  159. <groupId>org.junit.jupiter</groupId>
  160. <artifactId>junit-jupiter-engine</artifactId>
  161. <scope>test</scope>
  162. </dependency>
  163. <dependency>
  164. <groupId>org.junit.jupiter</groupId>
  165. <artifactId>junit-jupiter-params</artifactId>
  166. <scope>test</scope>
  167. </dependency>
  168. <dependency>
  169. <groupId>org.junit.platform</groupId>
  170. <artifactId>junit-platform-runner</artifactId>
  171. <scope>test</scope>
  172. </dependency>
  173. <dependency>
  174. <groupId>org.burningwave</groupId>
  175. <artifactId>tools</artifactId>
  176. <scope>test</scope>
  177. </dependency>
  178. <dependency>
  179. <groupId>org.xerial.snappy</groupId>
  180. <artifactId>snappy-java</artifactId>
  181. <scope>provided</scope>
  182. </dependency>
  183. <dependency>
  184. <groupId>commons-io</groupId>
  185. <artifactId>commons-io</artifactId>
  186. <scope>compile</scope>
  187. </dependency>
  188. </dependencies>
  189. <build>
  190. <plugins>
  191. <plugin>
  192. <groupId>org.codehaus.mojo</groupId>
  193. <artifactId>build-helper-maven-plugin</artifactId>
  194. <executions>
  195. <execution>
  196. <!-- ${maven.build.timestamp} does not support timezone :( -->
  197. <id>build-time</id>
  198. <goals>
  199. <goal>timestamp-property</goal>
  200. </goals>
  201. <configuration>
  202. <name>build.time</name>
  203. <pattern>yyyy-MM-dd HH:mm zz</pattern>
  204. <locale>en_US</locale>
  205. <timeZone>UTC</timeZone>
  206. </configuration>
  207. </execution>
  208. <execution>
  209. <id>parse-version</id>
  210. <goals>
  211. <goal>parse-version</goal>
  212. </goals>
  213. </execution>
  214. <execution>
  215. <phase>generate-sources</phase>
  216. <goals>
  217. <goal>add-source</goal>
  218. </goals>
  219. <configuration>
  220. <sources>
  221. <source>${project.build.directory}/generated-sources/java</source>
  222. </sources>
  223. </configuration>
  224. </execution>
  225. </executions>
  226. </plugin>
  227. <plugin>
  228. <groupId>org.apache.maven.plugins</groupId>
  229. <artifactId>maven-resources-plugin</artifactId>
  230. <executions>
  231. <execution>
  232. <id>prepare-filtered-java-source</id>
  233. <goals>
  234. <goal>copy-resources</goal>
  235. </goals>
  236. <phase>generate-sources</phase>
  237. <configuration>
  238. <outputDirectory>${project.build.directory}/generated-sources/java</outputDirectory>
  239. <resources>
  240. <resource>
  241. <directory>src/main/java-filtered</directory>
  242. <filtering>true</filtering>
  243. </resource>
  244. </resources>
  245. </configuration>
  246. </execution>
  247. </executions>
  248. </plugin>
  249. <plugin>
  250. <groupId>org.apache.maven.plugins</groupId>
  251. <artifactId>maven-dependency-plugin</artifactId>
  252. <executions>
  253. <execution>
  254. <id>copy-dependencies</id>
  255. <phase>package</phase>
  256. <goals>
  257. <goal>copy-dependencies</goal>
  258. </goals>
  259. <configuration>
  260. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  261. <overWriteReleases>false</overWriteReleases>
  262. <overWriteSnapshots>true</overWriteSnapshots>
  263. <excludeTransitive>false</excludeTransitive>
  264. </configuration>
  265. </execution>
  266. </executions>
  267. </plugin>
  268. <plugin>
  269. <groupId>org.apache.maven.plugins</groupId>
  270. <artifactId>maven-surefire-plugin</artifactId>
  271. <configuration>
  272. <includes>
  273. <include>**/*Test.java</include>
  274. </includes>
  275. <forkCount>${surefire-forkcount}</forkCount>
  276. <reuseForks>false</reuseForks>
  277. <argLine>-Xmx512m -Dtest.junit.threads=${surefire-forkcount} -Dzookeeper.junit.threadid=${surefire.forkNumber} -javaagent:${org.jmockit:jmockit:jar}</argLine>
  278. <basedir>${project.basedir}</basedir>
  279. <systemPropertyVariables>
  280. <build.test.dir>${project.build.directory}/surefire</build.test.dir>
  281. <zookeeper.DigestAuthenticationProvider.superDigest>super:D/InIHSb7yEEbrWz8b9l71RjZJU=</zookeeper.DigestAuthenticationProvider.superDigest>
  282. </systemPropertyVariables>
  283. </configuration>
  284. </plugin>
  285. <plugin>
  286. <groupId>org.apache.felix</groupId>
  287. <artifactId>maven-bundle-plugin</artifactId>
  288. <executions>
  289. <execution>
  290. <id>build bundle</id>
  291. <phase>package</phase>
  292. <goals>
  293. <goal>bundle</goal>
  294. </goals>
  295. </execution>
  296. </executions>
  297. <configuration>
  298. <instructions>
  299. <Import-Package>
  300. io.netty.buffer;resolution:=optional,
  301. io.netty.channel;resolution:=optional,
  302. io.netty.channel.group;resolution:=optional,
  303. io.netty.channel.socket.nio;resolution:=optional,
  304. javax.management;resolution:=optional,
  305. javax.security.auth.callback,
  306. javax.security.auth.login,
  307. javax.security.sasl,
  308. org.ietf.jgss,
  309. org.osgi.framework;resolution:=optional,
  310. org.osgi.util.tracker;resolution:=optional,
  311. org.slf4j,
  312. *;resolution:=optional
  313. </Import-Package>
  314. <Export-Package>
  315. !org.apache.zookeeper.data,
  316. !org.apache.zookeeper.proto,
  317. !org.apache.zookeeper.txn,
  318. org.apache.zookeeper*
  319. </Export-Package>
  320. <Bundle-Name>ZooKeeper Bundle</Bundle-Name>
  321. <Bundle-DocURL>https://zookeeper.apache.org/doc/current/</Bundle-DocURL>
  322. <Implementation-Build>${mvngit.commit.id}</Implementation-Build>
  323. <Merge-Headers>!Implementation-Build,*</Merge-Headers>
  324. </instructions>
  325. <classifier>osgi</classifier>
  326. </configuration>
  327. </plugin>
  328. <plugin>
  329. <groupId>org.apache.maven.plugins</groupId>
  330. <artifactId>maven-jar-plugin</artifactId>
  331. <executions>
  332. <execution>
  333. <id>publish-test-jar</id>
  334. <goals>
  335. <goal>test-jar</goal>
  336. </goals>
  337. </execution>
  338. </executions>
  339. </plugin>
  340. </plugins>
  341. </build>
  342. </project>