pom.xml 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839
  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.42.Final</netty.version>
  276. <jetty.version>9.4.18.v20190429</jetty.version>
  277. <jackson.version>2.9.10</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-handler</artifactId>
  397. <version>${netty.version}</version>
  398. </dependency>
  399. <dependency>
  400. <groupId>io.netty</groupId>
  401. <artifactId>netty-transport-native-epoll</artifactId>
  402. <version>${netty.version}</version>
  403. </dependency>
  404. <dependency>
  405. <groupId>org.eclipse.jetty</groupId>
  406. <artifactId>jetty-server</artifactId>
  407. <version>${jetty.version}</version>
  408. </dependency>
  409. <dependency>
  410. <groupId>org.eclipse.jetty</groupId>
  411. <artifactId>jetty-servlet</artifactId>
  412. <version>${jetty.version}</version>
  413. </dependency>
  414. <dependency>
  415. <groupId>io.dropwizard.metrics</groupId>
  416. <artifactId>metrics-core</artifactId>
  417. <version>${dropwizard.version}</version>
  418. <exclusions>
  419. <exclusion>
  420. <groupId>org.slf4j</groupId>
  421. <artifactId>slf4j-api</artifactId>
  422. </exclusion>
  423. </exclusions>
  424. </dependency>
  425. <dependency>
  426. <groupId>com.fasterxml.jackson.core</groupId>
  427. <artifactId>jackson-databind</artifactId>
  428. <version>${jackson.version}</version>
  429. </dependency>
  430. <dependency>
  431. <groupId>com.googlecode.json-simple</groupId>
  432. <artifactId>json-simple</artifactId>
  433. <version>${json.version}</version>
  434. <exclusions>
  435. <exclusion>
  436. <groupId>junit</groupId>
  437. <artifactId>junit</artifactId>
  438. </exclusion>
  439. </exclusions>
  440. </dependency>
  441. <dependency>
  442. <groupId>jline</groupId>
  443. <artifactId>jline</artifactId>
  444. <version>${jline.version}</version>
  445. </dependency>
  446. <dependency>
  447. <groupId>com.github.spotbugs</groupId>
  448. <artifactId>spotbugs-annotations</artifactId>
  449. <version>${spotbugsannotations.version}</version>
  450. <scope>provided</scope>
  451. <optional>true</optional>
  452. </dependency>
  453. <dependency>
  454. <groupId>org.xerial.snappy</groupId>
  455. <artifactId>snappy-java</artifactId>
  456. <version>${snappy.version}</version>
  457. </dependency>
  458. </dependencies>
  459. </dependencyManagement>
  460. <build>
  461. <pluginManagement>
  462. <plugins>
  463. <plugin>
  464. <groupId>org.codehaus.mojo</groupId>
  465. <artifactId>properties-maven-plugin</artifactId>
  466. <version>1.0.0</version>
  467. </plugin>
  468. <plugin>
  469. <groupId>org.apache.maven.plugins</groupId>
  470. <artifactId>maven-compiler-plugin</artifactId>
  471. <version>3.8.0</version>
  472. <configuration>
  473. <showWarnings>true</showWarnings>
  474. <compilerArgs>
  475. <compilerArg>-Werror</compilerArg>
  476. <compilerArg>-Xlint:deprecation</compilerArg>
  477. <compilerArg>-Xlint:unchecked</compilerArg>
  478. <compilerArg>-Xlint:-options</compilerArg>
  479. <compilerArg>-Xdoclint:-missing</compilerArg>
  480. <!-- https://issues.apache.org/jira/browse/MCOMPILER-205 -->
  481. <compilerArg>-Xpkginfo:always</compilerArg>
  482. </compilerArgs>
  483. </configuration>
  484. </plugin>
  485. <plugin>
  486. <groupId>org.apache.maven.plugins</groupId>
  487. <artifactId>maven-jar-plugin</artifactId>
  488. <version>3.1.0</version>
  489. </plugin>
  490. <plugin>
  491. <groupId>org.apache.maven.plugins</groupId>
  492. <artifactId>maven-source-plugin</artifactId>
  493. <version>3.0.1</version>
  494. </plugin>
  495. <plugin>
  496. <groupId>org.apache.maven.plugins</groupId>
  497. <artifactId>maven-javadoc-plugin</artifactId>
  498. <version>3.0.1</version>
  499. <configuration>
  500. <doclint>none</doclint>
  501. </configuration>
  502. </plugin>
  503. <plugin>
  504. <groupId>org.apache.maven.plugins</groupId>
  505. <artifactId>maven-assembly-plugin</artifactId>
  506. <version>3.1.0</version>
  507. </plugin>
  508. <plugin>
  509. <groupId>org.apache.maven.plugins</groupId>
  510. <artifactId>maven-release-plugin</artifactId>
  511. <version>2.5.3</version>
  512. <configuration>
  513. <releaseProfiles>apache-release</releaseProfiles>
  514. <arguments>-Dmaven.test.skip.exec ${arguments}</arguments>
  515. </configuration>
  516. </plugin>
  517. <plugin>
  518. <groupId>org.apache.maven.plugins</groupId>
  519. <artifactId>maven-surefire-plugin</artifactId>
  520. <version>2.22.1</version>
  521. </plugin>
  522. <plugin>
  523. <groupId>org.apache.maven.plugins</groupId>
  524. <artifactId>maven-antrun-plugin</artifactId>
  525. <version>1.8</version>
  526. </plugin>
  527. <plugin>
  528. <groupId>org.apache.maven.plugins</groupId>
  529. <artifactId>maven-dependency-plugin</artifactId>
  530. <version>3.1.1</version>
  531. </plugin>
  532. <plugin>
  533. <groupId>org.codehaus.mojo</groupId>
  534. <artifactId>exec-maven-plugin</artifactId>
  535. <version>1.6.0</version>
  536. </plugin>
  537. <plugin>
  538. <groupId>pl.project13.maven</groupId>
  539. <artifactId>git-commit-id-plugin</artifactId>
  540. <version>2.2.5</version>
  541. <inherited>false</inherited>
  542. </plugin>
  543. <plugin>
  544. <groupId>org.codehaus.mojo</groupId>
  545. <artifactId>build-helper-maven-plugin</artifactId>
  546. <version>3.0.0</version>
  547. </plugin>
  548. <plugin>
  549. <groupId>net.nicoulaj.maven.plugins</groupId>
  550. <artifactId>checksum-maven-plugin</artifactId>
  551. <version>1.8</version>
  552. </plugin>
  553. <plugin>
  554. <groupId>org.openclover</groupId>
  555. <artifactId>clover-maven-plugin</artifactId>
  556. <version>4.3.1</version>
  557. </plugin>
  558. <plugin>
  559. <groupId>com.github.spotbugs</groupId>
  560. <artifactId>spotbugs-maven-plugin</artifactId>
  561. <version>3.1.9</version>
  562. <configuration>
  563. <excludeFilterFile>excludeFindBugsFilter.xml</excludeFilterFile>
  564. </configuration>
  565. </plugin>
  566. <plugin>
  567. <groupId>org.owasp</groupId>
  568. <artifactId>dependency-check-maven</artifactId>
  569. <version>5.2.1</version>
  570. </plugin>
  571. <plugin>
  572. <groupId>org.apache.maven.plugins</groupId>
  573. <artifactId>maven-checkstyle-plugin</artifactId>
  574. <version>3.1.0</version>
  575. <dependencies>
  576. <dependency>
  577. <groupId>com.puppycrawl.tools</groupId>
  578. <artifactId>checkstyle</artifactId>
  579. <version>${checkstyle.version}</version>
  580. </dependency>
  581. </dependencies>
  582. <configuration>
  583. <configLocation>checkstyle-strict.xml</configLocation>
  584. <suppressionsLocation>checkstyleSuppressions.xml</suppressionsLocation>
  585. <encoding>UTF-8</encoding>
  586. <consoleOutput>true</consoleOutput>
  587. <failOnViolation>true</failOnViolation>
  588. <includeResources>false</includeResources>
  589. <includeTestResources>false</includeTestResources>
  590. <includeTestSourceDirectory>true</includeTestSourceDirectory>
  591. </configuration>
  592. <executions>
  593. <execution>
  594. <id>checkstyle</id>
  595. <phase>validate</phase>
  596. <goals>
  597. <goal>check</goal>
  598. </goals>
  599. </execution>
  600. </executions>
  601. </plugin>
  602. </plugins>
  603. </pluginManagement>
  604. <plugins>
  605. <plugin>
  606. <groupId>pl.project13.maven</groupId>
  607. <artifactId>git-commit-id-plugin</artifactId>
  608. <executions>
  609. <execution>
  610. <id>find-current-git-revision</id>
  611. <goals>
  612. <goal>revision</goal>
  613. </goals>
  614. <phase>validate</phase>
  615. </execution>
  616. </executions>
  617. <configuration>
  618. <skipPoms>false</skipPoms>
  619. <runOnlyOnce>true</runOnlyOnce>
  620. <failOnNoGitDirectory>false</failOnNoGitDirectory>
  621. <dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
  622. <prefix>git</prefix>
  623. <verbose>false</verbose>
  624. <generateGitPropertiesFile>true</generateGitPropertiesFile>
  625. <generateGitPropertiesFilename>${project.basedir}/zookeeper-server/src/main/resources/git.properties</generateGitPropertiesFilename>
  626. <format>properties</format>
  627. <gitDescribe>
  628. <skip>false</skip>
  629. <always>false</always>
  630. <dirty>-dirty</dirty>
  631. </gitDescribe>
  632. </configuration>
  633. </plugin>
  634. <plugin>
  635. <groupId>org.openclover</groupId>
  636. <artifactId>clover-maven-plugin</artifactId>
  637. <configuration>
  638. <generateHtml>true</generateHtml>
  639. <generateXml>true</generateXml>
  640. <includes>
  641. <include>org/apache/zookeeper/**/*</include>
  642. </includes>
  643. <excludes>
  644. <exclude>org/apache/zookeeper/version/**/*</exclude>
  645. </excludes>
  646. </configuration>
  647. <executions>
  648. <execution>
  649. <phase>pre-site</phase>
  650. <goals>
  651. <goal>instrument</goal>
  652. <goal>aggregate</goal>
  653. </goals>
  654. </execution>
  655. </executions>
  656. </plugin>
  657. <plugin>
  658. <groupId>org.apache.maven.plugins</groupId>
  659. <artifactId>maven-antrun-plugin</artifactId>
  660. <executions>
  661. <execution>
  662. <phase>validate</phase>
  663. <goals>
  664. <goal>run</goal>
  665. </goals>
  666. <configuration>
  667. <exportAntProperties>true</exportAntProperties>
  668. <target>
  669. <property environment="env"/>
  670. <exec executable="hostname" outputproperty="host.name"/>
  671. </target>
  672. </configuration>
  673. </execution>
  674. </executions>
  675. </plugin>
  676. <plugin>
  677. <groupId>org.apache.maven.plugins</groupId>
  678. <artifactId>maven-jar-plugin</artifactId>
  679. <executions>
  680. <execution>
  681. <id>Jar Tests Package</id>
  682. <phase>package</phase>
  683. <goals>
  684. <goal>test-jar</goal>
  685. </goals>
  686. <configuration>
  687. <includes>
  688. <include>org/**</include>
  689. <include>META_INF/**</include>
  690. </includes>
  691. <skipIfEmpty>true</skipIfEmpty>
  692. </configuration>
  693. </execution>
  694. </executions>
  695. </plugin>
  696. <plugin>
  697. <groupId>org.apache.maven.plugins</groupId>
  698. <artifactId>maven-source-plugin</artifactId>
  699. <executions>
  700. <execution>
  701. <id>attach-sources</id>
  702. <goals>
  703. <goal>jar</goal>
  704. </goals>
  705. </execution>
  706. </executions>
  707. </plugin>
  708. <plugin>
  709. <groupId>org.apache.maven.plugins</groupId>
  710. <artifactId>maven-javadoc-plugin</artifactId>
  711. <executions>
  712. <execution>
  713. <id>attach-javadocs</id>
  714. <goals>
  715. <goal>jar</goal>
  716. </goals>
  717. </execution>
  718. <execution>
  719. <id>aggregate</id>
  720. <phase>site</phase>
  721. <goals>
  722. <goal>aggregate</goal>
  723. </goals>
  724. </execution>
  725. </executions>
  726. <configuration>
  727. <overview>zookeeper-server/src/main/resources/overview.html</overview>
  728. <excludePackageNames>*.recipes.*</excludePackageNames>
  729. </configuration>
  730. </plugin>
  731. <plugin>
  732. <!-- Maven's deploy plugin only creates checksums during the deployment of the jar artifacts to repo. -->
  733. <!-- We also want to sign tarballs. Nicoulaj's plugin is the recommended solution by the community. -->
  734. <groupId>net.nicoulaj.maven.plugins</groupId>
  735. <artifactId>checksum-maven-plugin</artifactId>
  736. <executions>
  737. <execution>
  738. <goals>
  739. <goal>artifacts</goal>
  740. </goals>
  741. </execution>
  742. </executions>
  743. <configuration>
  744. <algorithms>
  745. <algorithm>SHA-512</algorithm>
  746. </algorithms>
  747. <appendFilename>true</appendFilename>
  748. </configuration>
  749. </plugin>
  750. <plugin>
  751. <groupId>com.github.spotbugs</groupId>
  752. <artifactId>spotbugs-maven-plugin</artifactId>
  753. </plugin>
  754. <plugin>
  755. <groupId>org.owasp</groupId>
  756. <artifactId>dependency-check-maven</artifactId>
  757. <configuration>
  758. <format>ALL</format>
  759. <failBuildOnCVSS>0</failBuildOnCVSS>
  760. <suppressionFiles>
  761. <suppressionsFile>owaspSuppressions.xml</suppressionsFile>
  762. </suppressionFiles>
  763. </configuration>
  764. </plugin>
  765. <plugin>
  766. <groupId>org.apache.rat</groupId>
  767. <artifactId>apache-rat-plugin</artifactId>
  768. <configuration>
  769. <excludes>
  770. <exclude>**/log4j.properties</exclude>
  771. <exclude>**/README.md</exclude>
  772. <exclude>**/git.properties</exclude>
  773. <exclude>**/findbugsExcludeFile.xml</exclude>
  774. <exclude>**/checkstyle-noframes-sorted.xsl</exclude>
  775. <exclude>**/configure.ac</exclude>
  776. <exclude>**/Makefile.am</exclude>
  777. <exclude>conf/zoo_sample.cfg</exclude>
  778. <exclude>conf/configuration.xsl</exclude>
  779. <exclude>.travis.yml</exclude>
  780. <exclude>excludeFindBugsFilter.xml</exclude>
  781. <exclude>README_packaging.txt</exclude>
  782. <exclude>src/main/resources/markdown/skin/*</exclude>
  783. <exclude>src/main/resources/markdown/html/*</exclude>
  784. <exclude>src/main/resources/markdown/images/*</exclude>
  785. <!-- contrib -->
  786. <exclude>zookeeper-contrib-monitoring/JMX-RESOURCES</exclude>
  787. <exclude>zookeeper-contrib-fatjar/src/main/resources/mainClasses</exclude>
  788. <exclude>zookeeper-contrib-zkperl/Changes</exclude>
  789. <exclude>zookeeper-contrib-zkperl/MANIFEST</exclude>
  790. <exclude>zookeeper-contrib-loggraph/src/main/resources/webapp/org/apache/zookeeper/graph/resources/*</exclude>
  791. <exclude>src/main/resources/webapp/org/apache/zookeeper/graph/resources/*</exclude>
  792. <exclude>src/main/java/com/nitido/utils/toaster/Toaster.java</exclude>
  793. <exclude>TODO</exclude>
  794. <!-- c client -->
  795. <exclude>**/acinclude.m4</exclude>
  796. <exclude>**/aminclude.am</exclude>
  797. <exclude>src/hashtable/*</exclude>
  798. <exclude>include/winconfig.h</exclude>
  799. <exclude>tests/wrappers.opt</exclude>
  800. <exclude>tests/quorum.cfg</exclude>
  801. <exclude>tests/wrappers-mt.opt</exclude>
  802. <exclude>**/c-doc.Doxyfile</exclude>
  803. </excludes>
  804. <consoleOutput>true</consoleOutput>
  805. </configuration>
  806. </plugin>
  807. </plugins>
  808. <resources>
  809. <resource>
  810. <directory>${project.basedir}src/main/java/resources</directory>
  811. <excludes>
  812. <exclude>**/*.*</exclude>
  813. </excludes>
  814. </resource>
  815. </resources>
  816. </build>
  817. <reporting>
  818. <plugins>
  819. <plugin>
  820. <groupId>org.openclover</groupId>
  821. <artifactId>clover-maven-plugin</artifactId>
  822. </plugin>
  823. </plugins>
  824. </reporting>
  825. </project>