pom.xml 25 KB

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