pom.xml 39 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106
  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. </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>3.6.28</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.1</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.39</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.1</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. </plugin>
  772. <!-- we don't need this plugin-->
  773. <plugin>
  774. <artifactId>maven-remote-resources-plugin</artifactId>
  775. <executions>
  776. <execution>
  777. <id>process-resource-bundles</id>
  778. <phase>none</phase>
  779. </execution>
  780. </executions>
  781. </plugin>
  782. </plugins>
  783. </pluginManagement>
  784. <plugins>
  785. <plugin>
  786. <groupId>com.github.koraktor</groupId>
  787. <artifactId>mavanagaiata</artifactId>
  788. <executions>
  789. <execution>
  790. <id>find-current-git-revision</id>
  791. <goals>
  792. <goal>commit</goal>
  793. </goals>
  794. <phase>validate</phase>
  795. </execution>
  796. </executions>
  797. </plugin>
  798. <plugin>
  799. <groupId>org.openclover</groupId>
  800. <artifactId>clover-maven-plugin</artifactId>
  801. <configuration>
  802. <generateHtml>true</generateHtml>
  803. <generateXml>true</generateXml>
  804. <includes>
  805. <include>org/apache/zookeeper/**/*</include>
  806. </includes>
  807. <excludes>
  808. <exclude>org/apache/zookeeper/version/**/*</exclude>
  809. </excludes>
  810. </configuration>
  811. <executions>
  812. <execution>
  813. <phase>pre-site</phase>
  814. <goals>
  815. <goal>instrument</goal>
  816. <goal>aggregate</goal>
  817. </goals>
  818. </execution>
  819. </executions>
  820. </plugin>
  821. <plugin>
  822. <groupId>org.apache.maven.plugins</groupId>
  823. <artifactId>maven-antrun-plugin</artifactId>
  824. <executions>
  825. <execution>
  826. <id>set-hostname-property</id>
  827. <phase>validate</phase>
  828. <goals>
  829. <goal>run</goal>
  830. </goals>
  831. <configuration>
  832. <exportAntProperties>true</exportAntProperties>
  833. <target>
  834. <property environment="env" />
  835. <exec executable="hostname" outputproperty="host.name" />
  836. </target>
  837. </configuration>
  838. </execution>
  839. </executions>
  840. </plugin>
  841. <plugin>
  842. <groupId>org.apache.maven.plugins</groupId>
  843. <artifactId>maven-jar-plugin</artifactId>
  844. <executions>
  845. <execution>
  846. <id>Jar Tests Package</id>
  847. <phase>package</phase>
  848. <goals>
  849. <goal>test-jar</goal>
  850. </goals>
  851. <configuration>
  852. <includes>
  853. <include>org/**</include>
  854. <include>META_INF/**</include>
  855. </includes>
  856. <skipIfEmpty>true</skipIfEmpty>
  857. </configuration>
  858. </execution>
  859. </executions>
  860. </plugin>
  861. <plugin>
  862. <groupId>org.apache.maven.plugins</groupId>
  863. <artifactId>maven-source-plugin</artifactId>
  864. <executions>
  865. <execution>
  866. <id>attach-sources</id>
  867. <goals>
  868. <goal>jar</goal>
  869. </goals>
  870. </execution>
  871. </executions>
  872. </plugin>
  873. <plugin>
  874. <groupId>org.apache.maven.plugins</groupId>
  875. <artifactId>maven-javadoc-plugin</artifactId>
  876. <executions>
  877. <execution>
  878. <id>attach-javadocs</id>
  879. <goals>
  880. <goal>jar</goal>
  881. </goals>
  882. </execution>
  883. <execution>
  884. <id>aggregate</id>
  885. <phase>site</phase>
  886. <goals>
  887. <goal>aggregate</goal>
  888. </goals>
  889. </execution>
  890. </executions>
  891. <configuration>
  892. <overview>zookeeper-server/src/main/resources/overview.html</overview>
  893. <excludePackageNames>*.recipes.*</excludePackageNames>
  894. </configuration>
  895. </plugin>
  896. <plugin>
  897. <!-- Maven's deploy plugin only creates checksums during the deployment of the jar artifacts to repo. -->
  898. <!-- We also want to sign tarballs. Nicoulaj's plugin is the recommended solution by the community. -->
  899. <groupId>net.nicoulaj.maven.plugins</groupId>
  900. <artifactId>checksum-maven-plugin</artifactId>
  901. <executions>
  902. <execution>
  903. <goals>
  904. <goal>artifacts</goal>
  905. </goals>
  906. </execution>
  907. </executions>
  908. <configuration>
  909. <algorithms>
  910. <algorithm>SHA-512</algorithm>
  911. </algorithms>
  912. <appendFilename>true</appendFilename>
  913. </configuration>
  914. </plugin>
  915. <plugin>
  916. <groupId>com.github.spotbugs</groupId>
  917. <artifactId>spotbugs-maven-plugin</artifactId>
  918. </plugin>
  919. <plugin>
  920. <groupId>org.owasp</groupId>
  921. <artifactId>dependency-check-maven</artifactId>
  922. <configuration>
  923. <format>ALL</format>
  924. <failBuildOnCVSS>0</failBuildOnCVSS>
  925. <suppressionFiles>
  926. <suppressionsFile>owaspSuppressions.xml</suppressionsFile>
  927. </suppressionFiles>
  928. </configuration>
  929. </plugin>
  930. <plugin>
  931. <groupId>org.apache.rat</groupId>
  932. <artifactId>apache-rat-plugin</artifactId>
  933. <configuration>
  934. <excludes>
  935. <exclude>**/log4j.properties</exclude>
  936. <exclude>**/README.md</exclude>
  937. <exclude>**/findbugsExcludeFile.xml</exclude>
  938. <exclude>**/checkstyle-noframes-sorted.xsl</exclude>
  939. <exclude>**/configure.ac</exclude>
  940. <exclude>**/Makefile.am</exclude>
  941. <exclude>conf/zoo_sample.cfg</exclude>
  942. <exclude>conf/configuration.xsl</exclude>
  943. <exclude>.travis.yml</exclude>
  944. <exclude>excludeFindBugsFilter.xml</exclude>
  945. <exclude>README_packaging.md</exclude>
  946. <exclude>src/main/resources/markdown/skin/*</exclude>
  947. <exclude>src/main/resources/markdown/html/*</exclude>
  948. <exclude>src/main/resources/markdown/images/*</exclude>
  949. <exclude>**/src/test/resources/embedded/*.conf</exclude>
  950. <!-- contrib -->
  951. <exclude>**/JMX-RESOURCES</exclude>
  952. <exclude>**/src/main/resources/mainClasses</exclude>
  953. <exclude>**/Changes</exclude>
  954. <exclude>**/MANIFEST</exclude>
  955. <exclude>**/src/test/zoo.cfg</exclude>
  956. <exclude>**/src/main/resources/webapp/org/apache/zookeeper/graph/resources/*</exclude>
  957. <exclude>**/src/main/java/com/nitido/utils/toaster/Toaster.java</exclude>
  958. <exclude>**/TODO</exclude>
  959. <!-- c client -->
  960. <exclude>**/acinclude.m4</exclude>
  961. <exclude>**/aminclude.am</exclude>
  962. <exclude>**/src/hashtable/*</exclude>
  963. <exclude>**/include/winconfig.h</exclude>
  964. <exclude>**/tests/wrappers.opt</exclude>
  965. <exclude>**/tests/zoo.cfg</exclude>
  966. <exclude>**/tests/wrappers-mt.opt</exclude>
  967. <exclude>**/c-doc.Doxyfile</exclude>
  968. </excludes>
  969. <consoleOutput>true</consoleOutput>
  970. </configuration>
  971. </plugin>
  972. <plugin>
  973. <groupId>org.apache.maven.plugins</groupId>
  974. <artifactId>maven-release-plugin</artifactId>
  975. <inherited>false</inherited>
  976. <configuration>
  977. <!-- update the version inside the C sources -->
  978. <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>
  979. <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>
  980. <pushChanges>false</pushChanges>
  981. <localCheckout>true</localCheckout>
  982. <autoVersionSubmodules>true</autoVersionSubmodules>
  983. <tagNameFormat>release-@{project.version}</tagNameFormat>
  984. </configuration>
  985. </plugin>
  986. <plugin>
  987. <groupId>org.apache.maven.plugins</groupId>
  988. <artifactId>maven-scm-plugin</artifactId>
  989. <inherited>false</inherited>
  990. <executions>
  991. <execution>
  992. <id>add-cclient-files-during-release</id>
  993. <phase>none</phase>
  994. <goals>
  995. <goal>add</goal>
  996. </goals>
  997. <configuration>
  998. <pushChanges>false</pushChanges>
  999. <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>
  1000. </configuration>
  1001. </execution>
  1002. <execution>
  1003. <id>commit-cclient-files-during-release</id>
  1004. <phase>none</phase>
  1005. <goals>
  1006. <!-- git commit -->
  1007. <goal>checkin</goal>
  1008. </goals>
  1009. <configuration>
  1010. <pushChanges>false</pushChanges>
  1011. <message>Prepared ${project.version}</message>
  1012. </configuration>
  1013. </execution>
  1014. </executions>
  1015. </plugin>
  1016. <plugin>
  1017. <groupId>org.apache.maven.plugins</groupId>
  1018. <artifactId>maven-enforcer-plugin</artifactId>
  1019. <version>${enforcer.version}</version>
  1020. <executions>
  1021. <execution>
  1022. <id>banned-commons-lang</id>
  1023. <goals>
  1024. <goal>enforce</goal>
  1025. </goals>
  1026. <configuration>
  1027. <rules>
  1028. <bannedDependencies>
  1029. <excludes>
  1030. <exclude>commons-lang:commons-lang</exclude>
  1031. </excludes>
  1032. <searchTransitive>false</searchTransitive>
  1033. <message>We don't use commons-lang any more, so do not depend on it directly.</message>
  1034. </bannedDependencies>
  1035. </rules>
  1036. </configuration>
  1037. </execution>
  1038. <execution>
  1039. <id>banned-commons-lang3</id>
  1040. <goals>
  1041. <goal>enforce</goal>
  1042. </goals>
  1043. <configuration>
  1044. <rules>
  1045. <bannedDependencies>
  1046. <excludes>
  1047. <exclude>org.apache.commons:commons-lang3</exclude>
  1048. </excludes>
  1049. <searchTransitive>false</searchTransitive>
  1050. <message>We don't use commons-lang3, so do not depend on it directly.</message>
  1051. </bannedDependencies>
  1052. </rules>
  1053. </configuration>
  1054. </execution>
  1055. <execution>
  1056. <id>banned-json-simple</id>
  1057. <goals>
  1058. <goal>enforce</goal>
  1059. </goals>
  1060. <configuration>
  1061. <rules>
  1062. <bannedDependencies>
  1063. <excludes>
  1064. <exclude>com.googlecode.json-simple:json-simple</exclude>
  1065. </excludes>
  1066. <searchTransitive>false</searchTransitive>
  1067. <message>We don't use json-simple any more, so do not depend on it directly.</message>
  1068. </bannedDependencies>
  1069. </rules>
  1070. </configuration>
  1071. </execution>
  1072. </executions>
  1073. </plugin>
  1074. </plugins>
  1075. <resources>
  1076. <resource>
  1077. <directory>${project.basedir}src/main/java/resources</directory>
  1078. <excludes>
  1079. <exclude>**/*.*</exclude>
  1080. </excludes>
  1081. </resource>
  1082. </resources>
  1083. </build>
  1084. <reporting>
  1085. <plugins>
  1086. <plugin>
  1087. <groupId>org.openclover</groupId>
  1088. <artifactId>clover-maven-plugin</artifactId>
  1089. </plugin>
  1090. </plugins>
  1091. </reporting>
  1092. </project>