pom.xml 39 KB

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