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