pom.xml 40 KB

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