pom.xml 38 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069
  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</groupId>
  25. <artifactId>apache</artifactId>
  26. <version>23</version>
  27. <relativePath />
  28. <!-- no parent resolution -->
  29. </parent>
  30. <groupId>org.apache.zookeeper</groupId>
  31. <artifactId>parent</artifactId>
  32. <packaging>pom</packaging>
  33. <!-- to change version: mvn -\-batch-mode release:update-versions -DdevelopmentVersion=3.6.0-SNAPSHOT -->
  34. <version>3.7.0-SNAPSHOT</version>
  35. <name>Apache ZooKeeper</name>
  36. <description>
  37. ZooKeeper is a centralized service for maintaining configuration information, naming,
  38. providing distributed synchronization, and providing group services. All of these kinds
  39. of services are used in some form or another by distributed applications. Each time they
  40. are implemented there is a lot of work that goes into fixing the bugs and race conditions
  41. that are inevitable. Because of the difficulty of implementing these kinds of services,
  42. applications initially usually skimp on them ,which make them brittle in the presence of
  43. change and difficult to manage. Even when done correctly, different implementations of
  44. these services lead to management complexity when the applications are deployed.
  45. </description>
  46. <url>http://zookeeper.apache.org</url>
  47. <inceptionYear>2008</inceptionYear>
  48. <!-- Set here so we can consistently use the correct name, even on branches with
  49. an ASF parent pom older than v15. Also uses the url from v18.
  50. -->
  51. <licenses>
  52. <license>
  53. <name>Apache License, Version 2.0</name>
  54. <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
  55. <distribution>repo</distribution>
  56. </license>
  57. </licenses>
  58. <modules>
  59. <module>zookeeper-docs</module>
  60. <module>zookeeper-jute</module>
  61. <module>zookeeper-server</module>
  62. <module>zookeeper-metrics-providers</module>
  63. <module>zookeeper-client</module>
  64. <module>zookeeper-recipes</module>
  65. <module>zookeeper-assembly</module>
  66. <module>zookeeper-compatibility-tests</module>
  67. </modules>
  68. <scm>
  69. <connection>scm:git:https://gitbox.apache.org/repos/asf/zookeeper.git</connection>
  70. <developerConnection>scm:git:https://gitbox.apache.org/repos/asf/zookeeper.git</developerConnection>
  71. <url>https://gitbox.apache.org/repos/asf/zookeeper.git</url>
  72. <tag>HEAD</tag>
  73. </scm>
  74. <issueManagement>
  75. <system>JIRA</system>
  76. <url>http://issues.apache.org/jira/browse/ZOOKEEPER</url>
  77. </issueManagement>
  78. <ciManagement>
  79. <system>jenkins</system>
  80. <url>https://builds.apache.org/view/Z/view/ZooKeeper/</url>
  81. </ciManagement>
  82. <mailingLists>
  83. <mailingList>
  84. <name>User List</name>
  85. <subscribe>user-subscribe@zookeeper.apache.org</subscribe>
  86. <unsubscribe>user-unsubscribe@zookeeper.apache.org</unsubscribe>
  87. <post>user@zookeeper.apache.org</post>
  88. <archive>http://mail-archives.apache.org/mod_mbox/zookeeper-user/</archive>
  89. </mailingList>
  90. <mailingList>
  91. <name>Developer List</name>
  92. <subscribe>dev-subscribe@zookeeper.apache.org</subscribe>
  93. <unsubscribe>dev-unsubscribe@zookeeper.apache.org</unsubscribe>
  94. <post>dev@zookeeper.apache.org</post>
  95. <archive>http://mail-archives.apache.org/mod_mbox/zookeeper-dev/</archive>
  96. </mailingList>
  97. <mailingList>
  98. <name>Commits List</name>
  99. <subscribe>commits-subscribe@zookeeper.apache.org</subscribe>
  100. <unsubscribe>commits-unsubscribe@zookeeper.apache.org</unsubscribe>
  101. <archive>http://mail-archives.apache.org/mod_mbox/zookeeper-commits/</archive>
  102. </mailingList>
  103. <mailingList>
  104. <name>Issues List</name>
  105. <subscribe>issues-subscribe@zookeeper.apache.org</subscribe>
  106. <unsubscribe>issues-unsubscribe@zookeeper.apache.org</unsubscribe>
  107. <archive>https://lists.apache.org/list.html?issues@zookeeper.apache.org</archive>
  108. </mailingList>
  109. <mailingList>
  110. <name>Notifications List</name>
  111. <subscribe>notifications-subscribe@zookeeper.apache.org</subscribe>
  112. <unsubscribe>notifications-unsubscribe@zookeeper.apache.org</unsubscribe>
  113. <archive>https://lists.apache.org/list.html?notifications@zookeeper.apache.org</archive>
  114. </mailingList>
  115. </mailingLists>
  116. <developers>
  117. <developer>
  118. <id>tdunning</id>
  119. <name>Ted Dunning</name>
  120. <email>tdunning@apache.org</email>
  121. <timezone>-8</timezone>
  122. </developer>
  123. <developer>
  124. <id>camille</id>
  125. <name>Camille Fournier</name>
  126. <email>camille@apache.org</email>
  127. <timezone>-5</timezone>
  128. </developer>
  129. <developer>
  130. <id>phunt</id>
  131. <name>Patrick Hunt</name>
  132. <email>phunt@apache.org</email>
  133. <timezone>-8</timezone>
  134. </developer>
  135. <developer>
  136. <id>fpj</id>
  137. <name>Flavio Junqueira</name>
  138. <email>fpj@apache.org</email>
  139. <timezone>+0</timezone>
  140. </developer>
  141. <developer>
  142. <id>ivank</id>
  143. <name>Ivan Kelly</name>
  144. <email>ivank@apache.org</email>
  145. <timezone>+2</timezone>
  146. </developer>
  147. <developer>
  148. <id>mahadev</id>
  149. <name>Mahadev Konar</name>
  150. <email>mahadev@apache.org</email>
  151. <timezone>-8</timezone>
  152. </developer>
  153. <developer>
  154. <id>michim</id>
  155. <name>Michi Mutsuzaki</name>
  156. <email>michim@apache.org</email>
  157. <timezone>-8</timezone>
  158. </developer>
  159. <developer>
  160. <id>cnauroth</id>
  161. <name>Chris Nauroth</name>
  162. <email>cnauroth@apache.org</email>
  163. <timezone>-8</timezone>
  164. </developer>
  165. <developer>
  166. <id>breed</id>
  167. <name>Benjamin Reed</name>
  168. <email>breed@apache.org</email>
  169. <timezone>-8</timezone>
  170. </developer>
  171. <developer>
  172. <id>henry</id>
  173. <name>Henry Robinson</name>
  174. <email>henry@apache.org</email>
  175. <timezone>-8</timezone>
  176. </developer>
  177. <developer>
  178. <id>rgs</id>
  179. <name>Raul Gutierrez Segales</name>
  180. <email>rgs@apache.org</email>
  181. <timezone>-8</timezone>
  182. </developer>
  183. <developer>
  184. <id>rakeshr</id>
  185. <name>Rakesh Radhakrishnan</name>
  186. <email>rakeshr@apache.org</email>
  187. <timezone>+5:30</timezone>
  188. </developer>
  189. <developer>
  190. <id>hanm</id>
  191. <name>Michael Han</name>
  192. <email>hanm@apache.org</email>
  193. <timezone>-8</timezone>
  194. </developer>
  195. <developer>
  196. <id>gkesavan</id>
  197. <name>Giridharan Kesavan</name>
  198. <email>gkesavan@apache.org</email>
  199. <timezone>-8</timezone>
  200. </developer>
  201. <developer>
  202. <id>akornev</id>
  203. <name>Andrew Kornev</name>
  204. <email>akornev@apache.org</email>
  205. </developer>
  206. <developer>
  207. <id>shralex</id>
  208. <name>Alex Shraer</name>
  209. <email>shralex@apache.org</email>
  210. <timezone>-8</timezone>
  211. </developer>
  212. <developer>
  213. <id>thawan</id>
  214. <name>Thawan Kooburat</name>
  215. <email>thawan@apache.org</email>
  216. <timezone>-8</timezone>
  217. </developer>
  218. <developer>
  219. <id>hdeng</id>
  220. <name>Hongchao Deng</name>
  221. <email>hdeng@apache.org</email>
  222. <timezone>-8</timezone>
  223. </developer>
  224. <developer>
  225. <id>arshad</id>
  226. <name>Mohammad Arshad</name>
  227. <email>arshad@apache.org</email>
  228. <timezone>+5:30</timezone>
  229. </developer>
  230. <developer>
  231. <id>afine</id>
  232. <name>Abraham Fine</name>
  233. <email>afine@apache.org</email>
  234. <timezone>-8</timezone>
  235. </developer>
  236. <developer>
  237. <id>andor</id>
  238. <name>Andor Molnar</name>
  239. <email>andor@apache.org</email>
  240. <timezone>+1</timezone>
  241. </developer>
  242. <developer>
  243. <id>lvfangmin</id>
  244. <name>Allan Lyu</name>
  245. <email>fangmin@apache.org</email>
  246. <timezone>-8</timezone>
  247. </developer>
  248. <developer>
  249. <id>eolivelli</id>
  250. <name>Enrico Olivelli</name>
  251. <email>eolivelli@apache.org</email>
  252. <timezone>+1</timezone>
  253. </developer>
  254. </developers>
  255. <profiles>
  256. <profile>
  257. <id>full-build</id>
  258. <modules>
  259. <module>zookeeper-contrib</module>
  260. <!-- zookeeper-it needed by fatjar contrib -->
  261. <module>zookeeper-it</module>
  262. </modules>
  263. </profile>
  264. <profile>
  265. <!-- fatjar only profile; zookeeper-contrib will activate the fatjar in its pom -->
  266. <id>fatjar</id>
  267. <modules>
  268. <module>zookeeper-contrib</module>
  269. <!-- zookeeper-it needed by fatjar contrib -->
  270. <module>zookeeper-it</module>
  271. </modules>
  272. </profile>
  273. <profile>
  274. <id>apache-release</id>
  275. <build>
  276. <plugins>
  277. <plugin>
  278. <groupId>org.apache.maven.plugins</groupId>
  279. <artifactId>maven-assembly-plugin</artifactId>
  280. <dependencies>
  281. <dependency>
  282. <groupId>org.apache.apache.resources</groupId>
  283. <artifactId>apache-source-release-assembly-descriptor</artifactId>
  284. <version>1.0.6</version>
  285. </dependency>
  286. </dependencies>
  287. <executions>
  288. <execution>
  289. <id>source-release-assembly-tar-gz</id>
  290. <phase>initialize</phase>
  291. <goals>
  292. <goal>single</goal>
  293. </goals>
  294. <configuration>
  295. <runOnlyAtExecutionRoot>true</runOnlyAtExecutionRoot>
  296. <descriptorRefs>
  297. <!-- defined in Apache Parent Pom -->
  298. <descriptorRef>${sourceReleaseAssemblyDescriptor}</descriptorRef>
  299. </descriptorRefs>
  300. <finalName>apache-zookeeper-${project.version}</finalName>
  301. <appendAssemblyId>false</appendAssemblyId>
  302. <formats>
  303. <format>tar.gz</format>
  304. </formats>
  305. <tarLongFileMode>posix</tarLongFileMode>
  306. </configuration>
  307. </execution>
  308. </executions>
  309. </plugin>
  310. </plugins>
  311. </build>
  312. </profile>
  313. <profile>
  314. <id>m2e</id>
  315. <activation>
  316. <property>
  317. <name>m2e.version</name>
  318. </property>
  319. </activation>
  320. <properties>
  321. <maven.compiler.release>8</maven.compiler.release>
  322. </properties>
  323. <build>
  324. <pluginManagement>
  325. <plugins>
  326. <plugin>
  327. <groupId>org.eclipse.m2e</groupId>
  328. <artifactId>lifecycle-mapping</artifactId>
  329. <version>1.0.0</version>
  330. <configuration>
  331. <lifecycleMappingMetadata>
  332. <pluginExecutions>
  333. <pluginExecution>
  334. <pluginExecutionFilter>
  335. <groupId>org.codehaus.mojo</groupId>
  336. <artifactId>exec-maven-plugin</artifactId>
  337. <versionRange>[0,)</versionRange>
  338. <goals>
  339. <goal>exec</goal>
  340. </goals>
  341. </pluginExecutionFilter>
  342. <action>
  343. <ignore />
  344. </action>
  345. </pluginExecution>
  346. <pluginExecution>
  347. <pluginExecutionFilter>
  348. <groupId>org.apache.maven.plugins</groupId>
  349. <artifactId>maven-antrun-plugin</artifactId>
  350. <versionRange>[0,)</versionRange>
  351. <goals>
  352. <goal>run</goal>
  353. </goals>
  354. </pluginExecutionFilter>
  355. <action>
  356. <ignore />
  357. </action>
  358. </pluginExecution>
  359. <pluginExecution>
  360. <pluginExecutionFilter>
  361. <groupId>com.ruleoftech</groupId>
  362. <artifactId>markdown-page-generator-plugin</artifactId>
  363. <versionRange>[0,)</versionRange>
  364. <goals>
  365. <goal>generate</goal>
  366. </goals>
  367. </pluginExecutionFilter>
  368. <action>
  369. <ignore />
  370. </action>
  371. </pluginExecution>
  372. <pluginExecution>
  373. <pluginExecutionFilter>
  374. <groupId>org.codehaus.mojo</groupId>
  375. <artifactId>javacc-maven-plugin</artifactId>
  376. <versionRange>[0,)</versionRange>
  377. <goals>
  378. <goal>javacc</goal>
  379. </goals>
  380. </pluginExecutionFilter>
  381. <action>
  382. <ignore />
  383. </action>
  384. </pluginExecution>
  385. <pluginExecution>
  386. <pluginExecutionFilter>
  387. <groupId>com.github.koraktor</groupId>
  388. <artifactId>mavanagaiata</artifactId>
  389. <versionRange>[0,)</versionRange>
  390. <goals>
  391. <goal>commit</goal>
  392. </goals>
  393. </pluginExecutionFilter>
  394. <action>
  395. <ignore />
  396. </action>
  397. </pluginExecution>
  398. </pluginExecutions>
  399. </lifecycleMappingMetadata>
  400. </configuration>
  401. </plugin>
  402. </plugins>
  403. </pluginManagement>
  404. </build>
  405. </profile>
  406. <profile>
  407. <id>jdk-release-flag</id>
  408. <activation>
  409. <jdk>[9,)</jdk>
  410. </activation>
  411. <properties>
  412. <maven.compiler.release>8</maven.compiler.release>
  413. </properties>
  414. </profile>
  415. </profiles>
  416. <properties>
  417. <!-- maven properties -->
  418. <maven.compiler.source>1.8</maven.compiler.source>
  419. <maven.compiler.target>1.8</maven.compiler.target>
  420. <dependency.locations.enabled>false</dependency.locations.enabled>
  421. <surefire-forkcount>8</surefire-forkcount>
  422. <!-- dependency versions -->
  423. <slf4j.version>1.7.25</slf4j.version>
  424. <audience-annotations.version>0.5.0</audience-annotations.version>
  425. <jmockit.version>1.48</jmockit.version>
  426. <junit.version>5.6.2</junit.version>
  427. <junit-platform.version>1.6.2</junit-platform.version>
  428. <log4j.version>1.2.17</log4j.version>
  429. <mockito.version>2.27.0</mockito.version>
  430. <hamcrest.version>1.3</hamcrest.version>
  431. <commons-cli.version>1.2</commons-cli.version>
  432. <netty.version>4.1.48.Final</netty.version>
  433. <jetty.version>9.4.24.v20191120</jetty.version>
  434. <jackson.version>2.10.3</jackson.version>
  435. <json.version>1.1.1</json.version>
  436. <jline.version>2.14.6</jline.version>
  437. <snappy.version>1.1.7</snappy.version>
  438. <kerby.version>2.0.0</kerby.version>
  439. <bouncycastle.version>1.60</bouncycastle.version>
  440. <commons-collections.version>3.2.2</commons-collections.version>
  441. <commons-lang.version>2.6</commons-lang.version>
  442. <dropwizard.version>3.2.5</dropwizard.version>
  443. <spotbugsannotations.version>4.0.2</spotbugsannotations.version>
  444. <checkstyle.version>8.17</checkstyle.version>
  445. <!-- parameters to pass to C client build -->
  446. <c-client-openssl>yes</c-client-openssl>
  447. <c-client-sasl>yes</c-client-sasl>
  448. </properties>
  449. <dependencyManagement>
  450. <dependencies>
  451. <dependency>
  452. <groupId>org.hamcrest</groupId>
  453. <artifactId>hamcrest-all</artifactId>
  454. <version>${hamcrest.version}</version>
  455. </dependency>
  456. <dependency>
  457. <groupId>commons-collections</groupId>
  458. <artifactId>commons-collections</artifactId>
  459. <version>${commons-collections.version}</version>
  460. </dependency>
  461. <dependency>
  462. <groupId>commons-lang</groupId>
  463. <artifactId>commons-lang</artifactId>
  464. <version>${commons-lang.version}</version>
  465. </dependency>
  466. <dependency>
  467. <groupId>org.apache.yetus</groupId>
  468. <artifactId>audience-annotations</artifactId>
  469. <version>${audience-annotations.version}</version>
  470. </dependency>
  471. <dependency>
  472. <groupId>commons-cli</groupId>
  473. <artifactId>commons-cli</artifactId>
  474. <version>${commons-cli.version}</version>
  475. </dependency>
  476. <dependency>
  477. <groupId>org.apache.kerby</groupId>
  478. <artifactId>kerb-core</artifactId>
  479. <version>${kerby.version}</version>
  480. <exclusions>
  481. <exclusion>
  482. <groupId>org.slf4j</groupId>
  483. <artifactId>slf4j-api</artifactId>
  484. </exclusion>
  485. </exclusions>
  486. </dependency>
  487. <dependency>
  488. <groupId>org.apache.kerby</groupId>
  489. <artifactId>kerb-simplekdc</artifactId>
  490. <version>${kerby.version}</version>
  491. <exclusions>
  492. <exclusion>
  493. <groupId>org.slf4j</groupId>
  494. <artifactId>slf4j-api</artifactId>
  495. </exclusion>
  496. </exclusions>
  497. </dependency>
  498. <dependency>
  499. <groupId>org.apache.kerby</groupId>
  500. <artifactId>kerby-config</artifactId>
  501. <version>${kerby.version}</version>
  502. <exclusions>
  503. <exclusion>
  504. <groupId>org.slf4j</groupId>
  505. <artifactId>slf4j-api</artifactId>
  506. </exclusion>
  507. <exclusion>
  508. <groupId>org.slf4j</groupId>
  509. <artifactId>slf4j-log4j12</artifactId>
  510. </exclusion>
  511. </exclusions>
  512. </dependency>
  513. <dependency>
  514. <groupId>org.bouncycastle</groupId>
  515. <artifactId>bcprov-jdk15on</artifactId>
  516. <version>${bouncycastle.version}</version>
  517. </dependency>
  518. <dependency>
  519. <groupId>org.bouncycastle</groupId>
  520. <artifactId>bcpkix-jdk15on</artifactId>
  521. <version>${bouncycastle.version}</version>
  522. </dependency>
  523. <dependency>
  524. <groupId>org.slf4j</groupId>
  525. <artifactId>slf4j-api</artifactId>
  526. <version>${slf4j.version}</version>
  527. </dependency>
  528. <dependency>
  529. <groupId>org.slf4j</groupId>
  530. <artifactId>slf4j-log4j12</artifactId>
  531. <version>${slf4j.version}</version>
  532. <exclusions>
  533. <exclusion>
  534. <groupId>*</groupId>
  535. <artifactId>*</artifactId>
  536. </exclusion>
  537. </exclusions>
  538. </dependency>
  539. <dependency>
  540. <groupId>log4j</groupId>
  541. <artifactId>log4j</artifactId>
  542. <version>${log4j.version}</version>
  543. </dependency>
  544. <dependency>
  545. <groupId>org.jmockit</groupId>
  546. <artifactId>jmockit</artifactId>
  547. <version>${jmockit.version}</version>
  548. </dependency>
  549. <dependency>
  550. <groupId>org.junit.jupiter</groupId>
  551. <artifactId>junit-jupiter-api</artifactId>
  552. <version>${junit.version}</version>
  553. </dependency>
  554. <dependency>
  555. <groupId>org.junit.jupiter</groupId>
  556. <artifactId>junit-jupiter-engine</artifactId>
  557. <version>${junit.version}</version>
  558. </dependency>
  559. <dependency>
  560. <groupId>org.junit.jupiter</groupId>
  561. <artifactId>junit-jupiter-params</artifactId>
  562. <version>${junit.version}</version>
  563. <scope>test</scope>
  564. </dependency>
  565. <dependency>
  566. <groupId>org.junit.platform</groupId>
  567. <artifactId>junit-platform-runner</artifactId>
  568. <version>${junit-platform.version}</version>
  569. <scope>test</scope>
  570. </dependency>
  571. <dependency>
  572. <groupId>org.junit.vintage</groupId>
  573. <artifactId>junit-vintage-engine</artifactId>
  574. <version>${junit.version}</version>
  575. </dependency>
  576. <dependency>
  577. <groupId>org.mockito</groupId>
  578. <artifactId>mockito-core</artifactId>
  579. <version>${mockito.version}</version>
  580. </dependency>
  581. <dependency>
  582. <groupId>io.netty</groupId>
  583. <artifactId>netty-handler</artifactId>
  584. <version>${netty.version}</version>
  585. </dependency>
  586. <dependency>
  587. <groupId>io.netty</groupId>
  588. <artifactId>netty-transport-native-epoll</artifactId>
  589. <version>${netty.version}</version>
  590. </dependency>
  591. <dependency>
  592. <groupId>org.eclipse.jetty</groupId>
  593. <artifactId>jetty-server</artifactId>
  594. <version>${jetty.version}</version>
  595. </dependency>
  596. <dependency>
  597. <groupId>org.eclipse.jetty</groupId>
  598. <artifactId>jetty-servlet</artifactId>
  599. <version>${jetty.version}</version>
  600. </dependency>
  601. <dependency>
  602. <groupId>io.dropwizard.metrics</groupId>
  603. <artifactId>metrics-core</artifactId>
  604. <version>${dropwizard.version}</version>
  605. <exclusions>
  606. <exclusion>
  607. <groupId>org.slf4j</groupId>
  608. <artifactId>slf4j-api</artifactId>
  609. </exclusion>
  610. </exclusions>
  611. </dependency>
  612. <dependency>
  613. <groupId>com.fasterxml.jackson.core</groupId>
  614. <artifactId>jackson-databind</artifactId>
  615. <version>${jackson.version}</version>
  616. </dependency>
  617. <dependency>
  618. <groupId>com.googlecode.json-simple</groupId>
  619. <artifactId>json-simple</artifactId>
  620. <version>${json.version}</version>
  621. <exclusions>
  622. <exclusion>
  623. <groupId>junit</groupId>
  624. <artifactId>junit</artifactId>
  625. </exclusion>
  626. </exclusions>
  627. </dependency>
  628. <dependency>
  629. <groupId>jline</groupId>
  630. <artifactId>jline</artifactId>
  631. <version>${jline.version}</version>
  632. </dependency>
  633. <dependency>
  634. <groupId>com.github.spotbugs</groupId>
  635. <artifactId>spotbugs-annotations</artifactId>
  636. <version>${spotbugsannotations.version}</version>
  637. <scope>provided</scope>
  638. <optional>true</optional>
  639. </dependency>
  640. <dependency>
  641. <groupId>org.xerial.snappy</groupId>
  642. <artifactId>snappy-java</artifactId>
  643. <version>${snappy.version}</version>
  644. </dependency>
  645. </dependencies>
  646. </dependencyManagement>
  647. <build>
  648. <pluginManagement>
  649. <plugins>
  650. <plugin>
  651. <groupId>org.apache.maven.plugins</groupId>
  652. <artifactId>maven-compiler-plugin</artifactId>
  653. <version>3.8.1</version>
  654. <configuration>
  655. <showWarnings>true</showWarnings>
  656. <compilerArgs>
  657. <compilerArg>-Werror</compilerArg>
  658. <compilerArg>-Xlint:deprecation</compilerArg>
  659. <compilerArg>-Xlint:unchecked</compilerArg>
  660. <compilerArg>-Xlint:-options</compilerArg>
  661. <compilerArg>-Xdoclint:-missing</compilerArg>
  662. <!-- https://issues.apache.org/jira/browse/MCOMPILER-205 -->
  663. <compilerArg>-Xpkginfo:always</compilerArg>
  664. </compilerArgs>
  665. </configuration>
  666. </plugin>
  667. <plugin>
  668. <groupId>org.apache.maven.plugins</groupId>
  669. <artifactId>maven-jar-plugin</artifactId>
  670. <version>3.1.0</version>
  671. <configuration>
  672. <archive>
  673. <manifestEntries>
  674. <Implementation-Build>${mvngit.commit.id}</Implementation-Build>
  675. </manifestEntries>
  676. </archive>
  677. </configuration>
  678. </plugin>
  679. <plugin>
  680. <groupId>org.apache.maven.plugins</groupId>
  681. <artifactId>maven-source-plugin</artifactId>
  682. <version>3.0.1</version>
  683. </plugin>
  684. <plugin>
  685. <groupId>org.apache.maven.plugins</groupId>
  686. <artifactId>maven-javadoc-plugin</artifactId>
  687. <version>3.1.1</version>
  688. <configuration>
  689. <quiet>true</quiet>
  690. <doclint>none</doclint>
  691. </configuration>
  692. </plugin>
  693. <plugin>
  694. <groupId>org.apache.maven.plugins</groupId>
  695. <artifactId>maven-assembly-plugin</artifactId>
  696. <version>3.1.0</version>
  697. </plugin>
  698. <plugin>
  699. <groupId>org.apache.maven.plugins</groupId>
  700. <artifactId>maven-release-plugin</artifactId>
  701. <version>3.0.0-M1</version>
  702. </plugin>
  703. <plugin>
  704. <groupId>org.apache.maven.plugins</groupId>
  705. <artifactId>maven-scm-plugin</artifactId>
  706. <version>1.11.2</version>
  707. </plugin>
  708. <plugin>
  709. <groupId>org.apache.maven.plugins</groupId>
  710. <artifactId>maven-surefire-plugin</artifactId>
  711. <version>2.22.1</version>
  712. </plugin>
  713. <plugin>
  714. <groupId>org.apache.maven.plugins</groupId>
  715. <artifactId>maven-antrun-plugin</artifactId>
  716. <version>1.8</version>
  717. </plugin>
  718. <plugin>
  719. <groupId>org.apache.maven.plugins</groupId>
  720. <artifactId>maven-dependency-plugin</artifactId>
  721. <version>3.1.1</version>
  722. </plugin>
  723. <plugin>
  724. <groupId>org.codehaus.mojo</groupId>
  725. <artifactId>exec-maven-plugin</artifactId>
  726. <version>1.6.0</version>
  727. </plugin>
  728. <plugin>
  729. <groupId>com.github.koraktor</groupId>
  730. <artifactId>mavanagaiata</artifactId>
  731. <version>0.9.4</version>
  732. <configuration>
  733. <skipNoGit>true</skipNoGit>
  734. </configuration>
  735. </plugin>
  736. <plugin>
  737. <groupId>org.codehaus.mojo</groupId>
  738. <artifactId>build-helper-maven-plugin</artifactId>
  739. <version>3.0.0</version>
  740. </plugin>
  741. <plugin>
  742. <groupId>net.nicoulaj.maven.plugins</groupId>
  743. <artifactId>checksum-maven-plugin</artifactId>
  744. <version>1.8</version>
  745. </plugin>
  746. <plugin>
  747. <groupId>org.openclover</groupId>
  748. <artifactId>clover-maven-plugin</artifactId>
  749. <version>4.3.1</version>
  750. </plugin>
  751. <plugin>
  752. <groupId>com.github.spotbugs</groupId>
  753. <artifactId>spotbugs-maven-plugin</artifactId>
  754. <version>4.0.0</version>
  755. <configuration>
  756. <excludeFilterFile>excludeFindBugsFilter.xml</excludeFilterFile>
  757. </configuration>
  758. </plugin>
  759. <plugin>
  760. <groupId>org.owasp</groupId>
  761. <artifactId>dependency-check-maven</artifactId>
  762. <version>5.3.0</version>
  763. </plugin>
  764. <plugin>
  765. <groupId>org.apache.maven.plugins</groupId>
  766. <artifactId>maven-checkstyle-plugin</artifactId>
  767. <version>3.1.0</version>
  768. <dependencies>
  769. <dependency>
  770. <groupId>com.puppycrawl.tools</groupId>
  771. <artifactId>checkstyle</artifactId>
  772. <version>${checkstyle.version}</version>
  773. </dependency>
  774. </dependencies>
  775. <configuration>
  776. <configLocation>checkstyle-strict.xml</configLocation>
  777. <suppressionsLocation>checkstyleSuppressions.xml</suppressionsLocation>
  778. <encoding>UTF-8</encoding>
  779. <consoleOutput>true</consoleOutput>
  780. <failOnViolation>true</failOnViolation>
  781. <includeResources>false</includeResources>
  782. <includeTestResources>false</includeTestResources>
  783. <includeTestSourceDirectory>true</includeTestSourceDirectory>
  784. </configuration>
  785. <executions>
  786. <execution>
  787. <id>checkstyle</id>
  788. <phase>validate</phase>
  789. <goals>
  790. <goal>check</goal>
  791. </goals>
  792. </execution>
  793. </executions>
  794. </plugin>
  795. <!-- we don't need this plugin-->
  796. <plugin>
  797. <artifactId>maven-remote-resources-plugin</artifactId>
  798. <executions>
  799. <execution>
  800. <id>process-resource-bundles</id>
  801. <phase>none</phase>
  802. </execution>
  803. </executions>
  804. </plugin>
  805. </plugins>
  806. </pluginManagement>
  807. <plugins>
  808. <plugin>
  809. <groupId>com.github.koraktor</groupId>
  810. <artifactId>mavanagaiata</artifactId>
  811. <executions>
  812. <execution>
  813. <id>find-current-git-revision</id>
  814. <goals>
  815. <goal>commit</goal>
  816. </goals>
  817. <phase>validate</phase>
  818. </execution>
  819. </executions>
  820. </plugin>
  821. <plugin>
  822. <groupId>org.openclover</groupId>
  823. <artifactId>clover-maven-plugin</artifactId>
  824. <configuration>
  825. <generateHtml>true</generateHtml>
  826. <generateXml>true</generateXml>
  827. <includes>
  828. <include>org/apache/zookeeper/**/*</include>
  829. </includes>
  830. <excludes>
  831. <exclude>org/apache/zookeeper/version/**/*</exclude>
  832. </excludes>
  833. </configuration>
  834. <executions>
  835. <execution>
  836. <phase>pre-site</phase>
  837. <goals>
  838. <goal>instrument</goal>
  839. <goal>aggregate</goal>
  840. </goals>
  841. </execution>
  842. </executions>
  843. </plugin>
  844. <plugin>
  845. <groupId>org.apache.maven.plugins</groupId>
  846. <artifactId>maven-antrun-plugin</artifactId>
  847. <executions>
  848. <execution>
  849. <phase>validate</phase>
  850. <goals>
  851. <goal>run</goal>
  852. </goals>
  853. <configuration>
  854. <exportAntProperties>true</exportAntProperties>
  855. <target>
  856. <property environment="env" />
  857. <exec executable="hostname" outputproperty="host.name" />
  858. </target>
  859. </configuration>
  860. </execution>
  861. </executions>
  862. </plugin>
  863. <plugin>
  864. <groupId>org.apache.maven.plugins</groupId>
  865. <artifactId>maven-jar-plugin</artifactId>
  866. <executions>
  867. <execution>
  868. <id>Jar Tests Package</id>
  869. <phase>package</phase>
  870. <goals>
  871. <goal>test-jar</goal>
  872. </goals>
  873. <configuration>
  874. <includes>
  875. <include>org/**</include>
  876. <include>META_INF/**</include>
  877. </includes>
  878. <skipIfEmpty>true</skipIfEmpty>
  879. </configuration>
  880. </execution>
  881. </executions>
  882. </plugin>
  883. <plugin>
  884. <groupId>org.apache.maven.plugins</groupId>
  885. <artifactId>maven-source-plugin</artifactId>
  886. <executions>
  887. <execution>
  888. <id>attach-sources</id>
  889. <goals>
  890. <goal>jar</goal>
  891. </goals>
  892. </execution>
  893. </executions>
  894. </plugin>
  895. <plugin>
  896. <groupId>org.apache.maven.plugins</groupId>
  897. <artifactId>maven-javadoc-plugin</artifactId>
  898. <executions>
  899. <execution>
  900. <id>attach-javadocs</id>
  901. <goals>
  902. <goal>jar</goal>
  903. </goals>
  904. </execution>
  905. <execution>
  906. <id>aggregate</id>
  907. <phase>site</phase>
  908. <goals>
  909. <goal>aggregate</goal>
  910. </goals>
  911. </execution>
  912. </executions>
  913. <configuration>
  914. <overview>zookeeper-server/src/main/resources/overview.html</overview>
  915. <excludePackageNames>*.recipes.*</excludePackageNames>
  916. </configuration>
  917. </plugin>
  918. <plugin>
  919. <!-- Maven's deploy plugin only creates checksums during the deployment of the jar artifacts to repo. -->
  920. <!-- We also want to sign tarballs. Nicoulaj's plugin is the recommended solution by the community. -->
  921. <groupId>net.nicoulaj.maven.plugins</groupId>
  922. <artifactId>checksum-maven-plugin</artifactId>
  923. <executions>
  924. <execution>
  925. <goals>
  926. <goal>artifacts</goal>
  927. </goals>
  928. </execution>
  929. </executions>
  930. <configuration>
  931. <algorithms>
  932. <algorithm>SHA-512</algorithm>
  933. </algorithms>
  934. <appendFilename>true</appendFilename>
  935. </configuration>
  936. </plugin>
  937. <plugin>
  938. <groupId>com.github.spotbugs</groupId>
  939. <artifactId>spotbugs-maven-plugin</artifactId>
  940. </plugin>
  941. <plugin>
  942. <groupId>org.owasp</groupId>
  943. <artifactId>dependency-check-maven</artifactId>
  944. <configuration>
  945. <format>ALL</format>
  946. <failBuildOnCVSS>0</failBuildOnCVSS>
  947. <suppressionFiles>
  948. <suppressionsFile>owaspSuppressions.xml</suppressionsFile>
  949. </suppressionFiles>
  950. </configuration>
  951. </plugin>
  952. <plugin>
  953. <groupId>org.apache.rat</groupId>
  954. <artifactId>apache-rat-plugin</artifactId>
  955. <configuration>
  956. <excludes>
  957. <exclude>**/log4j.properties</exclude>
  958. <exclude>**/README.md</exclude>
  959. <exclude>**/findbugsExcludeFile.xml</exclude>
  960. <exclude>**/checkstyle-noframes-sorted.xsl</exclude>
  961. <exclude>**/configure.ac</exclude>
  962. <exclude>**/Makefile.am</exclude>
  963. <exclude>conf/zoo_sample.cfg</exclude>
  964. <exclude>conf/configuration.xsl</exclude>
  965. <exclude>.travis.yml</exclude>
  966. <exclude>excludeFindBugsFilter.xml</exclude>
  967. <exclude>README_packaging.md</exclude>
  968. <exclude>src/main/resources/markdown/skin/*</exclude>
  969. <exclude>src/main/resources/markdown/html/*</exclude>
  970. <exclude>src/main/resources/markdown/images/*</exclude>
  971. <!-- contrib -->
  972. <exclude>**/JMX-RESOURCES</exclude>
  973. <exclude>**/src/main/resources/mainClasses</exclude>
  974. <exclude>**/Changes</exclude>
  975. <exclude>**/MANIFEST</exclude>
  976. <exclude>**/src/test/zoo.cfg</exclude>
  977. <exclude>**/src/main/resources/webapp/org/apache/zookeeper/graph/resources/*</exclude>
  978. <exclude>**/src/main/java/com/nitido/utils/toaster/Toaster.java</exclude>
  979. <exclude>**/TODO</exclude>
  980. <!-- c client -->
  981. <exclude>**/acinclude.m4</exclude>
  982. <exclude>**/aminclude.am</exclude>
  983. <exclude>**/src/hashtable/*</exclude>
  984. <exclude>**/include/winconfig.h</exclude>
  985. <exclude>**/tests/wrappers.opt</exclude>
  986. <exclude>**/tests/zoo.cfg</exclude>
  987. <exclude>**/tests/wrappers-mt.opt</exclude>
  988. <exclude>**/c-doc.Doxyfile</exclude>
  989. </excludes>
  990. <consoleOutput>true</consoleOutput>
  991. </configuration>
  992. </plugin>
  993. <plugin>
  994. <groupId>org.apache.maven.plugins</groupId>
  995. <artifactId>maven-release-plugin</artifactId>
  996. <inherited>false</inherited>
  997. <configuration>
  998. <!-- update the version inside the C sources -->
  999. <preparationGoals>clean verify -DskipTests antrun:run@replace-cclient-files-during-release scm:add@add-cclient-files-during-release scm:checkin@commit-cclient-files-during-release</preparationGoals>
  1000. <completionGoals>clean verify -DskipTests antrun:run@replace-cclient-files-during-release scm:add@add-cclient-files-during-release scm:checkin@commit-cclient-files-during-release</completionGoals>
  1001. <pushChanges>false</pushChanges>
  1002. <localCheckout>true</localCheckout>
  1003. <autoVersionSubmodules>true</autoVersionSubmodules>
  1004. <tagNameFormat>release-@{project.version}</tagNameFormat>
  1005. </configuration>
  1006. </plugin>
  1007. <plugin>
  1008. <groupId>org.apache.maven.plugins</groupId>
  1009. <artifactId>maven-scm-plugin</artifactId>
  1010. <inherited>false</inherited>
  1011. <executions>
  1012. <execution>
  1013. <id>add-cclient-files-during-release</id>
  1014. <phase>none</phase>
  1015. <goals>
  1016. <goal>add</goal>
  1017. </goals>
  1018. <configuration>
  1019. <pushChanges>false</pushChanges>
  1020. <includes>zookeeper-client/zookeeper-client-c/CMakeLists.txt,zookeeper-client/zookeeper-client-c/configure.ac,zookeeper-client/zookeeper-client-c/include/zookeeper_version.h</includes>
  1021. </configuration>
  1022. </execution>
  1023. <execution>
  1024. <id>commit-cclient-files-during-release</id>
  1025. <phase>none</phase>
  1026. <goals>
  1027. <!-- git commit -->
  1028. <goal>checkin</goal>
  1029. </goals>
  1030. <configuration>
  1031. <pushChanges>false</pushChanges>
  1032. <message>Prepared ${project.version}</message>
  1033. </configuration>
  1034. </execution>
  1035. </executions>
  1036. </plugin>
  1037. </plugins>
  1038. <resources>
  1039. <resource>
  1040. <directory>${project.basedir}src/main/java/resources</directory>
  1041. <excludes>
  1042. <exclude>**/*.*</exclude>
  1043. </excludes>
  1044. </resource>
  1045. </resources>
  1046. </build>
  1047. <reporting>
  1048. <plugins>
  1049. <plugin>
  1050. <groupId>org.openclover</groupId>
  1051. <artifactId>clover-maven-plugin</artifactId>
  1052. </plugin>
  1053. </plugins>
  1054. </reporting>
  1055. </project>