pom.xml 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936
  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>21</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/S-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. </modules>
  260. </profile>
  261. <profile>
  262. <id>java-build</id>
  263. <activation>
  264. <activeByDefault>true</activeByDefault>
  265. </activation>
  266. </profile>
  267. <profile>
  268. <id>apache-release</id>
  269. <build>
  270. <plugins>
  271. <plugin>
  272. <groupId>org.apache.maven.plugins</groupId>
  273. <artifactId>maven-assembly-plugin</artifactId>
  274. <dependencies>
  275. <dependency>
  276. <groupId>org.apache.apache.resources</groupId>
  277. <artifactId>apache-source-release-assembly-descriptor</artifactId>
  278. <version>1.0.6</version>
  279. </dependency>
  280. </dependencies>
  281. <executions>
  282. <execution>
  283. <id>source-release-assembly-tar-gz</id>
  284. <phase>package</phase>
  285. <goals>
  286. <goal>single</goal>
  287. </goals>
  288. <configuration>
  289. <runOnlyAtExecutionRoot>true</runOnlyAtExecutionRoot>
  290. <descriptorRefs>
  291. <!-- defined in Apache Parent Pom -->
  292. <descriptorRef>${sourceReleaseAssemblyDescriptor}</descriptorRef>
  293. </descriptorRefs>
  294. <finalName>apache-zookeeper-${project.version}</finalName>
  295. <formats>
  296. <format>tar.gz</format>
  297. </formats>
  298. <tarLongFileMode>posix</tarLongFileMode>
  299. </configuration>
  300. </execution>
  301. </executions>
  302. </plugin>
  303. </plugins>
  304. </build>
  305. </profile>
  306. </profiles>
  307. <properties>
  308. <!-- maven properties -->
  309. <maven.compiler.source>1.8</maven.compiler.source>
  310. <maven.compiler.target>1.8</maven.compiler.target>
  311. <dependency.locations.enabled>false</dependency.locations.enabled>
  312. <surefire-forkcount>8</surefire-forkcount>
  313. <!-- dependency versions -->
  314. <slf4j.version>1.7.25</slf4j.version>
  315. <audience-annotations.version>0.5.0</audience-annotations.version>
  316. <jmockit.version>1.48</jmockit.version>
  317. <junit.version>4.12</junit.version>
  318. <log4j.version>1.2.17</log4j.version>
  319. <mockito.version>2.27.0</mockito.version>
  320. <hamcrest.version>1.3</hamcrest.version>
  321. <commons-cli.version>1.2</commons-cli.version>
  322. <netty.version>4.1.42.Final</netty.version>
  323. <jetty.version>9.4.24.v20191120</jetty.version>
  324. <jackson.version>2.9.10.2</jackson.version>
  325. <json.version>1.1.1</json.version>
  326. <jline.version>2.11</jline.version>
  327. <snappy.version>1.1.7</snappy.version>
  328. <kerby.version>1.1.0</kerby.version>
  329. <bouncycastle.version>1.60</bouncycastle.version>
  330. <commons-collections.version>3.2.2</commons-collections.version>
  331. <commons-lang.version>2.6</commons-lang.version>
  332. <dropwizard.version>3.2.5</dropwizard.version>
  333. <spotbugsannotations.version>3.1.9</spotbugsannotations.version>
  334. <checkstyle.version>8.17</checkstyle.version>
  335. <!-- parameters to pass to C client build -->
  336. <c-client-openssl>yes</c-client-openssl>
  337. <c-client-sasl>yes</c-client-sasl>
  338. </properties>
  339. <dependencyManagement>
  340. <dependencies>
  341. <dependency>
  342. <groupId>org.hamcrest</groupId>
  343. <artifactId>hamcrest-all</artifactId>
  344. <version>${hamcrest.version}</version>
  345. </dependency>
  346. <dependency>
  347. <groupId>commons-collections</groupId>
  348. <artifactId>commons-collections</artifactId>
  349. <version>${commons-collections.version}</version>
  350. </dependency>
  351. <dependency>
  352. <groupId>commons-lang</groupId>
  353. <artifactId>commons-lang</artifactId>
  354. <version>${commons-lang.version}</version>
  355. </dependency>
  356. <dependency>
  357. <groupId>org.apache.yetus</groupId>
  358. <artifactId>audience-annotations</artifactId>
  359. <version>${audience-annotations.version}</version>
  360. </dependency>
  361. <dependency>
  362. <groupId>commons-cli</groupId>
  363. <artifactId>commons-cli</artifactId>
  364. <version>${commons-cli.version}</version>
  365. </dependency>
  366. <dependency>
  367. <groupId>org.apache.kerby</groupId>
  368. <artifactId>kerb-core</artifactId>
  369. <version>${kerby.version}</version>
  370. <exclusions>
  371. <exclusion>
  372. <groupId>org.slf4j</groupId>
  373. <artifactId>slf4j-api</artifactId>
  374. </exclusion>
  375. </exclusions>
  376. </dependency>
  377. <dependency>
  378. <groupId>org.apache.kerby</groupId>
  379. <artifactId>kerb-simplekdc</artifactId>
  380. <version>${kerby.version}</version>
  381. <exclusions>
  382. <exclusion>
  383. <groupId>org.slf4j</groupId>
  384. <artifactId>slf4j-api</artifactId>
  385. </exclusion>
  386. </exclusions>
  387. </dependency>
  388. <dependency>
  389. <groupId>org.apache.kerby</groupId>
  390. <artifactId>kerby-config</artifactId>
  391. <version>${kerby.version}</version>
  392. <exclusions>
  393. <exclusion>
  394. <groupId>org.slf4j</groupId>
  395. <artifactId>slf4j-api</artifactId>
  396. </exclusion>
  397. <exclusion>
  398. <groupId>org.slf4j</groupId>
  399. <artifactId>slf4j-log4j12</artifactId>
  400. </exclusion>
  401. </exclusions>
  402. </dependency>
  403. <dependency>
  404. <groupId>org.bouncycastle</groupId>
  405. <artifactId>bcprov-jdk15on</artifactId>
  406. <version>${bouncycastle.version}</version>
  407. </dependency>
  408. <dependency>
  409. <groupId>org.bouncycastle</groupId>
  410. <artifactId>bcpkix-jdk15on</artifactId>
  411. <version>${bouncycastle.version}</version>
  412. </dependency>
  413. <dependency>
  414. <groupId>org.slf4j</groupId>
  415. <artifactId>slf4j-api</artifactId>
  416. <version>${slf4j.version}</version>
  417. </dependency>
  418. <dependency>
  419. <groupId>org.slf4j</groupId>
  420. <artifactId>slf4j-log4j12</artifactId>
  421. <version>${slf4j.version}</version>
  422. <exclusions>
  423. <exclusion>
  424. <groupId>*</groupId>
  425. <artifactId>*</artifactId>
  426. </exclusion>
  427. </exclusions>
  428. </dependency>
  429. <dependency>
  430. <groupId>log4j</groupId>
  431. <artifactId>log4j</artifactId>
  432. <version>${log4j.version}</version>
  433. </dependency>
  434. <dependency>
  435. <groupId>org.jmockit</groupId>
  436. <artifactId>jmockit</artifactId>
  437. <version>${jmockit.version}</version>
  438. </dependency>
  439. <dependency>
  440. <groupId>junit</groupId>
  441. <artifactId>junit</artifactId>
  442. <version>${junit.version}</version>
  443. </dependency>
  444. <dependency>
  445. <groupId>org.mockito</groupId>
  446. <artifactId>mockito-core</artifactId>
  447. <version>${mockito.version}</version>
  448. </dependency>
  449. <dependency>
  450. <groupId>io.netty</groupId>
  451. <artifactId>netty-handler</artifactId>
  452. <version>${netty.version}</version>
  453. </dependency>
  454. <dependency>
  455. <groupId>io.netty</groupId>
  456. <artifactId>netty-transport-native-epoll</artifactId>
  457. <version>${netty.version}</version>
  458. </dependency>
  459. <dependency>
  460. <groupId>org.eclipse.jetty</groupId>
  461. <artifactId>jetty-server</artifactId>
  462. <version>${jetty.version}</version>
  463. </dependency>
  464. <dependency>
  465. <groupId>org.eclipse.jetty</groupId>
  466. <artifactId>jetty-servlet</artifactId>
  467. <version>${jetty.version}</version>
  468. </dependency>
  469. <dependency>
  470. <groupId>io.dropwizard.metrics</groupId>
  471. <artifactId>metrics-core</artifactId>
  472. <version>${dropwizard.version}</version>
  473. <exclusions>
  474. <exclusion>
  475. <groupId>org.slf4j</groupId>
  476. <artifactId>slf4j-api</artifactId>
  477. </exclusion>
  478. </exclusions>
  479. </dependency>
  480. <dependency>
  481. <groupId>com.fasterxml.jackson.core</groupId>
  482. <artifactId>jackson-databind</artifactId>
  483. <version>${jackson.version}</version>
  484. </dependency>
  485. <dependency>
  486. <groupId>com.googlecode.json-simple</groupId>
  487. <artifactId>json-simple</artifactId>
  488. <version>${json.version}</version>
  489. <exclusions>
  490. <exclusion>
  491. <groupId>junit</groupId>
  492. <artifactId>junit</artifactId>
  493. </exclusion>
  494. </exclusions>
  495. </dependency>
  496. <dependency>
  497. <groupId>jline</groupId>
  498. <artifactId>jline</artifactId>
  499. <version>${jline.version}</version>
  500. </dependency>
  501. <dependency>
  502. <groupId>com.github.spotbugs</groupId>
  503. <artifactId>spotbugs-annotations</artifactId>
  504. <version>${spotbugsannotations.version}</version>
  505. <scope>provided</scope>
  506. <optional>true</optional>
  507. </dependency>
  508. <dependency>
  509. <groupId>org.xerial.snappy</groupId>
  510. <artifactId>snappy-java</artifactId>
  511. <version>${snappy.version}</version>
  512. </dependency>
  513. </dependencies>
  514. </dependencyManagement>
  515. <build>
  516. <pluginManagement>
  517. <plugins>
  518. <plugin>
  519. <groupId>org.codehaus.mojo</groupId>
  520. <artifactId>properties-maven-plugin</artifactId>
  521. <version>1.0.0</version>
  522. </plugin>
  523. <plugin>
  524. <groupId>org.apache.maven.plugins</groupId>
  525. <artifactId>maven-compiler-plugin</artifactId>
  526. <version>3.8.0</version>
  527. <configuration>
  528. <showWarnings>true</showWarnings>
  529. <compilerArgs>
  530. <compilerArg>-Werror</compilerArg>
  531. <compilerArg>-Xlint:deprecation</compilerArg>
  532. <compilerArg>-Xlint:unchecked</compilerArg>
  533. <compilerArg>-Xlint:-options</compilerArg>
  534. <compilerArg>-Xdoclint:-missing</compilerArg>
  535. <!-- https://issues.apache.org/jira/browse/MCOMPILER-205 -->
  536. <compilerArg>-Xpkginfo:always</compilerArg>
  537. </compilerArgs>
  538. </configuration>
  539. </plugin>
  540. <plugin>
  541. <groupId>org.apache.maven.plugins</groupId>
  542. <artifactId>maven-jar-plugin</artifactId>
  543. <version>3.1.0</version>
  544. </plugin>
  545. <plugin>
  546. <groupId>org.apache.maven.plugins</groupId>
  547. <artifactId>maven-source-plugin</artifactId>
  548. <version>3.0.1</version>
  549. </plugin>
  550. <plugin>
  551. <groupId>org.apache.maven.plugins</groupId>
  552. <artifactId>maven-javadoc-plugin</artifactId>
  553. <version>3.0.1</version>
  554. <configuration>
  555. <doclint>none</doclint>
  556. </configuration>
  557. </plugin>
  558. <plugin>
  559. <groupId>org.apache.maven.plugins</groupId>
  560. <artifactId>maven-assembly-plugin</artifactId>
  561. <version>3.1.0</version>
  562. </plugin>
  563. <plugin>
  564. <groupId>org.apache.maven.plugins</groupId>
  565. <artifactId>maven-release-plugin</artifactId>
  566. <version>2.5.3</version>
  567. </plugin>
  568. <plugin>
  569. <groupId>org.apache.maven.plugins</groupId>
  570. <artifactId>maven-scm-plugin</artifactId>
  571. <version>1.11.2</version>
  572. </plugin>
  573. <plugin>
  574. <groupId>org.apache.maven.plugins</groupId>
  575. <artifactId>maven-surefire-plugin</artifactId>
  576. <version>2.22.1</version>
  577. </plugin>
  578. <plugin>
  579. <groupId>org.apache.maven.plugins</groupId>
  580. <artifactId>maven-antrun-plugin</artifactId>
  581. <version>1.8</version>
  582. </plugin>
  583. <plugin>
  584. <groupId>org.apache.maven.plugins</groupId>
  585. <artifactId>maven-dependency-plugin</artifactId>
  586. <version>3.1.1</version>
  587. </plugin>
  588. <plugin>
  589. <groupId>org.codehaus.mojo</groupId>
  590. <artifactId>exec-maven-plugin</artifactId>
  591. <version>1.6.0</version>
  592. </plugin>
  593. <plugin>
  594. <groupId>pl.project13.maven</groupId>
  595. <artifactId>git-commit-id-plugin</artifactId>
  596. <version>2.2.5</version>
  597. <inherited>false</inherited>
  598. </plugin>
  599. <plugin>
  600. <groupId>org.codehaus.mojo</groupId>
  601. <artifactId>build-helper-maven-plugin</artifactId>
  602. <version>3.0.0</version>
  603. </plugin>
  604. <plugin>
  605. <groupId>net.nicoulaj.maven.plugins</groupId>
  606. <artifactId>checksum-maven-plugin</artifactId>
  607. <version>1.8</version>
  608. </plugin>
  609. <plugin>
  610. <groupId>org.openclover</groupId>
  611. <artifactId>clover-maven-plugin</artifactId>
  612. <version>4.3.1</version>
  613. </plugin>
  614. <plugin>
  615. <groupId>com.github.spotbugs</groupId>
  616. <artifactId>spotbugs-maven-plugin</artifactId>
  617. <version>3.1.9</version>
  618. <configuration>
  619. <excludeFilterFile>excludeFindBugsFilter.xml</excludeFilterFile>
  620. </configuration>
  621. </plugin>
  622. <plugin>
  623. <groupId>org.owasp</groupId>
  624. <artifactId>dependency-check-maven</artifactId>
  625. <version>5.3.0</version>
  626. </plugin>
  627. <plugin>
  628. <groupId>org.apache.maven.plugins</groupId>
  629. <artifactId>maven-checkstyle-plugin</artifactId>
  630. <version>3.1.0</version>
  631. <dependencies>
  632. <dependency>
  633. <groupId>com.puppycrawl.tools</groupId>
  634. <artifactId>checkstyle</artifactId>
  635. <version>${checkstyle.version}</version>
  636. </dependency>
  637. </dependencies>
  638. <configuration>
  639. <configLocation>checkstyle-strict.xml</configLocation>
  640. <suppressionsLocation>checkstyleSuppressions.xml</suppressionsLocation>
  641. <encoding>UTF-8</encoding>
  642. <consoleOutput>true</consoleOutput>
  643. <failOnViolation>true</failOnViolation>
  644. <includeResources>false</includeResources>
  645. <includeTestResources>false</includeTestResources>
  646. <includeTestSourceDirectory>true</includeTestSourceDirectory>
  647. </configuration>
  648. <executions>
  649. <execution>
  650. <id>checkstyle</id>
  651. <phase>validate</phase>
  652. <goals>
  653. <goal>check</goal>
  654. </goals>
  655. </execution>
  656. </executions>
  657. </plugin>
  658. </plugins>
  659. </pluginManagement>
  660. <plugins>
  661. <plugin>
  662. <groupId>pl.project13.maven</groupId>
  663. <artifactId>git-commit-id-plugin</artifactId>
  664. <executions>
  665. <execution>
  666. <id>find-current-git-revision</id>
  667. <goals>
  668. <goal>revision</goal>
  669. </goals>
  670. <phase>validate</phase>
  671. </execution>
  672. </executions>
  673. <configuration>
  674. <skipPoms>false</skipPoms>
  675. <runOnlyOnce>true</runOnlyOnce>
  676. <failOnNoGitDirectory>false</failOnNoGitDirectory>
  677. <dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
  678. <prefix>git</prefix>
  679. <verbose>false</verbose>
  680. <generateGitPropertiesFile>true</generateGitPropertiesFile>
  681. <generateGitPropertiesFilename>${project.basedir}/zookeeper-server/src/main/resources/git.properties</generateGitPropertiesFilename>
  682. <format>properties</format>
  683. <gitDescribe>
  684. <skip>false</skip>
  685. <always>false</always>
  686. <dirty>-dirty</dirty>
  687. </gitDescribe>
  688. </configuration>
  689. </plugin>
  690. <plugin>
  691. <groupId>org.openclover</groupId>
  692. <artifactId>clover-maven-plugin</artifactId>
  693. <configuration>
  694. <generateHtml>true</generateHtml>
  695. <generateXml>true</generateXml>
  696. <includes>
  697. <include>org/apache/zookeeper/**/*</include>
  698. </includes>
  699. <excludes>
  700. <exclude>org/apache/zookeeper/version/**/*</exclude>
  701. </excludes>
  702. </configuration>
  703. <executions>
  704. <execution>
  705. <phase>pre-site</phase>
  706. <goals>
  707. <goal>instrument</goal>
  708. <goal>aggregate</goal>
  709. </goals>
  710. </execution>
  711. </executions>
  712. </plugin>
  713. <plugin>
  714. <groupId>org.apache.maven.plugins</groupId>
  715. <artifactId>maven-antrun-plugin</artifactId>
  716. <executions>
  717. <execution>
  718. <phase>validate</phase>
  719. <goals>
  720. <goal>run</goal>
  721. </goals>
  722. <configuration>
  723. <exportAntProperties>true</exportAntProperties>
  724. <target>
  725. <property environment="env" />
  726. <exec executable="hostname" outputproperty="host.name" />
  727. </target>
  728. </configuration>
  729. </execution>
  730. </executions>
  731. </plugin>
  732. <plugin>
  733. <groupId>org.apache.maven.plugins</groupId>
  734. <artifactId>maven-jar-plugin</artifactId>
  735. <executions>
  736. <execution>
  737. <id>Jar Tests Package</id>
  738. <phase>package</phase>
  739. <goals>
  740. <goal>test-jar</goal>
  741. </goals>
  742. <configuration>
  743. <includes>
  744. <include>org/**</include>
  745. <include>META_INF/**</include>
  746. </includes>
  747. <skipIfEmpty>true</skipIfEmpty>
  748. </configuration>
  749. </execution>
  750. </executions>
  751. </plugin>
  752. <plugin>
  753. <groupId>org.apache.maven.plugins</groupId>
  754. <artifactId>maven-source-plugin</artifactId>
  755. <executions>
  756. <execution>
  757. <id>attach-sources</id>
  758. <goals>
  759. <goal>jar</goal>
  760. </goals>
  761. </execution>
  762. </executions>
  763. </plugin>
  764. <plugin>
  765. <groupId>org.apache.maven.plugins</groupId>
  766. <artifactId>maven-javadoc-plugin</artifactId>
  767. <executions>
  768. <execution>
  769. <id>attach-javadocs</id>
  770. <goals>
  771. <goal>jar</goal>
  772. </goals>
  773. </execution>
  774. <execution>
  775. <id>aggregate</id>
  776. <phase>site</phase>
  777. <goals>
  778. <goal>aggregate</goal>
  779. </goals>
  780. </execution>
  781. </executions>
  782. <configuration>
  783. <overview>zookeeper-server/src/main/resources/overview.html</overview>
  784. <excludePackageNames>*.recipes.*</excludePackageNames>
  785. </configuration>
  786. </plugin>
  787. <plugin>
  788. <!-- Maven's deploy plugin only creates checksums during the deployment of the jar artifacts to repo. -->
  789. <!-- We also want to sign tarballs. Nicoulaj's plugin is the recommended solution by the community. -->
  790. <groupId>net.nicoulaj.maven.plugins</groupId>
  791. <artifactId>checksum-maven-plugin</artifactId>
  792. <executions>
  793. <execution>
  794. <goals>
  795. <goal>artifacts</goal>
  796. </goals>
  797. </execution>
  798. </executions>
  799. <configuration>
  800. <algorithms>
  801. <algorithm>SHA-512</algorithm>
  802. </algorithms>
  803. <appendFilename>true</appendFilename>
  804. </configuration>
  805. </plugin>
  806. <plugin>
  807. <groupId>com.github.spotbugs</groupId>
  808. <artifactId>spotbugs-maven-plugin</artifactId>
  809. </plugin>
  810. <plugin>
  811. <groupId>org.owasp</groupId>
  812. <artifactId>dependency-check-maven</artifactId>
  813. <configuration>
  814. <format>ALL</format>
  815. <failBuildOnCVSS>0</failBuildOnCVSS>
  816. <suppressionFiles>
  817. <suppressionsFile>owaspSuppressions.xml</suppressionsFile>
  818. </suppressionFiles>
  819. </configuration>
  820. </plugin>
  821. <plugin>
  822. <groupId>org.apache.rat</groupId>
  823. <artifactId>apache-rat-plugin</artifactId>
  824. <configuration>
  825. <excludes>
  826. <exclude>**/log4j.properties</exclude>
  827. <exclude>**/README.md</exclude>
  828. <exclude>**/git.properties</exclude>
  829. <exclude>**/findbugsExcludeFile.xml</exclude>
  830. <exclude>**/checkstyle-noframes-sorted.xsl</exclude>
  831. <exclude>**/configure.ac</exclude>
  832. <exclude>**/Makefile.am</exclude>
  833. <exclude>conf/zoo_sample.cfg</exclude>
  834. <exclude>conf/configuration.xsl</exclude>
  835. <exclude>.travis.yml</exclude>
  836. <exclude>excludeFindBugsFilter.xml</exclude>
  837. <exclude>README_packaging.md</exclude>
  838. <exclude>src/main/resources/markdown/skin/*</exclude>
  839. <exclude>src/main/resources/markdown/html/*</exclude>
  840. <exclude>src/main/resources/markdown/images/*</exclude>
  841. <!-- contrib -->
  842. <exclude>zookeeper-contrib-monitoring/JMX-RESOURCES</exclude>
  843. <exclude>zookeeper-contrib-fatjar/src/main/resources/mainClasses</exclude>
  844. <exclude>zookeeper-contrib-zkperl/Changes</exclude>
  845. <exclude>zookeeper-contrib-zkperl/MANIFEST</exclude>
  846. <exclude>zookeeper-contrib-zkpython/src/test/zoo.cfg</exclude>
  847. <exclude>zookeeper-contrib-loggraph/src/main/resources/webapp/org/apache/zookeeper/graph/resources/*</exclude>
  848. <exclude>src/main/resources/webapp/org/apache/zookeeper/graph/resources/*</exclude>
  849. <exclude>src/main/java/com/nitido/utils/toaster/Toaster.java</exclude>
  850. <exclude>TODO</exclude>
  851. <!-- c client -->
  852. <exclude>**/acinclude.m4</exclude>
  853. <exclude>**/aminclude.am</exclude>
  854. <exclude>src/hashtable/*</exclude>
  855. <exclude>include/winconfig.h</exclude>
  856. <exclude>tests/wrappers.opt</exclude>
  857. <exclude>tests/zoo.cfg</exclude>
  858. <exclude>tests/wrappers-mt.opt</exclude>
  859. <exclude>**/c-doc.Doxyfile</exclude>
  860. </excludes>
  861. <consoleOutput>true</consoleOutput>
  862. </configuration>
  863. </plugin>
  864. <plugin>
  865. <groupId>org.apache.maven.plugins</groupId>
  866. <artifactId>maven-release-plugin</artifactId>
  867. <inherited>false</inherited>
  868. <configuration>
  869. <!-- update the version inside the C sources -->
  870. <preparationGoals>clean install -DskipTests antrun:run@replace-cclient-files-during-release scm:add@add-cclient-files-during-release scm:checkin@commit-cclient-files-during-release</preparationGoals>
  871. <completionGoals>clean install -DskipTests antrun:run@replace-cclient-files-during-release scm:add@add-cclient-files-during-release scm:checkin@commit-cclient-files-during-release</completionGoals>
  872. </configuration>
  873. </plugin>
  874. <plugin>
  875. <groupId>org.apache.maven.plugins</groupId>
  876. <artifactId>maven-scm-plugin</artifactId>
  877. <inherited>false</inherited>
  878. <executions>
  879. <execution>
  880. <id>add-cclient-files-during-release</id>
  881. <phase>none</phase>
  882. <goals>
  883. <goal>add</goal>
  884. </goals>
  885. <configuration>
  886. <pushChanges>false</pushChanges>
  887. <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>
  888. </configuration>
  889. </execution>
  890. <execution>
  891. <id>commit-cclient-files-during-release</id>
  892. <phase>none</phase>
  893. <goals>
  894. <!-- git commit -->
  895. <goal>checkin</goal>
  896. </goals>
  897. <configuration>
  898. <pushChanges>false</pushChanges>
  899. <message>Prepared ${project.version}</message>
  900. </configuration>
  901. </execution>
  902. </executions>
  903. </plugin>
  904. </plugins>
  905. <resources>
  906. <resource>
  907. <directory>${project.basedir}src/main/java/resources</directory>
  908. <excludes>
  909. <exclude>**/*.*</exclude>
  910. </excludes>
  911. </resource>
  912. </resources>
  913. </build>
  914. <reporting>
  915. <plugins>
  916. <plugin>
  917. <groupId>org.openclover</groupId>
  918. <artifactId>clover-maven-plugin</artifactId>
  919. </plugin>
  920. </plugins>
  921. </reporting>
  922. </project>