pom.xml 26 KB

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