pom.xml 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659
  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. <includeTestSourceDirectory>true</includeTestSourceDirectory>
  307. <failOnViolation>false</failOnViolation>
  308. <format>xml</format>
  309. <format>html</format>
  310. <outputFile>${project.build.directory}/test/checkstyle-errors.xml</outputFile>
  311. </configuration>
  312. </plugin>
  313. </plugins>
  314. </pluginManagement>
  315. <plugins>
  316. <plugin>
  317. <groupId>org.apache.maven.plugins</groupId>
  318. <artifactId>maven-enforcer-plugin</artifactId>
  319. <inherited>false</inherited>
  320. <executions>
  321. <execution>
  322. <id>clean</id>
  323. <goals>
  324. <goal>enforce</goal>
  325. </goals>
  326. <phase>pre-clean</phase>
  327. </execution>
  328. <execution>
  329. <id>default</id>
  330. <goals>
  331. <goal>enforce</goal>
  332. </goals>
  333. <phase>validate</phase>
  334. </execution>
  335. <execution>
  336. <id>site</id>
  337. <goals>
  338. <goal>enforce</goal>
  339. </goals>
  340. <phase>pre-site</phase>
  341. </execution>
  342. </executions>
  343. </plugin>
  344. <plugin>
  345. <groupId>org.apache.rat</groupId>
  346. <artifactId>apache-rat-plugin</artifactId>
  347. <configuration>
  348. <excludes>
  349. <exclude>.gitattributes</exclude>
  350. <exclude>.gitignore</exclude>
  351. <exclude>.git/**</exclude>
  352. <exclude>.idea/**</exclude>
  353. <exclude>**/build/**</exclude>
  354. <exclude>**/patchprocess/**</exclude>
  355. </excludes>
  356. </configuration>
  357. </plugin>
  358. <plugin>
  359. <artifactId>maven-site-plugin</artifactId>
  360. <executions>
  361. <execution>
  362. <id>attach-descriptor</id>
  363. <goals>
  364. <goal>attach-descriptor</goal>
  365. </goals>
  366. <configuration>
  367. <generateReports>true</generateReports>
  368. </configuration>
  369. </execution>
  370. </executions>
  371. </plugin>
  372. <plugin>
  373. <groupId>org.apache.felix</groupId>
  374. <artifactId>maven-bundle-plugin</artifactId>
  375. <inherited>true</inherited>
  376. <extensions>true</extensions>
  377. </plugin>
  378. <plugin>
  379. <groupId>org.apache.maven.plugins</groupId>
  380. <artifactId>maven-checkstyle-plugin</artifactId>
  381. <version>${maven-checkstyle-plugin.version}</version>
  382. </plugin>
  383. </plugins>
  384. </build>
  385. <reporting>
  386. <excludeDefaults>true</excludeDefaults>
  387. <plugins>
  388. <plugin>
  389. <groupId>org.apache.maven.plugins</groupId>
  390. <artifactId>maven-javadoc-plugin</artifactId>
  391. <version>${maven-javadoc-plugin.version}</version>
  392. <inherited>false</inherited>
  393. <reportSets>
  394. <reportSet>
  395. <id>aggregate</id>
  396. <configuration>
  397. <maxmemory>1024m</maxmemory>
  398. <linksource>true</linksource>
  399. <quiet>true</quiet>
  400. <verbose>false</verbose>
  401. <source>${maven.compile.source}</source>
  402. <charset>${maven.compile.encoding}</charset>
  403. <reportOutputDirectory>${project.build.directory}/site</reportOutputDirectory>
  404. <destDir>hadoop-project/api</destDir>
  405. <!-- Non-public APIs -->
  406. <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>
  407. <groups>
  408. <group>
  409. <title>Common</title>
  410. <packages>org.apache.hadoop*</packages>
  411. </group>
  412. <group>
  413. <title>HDFS</title>
  414. <packages>org.apache.hadoop.hdfs*</packages>
  415. </group>
  416. <group>
  417. <title>MapReduce</title>
  418. <packages>org.apache.hadoop.mapred*</packages>
  419. </group>
  420. <group>
  421. <title>YARN</title>
  422. <packages>org.apache.hadoop.yarn*</packages>
  423. </group>
  424. </groups>
  425. <doclet>org.apache.hadoop.classification.tools.IncludePublicAnnotationsStandardDoclet</doclet>
  426. <docletArtifacts>
  427. <docletArtifact>
  428. <groupId>org.apache.hadoop</groupId>
  429. <artifactId>hadoop-annotations</artifactId>
  430. <version>${project.version}</version>
  431. </docletArtifact>
  432. </docletArtifacts>
  433. <useStandardDocletOptions>true</useStandardDocletOptions>
  434. <!-- switch on dependency-driven aggregation -->
  435. <includeDependencySources>false</includeDependencySources>
  436. <dependencySourceIncludes>
  437. <!-- include ONLY dependencies I control -->
  438. <dependencySourceInclude>org.apache.hadoop:hadoop-annotations</dependencySourceInclude>
  439. </dependencySourceIncludes>
  440. </configuration>
  441. <reports>
  442. <report>aggregate</report>
  443. </reports>
  444. </reportSet>
  445. </reportSets>
  446. </plugin>
  447. <plugin>
  448. <groupId>org.apache.maven.plugins</groupId>
  449. <artifactId>maven-dependency-plugin</artifactId>
  450. <version>${maven-dependency-plugin.version}</version>
  451. <reportSets>
  452. <reportSet>
  453. <reports>
  454. <report>analyze-report</report>
  455. </reports>
  456. </reportSet>
  457. </reportSets>
  458. </plugin>
  459. </plugins>
  460. </reporting>
  461. <profiles>
  462. <profile>
  463. <id>src</id>
  464. <activation>
  465. <activeByDefault>false</activeByDefault>
  466. </activation>
  467. <build>
  468. <plugins>
  469. <plugin>
  470. <groupId>org.apache.maven.plugins</groupId>
  471. <artifactId>maven-assembly-plugin</artifactId>
  472. <inherited>false</inherited>
  473. <executions>
  474. <execution>
  475. <id>src-dist</id>
  476. <phase>package</phase>
  477. <goals>
  478. <goal>single</goal>
  479. </goals>
  480. <configuration>
  481. <appendAssemblyId>false</appendAssemblyId>
  482. <attach>false</attach>
  483. <finalName>hadoop-${project.version}-src</finalName>
  484. <outputDirectory>hadoop-dist/target</outputDirectory>
  485. <!-- Not using descriptorRef and hadoop-assembly dependency -->
  486. <!-- to avoid making hadoop-main to depend on a module -->
  487. <descriptors>
  488. <descriptor>hadoop-assemblies/src/main/resources/assemblies/hadoop-src.xml</descriptor>
  489. </descriptors>
  490. </configuration>
  491. </execution>
  492. </executions>
  493. </plugin>
  494. <plugin>
  495. <groupId>org.apache.maven.plugins</groupId>
  496. <artifactId>maven-antrun-plugin</artifactId>
  497. <inherited>false</inherited>
  498. <executions>
  499. <execution>
  500. <id>src-dist-msg</id>
  501. <phase>package</phase>
  502. <goals>
  503. <goal>run</goal>
  504. </goals>
  505. <configuration>
  506. <target>
  507. <echo/>
  508. <echo>Hadoop source tar available at: ${basedir}/hadoop-dist/target/hadoop-${project.version}-src.tar.gz</echo>
  509. <echo/>
  510. </target>
  511. </configuration>
  512. </execution>
  513. </executions>
  514. </plugin>
  515. </plugins>
  516. </build>
  517. </profile>
  518. <profile>
  519. <id>dist</id>
  520. <!-- Profile for generating all maven artifacts and documentation. -->
  521. <build>
  522. <plugins>
  523. <plugin>
  524. <groupId>org.apache.maven.plugins</groupId>
  525. <artifactId>maven-javadoc-plugin</artifactId>
  526. <inherited>false</inherited>
  527. <executions>
  528. <execution>
  529. <!-- build aggregate javadoc in parent only -->
  530. <id>default-cli</id>
  531. <goals>
  532. <goal>aggregate</goal>
  533. </goals>
  534. <configuration>
  535. <overview>hadoop-common-project/hadoop-common/src/main/java/overview.html</overview>
  536. </configuration>
  537. </execution>
  538. </executions>
  539. </plugin>
  540. </plugins>
  541. </build>
  542. </profile>
  543. <profile>
  544. <id>sign</id>
  545. <build>
  546. <plugins>
  547. <plugin>
  548. <groupId>org.apache.maven.plugins</groupId>
  549. <artifactId>maven-gpg-plugin</artifactId>
  550. <executions>
  551. <execution>
  552. <id>sign-artifacts</id>
  553. <phase>verify</phase>
  554. <goals>
  555. <goal>sign</goal>
  556. </goals>
  557. </execution>
  558. </executions>
  559. </plugin>
  560. </plugins>
  561. </build>
  562. </profile>
  563. <profile>
  564. <id>clover</id>
  565. <activation>
  566. <activeByDefault>false</activeByDefault>
  567. <property>
  568. <name>clover</name>
  569. </property>
  570. </activation>
  571. <properties>
  572. <cloverLicenseLocation>${user.home}/.clover.license</cloverLicenseLocation>
  573. <cloverDatabase>${project.build.directory}/clover/hadoop-coverage.db</cloverDatabase>
  574. <!-- NB: This additional parametrization is made in order
  575. to be able to re-define these properties with "-Dk=v" maven options.
  576. By some reason the expressions declared in clover
  577. docs like "${maven.clover.generateHtml}" do not work in that way.
  578. However, the below properties are confirmed to work: e.g.
  579. -DcloverGenHtml=false switches off the Html generation.
  580. The default values provided here exactly correspond to Clover defaults, so
  581. the behavior is 100% backwards compatible. -->
  582. <cloverAlwaysReport>true</cloverAlwaysReport>
  583. <cloverGenHtml>true</cloverGenHtml>
  584. <cloverGenXml>true</cloverGenXml>
  585. <cloverGenHistorical>false</cloverGenHistorical>
  586. </properties>
  587. <build>
  588. <plugins>
  589. <plugin>
  590. <groupId>com.atlassian.maven.plugins</groupId>
  591. <artifactId>maven-clover2-plugin</artifactId>
  592. <configuration>
  593. <includesAllSourceRoots>false</includesAllSourceRoots>
  594. <includesTestSourceRoots>true</includesTestSourceRoots>
  595. <licenseLocation>${cloverLicenseLocation}</licenseLocation>
  596. <cloverDatabase>${cloverDatabase}</cloverDatabase>
  597. <targetPercentage>50%</targetPercentage>
  598. <outputDirectory>${project.build.directory}/clover</outputDirectory>
  599. <alwaysReport>${cloverAlwaysReport}</alwaysReport>
  600. <generateHtml>${cloverGenHtml}</generateHtml>
  601. <generateXml>${cloverGenXml}</generateXml>
  602. <generateHistorical>${cloverGenHistorical}</generateHistorical>
  603. <excludes>
  604. <exclude>**/examples/**/*.java</exclude>
  605. <exclude>**/hamlet/*.java</exclude>
  606. <exclude>**/ha/proto/*.java</exclude>
  607. <exclude>**/protocol/proto/*.java</exclude>
  608. <exclude>**/compiler/generated/*.java</exclude>
  609. <exclude>**/protobuf/*.java</exclude>
  610. <exclude>**/v2/proto/*.java</exclude>
  611. <exclude>**/yarn/proto/*.java</exclude>
  612. <exclude>**/security/proto/*.java</exclude>
  613. <exclude>**/tools/proto/*.java</exclude>
  614. <exclude>**/hs/proto/*.java</exclude>
  615. </excludes>
  616. </configuration>
  617. <executions>
  618. <execution>
  619. <id>clover-setup</id>
  620. <phase>process-sources</phase>
  621. <goals>
  622. <goal>setup</goal>
  623. </goals>
  624. </execution>
  625. <execution>
  626. <id>clover</id>
  627. <phase>test</phase>
  628. <goals>
  629. <goal>clover</goal>
  630. </goals>
  631. </execution>
  632. </executions>
  633. </plugin>
  634. </plugins>
  635. </build>
  636. </profile>
  637. </profiles>
  638. </project>