pom.xml 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677
  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-alpha1-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. <dependency-check-maven.version>1.3.6</dependency-check-maven.version>
  100. <shell-executable>bash</shell-executable>
  101. </properties>
  102. <modules>
  103. <module>hadoop-project</module>
  104. <module>hadoop-project-dist</module>
  105. <module>hadoop-assemblies</module>
  106. <module>hadoop-maven-plugins</module>
  107. <module>hadoop-common-project</module>
  108. <module>hadoop-hdfs-project</module>
  109. <module>hadoop-yarn-project</module>
  110. <module>hadoop-mapreduce-project</module>
  111. <module>hadoop-tools</module>
  112. <module>hadoop-dist</module>
  113. <module>hadoop-client</module>
  114. <module>hadoop-minicluster</module>
  115. <module>hadoop-build-tools</module>
  116. </modules>
  117. <build>
  118. <pluginManagement>
  119. <plugins>
  120. <plugin>
  121. <groupId>org.apache.maven.plugins</groupId>
  122. <artifactId>maven-dependency-plugin</artifactId>
  123. <version>${maven-dependency-plugin.version}</version>
  124. </plugin>
  125. <plugin>
  126. <groupId>org.apache.maven.plugins</groupId>
  127. <artifactId>maven-enforcer-plugin</artifactId>
  128. <version>${maven-enforcer-plugin.version}</version>
  129. <configuration>
  130. <rules>
  131. <requireMavenVersion>
  132. <version>[3.0.2,)</version>
  133. </requireMavenVersion>
  134. <requireJavaVersion>
  135. <version>[1.8,)</version>
  136. </requireJavaVersion>
  137. </rules>
  138. </configuration>
  139. </plugin>
  140. <plugin>
  141. <groupId>org.apache.maven.plugins</groupId>
  142. <artifactId>maven-assembly-plugin</artifactId>
  143. <version>${maven-assembly-plugin.version}</version>
  144. </plugin>
  145. <plugin>
  146. <groupId>org.apache.maven.plugins</groupId>
  147. <artifactId>maven-deploy-plugin</artifactId>
  148. <version>${maven-deploy-plugin.version}</version>
  149. </plugin>
  150. <plugin>
  151. <groupId>org.apache.rat</groupId>
  152. <artifactId>apache-rat-plugin</artifactId>
  153. <version>${apache-rat-plugin.version}</version>
  154. </plugin>
  155. <plugin>
  156. <groupId>org.apache.maven.plugins</groupId>
  157. <artifactId>maven-antrun-plugin</artifactId>
  158. <version>${maven-antrun-plugin.version}</version>
  159. </plugin>
  160. <plugin>
  161. <groupId>org.apache.maven.plugins</groupId>
  162. <artifactId>maven-site-plugin</artifactId>
  163. <version>${maven-site-plugin.version}</version>
  164. <dependencies>
  165. <dependency><!-- add support for ssh/scp -->
  166. <groupId>org.apache.maven.wagon</groupId>
  167. <artifactId>wagon-ssh</artifactId>
  168. <version>${wagon-ssh.version}</version>
  169. </dependency>
  170. </dependencies>
  171. </plugin>
  172. <!--This plugin's configuration is used to store Eclipse m2e settings only.
  173. It has no influence on the Maven build itself.-->
  174. <plugin>
  175. <groupId>org.eclipse.m2e</groupId>
  176. <artifactId>lifecycle-mapping</artifactId>
  177. <version>${lifecycle-mapping.version}</version>
  178. <configuration>
  179. <lifecycleMappingMetadata>
  180. <pluginExecutions>
  181. <pluginExecution>
  182. <pluginExecutionFilter>
  183. <groupId>org.apache.maven.plugins</groupId>
  184. <artifactId>maven-antrun-plugin</artifactId>
  185. <versionRange>[1.7,)</versionRange>
  186. <goals>
  187. <goal>run</goal>
  188. </goals>
  189. </pluginExecutionFilter>
  190. <action>
  191. <ignore></ignore>
  192. </action>
  193. </pluginExecution>
  194. <pluginExecution>
  195. <pluginExecutionFilter>
  196. <groupId>org.apache.maven.plugins</groupId>
  197. <artifactId>maven-resources-plugin</artifactId>
  198. <versionRange>[2.2,)</versionRange>
  199. <goals>
  200. <goal>testResources</goal>
  201. <goal>resources</goal>
  202. </goals>
  203. </pluginExecutionFilter>
  204. <action>
  205. <ignore></ignore>
  206. </action>
  207. </pluginExecution>
  208. <pluginExecution>
  209. <pluginExecutionFilter>
  210. <groupId>org.apache.avro</groupId>
  211. <artifactId>avro-maven-plugin</artifactId>
  212. <versionRange>[1.5.3,)</versionRange>
  213. <goals>
  214. <goal>schema</goal>
  215. <goal>protocol</goal>
  216. </goals>
  217. </pluginExecutionFilter>
  218. <action>
  219. <ignore></ignore>
  220. </action>
  221. </pluginExecution>
  222. <pluginExecution>
  223. <pluginExecutionFilter>
  224. <groupId>org.codehaus.mojo.jspc</groupId>
  225. <artifactId>jspc-maven-plugin</artifactId>
  226. <versionRange>[2.0-alpha-3,)</versionRange>
  227. <goals>
  228. <goal>compile</goal>
  229. </goals>
  230. </pluginExecutionFilter>
  231. <action>
  232. <ignore></ignore>
  233. </action>
  234. </pluginExecution>
  235. <pluginExecution>
  236. <pluginExecutionFilter>
  237. <groupId>org.apache.maven.plugins</groupId>
  238. <artifactId>maven-dependency-plugin</artifactId>
  239. <versionRange>[2.4,)</versionRange>
  240. <goals>
  241. <goal>copy-dependencies</goal>
  242. <goal>build-classpath</goal>
  243. </goals>
  244. </pluginExecutionFilter>
  245. <action>
  246. <ignore></ignore>
  247. </action>
  248. </pluginExecution>
  249. <pluginExecution>
  250. <pluginExecutionFilter>
  251. <groupId>org.codehaus.mojo</groupId>
  252. <artifactId>exec-maven-plugin</artifactId>
  253. <versionRange>[1.2,)</versionRange>
  254. <goals>
  255. <goal>exec</goal>
  256. </goals>
  257. </pluginExecutionFilter>
  258. <action>
  259. <ignore></ignore>
  260. </action>
  261. </pluginExecution>
  262. <pluginExecution>
  263. <pluginExecutionFilter>
  264. <groupId>org.apache.maven.plugins</groupId>
  265. <artifactId>maven-jar-plugin</artifactId>
  266. <versionRange>[2.3.1,)</versionRange>
  267. <goals>
  268. <goal>test-jar</goal>
  269. </goals>
  270. </pluginExecutionFilter>
  271. <action>
  272. <ignore></ignore>
  273. </action>
  274. </pluginExecution>
  275. </pluginExecutions>
  276. </lifecycleMappingMetadata>
  277. </configuration>
  278. </plugin>
  279. <plugin>
  280. <groupId>com.atlassian.maven.plugins</groupId>
  281. <artifactId>maven-clover2-plugin</artifactId>
  282. <version>${maven-clover2-plugin.version}</version>
  283. </plugin>
  284. <plugin>
  285. <groupId>org.apache.felix</groupId>
  286. <artifactId>maven-bundle-plugin</artifactId>
  287. <version>${maven-bundle-plugin.version}</version>
  288. </plugin>
  289. <plugin>
  290. <groupId>org.apache.maven.plugins</groupId>
  291. <artifactId>maven-checkstyle-plugin</artifactId>
  292. <version>${maven-checkstyle-plugin.version}</version>
  293. <dependencies>
  294. <dependency>
  295. <groupId>org.apache.hadoop</groupId>
  296. <artifactId>hadoop-build-tools</artifactId>
  297. <version>${project.version}</version>
  298. </dependency>
  299. <dependency>
  300. <groupId>com.puppycrawl.tools</groupId>
  301. <artifactId>checkstyle</artifactId>
  302. <version>${checkstyle.version}</version>
  303. </dependency>
  304. </dependencies>
  305. <configuration>
  306. <configLocation>checkstyle/checkstyle.xml</configLocation>
  307. <suppressionsLocation>dev-support/checkstyle/suppressions.xml</suppressionsLocation>
  308. <includeTestSourceDirectory>true</includeTestSourceDirectory>
  309. <failOnViolation>false</failOnViolation>
  310. <format>xml</format>
  311. <format>html</format>
  312. <outputFile>${project.build.directory}/test/checkstyle-errors.xml</outputFile>
  313. </configuration>
  314. </plugin>
  315. <plugin>
  316. <groupId>org.owasp</groupId>
  317. <artifactId>dependency-check-maven</artifactId>
  318. <version>${dependency-check-maven.version}</version>
  319. </plugin>
  320. </plugins>
  321. </pluginManagement>
  322. <plugins>
  323. <plugin>
  324. <groupId>org.apache.maven.plugins</groupId>
  325. <artifactId>maven-enforcer-plugin</artifactId>
  326. <inherited>false</inherited>
  327. <executions>
  328. <execution>
  329. <id>clean</id>
  330. <goals>
  331. <goal>enforce</goal>
  332. </goals>
  333. <phase>pre-clean</phase>
  334. </execution>
  335. <execution>
  336. <id>default</id>
  337. <goals>
  338. <goal>enforce</goal>
  339. </goals>
  340. <phase>validate</phase>
  341. </execution>
  342. <execution>
  343. <id>site</id>
  344. <goals>
  345. <goal>enforce</goal>
  346. </goals>
  347. <phase>pre-site</phase>
  348. </execution>
  349. </executions>
  350. </plugin>
  351. <plugin>
  352. <groupId>org.apache.rat</groupId>
  353. <artifactId>apache-rat-plugin</artifactId>
  354. <configuration>
  355. <excludes>
  356. <exclude>.gitattributes</exclude>
  357. <exclude>.gitignore</exclude>
  358. <exclude>.git/**</exclude>
  359. <exclude>.idea/**</exclude>
  360. <exclude>**/build/**</exclude>
  361. <exclude>**/patchprocess/**</exclude>
  362. </excludes>
  363. </configuration>
  364. </plugin>
  365. <plugin>
  366. <artifactId>maven-site-plugin</artifactId>
  367. <executions>
  368. <execution>
  369. <id>attach-descriptor</id>
  370. <goals>
  371. <goal>attach-descriptor</goal>
  372. </goals>
  373. <configuration>
  374. <generateReports>true</generateReports>
  375. </configuration>
  376. </execution>
  377. </executions>
  378. </plugin>
  379. <plugin>
  380. <groupId>org.apache.felix</groupId>
  381. <artifactId>maven-bundle-plugin</artifactId>
  382. <inherited>true</inherited>
  383. <extensions>true</extensions>
  384. </plugin>
  385. <plugin>
  386. <groupId>org.apache.maven.plugins</groupId>
  387. <artifactId>maven-checkstyle-plugin</artifactId>
  388. <version>${maven-checkstyle-plugin.version}</version>
  389. </plugin>
  390. <plugin>
  391. <!-- OWASP's dependency-check plugin will scan the third party
  392. dependencies of this project for known CVEs (security
  393. vulnerabilities against them). It will produce a report
  394. in target/dependency-check-report.html. To invoke, run
  395. 'mvn dependency-check:aggregate'
  396. -->
  397. <groupId>org.owasp</groupId>
  398. <artifactId>dependency-check-maven</artifactId>
  399. <version>${dependency-check-maven.version}</version>
  400. </plugin>
  401. </plugins>
  402. </build>
  403. <reporting>
  404. <excludeDefaults>true</excludeDefaults>
  405. <plugins>
  406. <plugin>
  407. <groupId>org.apache.maven.plugins</groupId>
  408. <artifactId>maven-javadoc-plugin</artifactId>
  409. <version>${maven-javadoc-plugin.version}</version>
  410. <inherited>false</inherited>
  411. <reportSets>
  412. <reportSet>
  413. <id>aggregate</id>
  414. <configuration>
  415. <maxmemory>1024m</maxmemory>
  416. <linksource>true</linksource>
  417. <quiet>true</quiet>
  418. <verbose>false</verbose>
  419. <source>${maven.compile.source}</source>
  420. <charset>${maven.compile.encoding}</charset>
  421. <reportOutputDirectory>${project.build.directory}/site</reportOutputDirectory>
  422. <destDir>hadoop-project/api</destDir>
  423. <!-- Non-public APIs -->
  424. <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>
  425. <groups>
  426. <group>
  427. <title>Common</title>
  428. <packages>org.apache.hadoop*</packages>
  429. </group>
  430. <group>
  431. <title>HDFS</title>
  432. <packages>org.apache.hadoop.hdfs*</packages>
  433. </group>
  434. <group>
  435. <title>MapReduce</title>
  436. <packages>org.apache.hadoop.mapred*</packages>
  437. </group>
  438. <group>
  439. <title>YARN</title>
  440. <packages>org.apache.hadoop.yarn*</packages>
  441. </group>
  442. </groups>
  443. <doclet>org.apache.hadoop.classification.tools.IncludePublicAnnotationsStandardDoclet</doclet>
  444. <docletArtifacts>
  445. <docletArtifact>
  446. <groupId>org.apache.hadoop</groupId>
  447. <artifactId>hadoop-annotations</artifactId>
  448. <version>${project.version}</version>
  449. </docletArtifact>
  450. </docletArtifacts>
  451. <useStandardDocletOptions>true</useStandardDocletOptions>
  452. <!-- switch on dependency-driven aggregation -->
  453. <includeDependencySources>false</includeDependencySources>
  454. <dependencySourceIncludes>
  455. <!-- include ONLY dependencies I control -->
  456. <dependencySourceInclude>org.apache.hadoop:hadoop-annotations</dependencySourceInclude>
  457. </dependencySourceIncludes>
  458. </configuration>
  459. <reports>
  460. <report>aggregate</report>
  461. </reports>
  462. </reportSet>
  463. </reportSets>
  464. </plugin>
  465. <plugin>
  466. <groupId>org.apache.maven.plugins</groupId>
  467. <artifactId>maven-dependency-plugin</artifactId>
  468. <version>${maven-dependency-plugin.version}</version>
  469. <reportSets>
  470. <reportSet>
  471. <reports>
  472. <report>analyze-report</report>
  473. </reports>
  474. </reportSet>
  475. </reportSets>
  476. </plugin>
  477. </plugins>
  478. </reporting>
  479. <profiles>
  480. <profile>
  481. <id>src</id>
  482. <activation>
  483. <activeByDefault>false</activeByDefault>
  484. </activation>
  485. <build>
  486. <plugins>
  487. <plugin>
  488. <groupId>org.apache.maven.plugins</groupId>
  489. <artifactId>maven-assembly-plugin</artifactId>
  490. <inherited>false</inherited>
  491. <executions>
  492. <execution>
  493. <id>src-dist</id>
  494. <phase>package</phase>
  495. <goals>
  496. <goal>single</goal>
  497. </goals>
  498. <configuration>
  499. <appendAssemblyId>false</appendAssemblyId>
  500. <attach>false</attach>
  501. <finalName>hadoop-${project.version}-src</finalName>
  502. <outputDirectory>hadoop-dist/target</outputDirectory>
  503. <!-- Not using descriptorRef and hadoop-assembly dependency -->
  504. <!-- to avoid making hadoop-main to depend on a module -->
  505. <descriptors>
  506. <descriptor>hadoop-assemblies/src/main/resources/assemblies/hadoop-src.xml</descriptor>
  507. </descriptors>
  508. </configuration>
  509. </execution>
  510. </executions>
  511. </plugin>
  512. <plugin>
  513. <groupId>org.apache.maven.plugins</groupId>
  514. <artifactId>maven-antrun-plugin</artifactId>
  515. <inherited>false</inherited>
  516. <executions>
  517. <execution>
  518. <id>src-dist-msg</id>
  519. <phase>package</phase>
  520. <goals>
  521. <goal>run</goal>
  522. </goals>
  523. <configuration>
  524. <target>
  525. <echo/>
  526. <echo>Hadoop source tar available at: ${basedir}/hadoop-dist/target/hadoop-${project.version}-src.tar.gz</echo>
  527. <echo/>
  528. </target>
  529. </configuration>
  530. </execution>
  531. </executions>
  532. </plugin>
  533. </plugins>
  534. </build>
  535. </profile>
  536. <profile>
  537. <id>dist</id>
  538. <!-- Profile for generating all maven artifacts and documentation. -->
  539. <build>
  540. <plugins>
  541. <plugin>
  542. <groupId>org.apache.maven.plugins</groupId>
  543. <artifactId>maven-javadoc-plugin</artifactId>
  544. <inherited>false</inherited>
  545. <executions>
  546. <execution>
  547. <!-- build aggregate javadoc in parent only -->
  548. <id>default-cli</id>
  549. <goals>
  550. <goal>aggregate</goal>
  551. </goals>
  552. <configuration>
  553. <overview>hadoop-common-project/hadoop-common/src/main/java/overview.html</overview>
  554. </configuration>
  555. </execution>
  556. </executions>
  557. </plugin>
  558. </plugins>
  559. </build>
  560. </profile>
  561. <profile>
  562. <id>sign</id>
  563. <build>
  564. <plugins>
  565. <plugin>
  566. <groupId>org.apache.maven.plugins</groupId>
  567. <artifactId>maven-gpg-plugin</artifactId>
  568. <executions>
  569. <execution>
  570. <id>sign-artifacts</id>
  571. <phase>verify</phase>
  572. <goals>
  573. <goal>sign</goal>
  574. </goals>
  575. </execution>
  576. </executions>
  577. </plugin>
  578. </plugins>
  579. </build>
  580. </profile>
  581. <profile>
  582. <id>clover</id>
  583. <activation>
  584. <activeByDefault>false</activeByDefault>
  585. <property>
  586. <name>clover</name>
  587. </property>
  588. </activation>
  589. <properties>
  590. <cloverLicenseLocation>${user.home}/.clover.license</cloverLicenseLocation>
  591. <cloverDatabase>${project.build.directory}/clover/hadoop-coverage.db</cloverDatabase>
  592. <!-- NB: This additional parametrization is made in order
  593. to be able to re-define these properties with "-Dk=v" maven options.
  594. By some reason the expressions declared in clover
  595. docs like "${maven.clover.generateHtml}" do not work in that way.
  596. However, the below properties are confirmed to work: e.g.
  597. -DcloverGenHtml=false switches off the Html generation.
  598. The default values provided here exactly correspond to Clover defaults, so
  599. the behavior is 100% backwards compatible. -->
  600. <cloverAlwaysReport>true</cloverAlwaysReport>
  601. <cloverGenHtml>true</cloverGenHtml>
  602. <cloverGenXml>true</cloverGenXml>
  603. <cloverGenHistorical>false</cloverGenHistorical>
  604. </properties>
  605. <build>
  606. <plugins>
  607. <plugin>
  608. <groupId>com.atlassian.maven.plugins</groupId>
  609. <artifactId>maven-clover2-plugin</artifactId>
  610. <configuration>
  611. <includesAllSourceRoots>false</includesAllSourceRoots>
  612. <includesTestSourceRoots>true</includesTestSourceRoots>
  613. <licenseLocation>${cloverLicenseLocation}</licenseLocation>
  614. <cloverDatabase>${cloverDatabase}</cloverDatabase>
  615. <targetPercentage>50%</targetPercentage>
  616. <outputDirectory>${project.build.directory}/clover</outputDirectory>
  617. <alwaysReport>${cloverAlwaysReport}</alwaysReport>
  618. <generateHtml>${cloverGenHtml}</generateHtml>
  619. <generateXml>${cloverGenXml}</generateXml>
  620. <generateHistorical>${cloverGenHistorical}</generateHistorical>
  621. <excludes>
  622. <exclude>**/examples/**/*.java</exclude>
  623. <exclude>**/hamlet/*.java</exclude>
  624. <exclude>**/ha/proto/*.java</exclude>
  625. <exclude>**/protocol/proto/*.java</exclude>
  626. <exclude>**/compiler/generated/*.java</exclude>
  627. <exclude>**/protobuf/*.java</exclude>
  628. <exclude>**/v2/proto/*.java</exclude>
  629. <exclude>**/yarn/proto/*.java</exclude>
  630. <exclude>**/security/proto/*.java</exclude>
  631. <exclude>**/tools/proto/*.java</exclude>
  632. <exclude>**/hs/proto/*.java</exclude>
  633. </excludes>
  634. </configuration>
  635. <executions>
  636. <execution>
  637. <id>clover-setup</id>
  638. <phase>process-sources</phase>
  639. <goals>
  640. <goal>setup</goal>
  641. </goals>
  642. </execution>
  643. <execution>
  644. <id>clover</id>
  645. <phase>test</phase>
  646. <goals>
  647. <goal>clover</goal>
  648. </goals>
  649. </execution>
  650. </executions>
  651. </plugin>
  652. </plugins>
  653. </build>
  654. </profile>
  655. </profiles>
  656. </project>