pom.xml 39 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114
  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://ci-hadoop.apache.org/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.version>2.22.1</surefire.version>
  422. <surefire-forkcount>8</surefire-forkcount>
  423. <redirectTestOutputToFile>true</redirectTestOutputToFile>
  424. <!-- dependency versions -->
  425. <slf4j.version>1.7.30</slf4j.version>
  426. <audience-annotations.version>0.12.0</audience-annotations.version>
  427. <jmockit.version>1.48</jmockit.version>
  428. <junit.version>5.6.2</junit.version>
  429. <junit-platform.version>1.6.2</junit-platform.version>
  430. <log4j.version>1.2.17</log4j.version>
  431. <mockito.version>2.28.2</mockito.version>
  432. <hamcrest.version>2.2</hamcrest.version>
  433. <commons-cli.version>1.4</commons-cli.version>
  434. <netty.version>4.1.50.Final</netty.version>
  435. <jetty.version>9.4.35.v20201120</jetty.version>
  436. <jackson.version>2.10.5</jackson.version>
  437. <jline.version>2.14.6</jline.version>
  438. <snappy.version>1.1.7.7</snappy.version>
  439. <kerby.version>2.0.0</kerby.version>
  440. <bouncycastle.version>1.60</bouncycastle.version>
  441. <commons-collections.version>4.4</commons-collections.version>
  442. <dropwizard.version>4.1.12.1</dropwizard.version>
  443. <spotbugsannotations.version>4.0.2</spotbugsannotations.version>
  444. <checkstyle.version>8.17</checkstyle.version>
  445. <enforcer.version>3.0.0-M3</enforcer.version>
  446. <!-- parameters to pass to C client build -->
  447. <c-client-openssl>yes</c-client-openssl>
  448. <c-client-sasl>yes</c-client-sasl>
  449. </properties>
  450. <dependencyManagement>
  451. <dependencies>
  452. <dependency>
  453. <groupId>org.hamcrest</groupId>
  454. <artifactId>hamcrest-library</artifactId>
  455. <version>${hamcrest.version}</version>
  456. </dependency>
  457. <dependency>
  458. <groupId>org.apache.commons</groupId>
  459. <artifactId>commons-collections4</artifactId>
  460. <version>${commons-collections.version}</version>
  461. </dependency>
  462. <dependency>
  463. <groupId>org.apache.yetus</groupId>
  464. <artifactId>audience-annotations</artifactId>
  465. <version>${audience-annotations.version}</version>
  466. </dependency>
  467. <dependency>
  468. <groupId>commons-cli</groupId>
  469. <artifactId>commons-cli</artifactId>
  470. <version>${commons-cli.version}</version>
  471. </dependency>
  472. <dependency>
  473. <groupId>org.apache.kerby</groupId>
  474. <artifactId>kerb-core</artifactId>
  475. <version>${kerby.version}</version>
  476. <exclusions>
  477. <exclusion>
  478. <groupId>org.slf4j</groupId>
  479. <artifactId>slf4j-api</artifactId>
  480. </exclusion>
  481. </exclusions>
  482. </dependency>
  483. <dependency>
  484. <groupId>org.apache.kerby</groupId>
  485. <artifactId>kerb-simplekdc</artifactId>
  486. <version>${kerby.version}</version>
  487. <exclusions>
  488. <exclusion>
  489. <groupId>org.slf4j</groupId>
  490. <artifactId>slf4j-api</artifactId>
  491. </exclusion>
  492. </exclusions>
  493. </dependency>
  494. <dependency>
  495. <groupId>org.apache.kerby</groupId>
  496. <artifactId>kerby-config</artifactId>
  497. <version>${kerby.version}</version>
  498. <exclusions>
  499. <exclusion>
  500. <groupId>org.slf4j</groupId>
  501. <artifactId>slf4j-api</artifactId>
  502. </exclusion>
  503. <exclusion>
  504. <groupId>org.slf4j</groupId>
  505. <artifactId>slf4j-log4j12</artifactId>
  506. </exclusion>
  507. </exclusions>
  508. </dependency>
  509. <dependency>
  510. <groupId>org.bouncycastle</groupId>
  511. <artifactId>bcprov-jdk15on</artifactId>
  512. <version>${bouncycastle.version}</version>
  513. </dependency>
  514. <dependency>
  515. <groupId>org.bouncycastle</groupId>
  516. <artifactId>bcpkix-jdk15on</artifactId>
  517. <version>${bouncycastle.version}</version>
  518. </dependency>
  519. <dependency>
  520. <groupId>org.slf4j</groupId>
  521. <artifactId>slf4j-api</artifactId>
  522. <version>${slf4j.version}</version>
  523. </dependency>
  524. <dependency>
  525. <groupId>org.slf4j</groupId>
  526. <artifactId>slf4j-log4j12</artifactId>
  527. <version>${slf4j.version}</version>
  528. <exclusions>
  529. <exclusion>
  530. <groupId>*</groupId>
  531. <artifactId>*</artifactId>
  532. </exclusion>
  533. </exclusions>
  534. </dependency>
  535. <dependency>
  536. <groupId>log4j</groupId>
  537. <artifactId>log4j</artifactId>
  538. <version>${log4j.version}</version>
  539. </dependency>
  540. <dependency>
  541. <groupId>org.jmockit</groupId>
  542. <artifactId>jmockit</artifactId>
  543. <version>${jmockit.version}</version>
  544. </dependency>
  545. <dependency>
  546. <groupId>org.junit.jupiter</groupId>
  547. <artifactId>junit-jupiter-api</artifactId>
  548. <version>${junit.version}</version>
  549. </dependency>
  550. <dependency>
  551. <groupId>org.junit.jupiter</groupId>
  552. <artifactId>junit-jupiter-engine</artifactId>
  553. <version>${junit.version}</version>
  554. </dependency>
  555. <dependency>
  556. <groupId>org.junit.jupiter</groupId>
  557. <artifactId>junit-jupiter-params</artifactId>
  558. <version>${junit.version}</version>
  559. <scope>test</scope>
  560. </dependency>
  561. <dependency>
  562. <groupId>org.junit.platform</groupId>
  563. <artifactId>junit-platform-runner</artifactId>
  564. <version>${junit-platform.version}</version>
  565. <scope>test</scope>
  566. </dependency>
  567. <dependency>
  568. <groupId>org.junit.vintage</groupId>
  569. <artifactId>junit-vintage-engine</artifactId>
  570. <version>${junit.version}</version>
  571. </dependency>
  572. <dependency>
  573. <groupId>org.mockito</groupId>
  574. <artifactId>mockito-core</artifactId>
  575. <version>${mockito.version}</version>
  576. </dependency>
  577. <dependency>
  578. <groupId>io.netty</groupId>
  579. <artifactId>netty-handler</artifactId>
  580. <version>${netty.version}</version>
  581. </dependency>
  582. <dependency>
  583. <groupId>io.netty</groupId>
  584. <artifactId>netty-transport-native-epoll</artifactId>
  585. <version>${netty.version}</version>
  586. </dependency>
  587. <dependency>
  588. <groupId>org.eclipse.jetty</groupId>
  589. <artifactId>jetty-server</artifactId>
  590. <version>${jetty.version}</version>
  591. </dependency>
  592. <dependency>
  593. <groupId>org.eclipse.jetty</groupId>
  594. <artifactId>jetty-servlet</artifactId>
  595. <version>${jetty.version}</version>
  596. </dependency>
  597. <dependency>
  598. <groupId>org.eclipse.jetty</groupId>
  599. <artifactId>jetty-client</artifactId>
  600. <version>${jetty.version}</version>
  601. </dependency>
  602. <dependency>
  603. <groupId>io.dropwizard.metrics</groupId>
  604. <artifactId>metrics-core</artifactId>
  605. <version>${dropwizard.version}</version>
  606. <exclusions>
  607. <exclusion>
  608. <groupId>org.slf4j</groupId>
  609. <artifactId>slf4j-api</artifactId>
  610. </exclusion>
  611. </exclusions>
  612. </dependency>
  613. <dependency>
  614. <groupId>com.fasterxml.jackson.core</groupId>
  615. <artifactId>jackson-databind</artifactId>
  616. <version>${jackson.version}</version>
  617. </dependency>
  618. <dependency>
  619. <groupId>jline</groupId>
  620. <artifactId>jline</artifactId>
  621. <version>${jline.version}</version>
  622. </dependency>
  623. <dependency>
  624. <groupId>com.github.spotbugs</groupId>
  625. <artifactId>spotbugs-annotations</artifactId>
  626. <version>${spotbugsannotations.version}</version>
  627. <scope>provided</scope>
  628. <optional>true</optional>
  629. </dependency>
  630. <dependency>
  631. <groupId>org.xerial.snappy</groupId>
  632. <artifactId>snappy-java</artifactId>
  633. <version>${snappy.version}</version>
  634. </dependency>
  635. </dependencies>
  636. </dependencyManagement>
  637. <build>
  638. <pluginManagement>
  639. <plugins>
  640. <plugin>
  641. <groupId>org.apache.maven.plugins</groupId>
  642. <artifactId>maven-compiler-plugin</artifactId>
  643. <configuration>
  644. <showWarnings>true</showWarnings>
  645. <compilerArgs>
  646. <compilerArg>-Werror</compilerArg>
  647. <compilerArg>-Xlint:deprecation</compilerArg>
  648. <compilerArg>-Xlint:unchecked</compilerArg>
  649. <compilerArg>-Xlint:-options</compilerArg>
  650. <compilerArg>-Xdoclint:-missing</compilerArg>
  651. <!-- https://issues.apache.org/jira/browse/MCOMPILER-205 -->
  652. <compilerArg>-Xpkginfo:always</compilerArg>
  653. </compilerArgs>
  654. </configuration>
  655. </plugin>
  656. <plugin>
  657. <groupId>org.apache.maven.plugins</groupId>
  658. <artifactId>maven-jar-plugin</artifactId>
  659. <configuration>
  660. <archive>
  661. <manifestEntries>
  662. <Implementation-Build>${mvngit.commit.id}</Implementation-Build>
  663. </manifestEntries>
  664. </archive>
  665. </configuration>
  666. </plugin>
  667. <plugin>
  668. <groupId>org.apache.maven.plugins</groupId>
  669. <artifactId>maven-source-plugin</artifactId>
  670. </plugin>
  671. <plugin>
  672. <groupId>org.apache.maven.plugins</groupId>
  673. <artifactId>maven-javadoc-plugin</artifactId>
  674. <version>3.1.1</version>
  675. <configuration>
  676. <quiet>true</quiet>
  677. <doclint>none</doclint>
  678. </configuration>
  679. </plugin>
  680. <plugin>
  681. <groupId>org.apache.maven.plugins</groupId>
  682. <artifactId>maven-assembly-plugin</artifactId>
  683. </plugin>
  684. <plugin>
  685. <groupId>org.apache.maven.plugins</groupId>
  686. <artifactId>maven-release-plugin</artifactId>
  687. </plugin>
  688. <plugin>
  689. <groupId>org.apache.maven.plugins</groupId>
  690. <artifactId>maven-scm-plugin</artifactId>
  691. <version>1.11.2</version>
  692. </plugin>
  693. <plugin>
  694. <groupId>org.apache.maven.plugins</groupId>
  695. <artifactId>maven-surefire-plugin</artifactId>
  696. <configuration>
  697. <trimStackTrace>false</trimStackTrace>
  698. <redirectTestOutputToFile>${redirectTestOutputToFile}</redirectTestOutputToFile>
  699. </configuration>
  700. </plugin>
  701. <plugin>
  702. <groupId>org.apache.maven.plugins</groupId>
  703. <artifactId>maven-antrun-plugin</artifactId>
  704. </plugin>
  705. <plugin>
  706. <groupId>org.apache.maven.plugins</groupId>
  707. <artifactId>maven-dependency-plugin</artifactId>
  708. </plugin>
  709. <plugin>
  710. <groupId>org.codehaus.mojo</groupId>
  711. <artifactId>exec-maven-plugin</artifactId>
  712. <version>1.6.0</version>
  713. </plugin>
  714. <plugin>
  715. <groupId>com.github.koraktor</groupId>
  716. <artifactId>mavanagaiata</artifactId>
  717. <version>0.9.4</version>
  718. <configuration>
  719. <skipNoGit>true</skipNoGit>
  720. </configuration>
  721. </plugin>
  722. <plugin>
  723. <groupId>org.codehaus.mojo</groupId>
  724. <artifactId>build-helper-maven-plugin</artifactId>
  725. <version>3.0.0</version>
  726. </plugin>
  727. <plugin>
  728. <groupId>net.nicoulaj.maven.plugins</groupId>
  729. <artifactId>checksum-maven-plugin</artifactId>
  730. <version>1.8</version>
  731. </plugin>
  732. <plugin>
  733. <groupId>org.openclover</groupId>
  734. <artifactId>clover-maven-plugin</artifactId>
  735. <version>4.3.1</version>
  736. </plugin>
  737. <plugin>
  738. <groupId>com.github.spotbugs</groupId>
  739. <artifactId>spotbugs-maven-plugin</artifactId>
  740. <version>4.0.0</version>
  741. <configuration>
  742. <excludeFilterFile>excludeFindBugsFilter.xml</excludeFilterFile>
  743. </configuration>
  744. </plugin>
  745. <plugin>
  746. <groupId>org.owasp</groupId>
  747. <artifactId>dependency-check-maven</artifactId>
  748. <version>5.3.0</version>
  749. </plugin>
  750. <plugin>
  751. <groupId>org.apache.maven.plugins</groupId>
  752. <artifactId>maven-checkstyle-plugin</artifactId>
  753. <version>3.1.0</version>
  754. <dependencies>
  755. <dependency>
  756. <groupId>com.puppycrawl.tools</groupId>
  757. <artifactId>checkstyle</artifactId>
  758. <version>${checkstyle.version}</version>
  759. </dependency>
  760. </dependencies>
  761. <configuration>
  762. <configLocation>checkstyle-strict.xml</configLocation>
  763. <suppressionsLocation>checkstyleSuppressions.xml</suppressionsLocation>
  764. <encoding>UTF-8</encoding>
  765. <consoleOutput>true</consoleOutput>
  766. <failOnViolation>true</failOnViolation>
  767. <includeResources>false</includeResources>
  768. <includeTestResources>false</includeTestResources>
  769. <includeTestSourceDirectory>true</includeTestSourceDirectory>
  770. </configuration>
  771. <executions>
  772. <execution>
  773. <id>checkstyle</id>
  774. <phase>validate</phase>
  775. <goals>
  776. <goal>check</goal>
  777. </goals>
  778. </execution>
  779. </executions>
  780. </plugin>
  781. <!-- we don't need this plugin-->
  782. <plugin>
  783. <artifactId>maven-remote-resources-plugin</artifactId>
  784. <executions>
  785. <execution>
  786. <id>process-resource-bundles</id>
  787. <phase>none</phase>
  788. </execution>
  789. </executions>
  790. </plugin>
  791. </plugins>
  792. </pluginManagement>
  793. <plugins>
  794. <plugin>
  795. <groupId>com.github.koraktor</groupId>
  796. <artifactId>mavanagaiata</artifactId>
  797. <executions>
  798. <execution>
  799. <id>find-current-git-revision</id>
  800. <goals>
  801. <goal>commit</goal>
  802. </goals>
  803. <phase>validate</phase>
  804. </execution>
  805. </executions>
  806. </plugin>
  807. <plugin>
  808. <groupId>org.openclover</groupId>
  809. <artifactId>clover-maven-plugin</artifactId>
  810. <configuration>
  811. <generateHtml>true</generateHtml>
  812. <generateXml>true</generateXml>
  813. <includes>
  814. <include>org/apache/zookeeper/**/*</include>
  815. </includes>
  816. <excludes>
  817. <exclude>org/apache/zookeeper/version/**/*</exclude>
  818. </excludes>
  819. </configuration>
  820. <executions>
  821. <execution>
  822. <phase>pre-site</phase>
  823. <goals>
  824. <goal>instrument</goal>
  825. <goal>aggregate</goal>
  826. </goals>
  827. </execution>
  828. </executions>
  829. </plugin>
  830. <plugin>
  831. <groupId>org.apache.maven.plugins</groupId>
  832. <artifactId>maven-antrun-plugin</artifactId>
  833. <executions>
  834. <execution>
  835. <phase>validate</phase>
  836. <goals>
  837. <goal>run</goal>
  838. </goals>
  839. <configuration>
  840. <exportAntProperties>true</exportAntProperties>
  841. <target>
  842. <property environment="env" />
  843. <exec executable="hostname" outputproperty="host.name" />
  844. </target>
  845. </configuration>
  846. </execution>
  847. </executions>
  848. </plugin>
  849. <plugin>
  850. <groupId>org.apache.maven.plugins</groupId>
  851. <artifactId>maven-jar-plugin</artifactId>
  852. <executions>
  853. <execution>
  854. <id>Jar Tests Package</id>
  855. <phase>package</phase>
  856. <goals>
  857. <goal>test-jar</goal>
  858. </goals>
  859. <configuration>
  860. <includes>
  861. <include>org/**</include>
  862. <include>META_INF/**</include>
  863. </includes>
  864. <skipIfEmpty>true</skipIfEmpty>
  865. </configuration>
  866. </execution>
  867. </executions>
  868. </plugin>
  869. <plugin>
  870. <groupId>org.apache.maven.plugins</groupId>
  871. <artifactId>maven-source-plugin</artifactId>
  872. <executions>
  873. <execution>
  874. <id>attach-sources</id>
  875. <goals>
  876. <goal>jar</goal>
  877. </goals>
  878. </execution>
  879. </executions>
  880. </plugin>
  881. <plugin>
  882. <groupId>org.apache.maven.plugins</groupId>
  883. <artifactId>maven-javadoc-plugin</artifactId>
  884. <executions>
  885. <execution>
  886. <id>attach-javadocs</id>
  887. <goals>
  888. <goal>jar</goal>
  889. </goals>
  890. </execution>
  891. <execution>
  892. <id>aggregate</id>
  893. <phase>site</phase>
  894. <goals>
  895. <goal>aggregate</goal>
  896. </goals>
  897. </execution>
  898. </executions>
  899. <configuration>
  900. <overview>zookeeper-server/src/main/resources/overview.html</overview>
  901. <excludePackageNames>*.recipes.*</excludePackageNames>
  902. </configuration>
  903. </plugin>
  904. <plugin>
  905. <!-- Maven's deploy plugin only creates checksums during the deployment of the jar artifacts to repo. -->
  906. <!-- We also want to sign tarballs. Nicoulaj's plugin is the recommended solution by the community. -->
  907. <groupId>net.nicoulaj.maven.plugins</groupId>
  908. <artifactId>checksum-maven-plugin</artifactId>
  909. <executions>
  910. <execution>
  911. <goals>
  912. <goal>artifacts</goal>
  913. </goals>
  914. </execution>
  915. </executions>
  916. <configuration>
  917. <algorithms>
  918. <algorithm>SHA-512</algorithm>
  919. </algorithms>
  920. <appendFilename>true</appendFilename>
  921. </configuration>
  922. </plugin>
  923. <plugin>
  924. <groupId>com.github.spotbugs</groupId>
  925. <artifactId>spotbugs-maven-plugin</artifactId>
  926. </plugin>
  927. <plugin>
  928. <groupId>org.owasp</groupId>
  929. <artifactId>dependency-check-maven</artifactId>
  930. <configuration>
  931. <format>ALL</format>
  932. <failBuildOnCVSS>0</failBuildOnCVSS>
  933. <suppressionFiles>
  934. <suppressionsFile>owaspSuppressions.xml</suppressionsFile>
  935. </suppressionFiles>
  936. </configuration>
  937. </plugin>
  938. <plugin>
  939. <groupId>org.apache.rat</groupId>
  940. <artifactId>apache-rat-plugin</artifactId>
  941. <configuration>
  942. <excludes>
  943. <exclude>**/log4j.properties</exclude>
  944. <exclude>**/README.md</exclude>
  945. <exclude>**/findbugsExcludeFile.xml</exclude>
  946. <exclude>**/checkstyle-noframes-sorted.xsl</exclude>
  947. <exclude>**/configure.ac</exclude>
  948. <exclude>**/Makefile.am</exclude>
  949. <exclude>conf/zoo_sample.cfg</exclude>
  950. <exclude>conf/configuration.xsl</exclude>
  951. <exclude>.travis.yml</exclude>
  952. <exclude>excludeFindBugsFilter.xml</exclude>
  953. <exclude>README_packaging.md</exclude>
  954. <exclude>src/main/resources/markdown/skin/*</exclude>
  955. <exclude>src/main/resources/markdown/html/*</exclude>
  956. <exclude>src/main/resources/markdown/images/*</exclude>
  957. <exclude>**/src/test/resources/embedded/*.conf</exclude>
  958. <!-- contrib -->
  959. <exclude>**/JMX-RESOURCES</exclude>
  960. <exclude>**/src/main/resources/mainClasses</exclude>
  961. <exclude>**/Changes</exclude>
  962. <exclude>**/MANIFEST</exclude>
  963. <exclude>**/src/test/zoo.cfg</exclude>
  964. <exclude>**/src/main/resources/webapp/org/apache/zookeeper/graph/resources/*</exclude>
  965. <exclude>**/src/main/java/com/nitido/utils/toaster/Toaster.java</exclude>
  966. <exclude>**/TODO</exclude>
  967. <!-- c client -->
  968. <exclude>**/acinclude.m4</exclude>
  969. <exclude>**/aminclude.am</exclude>
  970. <exclude>**/src/hashtable/*</exclude>
  971. <exclude>**/include/winconfig.h</exclude>
  972. <exclude>**/tests/wrappers.opt</exclude>
  973. <exclude>**/tests/zoo.cfg</exclude>
  974. <exclude>**/tests/wrappers-mt.opt</exclude>
  975. <exclude>**/c-doc.Doxyfile</exclude>
  976. </excludes>
  977. <consoleOutput>true</consoleOutput>
  978. </configuration>
  979. </plugin>
  980. <plugin>
  981. <groupId>org.apache.maven.plugins</groupId>
  982. <artifactId>maven-release-plugin</artifactId>
  983. <inherited>false</inherited>
  984. <configuration>
  985. <!-- update the version inside the C sources -->
  986. <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>
  987. <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>
  988. <pushChanges>false</pushChanges>
  989. <localCheckout>true</localCheckout>
  990. <autoVersionSubmodules>true</autoVersionSubmodules>
  991. <tagNameFormat>release-@{project.version}</tagNameFormat>
  992. </configuration>
  993. </plugin>
  994. <plugin>
  995. <groupId>org.apache.maven.plugins</groupId>
  996. <artifactId>maven-scm-plugin</artifactId>
  997. <inherited>false</inherited>
  998. <executions>
  999. <execution>
  1000. <id>add-cclient-files-during-release</id>
  1001. <phase>none</phase>
  1002. <goals>
  1003. <goal>add</goal>
  1004. </goals>
  1005. <configuration>
  1006. <pushChanges>false</pushChanges>
  1007. <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>
  1008. </configuration>
  1009. </execution>
  1010. <execution>
  1011. <id>commit-cclient-files-during-release</id>
  1012. <phase>none</phase>
  1013. <goals>
  1014. <!-- git commit -->
  1015. <goal>checkin</goal>
  1016. </goals>
  1017. <configuration>
  1018. <pushChanges>false</pushChanges>
  1019. <message>Prepared ${project.version}</message>
  1020. </configuration>
  1021. </execution>
  1022. </executions>
  1023. </plugin>
  1024. <plugin>
  1025. <groupId>org.apache.maven.plugins</groupId>
  1026. <artifactId>maven-enforcer-plugin</artifactId>
  1027. <version>${enforcer.version}</version>
  1028. <executions>
  1029. <execution>
  1030. <id>banned-commons-lang</id>
  1031. <goals>
  1032. <goal>enforce</goal>
  1033. </goals>
  1034. <configuration>
  1035. <rules>
  1036. <bannedDependencies>
  1037. <excludes>
  1038. <exclude>commons-lang:commons-lang</exclude>
  1039. </excludes>
  1040. <searchTransitive>false</searchTransitive>
  1041. <message>We don't use commons-lang any more, so do not depend on it directly.</message>
  1042. </bannedDependencies>
  1043. </rules>
  1044. </configuration>
  1045. </execution>
  1046. <execution>
  1047. <id>banned-commons-lang3</id>
  1048. <goals>
  1049. <goal>enforce</goal>
  1050. </goals>
  1051. <configuration>
  1052. <rules>
  1053. <bannedDependencies>
  1054. <excludes>
  1055. <exclude>org.apache.commons:commons-lang3</exclude>
  1056. </excludes>
  1057. <searchTransitive>false</searchTransitive>
  1058. <message>We don't use commons-lang3, so do not depend on it directly.</message>
  1059. </bannedDependencies>
  1060. </rules>
  1061. </configuration>
  1062. </execution>
  1063. <execution>
  1064. <id>banned-json-simple</id>
  1065. <goals>
  1066. <goal>enforce</goal>
  1067. </goals>
  1068. <configuration>
  1069. <rules>
  1070. <bannedDependencies>
  1071. <excludes>
  1072. <exclude>com.googlecode.json-simple:json-simple</exclude>
  1073. </excludes>
  1074. <searchTransitive>false</searchTransitive>
  1075. <message>We don't use json-simple any more, so do not depend on it directly.</message>
  1076. </bannedDependencies>
  1077. </rules>
  1078. </configuration>
  1079. </execution>
  1080. </executions>
  1081. </plugin>
  1082. </plugins>
  1083. <resources>
  1084. <resource>
  1085. <directory>${project.basedir}src/main/java/resources</directory>
  1086. <excludes>
  1087. <exclude>**/*.*</exclude>
  1088. </excludes>
  1089. </resource>
  1090. </resources>
  1091. </build>
  1092. <reporting>
  1093. <plugins>
  1094. <plugin>
  1095. <groupId>org.openclover</groupId>
  1096. <artifactId>clover-maven-plugin</artifactId>
  1097. </plugin>
  1098. </plugins>
  1099. </reporting>
  1100. </project>