pom.xml 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License. See accompanying LICENSE file.
  12. -->
  13. <project xmlns="http://maven.apache.org/POM/4.0.0"
  14. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  15. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  16. <modelVersion>4.0.0</modelVersion>
  17. <groupId>org.apache.hadoop</groupId>
  18. <artifactId>hadoop-main</artifactId>
  19. <version>3.0.0-SNAPSHOT</version>
  20. <description>Apache Hadoop Main</description>
  21. <name>Apache Hadoop Main</name>
  22. <packaging>pom</packaging>
  23. <dependencyManagement>
  24. <dependencies>
  25. <dependency>
  26. <groupId>com.cenqua.clover</groupId>
  27. <artifactId>clover</artifactId>
  28. <!-- Use the version needed by maven-clover-plugin -->
  29. <version>3.0.2</version>
  30. </dependency>
  31. </dependencies>
  32. </dependencyManagement>
  33. <distributionManagement>
  34. <repository>
  35. <id>${distMgmtStagingId}</id>
  36. <name>${distMgmtStagingName}</name>
  37. <url>${distMgmtStagingUrl}</url>
  38. </repository>
  39. <snapshotRepository>
  40. <id>${distMgmtSnapshotsId}</id>
  41. <name>${distMgmtSnapshotsName}</name>
  42. <url>${distMgmtSnapshotsUrl}</url>
  43. </snapshotRepository>
  44. <site>
  45. <id>apache.website</id>
  46. <url>scpexe://people.apache.org/www/hadoop.apache.org/docs/r${project.version}</url>
  47. </site>
  48. </distributionManagement>
  49. <repositories>
  50. <repository>
  51. <id>${distMgmtSnapshotsId}</id>
  52. <name>${distMgmtSnapshotsName}</name>
  53. <url>${distMgmtSnapshotsUrl}</url>
  54. </repository>
  55. <repository>
  56. <id>repository.jboss.org</id>
  57. <url>http://repository.jboss.org/nexus/content/groups/public/</url>
  58. <snapshots>
  59. <enabled>false</enabled>
  60. </snapshots>
  61. </repository>
  62. </repositories>
  63. <licenses>
  64. <license>
  65. <name>Apache License, Version 2.0</name>
  66. <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
  67. </license>
  68. </licenses>
  69. <organization>
  70. <name>Apache Software Foundation</name>
  71. <url>http://www.apache.org</url>
  72. </organization>
  73. <properties>
  74. <distMgmtSnapshotsId>apache.snapshots.https</distMgmtSnapshotsId>
  75. <distMgmtSnapshotsName>Apache Development Snapshot Repository</distMgmtSnapshotsName>
  76. <distMgmtSnapshotsUrl>https://repository.apache.org/content/repositories/snapshots</distMgmtSnapshotsUrl>
  77. <distMgmtStagingId>apache.staging.https</distMgmtStagingId>
  78. <distMgmtStagingName>Apache Release Distribution Repository</distMgmtStagingName>
  79. <distMgmtStagingUrl>https://repository.apache.org/service/local/staging/deploy/maven2</distMgmtStagingUrl>
  80. <!-- platform encoding override -->
  81. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  82. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  83. <!-- maven plugin versions -->
  84. <maven-deploy-plugin.version>2.8.1</maven-deploy-plugin.version>
  85. <maven-site-plugin.version>3.5</maven-site-plugin.version>
  86. <maven-stylus-skin.version>1.5</maven-stylus-skin.version>
  87. <maven-antrun-plugin.version>1.7</maven-antrun-plugin.version>
  88. <maven-assembly-plugin.version>2.4</maven-assembly-plugin.version>
  89. <maven-dependency-plugin.version>2.8</maven-dependency-plugin.version>
  90. <maven-enforcer-plugin.version>1.3.1</maven-enforcer-plugin.version>
  91. <maven-javadoc-plugin.version>2.9.1</maven-javadoc-plugin.version>
  92. <apache-rat-plugin.version>0.10</apache-rat-plugin.version>
  93. <wagon-ssh.version>1.0</wagon-ssh.version>
  94. <maven-clover2-plugin.version>3.3.0</maven-clover2-plugin.version>
  95. <maven-bundle-plugin.version>2.5.0</maven-bundle-plugin.version>
  96. <lifecycle-mapping.version>1.0.0</lifecycle-mapping.version>
  97. <maven-checkstyle-plugin.version>2.15</maven-checkstyle-plugin.version>
  98. <checkstyle.version>6.6</checkstyle.version>
  99. <shell-executable>bash</shell-executable>
  100. </properties>
  101. <modules>
  102. <module>hadoop-project</module>
  103. <module>hadoop-project-dist</module>
  104. <module>hadoop-assemblies</module>
  105. <module>hadoop-maven-plugins</module>
  106. <module>hadoop-common-project</module>
  107. <module>hadoop-hdfs-project</module>
  108. <module>hadoop-yarn-project</module>
  109. <module>hadoop-mapreduce-project</module>
  110. <module>hadoop-tools</module>
  111. <module>hadoop-dist</module>
  112. <module>hadoop-client</module>
  113. <module>hadoop-minicluster</module>
  114. <module>hadoop-build-tools</module>
  115. </modules>
  116. <build>
  117. <pluginManagement>
  118. <plugins>
  119. <plugin>
  120. <groupId>org.apache.maven.plugins</groupId>
  121. <artifactId>maven-dependency-plugin</artifactId>
  122. <version>${maven-dependency-plugin.version}</version>
  123. </plugin>
  124. <plugin>
  125. <groupId>org.apache.maven.plugins</groupId>
  126. <artifactId>maven-enforcer-plugin</artifactId>
  127. <version>${maven-enforcer-plugin.version}</version>
  128. <configuration>
  129. <rules>
  130. <requireMavenVersion>
  131. <version>[3.0.2,)</version>
  132. </requireMavenVersion>
  133. <requireJavaVersion>
  134. <version>[1.7,)</version>
  135. </requireJavaVersion>
  136. </rules>
  137. </configuration>
  138. </plugin>
  139. <plugin>
  140. <groupId>org.apache.maven.plugins</groupId>
  141. <artifactId>maven-assembly-plugin</artifactId>
  142. <version>${maven-assembly-plugin.version}</version>
  143. </plugin>
  144. <plugin>
  145. <groupId>org.apache.maven.plugins</groupId>
  146. <artifactId>maven-deploy-plugin</artifactId>
  147. <version>${maven-deploy-plugin.version}</version>
  148. </plugin>
  149. <plugin>
  150. <groupId>org.apache.rat</groupId>
  151. <artifactId>apache-rat-plugin</artifactId>
  152. <version>${apache-rat-plugin.version}</version>
  153. </plugin>
  154. <plugin>
  155. <groupId>org.apache.maven.plugins</groupId>
  156. <artifactId>maven-antrun-plugin</artifactId>
  157. <version>${maven-antrun-plugin.version}</version>
  158. </plugin>
  159. <plugin>
  160. <groupId>org.apache.maven.plugins</groupId>
  161. <artifactId>maven-site-plugin</artifactId>
  162. <version>${maven-site-plugin.version}</version>
  163. <dependencies>
  164. <dependency><!-- add support for ssh/scp -->
  165. <groupId>org.apache.maven.wagon</groupId>
  166. <artifactId>wagon-ssh</artifactId>
  167. <version>${wagon-ssh.version}</version>
  168. </dependency>
  169. </dependencies>
  170. </plugin>
  171. <!--This plugin's configuration is used to store Eclipse m2e settings only.
  172. It has no influence on the Maven build itself.-->
  173. <plugin>
  174. <groupId>org.eclipse.m2e</groupId>
  175. <artifactId>lifecycle-mapping</artifactId>
  176. <version>${lifecycle-mapping.version}</version>
  177. <configuration>
  178. <lifecycleMappingMetadata>
  179. <pluginExecutions>
  180. <pluginExecution>
  181. <pluginExecutionFilter>
  182. <groupId>org.apache.maven.plugins</groupId>
  183. <artifactId>maven-antrun-plugin</artifactId>
  184. <versionRange>[1.7,)</versionRange>
  185. <goals>
  186. <goal>run</goal>
  187. </goals>
  188. </pluginExecutionFilter>
  189. <action>
  190. <ignore></ignore>
  191. </action>
  192. </pluginExecution>
  193. <pluginExecution>
  194. <pluginExecutionFilter>
  195. <groupId>org.apache.maven.plugins</groupId>
  196. <artifactId>maven-resources-plugin</artifactId>
  197. <versionRange>[2.2,)</versionRange>
  198. <goals>
  199. <goal>testResources</goal>
  200. <goal>resources</goal>
  201. </goals>
  202. </pluginExecutionFilter>
  203. <action>
  204. <ignore></ignore>
  205. </action>
  206. </pluginExecution>
  207. <pluginExecution>
  208. <pluginExecutionFilter>
  209. <groupId>org.apache.avro</groupId>
  210. <artifactId>avro-maven-plugin</artifactId>
  211. <versionRange>[1.5.3,)</versionRange>
  212. <goals>
  213. <goal>schema</goal>
  214. <goal>protocol</goal>
  215. </goals>
  216. </pluginExecutionFilter>
  217. <action>
  218. <ignore></ignore>
  219. </action>
  220. </pluginExecution>
  221. <pluginExecution>
  222. <pluginExecutionFilter>
  223. <groupId>org.codehaus.mojo.jspc</groupId>
  224. <artifactId>jspc-maven-plugin</artifactId>
  225. <versionRange>[2.0-alpha-3,)</versionRange>
  226. <goals>
  227. <goal>compile</goal>
  228. </goals>
  229. </pluginExecutionFilter>
  230. <action>
  231. <ignore></ignore>
  232. </action>
  233. </pluginExecution>
  234. <pluginExecution>
  235. <pluginExecutionFilter>
  236. <groupId>org.apache.maven.plugins</groupId>
  237. <artifactId>maven-dependency-plugin</artifactId>
  238. <versionRange>[2.4,)</versionRange>
  239. <goals>
  240. <goal>copy-dependencies</goal>
  241. <goal>build-classpath</goal>
  242. </goals>
  243. </pluginExecutionFilter>
  244. <action>
  245. <ignore></ignore>
  246. </action>
  247. </pluginExecution>
  248. <pluginExecution>
  249. <pluginExecutionFilter>
  250. <groupId>org.codehaus.mojo</groupId>
  251. <artifactId>exec-maven-plugin</artifactId>
  252. <versionRange>[1.2,)</versionRange>
  253. <goals>
  254. <goal>exec</goal>
  255. </goals>
  256. </pluginExecutionFilter>
  257. <action>
  258. <ignore></ignore>
  259. </action>
  260. </pluginExecution>
  261. <pluginExecution>
  262. <pluginExecutionFilter>
  263. <groupId>org.apache.maven.plugins</groupId>
  264. <artifactId>maven-jar-plugin</artifactId>
  265. <versionRange>[2.3.1,)</versionRange>
  266. <goals>
  267. <goal>test-jar</goal>
  268. </goals>
  269. </pluginExecutionFilter>
  270. <action>
  271. <ignore></ignore>
  272. </action>
  273. </pluginExecution>
  274. </pluginExecutions>
  275. </lifecycleMappingMetadata>
  276. </configuration>
  277. </plugin>
  278. <plugin>
  279. <groupId>com.atlassian.maven.plugins</groupId>
  280. <artifactId>maven-clover2-plugin</artifactId>
  281. <version>${maven-clover2-plugin.version}</version>
  282. </plugin>
  283. <plugin>
  284. <groupId>org.apache.felix</groupId>
  285. <artifactId>maven-bundle-plugin</artifactId>
  286. <version>${maven-bundle-plugin.version}</version>
  287. </plugin>
  288. <plugin>
  289. <groupId>org.apache.maven.plugins</groupId>
  290. <artifactId>maven-checkstyle-plugin</artifactId>
  291. <version>${maven-checkstyle-plugin.version}</version>
  292. <dependencies>
  293. <dependency>
  294. <groupId>org.apache.hadoop</groupId>
  295. <artifactId>hadoop-build-tools</artifactId>
  296. <version>${project.version}</version>
  297. </dependency>
  298. <dependency>
  299. <groupId>com.puppycrawl.tools</groupId>
  300. <artifactId>checkstyle</artifactId>
  301. <version>${checkstyle.version}</version>
  302. </dependency>
  303. </dependencies>
  304. <configuration>
  305. <configLocation>checkstyle/checkstyle.xml</configLocation>
  306. <failOnViolation>false</failOnViolation>
  307. <format>xml</format>
  308. <format>html</format>
  309. <outputFile>${project.build.directory}/test/checkstyle-errors.xml</outputFile>
  310. </configuration>
  311. </plugin>
  312. </plugins>
  313. </pluginManagement>
  314. <plugins>
  315. <plugin>
  316. <groupId>org.apache.maven.plugins</groupId>
  317. <artifactId>maven-enforcer-plugin</artifactId>
  318. <inherited>false</inherited>
  319. <executions>
  320. <execution>
  321. <id>clean</id>
  322. <goals>
  323. <goal>enforce</goal>
  324. </goals>
  325. <phase>pre-clean</phase>
  326. </execution>
  327. <execution>
  328. <id>default</id>
  329. <goals>
  330. <goal>enforce</goal>
  331. </goals>
  332. <phase>validate</phase>
  333. </execution>
  334. <execution>
  335. <id>site</id>
  336. <goals>
  337. <goal>enforce</goal>
  338. </goals>
  339. <phase>pre-site</phase>
  340. </execution>
  341. </executions>
  342. </plugin>
  343. <plugin>
  344. <groupId>org.apache.rat</groupId>
  345. <artifactId>apache-rat-plugin</artifactId>
  346. <configuration>
  347. <excludes>
  348. <exclude>.gitattributes</exclude>
  349. <exclude>.gitignore</exclude>
  350. <exclude>.git/**</exclude>
  351. <exclude>.idea/**</exclude>
  352. <exclude>**/build/**</exclude>
  353. <exclude>**/patchprocess/**</exclude>
  354. </excludes>
  355. </configuration>
  356. </plugin>
  357. <plugin>
  358. <artifactId>maven-site-plugin</artifactId>
  359. <executions>
  360. <execution>
  361. <id>attach-descriptor</id>
  362. <goals>
  363. <goal>attach-descriptor</goal>
  364. </goals>
  365. <configuration>
  366. <generateReports>true</generateReports>
  367. </configuration>
  368. </execution>
  369. </executions>
  370. </plugin>
  371. <plugin>
  372. <groupId>org.apache.felix</groupId>
  373. <artifactId>maven-bundle-plugin</artifactId>
  374. <inherited>true</inherited>
  375. <extensions>true</extensions>
  376. </plugin>
  377. <plugin>
  378. <groupId>org.apache.maven.plugins</groupId>
  379. <artifactId>maven-checkstyle-plugin</artifactId>
  380. <version>${maven-checkstyle-plugin.version}</version>
  381. </plugin>
  382. </plugins>
  383. </build>
  384. <reporting>
  385. <excludeDefaults>true</excludeDefaults>
  386. <plugins>
  387. <plugin>
  388. <groupId>org.apache.maven.plugins</groupId>
  389. <artifactId>maven-javadoc-plugin</artifactId>
  390. <version>${maven-javadoc-plugin.version}</version>
  391. <inherited>false</inherited>
  392. <reportSets>
  393. <reportSet>
  394. <id>aggregate</id>
  395. <configuration>
  396. <maxmemory>1024m</maxmemory>
  397. <linksource>true</linksource>
  398. <quiet>true</quiet>
  399. <verbose>false</verbose>
  400. <source>${maven.compile.source}</source>
  401. <charset>${maven.compile.encoding}</charset>
  402. <reportOutputDirectory>${project.build.directory}/site</reportOutputDirectory>
  403. <destDir>hadoop-project/api</destDir>
  404. <!-- Non-public APIs -->
  405. <excludePackageNames>org.apache.hadoop.authentication*,org.apache.hadoop.mapreduce.v2.proto,org.apache.hadoop.yarn.proto,org.apache.hadoop.yarn.server*,org.apache.hadoop.yarn.webapp*</excludePackageNames>
  406. <groups>
  407. <group>
  408. <title>Common</title>
  409. <packages>org.apache.hadoop*</packages>
  410. </group>
  411. <group>
  412. <title>HDFS</title>
  413. <packages>org.apache.hadoop.hdfs*</packages>
  414. </group>
  415. <group>
  416. <title>MapReduce</title>
  417. <packages>org.apache.hadoop.mapred*</packages>
  418. </group>
  419. <group>
  420. <title>YARN</title>
  421. <packages>org.apache.hadoop.yarn*</packages>
  422. </group>
  423. </groups>
  424. <doclet>org.apache.hadoop.classification.tools.IncludePublicAnnotationsStandardDoclet</doclet>
  425. <docletArtifacts>
  426. <docletArtifact>
  427. <groupId>org.apache.hadoop</groupId>
  428. <artifactId>hadoop-annotations</artifactId>
  429. <version>${project.version}</version>
  430. </docletArtifact>
  431. </docletArtifacts>
  432. <useStandardDocletOptions>true</useStandardDocletOptions>
  433. <!-- switch on dependency-driven aggregation -->
  434. <includeDependencySources>false</includeDependencySources>
  435. <dependencySourceIncludes>
  436. <!-- include ONLY dependencies I control -->
  437. <dependencySourceInclude>org.apache.hadoop:hadoop-annotations</dependencySourceInclude>
  438. </dependencySourceIncludes>
  439. </configuration>
  440. <reports>
  441. <report>aggregate</report>
  442. </reports>
  443. </reportSet>
  444. </reportSets>
  445. </plugin>
  446. <plugin>
  447. <groupId>org.apache.maven.plugins</groupId>
  448. <artifactId>maven-dependency-plugin</artifactId>
  449. <version>${maven-dependency-plugin.version}</version>
  450. <reportSets>
  451. <reportSet>
  452. <reports>
  453. <report>analyze-report</report>
  454. </reports>
  455. </reportSet>
  456. </reportSets>
  457. </plugin>
  458. </plugins>
  459. </reporting>
  460. <profiles>
  461. <profile>
  462. <id>src</id>
  463. <activation>
  464. <activeByDefault>false</activeByDefault>
  465. </activation>
  466. <build>
  467. <plugins>
  468. <plugin>
  469. <groupId>org.apache.maven.plugins</groupId>
  470. <artifactId>maven-assembly-plugin</artifactId>
  471. <inherited>false</inherited>
  472. <executions>
  473. <execution>
  474. <id>src-dist</id>
  475. <phase>package</phase>
  476. <goals>
  477. <goal>single</goal>
  478. </goals>
  479. <configuration>
  480. <appendAssemblyId>false</appendAssemblyId>
  481. <attach>false</attach>
  482. <finalName>hadoop-${project.version}-src</finalName>
  483. <outputDirectory>hadoop-dist/target</outputDirectory>
  484. <!-- Not using descriptorRef and hadoop-assembly dependency -->
  485. <!-- to avoid making hadoop-main to depend on a module -->
  486. <descriptors>
  487. <descriptor>hadoop-assemblies/src/main/resources/assemblies/hadoop-src.xml</descriptor>
  488. </descriptors>
  489. </configuration>
  490. </execution>
  491. </executions>
  492. </plugin>
  493. <plugin>
  494. <groupId>org.apache.maven.plugins</groupId>
  495. <artifactId>maven-antrun-plugin</artifactId>
  496. <inherited>false</inherited>
  497. <executions>
  498. <execution>
  499. <id>src-dist-msg</id>
  500. <phase>package</phase>
  501. <goals>
  502. <goal>run</goal>
  503. </goals>
  504. <configuration>
  505. <target>
  506. <echo/>
  507. <echo>Hadoop source tar available at: ${basedir}/hadoop-dist/target/hadoop-${project.version}-src.tar.gz</echo>
  508. <echo/>
  509. </target>
  510. </configuration>
  511. </execution>
  512. </executions>
  513. </plugin>
  514. </plugins>
  515. </build>
  516. </profile>
  517. <profile>
  518. <id>dist</id>
  519. <!-- Profile for generating all maven artifacts and documentation. -->
  520. <build>
  521. <plugins>
  522. <plugin>
  523. <groupId>org.apache.maven.plugins</groupId>
  524. <artifactId>maven-javadoc-plugin</artifactId>
  525. <inherited>false</inherited>
  526. <executions>
  527. <execution>
  528. <!-- build aggregate javadoc in parent only -->
  529. <id>default-cli</id>
  530. <goals>
  531. <goal>aggregate</goal>
  532. </goals>
  533. <configuration>
  534. <overview>hadoop-common-project/hadoop-common/src/main/java/overview.html</overview>
  535. </configuration>
  536. </execution>
  537. </executions>
  538. </plugin>
  539. </plugins>
  540. </build>
  541. </profile>
  542. <profile>
  543. <id>sign</id>
  544. <build>
  545. <plugins>
  546. <plugin>
  547. <groupId>org.apache.maven.plugins</groupId>
  548. <artifactId>maven-gpg-plugin</artifactId>
  549. <executions>
  550. <execution>
  551. <id>sign-artifacts</id>
  552. <phase>verify</phase>
  553. <goals>
  554. <goal>sign</goal>
  555. </goals>
  556. </execution>
  557. </executions>
  558. </plugin>
  559. </plugins>
  560. </build>
  561. </profile>
  562. <profile>
  563. <id>clover</id>
  564. <activation>
  565. <activeByDefault>false</activeByDefault>
  566. <property>
  567. <name>clover</name>
  568. </property>
  569. </activation>
  570. <properties>
  571. <cloverLicenseLocation>${user.home}/.clover.license</cloverLicenseLocation>
  572. <cloverDatabase>${project.build.directory}/clover/hadoop-coverage.db</cloverDatabase>
  573. <!-- NB: This additional parametrization is made in order
  574. to be able to re-define these properties with "-Dk=v" maven options.
  575. By some reason the expressions declared in clover
  576. docs like "${maven.clover.generateHtml}" do not work in that way.
  577. However, the below properties are confirmed to work: e.g.
  578. -DcloverGenHtml=false switches off the Html generation.
  579. The default values provided here exactly correspond to Clover defaults, so
  580. the behavior is 100% backwards compatible. -->
  581. <cloverAlwaysReport>true</cloverAlwaysReport>
  582. <cloverGenHtml>true</cloverGenHtml>
  583. <cloverGenXml>true</cloverGenXml>
  584. <cloverGenHistorical>false</cloverGenHistorical>
  585. </properties>
  586. <build>
  587. <plugins>
  588. <plugin>
  589. <groupId>com.atlassian.maven.plugins</groupId>
  590. <artifactId>maven-clover2-plugin</artifactId>
  591. <configuration>
  592. <includesAllSourceRoots>false</includesAllSourceRoots>
  593. <includesTestSourceRoots>true</includesTestSourceRoots>
  594. <licenseLocation>${cloverLicenseLocation}</licenseLocation>
  595. <cloverDatabase>${cloverDatabase}</cloverDatabase>
  596. <targetPercentage>50%</targetPercentage>
  597. <outputDirectory>${project.build.directory}/clover</outputDirectory>
  598. <alwaysReport>${cloverAlwaysReport}</alwaysReport>
  599. <generateHtml>${cloverGenHtml}</generateHtml>
  600. <generateXml>${cloverGenXml}</generateXml>
  601. <generateHistorical>${cloverGenHistorical}</generateHistorical>
  602. <excludes>
  603. <exclude>**/examples/**/*.java</exclude>
  604. <exclude>**/hamlet/*.java</exclude>
  605. <exclude>**/ha/proto/*.java</exclude>
  606. <exclude>**/protocol/proto/*.java</exclude>
  607. <exclude>**/compiler/generated/*.java</exclude>
  608. <exclude>**/protobuf/*.java</exclude>
  609. <exclude>**/v2/proto/*.java</exclude>
  610. <exclude>**/yarn/proto/*.java</exclude>
  611. <exclude>**/security/proto/*.java</exclude>
  612. <exclude>**/tools/proto/*.java</exclude>
  613. <exclude>**/hs/proto/*.java</exclude>
  614. </excludes>
  615. </configuration>
  616. <executions>
  617. <execution>
  618. <id>clover-setup</id>
  619. <phase>process-sources</phase>
  620. <goals>
  621. <goal>setup</goal>
  622. </goals>
  623. </execution>
  624. <execution>
  625. <id>clover</id>
  626. <phase>test</phase>
  627. <goals>
  628. <goal>clover</goal>
  629. </goals>
  630. </execution>
  631. </executions>
  632. </plugin>
  633. </plugins>
  634. </build>
  635. </profile>
  636. </profiles>
  637. </project>