pom.xml 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831
  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>18</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.6.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. </scm>
  72. <issueManagement>
  73. <system>JIRA</system>
  74. <url>http://issues.apache.org/jira/browse/ZOOKEEPER</url>
  75. </issueManagement>
  76. <ciManagement>
  77. <system>jenkins</system>
  78. <url>https://builds.apache.org/view/S-Z/view/ZooKeeper/</url>
  79. </ciManagement>
  80. <mailingLists>
  81. <mailingList>
  82. <name>User List</name>
  83. <subscribe>user-subscribe@zookeeper.apache.org</subscribe>
  84. <unsubscribe>user-unsubscribe@zookeeper.apache.org</unsubscribe>
  85. <post>user@zookeeper.apache.org</post>
  86. <archive>http://mail-archives.apache.org/mod_mbox/zookeeper-user/</archive>
  87. </mailingList>
  88. <mailingList>
  89. <name>Developer List</name>
  90. <subscribe>dev-subscribe@zookeeper.apache.org</subscribe>
  91. <unsubscribe>dev-unsubscribe@zookeeper.apache.org</unsubscribe>
  92. <post>dev@zookeeper.apache.org</post>
  93. <archive>http://mail-archives.apache.org/mod_mbox/zookeeper-dev/</archive>
  94. </mailingList>
  95. <mailingList>
  96. <name>Commits List</name>
  97. <subscribe>commits-subscribe@zookeeper.apache.org</subscribe>
  98. <unsubscribe>commits-unsubscribe@zookeeper.apache.org</unsubscribe>
  99. <archive>http://mail-archives.apache.org/mod_mbox/zookeeper-commits/</archive>
  100. </mailingList>
  101. <mailingList>
  102. <name>Issues List</name>
  103. <subscribe>issues-subscribe@zookeeper.apache.org</subscribe>
  104. <unsubscribe>issues-unsubscribe@zookeeper.apache.org</unsubscribe>
  105. <archive>https://lists.apache.org/list.html?issues@zookeeper.apache.org</archive>
  106. </mailingList>
  107. <mailingList>
  108. <name>Notifications List</name>
  109. <subscribe>notifications-subscribe@zookeeper.apache.org</subscribe>
  110. <unsubscribe>notifications-unsubscribe@zookeeper.apache.org</unsubscribe>
  111. <archive>https://lists.apache.org/list.html?notifications@zookeeper.apache.org</archive>
  112. </mailingList>
  113. </mailingLists>
  114. <developers>
  115. <developer>
  116. <id>tdunning</id>
  117. <name>Ted Dunning </name>
  118. <email>tdunning@apache.org</email>
  119. <timezone>-8</timezone>
  120. </developer>
  121. <developer>
  122. <id>camille</id>
  123. <name>Camille Fournier</name>
  124. <email>camille@apache.org</email>
  125. <timezone>-5</timezone>
  126. </developer>
  127. <developer>
  128. <id>phunt</id>
  129. <name>Patrick Hunt</name>
  130. <email>phunt@apache.org</email>
  131. <timezone>-8</timezone>
  132. </developer>
  133. <developer>
  134. <id>fpj</id>
  135. <name>Flavio Junqueira</name>
  136. <email>fpj@apache.org</email>
  137. <timezone>+0</timezone>
  138. </developer>
  139. <developer>
  140. <id>ivank</id>
  141. <name>Ivan Kelly</name>
  142. <email>ivank@apache.org</email>
  143. <timezone>+2</timezone>
  144. </developer>
  145. <developer>
  146. <id>mahadev</id>
  147. <name>Mahadev Konar</name>
  148. <email>mahadev@apache.org</email>
  149. <timezone>-8</timezone>
  150. </developer>
  151. <developer>
  152. <id>michim</id>
  153. <name>Michi Mutsuzaki</name>
  154. <email>michim@apache.org</email>
  155. <timezone>-8</timezone>
  156. </developer>
  157. <developer>
  158. <id>cnauroth</id>
  159. <name>Chris Nauroth</name>
  160. <email>cnauroth@apache.org</email>
  161. <timezone>-8</timezone>
  162. </developer>
  163. <developer>
  164. <id>breed</id>
  165. <name>Benjamin Reed</name>
  166. <email>breed@apache.org</email>
  167. <timezone>-8</timezone>
  168. </developer>
  169. <developer>
  170. <id>henry</id>
  171. <name>Henry Robinson</name>
  172. <email>henry@apache.org</email>
  173. <timezone>-8</timezone>
  174. </developer>
  175. <developer>
  176. <id>rgs</id>
  177. <name>Raul Gutierrez Segales</name>
  178. <email>rgs@apache.org</email>
  179. <timezone>-8</timezone>
  180. </developer>
  181. <developer>
  182. <id>rakeshr</id>
  183. <name>Rakesh Radhakrishnan</name>
  184. <email>rakeshr@apache.org</email>
  185. <timezone>+5:30</timezone>
  186. </developer>
  187. <developer>
  188. <id>hanm</id>
  189. <name>Michael Han</name>
  190. <email>hanm@apache.org</email>
  191. <timezone>-8</timezone>
  192. </developer>
  193. <developer>
  194. <id>gkesavan</id>
  195. <name>Giridharan Kesavan</name>
  196. <email>gkesavan@apache.org</email>
  197. <timezone>-8</timezone>
  198. </developer>
  199. <developer>
  200. <id>akornev</id>
  201. <name>Andrew Kornev</name>
  202. <email>akornev@apache.org</email>
  203. </developer>
  204. <developer>
  205. <id>shralex</id>
  206. <name>Alex Shraer</name>
  207. <email>shralex@apache.org</email>
  208. <timezone>-8</timezone>
  209. </developer>
  210. <developer>
  211. <id>thawan</id>
  212. <name>Thawan Kooburat</name>
  213. <email>thawan@apache.org</email>
  214. <timezone>-8</timezone>
  215. </developer>
  216. <developer>
  217. <id>hdeng</id>
  218. <name>Hongchao Deng</name>
  219. <email>hdeng@apache.org</email>
  220. <timezone>-8</timezone>
  221. </developer>
  222. <developer>
  223. <id>arshad</id>
  224. <name>Mohammad Arshad</name>
  225. <email>arshad@apache.org</email>
  226. <timezone>+5:30</timezone>
  227. </developer>
  228. <developer>
  229. <id>afine</id>
  230. <name>Abraham Fine</name>
  231. <email>afine@apache.org</email>
  232. <timezone>-8</timezone>
  233. </developer>
  234. <developer>
  235. <id>andor</id>
  236. <name>Andor Molnar</name>
  237. <email>andor@apache.org</email>
  238. <timezone>+1</timezone>
  239. </developer>
  240. <developer>
  241. <id>lvfangmin</id>
  242. <name>Allan Lyu</name>
  243. <email>fangmin@apache.org</email>
  244. <timezone>-8</timezone>
  245. </developer>
  246. </developers>
  247. <profiles>
  248. <profile>
  249. <id>full-build</id>
  250. <modules>
  251. <module>zookeeper-contrib</module>
  252. </modules>
  253. </profile>
  254. <profile>
  255. <id>java-build</id>
  256. <activation>
  257. <activeByDefault>true</activeByDefault>
  258. </activation>
  259. </profile>
  260. </profiles>
  261. <properties>
  262. <!-- maven properties -->
  263. <maven.compiler.source>1.8</maven.compiler.source>
  264. <maven.compiler.target>1.8</maven.compiler.target>
  265. <dependency.locations.enabled>false</dependency.locations.enabled>
  266. <surefire-forkcount>8</surefire-forkcount>
  267. <!-- dependency versions -->
  268. <slf4j.version>1.7.25</slf4j.version>
  269. <audience-annotations.version>0.5.0</audience-annotations.version>
  270. <junit.version>4.12</junit.version>
  271. <log4j.version>1.2.17</log4j.version>
  272. <mockito.version>2.27.0</mockito.version>
  273. <hamcrest.version>1.3</hamcrest.version>
  274. <commons-cli.version>1.2</commons-cli.version>
  275. <netty.version>4.1.36.Final</netty.version>
  276. <jetty.version>9.4.17.v20190418</jetty.version>
  277. <jackson.version>2.9.9</jackson.version>
  278. <json.version>1.1.1</json.version>
  279. <jline.version>2.11</jline.version>
  280. <snappy.version>1.1.7</snappy.version>
  281. <kerby.version>1.1.0</kerby.version>
  282. <bouncycastle.version>1.60</bouncycastle.version>
  283. <commons-collections.version>3.2.2</commons-collections.version>
  284. <commons-lang.version>2.6</commons-lang.version>
  285. <dropwizard.version>3.2.5</dropwizard.version>
  286. <spotbugsannotations.version>3.1.9</spotbugsannotations.version>
  287. <checkstyle.version>8.17</checkstyle.version>
  288. </properties>
  289. <dependencyManagement>
  290. <dependencies>
  291. <dependency>
  292. <groupId>org.hamcrest</groupId>
  293. <artifactId>hamcrest-all</artifactId>
  294. <version>${hamcrest.version}</version>
  295. </dependency>
  296. <dependency>
  297. <groupId>commons-collections</groupId>
  298. <artifactId>commons-collections</artifactId>
  299. <version>${commons-collections.version}</version>
  300. </dependency>
  301. <dependency>
  302. <groupId>commons-lang</groupId>
  303. <artifactId>commons-lang</artifactId>
  304. <version>${commons-lang.version}</version>
  305. </dependency>
  306. <dependency>
  307. <groupId>org.apache.yetus</groupId>
  308. <artifactId>audience-annotations</artifactId>
  309. <version>${audience-annotations.version}</version>
  310. </dependency>
  311. <dependency>
  312. <groupId>commons-cli</groupId>
  313. <artifactId>commons-cli</artifactId>
  314. <version>${commons-cli.version}</version>
  315. </dependency>
  316. <dependency>
  317. <groupId>org.apache.kerby</groupId>
  318. <artifactId>kerb-core</artifactId>
  319. <version>${kerby.version}</version>
  320. <exclusions>
  321. <exclusion>
  322. <groupId>org.slf4j</groupId>
  323. <artifactId>slf4j-api</artifactId>
  324. </exclusion>
  325. </exclusions>
  326. </dependency>
  327. <dependency>
  328. <groupId>org.apache.kerby</groupId>
  329. <artifactId>kerb-simplekdc</artifactId>
  330. <version>${kerby.version}</version>
  331. <exclusions>
  332. <exclusion>
  333. <groupId>org.slf4j</groupId>
  334. <artifactId>slf4j-api</artifactId>
  335. </exclusion>
  336. </exclusions>
  337. </dependency>
  338. <dependency>
  339. <groupId>org.apache.kerby</groupId>
  340. <artifactId>kerby-config</artifactId>
  341. <version>${kerby.version}</version>
  342. <exclusions>
  343. <exclusion>
  344. <groupId>org.slf4j</groupId>
  345. <artifactId>slf4j-api</artifactId>
  346. </exclusion>
  347. <exclusion>
  348. <groupId>org.slf4j</groupId>
  349. <artifactId>slf4j-log4j12</artifactId>
  350. </exclusion>
  351. </exclusions>
  352. </dependency>
  353. <dependency>
  354. <groupId>org.bouncycastle</groupId>
  355. <artifactId>bcprov-jdk15on</artifactId>
  356. <version>${bouncycastle.version}</version>
  357. </dependency>
  358. <dependency>
  359. <groupId>org.bouncycastle</groupId>
  360. <artifactId>bcpkix-jdk15on</artifactId>
  361. <version>${bouncycastle.version}</version>
  362. </dependency>
  363. <dependency>
  364. <groupId>org.slf4j</groupId>
  365. <artifactId>slf4j-api</artifactId>
  366. <version>${slf4j.version}</version>
  367. </dependency>
  368. <dependency>
  369. <groupId>org.slf4j</groupId>
  370. <artifactId>slf4j-log4j12</artifactId>
  371. <version>${slf4j.version}</version>
  372. <exclusions>
  373. <exclusion>
  374. <groupId>*</groupId>
  375. <artifactId>*</artifactId>
  376. </exclusion>
  377. </exclusions>
  378. </dependency>
  379. <dependency>
  380. <groupId>log4j</groupId>
  381. <artifactId>log4j</artifactId>
  382. <version>${log4j.version}</version>
  383. </dependency>
  384. <dependency>
  385. <groupId>junit</groupId>
  386. <artifactId>junit</artifactId>
  387. <version>${junit.version}</version>
  388. </dependency>
  389. <dependency>
  390. <groupId>org.mockito</groupId>
  391. <artifactId>mockito-core</artifactId>
  392. <version>${mockito.version}</version>
  393. </dependency>
  394. <dependency>
  395. <groupId>io.netty</groupId>
  396. <artifactId>netty-all</artifactId>
  397. <version>${netty.version}</version>
  398. </dependency>
  399. <dependency>
  400. <groupId>org.eclipse.jetty</groupId>
  401. <artifactId>jetty-server</artifactId>
  402. <version>${jetty.version}</version>
  403. </dependency>
  404. <dependency>
  405. <groupId>org.eclipse.jetty</groupId>
  406. <artifactId>jetty-servlet</artifactId>
  407. <version>${jetty.version}</version>
  408. </dependency>
  409. <dependency>
  410. <groupId>io.dropwizard.metrics</groupId>
  411. <artifactId>metrics-core</artifactId>
  412. <version>${dropwizard.version}</version>
  413. <exclusions>
  414. <exclusion>
  415. <groupId>org.slf4j</groupId>
  416. <artifactId>slf4j-api</artifactId>
  417. </exclusion>
  418. </exclusions>
  419. </dependency>
  420. <dependency>
  421. <groupId>com.fasterxml.jackson.core</groupId>
  422. <artifactId>jackson-databind</artifactId>
  423. <version>${jackson.version}</version>
  424. </dependency>
  425. <dependency>
  426. <groupId>com.googlecode.json-simple</groupId>
  427. <artifactId>json-simple</artifactId>
  428. <version>${json.version}</version>
  429. <exclusions>
  430. <exclusion>
  431. <groupId>junit</groupId>
  432. <artifactId>junit</artifactId>
  433. </exclusion>
  434. </exclusions>
  435. </dependency>
  436. <dependency>
  437. <groupId>jline</groupId>
  438. <artifactId>jline</artifactId>
  439. <version>${jline.version}</version>
  440. </dependency>
  441. <dependency>
  442. <groupId>com.github.spotbugs</groupId>
  443. <artifactId>spotbugs-annotations</artifactId>
  444. <version>${spotbugsannotations.version}</version>
  445. <scope>provided</scope>
  446. <optional>true</optional>
  447. </dependency>
  448. <dependency>
  449. <groupId>org.xerial.snappy</groupId>
  450. <artifactId>snappy-java</artifactId>
  451. <version>${snappy.version}</version>
  452. </dependency>
  453. </dependencies>
  454. </dependencyManagement>
  455. <build>
  456. <pluginManagement>
  457. <plugins>
  458. <plugin>
  459. <groupId>org.codehaus.mojo</groupId>
  460. <artifactId>properties-maven-plugin</artifactId>
  461. <version>1.0.0</version>
  462. </plugin>
  463. <plugin>
  464. <groupId>org.apache.maven.plugins</groupId>
  465. <artifactId>maven-compiler-plugin</artifactId>
  466. <version>3.8.0</version>
  467. <configuration>
  468. <compilerArgs>
  469. <compilerArg>-Werror</compilerArg>
  470. <compilerArg>-Xlint:deprecation</compilerArg>
  471. <compilerArg>-Xlint:unchecked</compilerArg>
  472. <compilerArg>-Xdoclint</compilerArg>
  473. <!-- https://issues.apache.org/jira/browse/MCOMPILER-205 -->
  474. <compilerArg>-Xpkginfo:always</compilerArg>
  475. </compilerArgs>
  476. </configuration>
  477. </plugin>
  478. <plugin>
  479. <groupId>org.apache.maven.plugins</groupId>
  480. <artifactId>maven-jar-plugin</artifactId>
  481. <version>3.1.0</version>
  482. </plugin>
  483. <plugin>
  484. <groupId>org.apache.maven.plugins</groupId>
  485. <artifactId>maven-source-plugin</artifactId>
  486. <version>3.0.1</version>
  487. </plugin>
  488. <plugin>
  489. <groupId>org.apache.maven.plugins</groupId>
  490. <artifactId>maven-javadoc-plugin</artifactId>
  491. <version>3.0.1</version>
  492. <configuration>
  493. <doclint>none</doclint>
  494. </configuration>
  495. </plugin>
  496. <plugin>
  497. <groupId>org.apache.maven.plugins</groupId>
  498. <artifactId>maven-assembly-plugin</artifactId>
  499. <version>3.1.0</version>
  500. </plugin>
  501. <plugin>
  502. <groupId>org.apache.maven.plugins</groupId>
  503. <artifactId>maven-release-plugin</artifactId>
  504. <version>2.5.3</version>
  505. <configuration>
  506. <releaseProfiles>apache-release</releaseProfiles>
  507. <arguments>-Dmaven.test.skip.exec ${arguments}</arguments>
  508. </configuration>
  509. </plugin>
  510. <plugin>
  511. <groupId>org.apache.maven.plugins</groupId>
  512. <artifactId>maven-surefire-plugin</artifactId>
  513. <version>2.22.1</version>
  514. </plugin>
  515. <plugin>
  516. <groupId>org.apache.maven.plugins</groupId>
  517. <artifactId>maven-antrun-plugin</artifactId>
  518. <version>1.8</version>
  519. </plugin>
  520. <plugin>
  521. <groupId>org.apache.maven.plugins</groupId>
  522. <artifactId>maven-dependency-plugin</artifactId>
  523. <version>3.1.1</version>
  524. </plugin>
  525. <plugin>
  526. <groupId>org.codehaus.mojo</groupId>
  527. <artifactId>exec-maven-plugin</artifactId>
  528. <version>1.6.0</version>
  529. </plugin>
  530. <plugin>
  531. <groupId>pl.project13.maven</groupId>
  532. <artifactId>git-commit-id-plugin</artifactId>
  533. <version>2.2.5</version>
  534. <inherited>false</inherited>
  535. </plugin>
  536. <plugin>
  537. <groupId>org.codehaus.mojo</groupId>
  538. <artifactId>build-helper-maven-plugin</artifactId>
  539. <version>3.0.0</version>
  540. </plugin>
  541. <plugin>
  542. <groupId>net.nicoulaj.maven.plugins</groupId>
  543. <artifactId>checksum-maven-plugin</artifactId>
  544. <version>1.8</version>
  545. </plugin>
  546. <plugin>
  547. <groupId>org.openclover</groupId>
  548. <artifactId>clover-maven-plugin</artifactId>
  549. <version>4.3.1</version>
  550. </plugin>
  551. <plugin>
  552. <groupId>com.github.spotbugs</groupId>
  553. <artifactId>spotbugs-maven-plugin</artifactId>
  554. <version>3.1.9</version>
  555. <configuration>
  556. <excludeFilterFile>excludeFindBugsFilter.xml</excludeFilterFile>
  557. </configuration>
  558. </plugin>
  559. <plugin>
  560. <groupId>org.owasp</groupId>
  561. <artifactId>dependency-check-maven</artifactId>
  562. <version>4.0.2</version>
  563. </plugin>
  564. <plugin>
  565. <groupId>org.apache.maven.plugins</groupId>
  566. <artifactId>maven-checkstyle-plugin</artifactId>
  567. <version>3.0.0</version>
  568. <dependencies>
  569. <dependency>
  570. <groupId>com.puppycrawl.tools</groupId>
  571. <artifactId>checkstyle</artifactId>
  572. <version>${checkstyle.version}</version>
  573. </dependency>
  574. </dependencies>
  575. <configuration>
  576. <configLocation>checkstyle.xml</configLocation>
  577. <suppressionsLocation>checkstyleSuppressions.xml</suppressionsLocation>
  578. <encoding>UTF-8</encoding>
  579. <consoleOutput>true</consoleOutput>
  580. <failOnViolation>true</failOnViolation>
  581. <includeResources>false</includeResources>
  582. <includeTestSourceDirectory>true</includeTestSourceDirectory>
  583. </configuration>
  584. <executions>
  585. <execution>
  586. <id>checkstyle</id>
  587. <phase>validate</phase>
  588. <goals>
  589. <goal>check</goal>
  590. </goals>
  591. </execution>
  592. </executions>
  593. </plugin>
  594. </plugins>
  595. </pluginManagement>
  596. <plugins>
  597. <plugin>
  598. <groupId>pl.project13.maven</groupId>
  599. <artifactId>git-commit-id-plugin</artifactId>
  600. <executions>
  601. <execution>
  602. <id>find-current-git-revision</id>
  603. <goals>
  604. <goal>revision</goal>
  605. </goals>
  606. <phase>validate</phase>
  607. </execution>
  608. </executions>
  609. <configuration>
  610. <skipPoms>false</skipPoms>
  611. <runOnlyOnce>true</runOnlyOnce>
  612. <failOnNoGitDirectory>false</failOnNoGitDirectory>
  613. <dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
  614. <prefix>git</prefix>
  615. <verbose>false</verbose>
  616. <generateGitPropertiesFile>true</generateGitPropertiesFile>
  617. <generateGitPropertiesFilename>${project.basedir}/zookeeper-server/src/main/resources/git.properties</generateGitPropertiesFilename>
  618. <format>properties</format>
  619. <gitDescribe>
  620. <skip>false</skip>
  621. <always>false</always>
  622. <dirty>-dirty</dirty>
  623. </gitDescribe>
  624. </configuration>
  625. </plugin>
  626. <plugin>
  627. <groupId>org.openclover</groupId>
  628. <artifactId>clover-maven-plugin</artifactId>
  629. <configuration>
  630. <generateHtml>true</generateHtml>
  631. <generateXml>true</generateXml>
  632. <includes>
  633. <include>org/apache/zookeeper/**/*</include>
  634. </includes>
  635. <excludes>
  636. <exclude>org/apache/zookeeper/version/**/*</exclude>
  637. </excludes>
  638. </configuration>
  639. <executions>
  640. <execution>
  641. <phase>pre-site</phase>
  642. <goals>
  643. <goal>instrument</goal>
  644. <goal>aggregate</goal>
  645. </goals>
  646. </execution>
  647. </executions>
  648. </plugin>
  649. <plugin>
  650. <groupId>org.apache.maven.plugins</groupId>
  651. <artifactId>maven-antrun-plugin</artifactId>
  652. <executions>
  653. <execution>
  654. <phase>validate</phase>
  655. <goals>
  656. <goal>run</goal>
  657. </goals>
  658. <configuration>
  659. <exportAntProperties>true</exportAntProperties>
  660. <target>
  661. <property environment="env"/>
  662. <exec executable="hostname" outputproperty="host.name"/>
  663. </target>
  664. </configuration>
  665. </execution>
  666. </executions>
  667. </plugin>
  668. <plugin>
  669. <groupId>org.apache.maven.plugins</groupId>
  670. <artifactId>maven-jar-plugin</artifactId>
  671. <executions>
  672. <execution>
  673. <id>Jar Tests Package</id>
  674. <phase>package</phase>
  675. <goals>
  676. <goal>test-jar</goal>
  677. </goals>
  678. <configuration>
  679. <includes>
  680. <include>org/**</include>
  681. <include>META_INF/**</include>
  682. </includes>
  683. <skipIfEmpty>true</skipIfEmpty>
  684. </configuration>
  685. </execution>
  686. </executions>
  687. </plugin>
  688. <plugin>
  689. <groupId>org.apache.maven.plugins</groupId>
  690. <artifactId>maven-source-plugin</artifactId>
  691. <executions>
  692. <execution>
  693. <id>attach-sources</id>
  694. <goals>
  695. <goal>jar</goal>
  696. </goals>
  697. </execution>
  698. </executions>
  699. </plugin>
  700. <plugin>
  701. <groupId>org.apache.maven.plugins</groupId>
  702. <artifactId>maven-javadoc-plugin</artifactId>
  703. <executions>
  704. <execution>
  705. <id>attach-javadocs</id>
  706. <goals>
  707. <goal>jar</goal>
  708. </goals>
  709. </execution>
  710. <execution>
  711. <id>aggregate</id>
  712. <phase>site</phase>
  713. <goals>
  714. <goal>aggregate</goal>
  715. </goals>
  716. </execution>
  717. </executions>
  718. <configuration>
  719. <overview>zookeeper-server/src/main/resources/overview.html</overview>
  720. <excludePackageNames>*.recipes.*</excludePackageNames>
  721. </configuration>
  722. </plugin>
  723. <plugin>
  724. <!-- Maven's deploy plugin only creates checksums during the deployment of the jar artifacts to repo. -->
  725. <!-- We also want to sign tarballs. Nicoulaj's plugin is the recommended solution by the community. -->
  726. <groupId>net.nicoulaj.maven.plugins</groupId>
  727. <artifactId>checksum-maven-plugin</artifactId>
  728. <executions>
  729. <execution>
  730. <goals>
  731. <goal>artifacts</goal>
  732. </goals>
  733. </execution>
  734. </executions>
  735. <configuration>
  736. <algorithms>
  737. <algorithm>SHA-512</algorithm>
  738. </algorithms>
  739. <appendFilename>true</appendFilename>
  740. </configuration>
  741. </plugin>
  742. <plugin>
  743. <groupId>com.github.spotbugs</groupId>
  744. <artifactId>spotbugs-maven-plugin</artifactId>
  745. </plugin>
  746. <plugin>
  747. <groupId>org.owasp</groupId>
  748. <artifactId>dependency-check-maven</artifactId>
  749. <configuration>
  750. <format>ALL</format>
  751. <failBuildOnCVSS>0</failBuildOnCVSS>
  752. <suppressionFiles>
  753. <suppressionsFile>owaspSuppressions.xml</suppressionsFile>
  754. </suppressionFiles>
  755. </configuration>
  756. </plugin>
  757. <plugin>
  758. <groupId>org.apache.rat</groupId>
  759. <artifactId>apache-rat-plugin</artifactId>
  760. <configuration>
  761. <excludes>
  762. <exclude>**/log4j.properties</exclude>
  763. <exclude>**/README.md</exclude>
  764. <exclude>**/git.properties</exclude>
  765. <exclude>**/findbugsExcludeFile.xml</exclude>
  766. <exclude>**/checkstyle-noframes-sorted.xsl</exclude>
  767. <exclude>**/configure.ac</exclude>
  768. <exclude>**/Makefile.am</exclude>
  769. <exclude>conf/zoo_sample.cfg</exclude>
  770. <exclude>conf/configuration.xsl</exclude>
  771. <exclude>.travis.yml</exclude>
  772. <exclude>excludeFindBugsFilter.xml</exclude>
  773. <exclude>README_packaging.txt</exclude>
  774. <exclude>src/main/resources/markdown/skin/*</exclude>
  775. <exclude>src/main/resources/markdown/html/*</exclude>
  776. <exclude>src/main/resources/markdown/images/*</exclude>
  777. <!-- contrib -->
  778. <exclude>zookeeper-contrib-monitoring/JMX-RESOURCES</exclude>
  779. <exclude>zookeeper-contrib-fatjar/src/main/resources/mainClasses</exclude>
  780. <exclude>zookeeper-contrib-zkperl/Changes</exclude>
  781. <exclude>zookeeper-contrib-zkperl/MANIFEST</exclude>
  782. <exclude>zookeeper-contrib-loggraph/src/main/resources/webapp/org/apache/zookeeper/graph/resources/*</exclude>
  783. <exclude>src/main/resources/webapp/org/apache/zookeeper/graph/resources/*</exclude>
  784. <exclude>src/main/java/com/nitido/utils/toaster/Toaster.java</exclude>
  785. <exclude>TODO</exclude>
  786. <!-- c client -->
  787. <exclude>**/acinclude.m4</exclude>
  788. <exclude>**/aminclude.am</exclude>
  789. <exclude>src/hashtable/*</exclude>
  790. <exclude>include/winconfig.h</exclude>
  791. <exclude>tests/wrappers.opt</exclude>
  792. <exclude>tests/quorum.cfg</exclude>
  793. <exclude>tests/wrappers-mt.opt</exclude>
  794. <exclude>**/c-doc.Doxyfile</exclude>
  795. </excludes>
  796. <consoleOutput>true</consoleOutput>
  797. </configuration>
  798. </plugin>
  799. </plugins>
  800. <resources>
  801. <resource>
  802. <directory>${project.basedir}src/main/java/resources</directory>
  803. <excludes>
  804. <exclude>**/*.*</exclude>
  805. </excludes>
  806. </resource>
  807. </resources>
  808. </build>
  809. <reporting>
  810. <plugins>
  811. <plugin>
  812. <groupId>org.openclover</groupId>
  813. <artifactId>clover-maven-plugin</artifactId>
  814. </plugin>
  815. </plugins>
  816. </reporting>
  817. </project>