pom.xml 37 KB

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