pom.xml 25 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-alpha3</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.10</maven-dependency-plugin.version>
  90. <maven-enforcer-plugin.version>1.4.1</maven-enforcer-plugin.version>
  91. <maven-javadoc-plugin.version>2.9.1</maven-javadoc-plugin.version>
  92. <maven-gpg-plugin.version>1.5</maven-gpg-plugin.version>
  93. <maven-remote-resources-plugin.version>1.5</maven-remote-resources-plugin.version>
  94. <maven-resources-plugin.version>3.0.1</maven-resources-plugin.version>
  95. <apache-rat-plugin.version>0.10</apache-rat-plugin.version>
  96. <wagon-ssh.version>1.0</wagon-ssh.version>
  97. <maven-clover2-plugin.version>3.3.0</maven-clover2-plugin.version>
  98. <maven-bundle-plugin.version>2.5.0</maven-bundle-plugin.version>
  99. <lifecycle-mapping.version>1.0.0</lifecycle-mapping.version>
  100. <maven-checkstyle-plugin.version>2.15</maven-checkstyle-plugin.version>
  101. <checkstyle.version>6.6</checkstyle.version>
  102. <dependency-check-maven.version>1.4.3</dependency-check-maven.version>
  103. <shell-executable>bash</shell-executable>
  104. </properties>
  105. <modules>
  106. <module>hadoop-project</module>
  107. <module>hadoop-project-dist</module>
  108. <module>hadoop-assemblies</module>
  109. <module>hadoop-maven-plugins</module>
  110. <module>hadoop-common-project</module>
  111. <module>hadoop-hdfs-project</module>
  112. <module>hadoop-yarn-project</module>
  113. <module>hadoop-mapreduce-project</module>
  114. <module>hadoop-tools</module>
  115. <module>hadoop-dist</module>
  116. <module>hadoop-minicluster</module>
  117. <module>hadoop-client-modules</module>
  118. <module>hadoop-build-tools</module>
  119. <module>hadoop-cloud-storage-project</module>
  120. </modules>
  121. <build>
  122. <pluginManagement>
  123. <plugins>
  124. <plugin>
  125. <groupId>org.apache.maven.plugins</groupId>
  126. <artifactId>maven-dependency-plugin</artifactId>
  127. <version>${maven-dependency-plugin.version}</version>
  128. </plugin>
  129. <plugin>
  130. <groupId>org.apache.maven.plugins</groupId>
  131. <artifactId>maven-enforcer-plugin</artifactId>
  132. <version>${maven-enforcer-plugin.version}</version>
  133. <configuration>
  134. <rules>
  135. <requireMavenVersion>
  136. <version>[3.0.2,)</version>
  137. </requireMavenVersion>
  138. <requireJavaVersion>
  139. <version>[1.8,)</version>
  140. </requireJavaVersion>
  141. </rules>
  142. </configuration>
  143. </plugin>
  144. <plugin>
  145. <groupId>org.apache.maven.plugins</groupId>
  146. <artifactId>maven-assembly-plugin</artifactId>
  147. <version>${maven-assembly-plugin.version}</version>
  148. </plugin>
  149. <plugin>
  150. <groupId>org.apache.maven.plugins</groupId>
  151. <artifactId>maven-deploy-plugin</artifactId>
  152. <version>${maven-deploy-plugin.version}</version>
  153. </plugin>
  154. <plugin>
  155. <groupId>org.apache.rat</groupId>
  156. <artifactId>apache-rat-plugin</artifactId>
  157. <version>${apache-rat-plugin.version}</version>
  158. </plugin>
  159. <plugin>
  160. <groupId>org.apache.maven.plugins</groupId>
  161. <artifactId>maven-antrun-plugin</artifactId>
  162. <version>${maven-antrun-plugin.version}</version>
  163. </plugin>
  164. <plugin>
  165. <groupId>org.apache.maven.plugins</groupId>
  166. <artifactId>maven-site-plugin</artifactId>
  167. <version>${maven-site-plugin.version}</version>
  168. <dependencies>
  169. <dependency><!-- add support for ssh/scp -->
  170. <groupId>org.apache.maven.wagon</groupId>
  171. <artifactId>wagon-ssh</artifactId>
  172. <version>${wagon-ssh.version}</version>
  173. </dependency>
  174. </dependencies>
  175. </plugin>
  176. <!--This plugin's configuration is used to store Eclipse m2e settings only.
  177. It has no influence on the Maven build itself.-->
  178. <plugin>
  179. <groupId>org.eclipse.m2e</groupId>
  180. <artifactId>lifecycle-mapping</artifactId>
  181. <version>${lifecycle-mapping.version}</version>
  182. <configuration>
  183. <lifecycleMappingMetadata>
  184. <pluginExecutions>
  185. <pluginExecution>
  186. <pluginExecutionFilter>
  187. <groupId>org.apache.maven.plugins</groupId>
  188. <artifactId>maven-antrun-plugin</artifactId>
  189. <versionRange>[1.7,)</versionRange>
  190. <goals>
  191. <goal>run</goal>
  192. </goals>
  193. </pluginExecutionFilter>
  194. <action>
  195. <ignore></ignore>
  196. </action>
  197. </pluginExecution>
  198. <pluginExecution>
  199. <pluginExecutionFilter>
  200. <groupId>org.apache.maven.plugins</groupId>
  201. <artifactId>maven-resources-plugin</artifactId>
  202. <versionRange>[2.2,)</versionRange>
  203. <goals>
  204. <goal>testResources</goal>
  205. <goal>resources</goal>
  206. </goals>
  207. </pluginExecutionFilter>
  208. <action>
  209. <ignore></ignore>
  210. </action>
  211. </pluginExecution>
  212. <pluginExecution>
  213. <pluginExecutionFilter>
  214. <groupId>org.apache.avro</groupId>
  215. <artifactId>avro-maven-plugin</artifactId>
  216. <versionRange>[1.5.3,)</versionRange>
  217. <goals>
  218. <goal>schema</goal>
  219. <goal>protocol</goal>
  220. </goals>
  221. </pluginExecutionFilter>
  222. <action>
  223. <ignore></ignore>
  224. </action>
  225. </pluginExecution>
  226. <pluginExecution>
  227. <pluginExecutionFilter>
  228. <groupId>org.codehaus.mojo.jspc</groupId>
  229. <artifactId>jspc-maven-plugin</artifactId>
  230. <versionRange>[2.0-alpha-3,)</versionRange>
  231. <goals>
  232. <goal>compile</goal>
  233. </goals>
  234. </pluginExecutionFilter>
  235. <action>
  236. <ignore></ignore>
  237. </action>
  238. </pluginExecution>
  239. <pluginExecution>
  240. <pluginExecutionFilter>
  241. <groupId>org.apache.maven.plugins</groupId>
  242. <artifactId>maven-dependency-plugin</artifactId>
  243. <versionRange>[2.4,)</versionRange>
  244. <goals>
  245. <goal>copy-dependencies</goal>
  246. <goal>build-classpath</goal>
  247. </goals>
  248. </pluginExecutionFilter>
  249. <action>
  250. <ignore></ignore>
  251. </action>
  252. </pluginExecution>
  253. <pluginExecution>
  254. <pluginExecutionFilter>
  255. <groupId>org.codehaus.mojo</groupId>
  256. <artifactId>exec-maven-plugin</artifactId>
  257. <versionRange>[1.2,)</versionRange>
  258. <goals>
  259. <goal>exec</goal>
  260. </goals>
  261. </pluginExecutionFilter>
  262. <action>
  263. <ignore></ignore>
  264. </action>
  265. </pluginExecution>
  266. <pluginExecution>
  267. <pluginExecutionFilter>
  268. <groupId>org.apache.maven.plugins</groupId>
  269. <artifactId>maven-jar-plugin</artifactId>
  270. <versionRange>[2.3.1,)</versionRange>
  271. <goals>
  272. <goal>test-jar</goal>
  273. </goals>
  274. </pluginExecutionFilter>
  275. <action>
  276. <ignore></ignore>
  277. </action>
  278. </pluginExecution>
  279. </pluginExecutions>
  280. </lifecycleMappingMetadata>
  281. </configuration>
  282. </plugin>
  283. <plugin>
  284. <groupId>com.atlassian.maven.plugins</groupId>
  285. <artifactId>maven-clover2-plugin</artifactId>
  286. <version>${maven-clover2-plugin.version}</version>
  287. </plugin>
  288. <plugin>
  289. <groupId>org.apache.felix</groupId>
  290. <artifactId>maven-bundle-plugin</artifactId>
  291. <version>${maven-bundle-plugin.version}</version>
  292. </plugin>
  293. <plugin>
  294. <groupId>org.apache.maven.plugins</groupId>
  295. <artifactId>maven-checkstyle-plugin</artifactId>
  296. <version>${maven-checkstyle-plugin.version}</version>
  297. <dependencies>
  298. <dependency>
  299. <groupId>org.apache.hadoop</groupId>
  300. <artifactId>hadoop-build-tools</artifactId>
  301. <version>${project.version}</version>
  302. </dependency>
  303. <dependency>
  304. <groupId>com.puppycrawl.tools</groupId>
  305. <artifactId>checkstyle</artifactId>
  306. <version>${checkstyle.version}</version>
  307. </dependency>
  308. </dependencies>
  309. <configuration>
  310. <configLocation>checkstyle/checkstyle.xml</configLocation>
  311. <suppressionsLocation>checkstyle/suppressions.xml</suppressionsLocation>
  312. <includeTestSourceDirectory>true</includeTestSourceDirectory>
  313. <failOnViolation>false</failOnViolation>
  314. <format>xml</format>
  315. <format>html</format>
  316. <outputFile>${project.build.directory}/test/checkstyle-errors.xml</outputFile>
  317. </configuration>
  318. </plugin>
  319. <plugin>
  320. <groupId>org.owasp</groupId>
  321. <artifactId>dependency-check-maven</artifactId>
  322. <version>${dependency-check-maven.version}</version>
  323. </plugin>
  324. </plugins>
  325. </pluginManagement>
  326. <plugins>
  327. <plugin>
  328. <groupId>org.apache.maven.plugins</groupId>
  329. <artifactId>maven-enforcer-plugin</artifactId>
  330. <inherited>false</inherited>
  331. <executions>
  332. <execution>
  333. <id>clean</id>
  334. <goals>
  335. <goal>enforce</goal>
  336. </goals>
  337. <phase>pre-clean</phase>
  338. </execution>
  339. <execution>
  340. <id>default</id>
  341. <goals>
  342. <goal>enforce</goal>
  343. </goals>
  344. <phase>validate</phase>
  345. </execution>
  346. <execution>
  347. <id>site</id>
  348. <goals>
  349. <goal>enforce</goal>
  350. </goals>
  351. <phase>pre-site</phase>
  352. </execution>
  353. </executions>
  354. </plugin>
  355. <plugin>
  356. <groupId>org.apache.rat</groupId>
  357. <artifactId>apache-rat-plugin</artifactId>
  358. <configuration>
  359. <excludes>
  360. <exclude>.gitattributes</exclude>
  361. <exclude>.gitignore</exclude>
  362. <exclude>.git/**</exclude>
  363. <exclude>.idea/**</exclude>
  364. <exclude>**/build/**</exclude>
  365. <exclude>**/patchprocess/**</exclude>
  366. <exclude>**/*.js</exclude>
  367. </excludes>
  368. </configuration>
  369. </plugin>
  370. <plugin>
  371. <artifactId>maven-site-plugin</artifactId>
  372. <executions>
  373. <execution>
  374. <id>attach-descriptor</id>
  375. <goals>
  376. <goal>attach-descriptor</goal>
  377. </goals>
  378. <configuration>
  379. <generateReports>true</generateReports>
  380. </configuration>
  381. </execution>
  382. </executions>
  383. </plugin>
  384. <plugin>
  385. <groupId>org.apache.felix</groupId>
  386. <artifactId>maven-bundle-plugin</artifactId>
  387. <inherited>true</inherited>
  388. <extensions>true</extensions>
  389. </plugin>
  390. <plugin>
  391. <groupId>org.apache.maven.plugins</groupId>
  392. <artifactId>maven-checkstyle-plugin</artifactId>
  393. <version>${maven-checkstyle-plugin.version}</version>
  394. </plugin>
  395. <plugin>
  396. <!-- OWASP's dependency-check plugin will scan the third party
  397. dependencies of this project for known CVEs (security
  398. vulnerabilities against them). It will produce a report
  399. in target/dependency-check-report.html. To invoke, run
  400. 'mvn dependency-check:aggregate'. Note that this plugin
  401. requires maven 3.1.1 or greater.
  402. -->
  403. <groupId>org.owasp</groupId>
  404. <artifactId>dependency-check-maven</artifactId>
  405. <version>${dependency-check-maven.version}</version>
  406. </plugin>
  407. </plugins>
  408. </build>
  409. <reporting>
  410. <excludeDefaults>true</excludeDefaults>
  411. <plugins>
  412. <plugin>
  413. <groupId>org.apache.maven.plugins</groupId>
  414. <artifactId>maven-javadoc-plugin</artifactId>
  415. <version>${maven-javadoc-plugin.version}</version>
  416. <inherited>false</inherited>
  417. <reportSets>
  418. <reportSet>
  419. <id>aggregate</id>
  420. <configuration>
  421. <maxmemory>1024m</maxmemory>
  422. <quiet>true</quiet>
  423. <verbose>false</verbose>
  424. <source>${maven.compile.source}</source>
  425. <charset>${maven.compile.encoding}</charset>
  426. <reportOutputDirectory>${project.build.directory}/site</reportOutputDirectory>
  427. <destDir>hadoop-project/api</destDir>
  428. <!-- Non-public APIs -->
  429. <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>
  430. <groups>
  431. <group>
  432. <title>Common</title>
  433. <packages>org.apache.hadoop*</packages>
  434. </group>
  435. <group>
  436. <title>HDFS</title>
  437. <packages>org.apache.hadoop.hdfs*</packages>
  438. </group>
  439. <group>
  440. <title>MapReduce</title>
  441. <packages>org.apache.hadoop.mapred*</packages>
  442. </group>
  443. <group>
  444. <title>YARN</title>
  445. <packages>org.apache.hadoop.yarn*</packages>
  446. </group>
  447. </groups>
  448. <doclet>org.apache.hadoop.classification.tools.IncludePublicAnnotationsStandardDoclet</doclet>
  449. <docletArtifacts>
  450. <docletArtifact>
  451. <groupId>org.apache.hadoop</groupId>
  452. <artifactId>hadoop-annotations</artifactId>
  453. <version>${project.version}</version>
  454. </docletArtifact>
  455. </docletArtifacts>
  456. <useStandardDocletOptions>true</useStandardDocletOptions>
  457. <!-- switch on dependency-driven aggregation -->
  458. <includeDependencySources>false</includeDependencySources>
  459. <dependencySourceIncludes>
  460. <!-- include ONLY dependencies I control -->
  461. <dependencySourceInclude>org.apache.hadoop:hadoop-annotations</dependencySourceInclude>
  462. </dependencySourceIncludes>
  463. </configuration>
  464. <reports>
  465. <report>aggregate</report>
  466. </reports>
  467. </reportSet>
  468. </reportSets>
  469. </plugin>
  470. <plugin>
  471. <groupId>org.apache.maven.plugins</groupId>
  472. <artifactId>maven-dependency-plugin</artifactId>
  473. <version>${maven-dependency-plugin.version}</version>
  474. <reportSets>
  475. <reportSet>
  476. <reports>
  477. <report>analyze-report</report>
  478. </reports>
  479. </reportSet>
  480. </reportSets>
  481. </plugin>
  482. </plugins>
  483. </reporting>
  484. <profiles>
  485. <profile>
  486. <id>src</id>
  487. <activation>
  488. <activeByDefault>false</activeByDefault>
  489. </activation>
  490. <build>
  491. <plugins>
  492. <plugin>
  493. <groupId>org.apache.maven.plugins</groupId>
  494. <artifactId>maven-assembly-plugin</artifactId>
  495. <inherited>false</inherited>
  496. <executions>
  497. <execution>
  498. <id>src-dist</id>
  499. <phase>package</phase>
  500. <goals>
  501. <goal>single</goal>
  502. </goals>
  503. <configuration>
  504. <appendAssemblyId>false</appendAssemblyId>
  505. <attach>false</attach>
  506. <finalName>hadoop-${project.version}-src</finalName>
  507. <outputDirectory>hadoop-dist/target</outputDirectory>
  508. <!-- Not using descriptorRef and hadoop-assembly dependency -->
  509. <!-- to avoid making hadoop-main to depend on a module -->
  510. <descriptors>
  511. <descriptor>hadoop-assemblies/src/main/resources/assemblies/hadoop-src.xml</descriptor>
  512. </descriptors>
  513. </configuration>
  514. </execution>
  515. </executions>
  516. </plugin>
  517. <plugin>
  518. <groupId>org.apache.maven.plugins</groupId>
  519. <artifactId>maven-antrun-plugin</artifactId>
  520. <inherited>false</inherited>
  521. <executions>
  522. <execution>
  523. <id>src-dist-msg</id>
  524. <phase>package</phase>
  525. <goals>
  526. <goal>run</goal>
  527. </goals>
  528. <configuration>
  529. <target>
  530. <echo/>
  531. <echo>Hadoop source tar available at: ${basedir}/hadoop-dist/target/hadoop-${project.version}-src.tar.gz</echo>
  532. <echo/>
  533. </target>
  534. </configuration>
  535. </execution>
  536. </executions>
  537. </plugin>
  538. </plugins>
  539. </build>
  540. </profile>
  541. <profile>
  542. <id>sign</id>
  543. <build>
  544. <plugins>
  545. <plugin>
  546. <groupId>org.apache.maven.plugins</groupId>
  547. <artifactId>maven-gpg-plugin</artifactId>
  548. <version>${maven-gpg-plugin.version}</version>
  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>