pom.xml 41 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159
  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 -B release:update-versions -DdevelopmentVersion=3.6.0-SNAPSHOT -->
  34. <version>3.8.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. <developer>
  255. <id>nkalmar</id>
  256. <name>Norbert Kalmar</name>
  257. <email>nkalmar@apache.org</email>
  258. <timezone>+1</timezone>
  259. </developer>
  260. <developer>
  261. <id>enixon</id>
  262. <name>Brian Nixon</name>
  263. <email>enixon@apache.org</email>
  264. <timezone>-8</timezone>
  265. </developer>
  266. <developer>
  267. <id>symat</id>
  268. <name>Mate Szalay-Beko</name>
  269. <email>symat@apache.org</email>
  270. <timezone>+1</timezone>
  271. </developer>
  272. <developer>
  273. <id>ddiederen</id>
  274. <name>Damien Diederen</name>
  275. <email>ddiederen@apache.org</email>
  276. <timezone>Europe/Berlin</timezone>
  277. </developer>
  278. <developer>
  279. <id>maoling</id>
  280. <name>Ling Mao</name>
  281. <email>maoling@apache.org</email>
  282. <timezone>+8</timezone>
  283. </developer>
  284. </developers>
  285. <profiles>
  286. <profile>
  287. <id>full-build</id>
  288. <modules>
  289. <module>zookeeper-contrib</module>
  290. <!-- zookeeper-it needed by fatjar contrib -->
  291. <module>zookeeper-it</module>
  292. </modules>
  293. </profile>
  294. <profile>
  295. <!-- fatjar only profile; zookeeper-contrib will activate the fatjar in its pom -->
  296. <id>fatjar</id>
  297. <modules>
  298. <module>zookeeper-contrib</module>
  299. <!-- zookeeper-it needed by fatjar contrib -->
  300. <module>zookeeper-it</module>
  301. </modules>
  302. </profile>
  303. <profile>
  304. <id>apache-release</id>
  305. <build>
  306. <plugins>
  307. <plugin>
  308. <groupId>org.apache.maven.plugins</groupId>
  309. <artifactId>maven-assembly-plugin</artifactId>
  310. <dependencies>
  311. <dependency>
  312. <groupId>org.apache.apache.resources</groupId>
  313. <artifactId>apache-source-release-assembly-descriptor</artifactId>
  314. <version>1.0.6</version>
  315. </dependency>
  316. </dependencies>
  317. <executions>
  318. <execution>
  319. <id>source-release-assembly-tar-gz</id>
  320. <phase>initialize</phase>
  321. <goals>
  322. <goal>single</goal>
  323. </goals>
  324. <configuration>
  325. <runOnlyAtExecutionRoot>true</runOnlyAtExecutionRoot>
  326. <descriptorRefs>
  327. <!-- defined in Apache Parent Pom -->
  328. <descriptorRef>${sourceReleaseAssemblyDescriptor}</descriptorRef>
  329. </descriptorRefs>
  330. <finalName>apache-zookeeper-${project.version}</finalName>
  331. <appendAssemblyId>false</appendAssemblyId>
  332. <formats>
  333. <format>tar.gz</format>
  334. </formats>
  335. <tarLongFileMode>posix</tarLongFileMode>
  336. </configuration>
  337. </execution>
  338. </executions>
  339. </plugin>
  340. </plugins>
  341. </build>
  342. </profile>
  343. <profile>
  344. <id>m2e</id>
  345. <activation>
  346. <property>
  347. <name>m2e.version</name>
  348. </property>
  349. </activation>
  350. <properties>
  351. <maven.compiler.release>8</maven.compiler.release>
  352. </properties>
  353. <build>
  354. <pluginManagement>
  355. <plugins>
  356. <plugin>
  357. <groupId>org.eclipse.m2e</groupId>
  358. <artifactId>lifecycle-mapping</artifactId>
  359. <version>1.0.0</version>
  360. <configuration>
  361. <lifecycleMappingMetadata>
  362. <pluginExecutions>
  363. <pluginExecution>
  364. <pluginExecutionFilter>
  365. <groupId>org.codehaus.mojo</groupId>
  366. <artifactId>exec-maven-plugin</artifactId>
  367. <versionRange>[0,)</versionRange>
  368. <goals>
  369. <goal>exec</goal>
  370. </goals>
  371. </pluginExecutionFilter>
  372. <action>
  373. <ignore />
  374. </action>
  375. </pluginExecution>
  376. <pluginExecution>
  377. <pluginExecutionFilter>
  378. <groupId>org.apache.maven.plugins</groupId>
  379. <artifactId>maven-antrun-plugin</artifactId>
  380. <versionRange>[0,)</versionRange>
  381. <goals>
  382. <goal>run</goal>
  383. </goals>
  384. </pluginExecutionFilter>
  385. <action>
  386. <ignore />
  387. </action>
  388. </pluginExecution>
  389. <pluginExecution>
  390. <pluginExecutionFilter>
  391. <groupId>com.ruleoftech</groupId>
  392. <artifactId>markdown-page-generator-plugin</artifactId>
  393. <versionRange>[0,)</versionRange>
  394. <goals>
  395. <goal>generate</goal>
  396. </goals>
  397. </pluginExecutionFilter>
  398. <action>
  399. <ignore />
  400. </action>
  401. </pluginExecution>
  402. <pluginExecution>
  403. <pluginExecutionFilter>
  404. <groupId>org.codehaus.mojo</groupId>
  405. <artifactId>javacc-maven-plugin</artifactId>
  406. <versionRange>[0,)</versionRange>
  407. <goals>
  408. <goal>javacc</goal>
  409. </goals>
  410. </pluginExecutionFilter>
  411. <action>
  412. <ignore />
  413. </action>
  414. </pluginExecution>
  415. <pluginExecution>
  416. <pluginExecutionFilter>
  417. <groupId>com.github.koraktor</groupId>
  418. <artifactId>mavanagaiata</artifactId>
  419. <versionRange>[0,)</versionRange>
  420. <goals>
  421. <goal>commit</goal>
  422. </goals>
  423. </pluginExecutionFilter>
  424. <action>
  425. <ignore />
  426. </action>
  427. </pluginExecution>
  428. </pluginExecutions>
  429. </lifecycleMappingMetadata>
  430. </configuration>
  431. </plugin>
  432. </plugins>
  433. </pluginManagement>
  434. </build>
  435. </profile>
  436. <profile>
  437. <id>jdk-release-flag</id>
  438. <activation>
  439. <jdk>[9,)</jdk>
  440. </activation>
  441. <properties>
  442. <maven.compiler.release>8</maven.compiler.release>
  443. </properties>
  444. </profile>
  445. </profiles>
  446. <properties>
  447. <!-- maven properties -->
  448. <maven.compiler.source>1.8</maven.compiler.source>
  449. <maven.compiler.target>1.8</maven.compiler.target>
  450. <dependency.locations.enabled>false</dependency.locations.enabled>
  451. <surefire.version>2.22.1</surefire.version>
  452. <surefire-forkcount>8</surefire-forkcount>
  453. <redirectTestOutputToFile>true</redirectTestOutputToFile>
  454. <!-- dependency versions -->
  455. <slf4j.version>1.7.30</slf4j.version>
  456. <logback-version>1.2.10</logback-version>
  457. <audience-annotations.version>0.12.0</audience-annotations.version>
  458. <jmockit.version>1.48</jmockit.version>
  459. <junit.version>5.6.2</junit.version>
  460. <junit-platform.version>1.6.2</junit-platform.version>
  461. <log4j.version>1.2.17</log4j.version>
  462. <mockito.version>3.6.28</mockito.version>
  463. <hamcrest.version>2.2</hamcrest.version>
  464. <commons-cli.version>1.4</commons-cli.version>
  465. <netty.version>4.1.70.Final</netty.version>
  466. <jetty.version>9.4.43.v20210629</jetty.version>
  467. <jackson.version>2.13.1</jackson.version>
  468. <jline.version>2.14.6</jline.version>
  469. <snappy.version>1.1.7.7</snappy.version>
  470. <kerby.version>2.0.0</kerby.version>
  471. <bouncycastle.version>1.60</bouncycastle.version>
  472. <commons-collections.version>4.4</commons-collections.version>
  473. <dropwizard.version>4.1.12.1</dropwizard.version>
  474. <spotbugsannotations.version>4.0.2</spotbugsannotations.version>
  475. <checkstyle.version>8.39</checkstyle.version>
  476. <enforcer.version>3.0.0-M3</enforcer.version>
  477. <commons-io.version>2.11.0</commons-io.version>
  478. <!-- parameters to pass to C client build -->
  479. <c-client-openssl>yes</c-client-openssl>
  480. <c-client-sasl>yes</c-client-sasl>
  481. </properties>
  482. <dependencyManagement>
  483. <dependencies>
  484. <dependency>
  485. <groupId>org.hamcrest</groupId>
  486. <artifactId>hamcrest-library</artifactId>
  487. <version>${hamcrest.version}</version>
  488. </dependency>
  489. <dependency>
  490. <groupId>org.apache.commons</groupId>
  491. <artifactId>commons-collections4</artifactId>
  492. <version>${commons-collections.version}</version>
  493. </dependency>
  494. <dependency>
  495. <groupId>org.apache.yetus</groupId>
  496. <artifactId>audience-annotations</artifactId>
  497. <version>${audience-annotations.version}</version>
  498. </dependency>
  499. <dependency>
  500. <groupId>commons-cli</groupId>
  501. <artifactId>commons-cli</artifactId>
  502. <version>${commons-cli.version}</version>
  503. </dependency>
  504. <dependency>
  505. <groupId>org.apache.kerby</groupId>
  506. <artifactId>kerb-core</artifactId>
  507. <version>${kerby.version}</version>
  508. <exclusions>
  509. <exclusion>
  510. <groupId>org.slf4j</groupId>
  511. <artifactId>slf4j-api</artifactId>
  512. </exclusion>
  513. </exclusions>
  514. </dependency>
  515. <dependency>
  516. <groupId>org.apache.kerby</groupId>
  517. <artifactId>kerb-simplekdc</artifactId>
  518. <version>${kerby.version}</version>
  519. <exclusions>
  520. <exclusion>
  521. <groupId>org.slf4j</groupId>
  522. <artifactId>slf4j-api</artifactId>
  523. </exclusion>
  524. </exclusions>
  525. </dependency>
  526. <dependency>
  527. <groupId>org.apache.kerby</groupId>
  528. <artifactId>kerby-config</artifactId>
  529. <version>${kerby.version}</version>
  530. <exclusions>
  531. <exclusion>
  532. <groupId>org.slf4j</groupId>
  533. <artifactId>slf4j-api</artifactId>
  534. </exclusion>
  535. <exclusion>
  536. <groupId>org.slf4j</groupId>
  537. <artifactId>slf4j-log4j12</artifactId>
  538. </exclusion>
  539. </exclusions>
  540. </dependency>
  541. <dependency>
  542. <groupId>org.bouncycastle</groupId>
  543. <artifactId>bcprov-jdk15on</artifactId>
  544. <version>${bouncycastle.version}</version>
  545. </dependency>
  546. <dependency>
  547. <groupId>org.bouncycastle</groupId>
  548. <artifactId>bcpkix-jdk15on</artifactId>
  549. <version>${bouncycastle.version}</version>
  550. </dependency>
  551. <dependency>
  552. <groupId>org.slf4j</groupId>
  553. <artifactId>slf4j-api</artifactId>
  554. <version>${slf4j.version}</version>
  555. </dependency>
  556. <dependency>
  557. <groupId>org.slf4j</groupId>
  558. <artifactId>slf4j-log4j12</artifactId>
  559. <version>${slf4j.version}</version>
  560. <exclusions>
  561. <exclusion>
  562. <groupId>*</groupId>
  563. <artifactId>*</artifactId>
  564. </exclusion>
  565. </exclusions>
  566. </dependency>
  567. <dependency>
  568. <groupId>log4j</groupId>
  569. <artifactId>log4j</artifactId>
  570. <version>${log4j.version}</version>
  571. </dependency>
  572. <dependency>
  573. <groupId>ch.qos.logback</groupId>
  574. <artifactId>logback-core</artifactId>
  575. <version>${logback-version}</version>
  576. </dependency>
  577. <dependency>
  578. <groupId>ch.qos.logback</groupId>
  579. <artifactId>logback-classic</artifactId>
  580. <version>${logback-version}</version>
  581. </dependency>
  582. <dependency>
  583. <groupId>org.jmockit</groupId>
  584. <artifactId>jmockit</artifactId>
  585. <version>${jmockit.version}</version>
  586. </dependency>
  587. <dependency>
  588. <groupId>org.junit.jupiter</groupId>
  589. <artifactId>junit-jupiter-api</artifactId>
  590. <version>${junit.version}</version>
  591. </dependency>
  592. <dependency>
  593. <groupId>org.junit.jupiter</groupId>
  594. <artifactId>junit-jupiter-engine</artifactId>
  595. <version>${junit.version}</version>
  596. </dependency>
  597. <dependency>
  598. <groupId>org.junit.jupiter</groupId>
  599. <artifactId>junit-jupiter-params</artifactId>
  600. <version>${junit.version}</version>
  601. <scope>test</scope>
  602. </dependency>
  603. <dependency>
  604. <groupId>org.junit.platform</groupId>
  605. <artifactId>junit-platform-runner</artifactId>
  606. <version>${junit-platform.version}</version>
  607. <scope>test</scope>
  608. </dependency>
  609. <dependency>
  610. <groupId>org.junit.vintage</groupId>
  611. <artifactId>junit-vintage-engine</artifactId>
  612. <version>${junit.version}</version>
  613. </dependency>
  614. <dependency>
  615. <groupId>org.mockito</groupId>
  616. <artifactId>mockito-core</artifactId>
  617. <version>${mockito.version}</version>
  618. </dependency>
  619. <dependency>
  620. <groupId>io.netty</groupId>
  621. <artifactId>netty-handler</artifactId>
  622. <version>${netty.version}</version>
  623. </dependency>
  624. <dependency>
  625. <groupId>io.netty</groupId>
  626. <artifactId>netty-transport-native-epoll</artifactId>
  627. <version>${netty.version}</version>
  628. </dependency>
  629. <dependency>
  630. <groupId>org.eclipse.jetty</groupId>
  631. <artifactId>jetty-server</artifactId>
  632. <version>${jetty.version}</version>
  633. </dependency>
  634. <dependency>
  635. <groupId>org.eclipse.jetty</groupId>
  636. <artifactId>jetty-servlet</artifactId>
  637. <version>${jetty.version}</version>
  638. </dependency>
  639. <dependency>
  640. <groupId>org.eclipse.jetty</groupId>
  641. <artifactId>jetty-client</artifactId>
  642. <version>${jetty.version}</version>
  643. </dependency>
  644. <dependency>
  645. <groupId>io.dropwizard.metrics</groupId>
  646. <artifactId>metrics-core</artifactId>
  647. <version>${dropwizard.version}</version>
  648. <exclusions>
  649. <exclusion>
  650. <groupId>org.slf4j</groupId>
  651. <artifactId>slf4j-api</artifactId>
  652. </exclusion>
  653. </exclusions>
  654. </dependency>
  655. <dependency>
  656. <groupId>com.fasterxml.jackson.core</groupId>
  657. <artifactId>jackson-databind</artifactId>
  658. <version>${jackson.version}</version>
  659. </dependency>
  660. <dependency>
  661. <groupId>jline</groupId>
  662. <artifactId>jline</artifactId>
  663. <version>${jline.version}</version>
  664. </dependency>
  665. <dependency>
  666. <groupId>com.github.spotbugs</groupId>
  667. <artifactId>spotbugs-annotations</artifactId>
  668. <version>${spotbugsannotations.version}</version>
  669. <scope>provided</scope>
  670. <optional>true</optional>
  671. </dependency>
  672. <dependency>
  673. <groupId>org.xerial.snappy</groupId>
  674. <artifactId>snappy-java</artifactId>
  675. <version>${snappy.version}</version>
  676. </dependency>
  677. <dependency>
  678. <groupId>commons-io</groupId>
  679. <artifactId>commons-io</artifactId>
  680. <version>${commons-io.version}</version>
  681. </dependency>
  682. </dependencies>
  683. </dependencyManagement>
  684. <build>
  685. <pluginManagement>
  686. <plugins>
  687. <plugin>
  688. <groupId>org.apache.maven.plugins</groupId>
  689. <artifactId>maven-compiler-plugin</artifactId>
  690. <configuration>
  691. <showWarnings>true</showWarnings>
  692. <compilerArgs>
  693. <compilerArg>-Werror</compilerArg>
  694. <compilerArg>-Xlint:deprecation</compilerArg>
  695. <compilerArg>-Xlint:unchecked</compilerArg>
  696. <compilerArg>-Xlint:-options</compilerArg>
  697. <compilerArg>-Xdoclint:-missing</compilerArg>
  698. <!-- https://issues.apache.org/jira/browse/MCOMPILER-205 -->
  699. <compilerArg>-Xpkginfo:always</compilerArg>
  700. </compilerArgs>
  701. </configuration>
  702. </plugin>
  703. <plugin>
  704. <groupId>org.apache.maven.plugins</groupId>
  705. <artifactId>maven-jar-plugin</artifactId>
  706. <configuration>
  707. <archive>
  708. <manifestEntries>
  709. <Implementation-Build>${mvngit.commit.id}</Implementation-Build>
  710. </manifestEntries>
  711. </archive>
  712. </configuration>
  713. </plugin>
  714. <plugin>
  715. <groupId>org.apache.maven.plugins</groupId>
  716. <artifactId>maven-source-plugin</artifactId>
  717. </plugin>
  718. <plugin>
  719. <groupId>org.apache.maven.plugins</groupId>
  720. <artifactId>maven-javadoc-plugin</artifactId>
  721. <version>3.1.1</version>
  722. <configuration>
  723. <quiet>true</quiet>
  724. <doclint>none</doclint>
  725. </configuration>
  726. </plugin>
  727. <plugin>
  728. <groupId>org.apache.maven.plugins</groupId>
  729. <artifactId>maven-assembly-plugin</artifactId>
  730. <version>3.1.0</version>
  731. </plugin>
  732. <plugin>
  733. <groupId>org.apache.maven.plugins</groupId>
  734. <artifactId>maven-release-plugin</artifactId>
  735. </plugin>
  736. <plugin>
  737. <groupId>org.apache.maven.plugins</groupId>
  738. <artifactId>maven-scm-plugin</artifactId>
  739. <version>1.11.2</version>
  740. </plugin>
  741. <plugin>
  742. <groupId>org.apache.maven.plugins</groupId>
  743. <artifactId>maven-surefire-plugin</artifactId>
  744. <configuration>
  745. <trimStackTrace>false</trimStackTrace>
  746. <redirectTestOutputToFile>${redirectTestOutputToFile}</redirectTestOutputToFile>
  747. </configuration>
  748. </plugin>
  749. <plugin>
  750. <groupId>org.apache.maven.plugins</groupId>
  751. <artifactId>maven-antrun-plugin</artifactId>
  752. </plugin>
  753. <plugin>
  754. <groupId>org.apache.maven.plugins</groupId>
  755. <artifactId>maven-dependency-plugin</artifactId>
  756. </plugin>
  757. <plugin>
  758. <groupId>org.codehaus.mojo</groupId>
  759. <artifactId>exec-maven-plugin</artifactId>
  760. <version>1.6.0</version>
  761. </plugin>
  762. <plugin>
  763. <groupId>com.github.koraktor</groupId>
  764. <artifactId>mavanagaiata</artifactId>
  765. <version>0.9.4</version>
  766. <configuration>
  767. <skipNoGit>true</skipNoGit>
  768. </configuration>
  769. </plugin>
  770. <plugin>
  771. <groupId>org.codehaus.mojo</groupId>
  772. <artifactId>build-helper-maven-plugin</artifactId>
  773. <version>3.0.0</version>
  774. </plugin>
  775. <plugin>
  776. <groupId>net.nicoulaj.maven.plugins</groupId>
  777. <artifactId>checksum-maven-plugin</artifactId>
  778. <version>1.8</version>
  779. </plugin>
  780. <plugin>
  781. <groupId>org.openclover</groupId>
  782. <artifactId>clover-maven-plugin</artifactId>
  783. <version>4.3.1</version>
  784. </plugin>
  785. <plugin>
  786. <groupId>com.github.spotbugs</groupId>
  787. <artifactId>spotbugs-maven-plugin</artifactId>
  788. <version>4.0.0</version>
  789. <configuration>
  790. <excludeFilterFile>excludeFindBugsFilter.xml</excludeFilterFile>
  791. </configuration>
  792. </plugin>
  793. <plugin>
  794. <groupId>org.owasp</groupId>
  795. <artifactId>dependency-check-maven</artifactId>
  796. <version>5.3.0</version>
  797. </plugin>
  798. <plugin>
  799. <groupId>org.apache.maven.plugins</groupId>
  800. <artifactId>maven-checkstyle-plugin</artifactId>
  801. <version>3.1.1</version>
  802. <dependencies>
  803. <dependency>
  804. <groupId>com.puppycrawl.tools</groupId>
  805. <artifactId>checkstyle</artifactId>
  806. <version>${checkstyle.version}</version>
  807. </dependency>
  808. </dependencies>
  809. <configuration>
  810. <configLocation>checkstyle-strict.xml</configLocation>
  811. <suppressionsLocation>checkstyleSuppressions.xml</suppressionsLocation>
  812. <encoding>UTF-8</encoding>
  813. <consoleOutput>true</consoleOutput>
  814. <failOnViolation>true</failOnViolation>
  815. <includeResources>false</includeResources>
  816. <includeTestResources>false</includeTestResources>
  817. <includeTestSourceDirectory>true</includeTestSourceDirectory>
  818. </configuration>
  819. </plugin>
  820. <!-- we don't need this plugin-->
  821. <plugin>
  822. <artifactId>maven-remote-resources-plugin</artifactId>
  823. <executions>
  824. <execution>
  825. <id>process-resource-bundles</id>
  826. <phase>none</phase>
  827. </execution>
  828. </executions>
  829. </plugin>
  830. <plugin>
  831. <groupId>org.apache.felix</groupId>
  832. <artifactId>maven-bundle-plugin</artifactId>
  833. <version>5.1.1</version>
  834. </plugin>
  835. </plugins>
  836. </pluginManagement>
  837. <plugins>
  838. <plugin>
  839. <groupId>com.github.koraktor</groupId>
  840. <artifactId>mavanagaiata</artifactId>
  841. <executions>
  842. <execution>
  843. <id>find-current-git-revision</id>
  844. <goals>
  845. <goal>commit</goal>
  846. </goals>
  847. <phase>validate</phase>
  848. </execution>
  849. </executions>
  850. </plugin>
  851. <plugin>
  852. <groupId>org.openclover</groupId>
  853. <artifactId>clover-maven-plugin</artifactId>
  854. <configuration>
  855. <generateHtml>true</generateHtml>
  856. <generateXml>true</generateXml>
  857. <includes>
  858. <include>org/apache/zookeeper/**/*</include>
  859. </includes>
  860. <excludes>
  861. <exclude>org/apache/zookeeper/version/**/*</exclude>
  862. </excludes>
  863. </configuration>
  864. <executions>
  865. <execution>
  866. <phase>pre-site</phase>
  867. <goals>
  868. <goal>instrument</goal>
  869. <goal>aggregate</goal>
  870. </goals>
  871. </execution>
  872. </executions>
  873. </plugin>
  874. <plugin>
  875. <groupId>org.apache.maven.plugins</groupId>
  876. <artifactId>maven-antrun-plugin</artifactId>
  877. <executions>
  878. <execution>
  879. <id>set-hostname-property</id>
  880. <phase>validate</phase>
  881. <goals>
  882. <goal>run</goal>
  883. </goals>
  884. <configuration>
  885. <exportAntProperties>true</exportAntProperties>
  886. <target>
  887. <property environment="env" />
  888. <exec executable="hostname" outputproperty="host.name" />
  889. </target>
  890. </configuration>
  891. </execution>
  892. </executions>
  893. </plugin>
  894. <plugin>
  895. <groupId>org.apache.maven.plugins</groupId>
  896. <artifactId>maven-jar-plugin</artifactId>
  897. <executions>
  898. <execution>
  899. <id>Jar Tests Package</id>
  900. <phase>package</phase>
  901. <goals>
  902. <goal>test-jar</goal>
  903. </goals>
  904. <configuration>
  905. <includes>
  906. <include>org/**</include>
  907. <include>META_INF/**</include>
  908. </includes>
  909. <skipIfEmpty>true</skipIfEmpty>
  910. </configuration>
  911. </execution>
  912. </executions>
  913. </plugin>
  914. <plugin>
  915. <groupId>org.apache.maven.plugins</groupId>
  916. <artifactId>maven-source-plugin</artifactId>
  917. <executions>
  918. <execution>
  919. <id>attach-sources</id>
  920. <goals>
  921. <goal>jar</goal>
  922. </goals>
  923. </execution>
  924. </executions>
  925. </plugin>
  926. <plugin>
  927. <groupId>org.apache.maven.plugins</groupId>
  928. <artifactId>maven-javadoc-plugin</artifactId>
  929. <executions>
  930. <execution>
  931. <id>attach-javadocs</id>
  932. <goals>
  933. <goal>jar</goal>
  934. </goals>
  935. </execution>
  936. <execution>
  937. <id>aggregate</id>
  938. <phase>site</phase>
  939. <goals>
  940. <goal>aggregate</goal>
  941. </goals>
  942. </execution>
  943. </executions>
  944. <configuration>
  945. <overview>zookeeper-server/src/main/resources/overview.html</overview>
  946. <excludePackageNames>*.recipes.*</excludePackageNames>
  947. </configuration>
  948. </plugin>
  949. <plugin>
  950. <!-- Maven's deploy plugin only creates checksums during the deployment of the jar artifacts to repo. -->
  951. <!-- We also want to sign tarballs. Nicoulaj's plugin is the recommended solution by the community. -->
  952. <groupId>net.nicoulaj.maven.plugins</groupId>
  953. <artifactId>checksum-maven-plugin</artifactId>
  954. <executions>
  955. <execution>
  956. <goals>
  957. <goal>artifacts</goal>
  958. </goals>
  959. </execution>
  960. </executions>
  961. <configuration>
  962. <algorithms>
  963. <algorithm>SHA-512</algorithm>
  964. </algorithms>
  965. <appendFilename>true</appendFilename>
  966. </configuration>
  967. </plugin>
  968. <plugin>
  969. <groupId>com.github.spotbugs</groupId>
  970. <artifactId>spotbugs-maven-plugin</artifactId>
  971. </plugin>
  972. <plugin>
  973. <groupId>org.owasp</groupId>
  974. <artifactId>dependency-check-maven</artifactId>
  975. <configuration>
  976. <format>ALL</format>
  977. <failBuildOnCVSS>0</failBuildOnCVSS>
  978. <suppressionFiles>
  979. <suppressionsFile>owaspSuppressions.xml</suppressionsFile>
  980. </suppressionFiles>
  981. </configuration>
  982. </plugin>
  983. <plugin>
  984. <groupId>org.apache.rat</groupId>
  985. <artifactId>apache-rat-plugin</artifactId>
  986. <configuration>
  987. <excludes>
  988. <exclude>**/log4j.properties</exclude>
  989. <exclude>**/README.md</exclude>
  990. <exclude>**/findbugsExcludeFile.xml</exclude>
  991. <exclude>**/checkstyle-noframes-sorted.xsl</exclude>
  992. <exclude>**/configure.ac</exclude>
  993. <exclude>**/Makefile.am</exclude>
  994. <exclude>conf/zoo_sample.cfg</exclude>
  995. <exclude>conf/configuration.xsl</exclude>
  996. <exclude>.travis.yml</exclude>
  997. <exclude>excludeFindBugsFilter.xml</exclude>
  998. <exclude>README_packaging.md</exclude>
  999. <exclude>src/main/resources/markdown/skin/*</exclude>
  1000. <exclude>src/main/resources/markdown/html/*</exclude>
  1001. <exclude>src/main/resources/markdown/images/*</exclude>
  1002. <exclude>**/src/test/resources/embedded/*.conf</exclude>
  1003. <!-- contrib -->
  1004. <exclude>**/JMX-RESOURCES</exclude>
  1005. <exclude>**/src/main/resources/mainClasses</exclude>
  1006. <exclude>**/Changes</exclude>
  1007. <exclude>**/MANIFEST</exclude>
  1008. <exclude>**/src/test/zoo.cfg</exclude>
  1009. <exclude>**/src/main/resources/webapp/org/apache/zookeeper/graph/resources/*</exclude>
  1010. <exclude>**/src/main/java/com/nitido/utils/toaster/Toaster.java</exclude>
  1011. <exclude>**/TODO</exclude>
  1012. <!-- c client -->
  1013. <exclude>**/acinclude.m4</exclude>
  1014. <exclude>**/aminclude.am</exclude>
  1015. <exclude>**/src/hashtable/*</exclude>
  1016. <exclude>**/include/winconfig.h</exclude>
  1017. <exclude>**/tests/wrappers.opt</exclude>
  1018. <exclude>**/tests/zoo.cfg</exclude>
  1019. <exclude>**/tests/wrappers-mt.opt</exclude>
  1020. <exclude>**/c-doc.Doxyfile</exclude>
  1021. </excludes>
  1022. <consoleOutput>true</consoleOutput>
  1023. </configuration>
  1024. </plugin>
  1025. <plugin>
  1026. <groupId>org.apache.maven.plugins</groupId>
  1027. <artifactId>maven-release-plugin</artifactId>
  1028. <inherited>false</inherited>
  1029. <configuration>
  1030. <!-- update the version inside the C sources -->
  1031. <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>
  1032. <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>
  1033. <pushChanges>false</pushChanges>
  1034. <localCheckout>true</localCheckout>
  1035. <autoVersionSubmodules>true</autoVersionSubmodules>
  1036. <tagNameFormat>release-@{project.version}</tagNameFormat>
  1037. </configuration>
  1038. </plugin>
  1039. <plugin>
  1040. <groupId>org.apache.maven.plugins</groupId>
  1041. <artifactId>maven-scm-plugin</artifactId>
  1042. <inherited>false</inherited>
  1043. <executions>
  1044. <execution>
  1045. <id>add-cclient-files-during-release</id>
  1046. <phase>none</phase>
  1047. <goals>
  1048. <goal>add</goal>
  1049. </goals>
  1050. <configuration>
  1051. <pushChanges>false</pushChanges>
  1052. <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>
  1053. </configuration>
  1054. </execution>
  1055. <execution>
  1056. <id>commit-cclient-files-during-release</id>
  1057. <phase>none</phase>
  1058. <goals>
  1059. <!-- git commit -->
  1060. <goal>checkin</goal>
  1061. </goals>
  1062. <configuration>
  1063. <pushChanges>false</pushChanges>
  1064. <message>Prepared ${project.version}</message>
  1065. </configuration>
  1066. </execution>
  1067. </executions>
  1068. </plugin>
  1069. <plugin>
  1070. <groupId>org.apache.maven.plugins</groupId>
  1071. <artifactId>maven-enforcer-plugin</artifactId>
  1072. <version>${enforcer.version}</version>
  1073. <executions>
  1074. <execution>
  1075. <id>banned-commons-lang</id>
  1076. <goals>
  1077. <goal>enforce</goal>
  1078. </goals>
  1079. <configuration>
  1080. <rules>
  1081. <bannedDependencies>
  1082. <excludes>
  1083. <exclude>commons-lang:commons-lang</exclude>
  1084. </excludes>
  1085. <searchTransitive>false</searchTransitive>
  1086. <message>We don't use commons-lang any more, so do not depend on it directly.</message>
  1087. </bannedDependencies>
  1088. </rules>
  1089. </configuration>
  1090. </execution>
  1091. <execution>
  1092. <id>banned-commons-lang3</id>
  1093. <goals>
  1094. <goal>enforce</goal>
  1095. </goals>
  1096. <configuration>
  1097. <rules>
  1098. <bannedDependencies>
  1099. <excludes>
  1100. <exclude>org.apache.commons:commons-lang3</exclude>
  1101. </excludes>
  1102. <searchTransitive>false</searchTransitive>
  1103. <message>We don't use commons-lang3, so do not depend on it directly.</message>
  1104. </bannedDependencies>
  1105. </rules>
  1106. </configuration>
  1107. </execution>
  1108. <execution>
  1109. <id>banned-json-simple</id>
  1110. <goals>
  1111. <goal>enforce</goal>
  1112. </goals>
  1113. <configuration>
  1114. <rules>
  1115. <bannedDependencies>
  1116. <excludes>
  1117. <exclude>com.googlecode.json-simple:json-simple</exclude>
  1118. </excludes>
  1119. <searchTransitive>false</searchTransitive>
  1120. <message>We don't use json-simple any more, so do not depend on it directly.</message>
  1121. </bannedDependencies>
  1122. </rules>
  1123. </configuration>
  1124. </execution>
  1125. </executions>
  1126. </plugin>
  1127. </plugins>
  1128. <resources>
  1129. <resource>
  1130. <directory>${project.basedir}src/main/java/resources</directory>
  1131. <excludes>
  1132. <exclude>**/*.*</exclude>
  1133. </excludes>
  1134. </resource>
  1135. </resources>
  1136. </build>
  1137. <reporting>
  1138. <plugins>
  1139. <plugin>
  1140. <groupId>org.openclover</groupId>
  1141. <artifactId>clover-maven-plugin</artifactId>
  1142. </plugin>
  1143. </plugins>
  1144. </reporting>
  1145. </project>