pom.xml 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818
  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.3.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>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.3.0-SNAPSHOT</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.0.0</maven-checkstyle-plugin.version>
  103. <checkstyle.version>8.19</checkstyle.version>
  104. <dependency-check-maven.version>1.4.3</dependency-check-maven.version>
  105. <shell-executable>bash</shell-executable>
  106. </properties>
  107. <modules>
  108. <module>hadoop-project</module>
  109. <module>hadoop-project-dist</module>
  110. <module>hadoop-assemblies</module>
  111. <module>hadoop-maven-plugins</module>
  112. <module>hadoop-common-project</module>
  113. <module>hadoop-hdfs-project</module>
  114. <module>hadoop-yarn-project</module>
  115. <module>hadoop-mapreduce-project</module>
  116. <module>hadoop-tools</module>
  117. <module>hadoop-dist</module>
  118. <module>hadoop-minicluster</module>
  119. <module>hadoop-client-modules</module>
  120. <module>hadoop-build-tools</module>
  121. <module>hadoop-cloud-storage-project</module>
  122. </modules>
  123. <build>
  124. <pluginManagement>
  125. <plugins>
  126. <plugin>
  127. <groupId>org.apache.maven.plugins</groupId>
  128. <artifactId>maven-dependency-plugin</artifactId>
  129. <version>${maven-dependency-plugin.version}</version>
  130. </plugin>
  131. <plugin>
  132. <groupId>org.apache.maven.plugins</groupId>
  133. <artifactId>maven-enforcer-plugin</artifactId>
  134. <version>${maven-enforcer-plugin.version}</version>
  135. <configuration>
  136. <rules>
  137. <requireMavenVersion>
  138. <version>[3.0.2,)</version>
  139. </requireMavenVersion>
  140. <requireJavaVersion>
  141. <version>[1.8,)</version>
  142. </requireJavaVersion>
  143. </rules>
  144. </configuration>
  145. </plugin>
  146. <plugin>
  147. <groupId>org.apache.maven.plugins</groupId>
  148. <artifactId>maven-assembly-plugin</artifactId>
  149. <version>${maven-assembly-plugin.version}</version>
  150. </plugin>
  151. <plugin>
  152. <groupId>org.apache.maven.plugins</groupId>
  153. <artifactId>maven-deploy-plugin</artifactId>
  154. <version>${maven-deploy-plugin.version}</version>
  155. </plugin>
  156. <plugin>
  157. <groupId>org.apache.rat</groupId>
  158. <artifactId>apache-rat-plugin</artifactId>
  159. <version>${apache-rat-plugin.version}</version>
  160. </plugin>
  161. <plugin>
  162. <groupId>org.apache.maven.plugins</groupId>
  163. <artifactId>maven-antrun-plugin</artifactId>
  164. <version>${maven-antrun-plugin.version}</version>
  165. </plugin>
  166. <plugin>
  167. <groupId>org.apache.maven.plugins</groupId>
  168. <artifactId>maven-site-plugin</artifactId>
  169. <version>${maven-site-plugin.version}</version>
  170. <dependencies>
  171. <dependency><!-- add support for ssh/scp -->
  172. <groupId>org.apache.maven.wagon</groupId>
  173. <artifactId>wagon-ssh</artifactId>
  174. <version>${wagon-ssh.version}</version>
  175. </dependency>
  176. <dependency>
  177. <groupId>org.apache.maven.doxia</groupId>
  178. <artifactId>doxia-module-markdown</artifactId>
  179. <version>1.8</version>
  180. </dependency>
  181. </dependencies>
  182. </plugin>
  183. <!--This plugin's configuration is used to store Eclipse m2e settings only.
  184. It has no influence on the Maven build itself.-->
  185. <plugin>
  186. <groupId>org.eclipse.m2e</groupId>
  187. <artifactId>lifecycle-mapping</artifactId>
  188. <version>${lifecycle-mapping.version}</version>
  189. <configuration>
  190. <lifecycleMappingMetadata>
  191. <pluginExecutions>
  192. <pluginExecution>
  193. <pluginExecutionFilter>
  194. <groupId>org.apache.maven.plugins</groupId>
  195. <artifactId>maven-antrun-plugin</artifactId>
  196. <versionRange>[1.7,)</versionRange>
  197. <goals>
  198. <goal>run</goal>
  199. </goals>
  200. </pluginExecutionFilter>
  201. <action>
  202. <ignore></ignore>
  203. </action>
  204. </pluginExecution>
  205. <pluginExecution>
  206. <pluginExecutionFilter>
  207. <groupId>org.apache.maven.plugins</groupId>
  208. <artifactId>maven-resources-plugin</artifactId>
  209. <versionRange>[2.2,)</versionRange>
  210. <goals>
  211. <goal>testResources</goal>
  212. <goal>resources</goal>
  213. </goals>
  214. </pluginExecutionFilter>
  215. <action>
  216. <ignore></ignore>
  217. </action>
  218. </pluginExecution>
  219. <pluginExecution>
  220. <pluginExecutionFilter>
  221. <groupId>org.apache.avro</groupId>
  222. <artifactId>avro-maven-plugin</artifactId>
  223. <versionRange>[1.5.3,)</versionRange>
  224. <goals>
  225. <goal>schema</goal>
  226. <goal>protocol</goal>
  227. </goals>
  228. </pluginExecutionFilter>
  229. <action>
  230. <ignore></ignore>
  231. </action>
  232. </pluginExecution>
  233. <pluginExecution>
  234. <pluginExecutionFilter>
  235. <groupId>org.codehaus.mojo.jspc</groupId>
  236. <artifactId>jspc-maven-plugin</artifactId>
  237. <versionRange>[2.0-alpha-3,)</versionRange>
  238. <goals>
  239. <goal>compile</goal>
  240. </goals>
  241. </pluginExecutionFilter>
  242. <action>
  243. <ignore></ignore>
  244. </action>
  245. </pluginExecution>
  246. <pluginExecution>
  247. <pluginExecutionFilter>
  248. <groupId>org.apache.maven.plugins</groupId>
  249. <artifactId>maven-dependency-plugin</artifactId>
  250. <versionRange>[2.4,)</versionRange>
  251. <goals>
  252. <goal>copy-dependencies</goal>
  253. <goal>build-classpath</goal>
  254. </goals>
  255. </pluginExecutionFilter>
  256. <action>
  257. <ignore></ignore>
  258. </action>
  259. </pluginExecution>
  260. <pluginExecution>
  261. <pluginExecutionFilter>
  262. <groupId>org.codehaus.mojo</groupId>
  263. <artifactId>exec-maven-plugin</artifactId>
  264. <versionRange>[1.2,)</versionRange>
  265. <goals>
  266. <goal>exec</goal>
  267. </goals>
  268. </pluginExecutionFilter>
  269. <action>
  270. <ignore></ignore>
  271. </action>
  272. </pluginExecution>
  273. <pluginExecution>
  274. <pluginExecutionFilter>
  275. <groupId>org.apache.maven.plugins</groupId>
  276. <artifactId>maven-jar-plugin</artifactId>
  277. <versionRange>[2.3.1,)</versionRange>
  278. <goals>
  279. <goal>test-jar</goal>
  280. </goals>
  281. </pluginExecutionFilter>
  282. <action>
  283. <ignore></ignore>
  284. </action>
  285. </pluginExecution>
  286. </pluginExecutions>
  287. </lifecycleMappingMetadata>
  288. </configuration>
  289. </plugin>
  290. <plugin>
  291. <groupId>com.atlassian.maven.plugins</groupId>
  292. <artifactId>maven-clover2-plugin</artifactId>
  293. <version>${maven-clover2-plugin.version}</version>
  294. </plugin>
  295. <plugin>
  296. <groupId>org.apache.felix</groupId>
  297. <artifactId>maven-bundle-plugin</artifactId>
  298. <version>${maven-bundle-plugin.version}</version>
  299. </plugin>
  300. <plugin>
  301. <groupId>org.apache.maven.plugins</groupId>
  302. <artifactId>maven-checkstyle-plugin</artifactId>
  303. <version>${maven-checkstyle-plugin.version}</version>
  304. <dependencies>
  305. <dependency>
  306. <groupId>org.apache.hadoop</groupId>
  307. <artifactId>hadoop-build-tools</artifactId>
  308. <version>${hadoop.version}</version>
  309. </dependency>
  310. <dependency>
  311. <groupId>com.puppycrawl.tools</groupId>
  312. <artifactId>checkstyle</artifactId>
  313. <version>${checkstyle.version}</version>
  314. </dependency>
  315. </dependencies>
  316. <configuration>
  317. <configLocation>checkstyle/checkstyle.xml</configLocation>
  318. <suppressionsLocation>checkstyle/suppressions.xml</suppressionsLocation>
  319. <includeTestSourceDirectory>true</includeTestSourceDirectory>
  320. <failOnViolation>false</failOnViolation>
  321. <format>xml</format>
  322. <format>html</format>
  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. </plugins>
  332. </pluginManagement>
  333. <plugins>
  334. <plugin>
  335. <groupId>org.apache.maven.plugins</groupId>
  336. <artifactId>maven-enforcer-plugin</artifactId>
  337. <inherited>false</inherited>
  338. <executions>
  339. <execution>
  340. <id>clean</id>
  341. <goals>
  342. <goal>enforce</goal>
  343. </goals>
  344. <phase>pre-clean</phase>
  345. </execution>
  346. <execution>
  347. <id>default</id>
  348. <goals>
  349. <goal>enforce</goal>
  350. </goals>
  351. <phase>validate</phase>
  352. </execution>
  353. <execution>
  354. <id>site</id>
  355. <goals>
  356. <goal>enforce</goal>
  357. </goals>
  358. <phase>pre-site</phase>
  359. </execution>
  360. <execution>
  361. <id>enforce-property</id>
  362. <goals>
  363. <goal>enforce</goal>
  364. </goals>
  365. <configuration>
  366. <rules>
  367. <requireProperty>
  368. <property>hadoop.version</property>
  369. <message>You must set a hadoop.version to be the same as ${project.version}</message>
  370. <regex>${project.version}</regex>
  371. <regexMessage>The hadoop.version property should be set and should be ${project.version}.</regexMessage>
  372. </requireProperty>
  373. </rules>
  374. <fail>true</fail>
  375. </configuration>
  376. </execution>
  377. </executions>
  378. </plugin>
  379. <plugin>
  380. <groupId>org.apache.rat</groupId>
  381. <artifactId>apache-rat-plugin</artifactId>
  382. <configuration>
  383. <excludes>
  384. <exclude>.gitattributes</exclude>
  385. <exclude>.gitignore</exclude>
  386. <exclude>.git/**</exclude>
  387. <exclude>.idea/**</exclude>
  388. <exclude>**/build/**</exclude>
  389. <exclude>**/patchprocess/**</exclude>
  390. <exclude>**/*.js</exclude>
  391. <exclude>hadoop-hdds/**/</exclude>
  392. <exclude>hadoop-ozone/**/</exclude>
  393. <exclude>hadoop-submarine/target/**</exclude>
  394. <exclude>hadoop-submarine/**/target/**</exclude>
  395. </excludes>
  396. </configuration>
  397. </plugin>
  398. <plugin>
  399. <artifactId>maven-site-plugin</artifactId>
  400. <executions>
  401. <execution>
  402. <id>attach-descriptor</id>
  403. <goals>
  404. <goal>attach-descriptor</goal>
  405. </goals>
  406. </execution>
  407. </executions>
  408. </plugin>
  409. <plugin>
  410. <groupId>org.apache.felix</groupId>
  411. <artifactId>maven-bundle-plugin</artifactId>
  412. <inherited>true</inherited>
  413. <extensions>true</extensions>
  414. </plugin>
  415. <plugin>
  416. <groupId>org.apache.maven.plugins</groupId>
  417. <artifactId>maven-checkstyle-plugin</artifactId>
  418. <version>${maven-checkstyle-plugin.version}</version>
  419. </plugin>
  420. <plugin>
  421. <!-- OWASP's dependency-check plugin will scan the third party
  422. dependencies of this project for known CVEs (security
  423. vulnerabilities against them). It will produce a report
  424. in target/dependency-check-report.html. To invoke, run
  425. 'mvn dependency-check:aggregate'. Note that this plugin
  426. requires maven 3.1.1 or greater.
  427. -->
  428. <groupId>org.owasp</groupId>
  429. <artifactId>dependency-check-maven</artifactId>
  430. <version>${dependency-check-maven.version}</version>
  431. </plugin>
  432. </plugins>
  433. </build>
  434. <reporting>
  435. <excludeDefaults>true</excludeDefaults>
  436. <plugins>
  437. <plugin>
  438. <groupId>org.apache.maven.plugins</groupId>
  439. <artifactId>maven-javadoc-plugin</artifactId>
  440. <version>${maven-javadoc-plugin.version}</version>
  441. <inherited>false</inherited>
  442. <reportSets>
  443. <reportSet>
  444. <id>aggregate</id>
  445. <configuration>
  446. <maxmemory>1024m</maxmemory>
  447. <quiet>true</quiet>
  448. <verbose>false</verbose>
  449. <source>${maven.compile.source}</source>
  450. <charset>${maven.compile.encoding}</charset>
  451. <reportOutputDirectory>${project.build.directory}/site</reportOutputDirectory>
  452. <destDir>hadoop-project/api</destDir>
  453. <!-- Non-public APIs -->
  454. <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>
  455. <groups>
  456. <group>
  457. <title>Common</title>
  458. <packages>org.apache.hadoop*</packages>
  459. </group>
  460. <group>
  461. <title>HDFS</title>
  462. <packages>org.apache.hadoop.hdfs*</packages>
  463. </group>
  464. <group>
  465. <title>MapReduce</title>
  466. <packages>org.apache.hadoop.mapred*</packages>
  467. </group>
  468. <group>
  469. <title>YARN</title>
  470. <packages>org.apache.hadoop.yarn*</packages>
  471. </group>
  472. </groups>
  473. <doclet>org.apache.hadoop.classification.tools.IncludePublicAnnotationsStandardDoclet</doclet>
  474. <docletArtifacts>
  475. <docletArtifact>
  476. <groupId>org.apache.hadoop</groupId>
  477. <artifactId>hadoop-annotations</artifactId>
  478. <version>${project.version}</version>
  479. </docletArtifact>
  480. </docletArtifacts>
  481. <useStandardDocletOptions>true</useStandardDocletOptions>
  482. <!-- switch on dependency-driven aggregation -->
  483. <includeDependencySources>false</includeDependencySources>
  484. <dependencySourceIncludes>
  485. <!-- include ONLY dependencies I control -->
  486. <dependencySourceInclude>org.apache.hadoop:hadoop-annotations</dependencySourceInclude>
  487. </dependencySourceIncludes>
  488. </configuration>
  489. <reports>
  490. <report>aggregate</report>
  491. </reports>
  492. </reportSet>
  493. </reportSets>
  494. </plugin>
  495. <plugin>
  496. <groupId>org.apache.maven.plugins</groupId>
  497. <artifactId>maven-dependency-plugin</artifactId>
  498. <version>${maven-dependency-plugin.version}</version>
  499. <reportSets>
  500. <reportSet>
  501. <reports>
  502. <report>analyze-report</report>
  503. </reports>
  504. </reportSet>
  505. </reportSets>
  506. </plugin>
  507. </plugins>
  508. </reporting>
  509. <profiles>
  510. <profile>
  511. <id>src</id>
  512. <activation>
  513. <activeByDefault>false</activeByDefault>
  514. </activation>
  515. <build>
  516. <plugins>
  517. <plugin>
  518. <groupId>org.apache.maven.plugins</groupId>
  519. <artifactId>maven-assembly-plugin</artifactId>
  520. <inherited>false</inherited>
  521. <executions>
  522. <execution>
  523. <id>src-dist</id>
  524. <phase>package</phase>
  525. <goals>
  526. <goal>single</goal>
  527. </goals>
  528. <configuration>
  529. <appendAssemblyId>false</appendAssemblyId>
  530. <attach>false</attach>
  531. <finalName>hadoop-${project.version}-src</finalName>
  532. <outputDirectory>hadoop-dist/target</outputDirectory>
  533. <!-- Not using descriptorRef and hadoop-assembly dependency -->
  534. <!-- to avoid making hadoop-main to depend on a module -->
  535. <descriptors>
  536. <descriptor>hadoop-assemblies/src/main/resources/assemblies/hadoop-src.xml</descriptor>
  537. </descriptors>
  538. </configuration>
  539. </execution>
  540. </executions>
  541. </plugin>
  542. <plugin>
  543. <groupId>org.apache.maven.plugins</groupId>
  544. <artifactId>maven-antrun-plugin</artifactId>
  545. <inherited>false</inherited>
  546. <executions>
  547. <execution>
  548. <id>src-dist-msg</id>
  549. <phase>package</phase>
  550. <goals>
  551. <goal>run</goal>
  552. </goals>
  553. <configuration>
  554. <target>
  555. <echo/>
  556. <echo>Hadoop source tar available at: ${basedir}/hadoop-dist/target/hadoop-${project.version}-src.tar.gz</echo>
  557. <echo/>
  558. </target>
  559. </configuration>
  560. </execution>
  561. </executions>
  562. </plugin>
  563. </plugins>
  564. </build>
  565. </profile>
  566. <profile>
  567. <id>hdds-src</id>
  568. <activation>
  569. <activeByDefault>false</activeByDefault>
  570. </activation>
  571. <build>
  572. <plugins>
  573. <plugin>
  574. <groupId>org.apache.maven.plugins</groupId>
  575. <artifactId>maven-assembly-plugin</artifactId>
  576. <inherited>false</inherited>
  577. <executions>
  578. <execution>
  579. <id>src-dist</id>
  580. <phase>package</phase>
  581. <goals>
  582. <goal>single</goal>
  583. </goals>
  584. <configuration>
  585. <appendAssemblyId>false</appendAssemblyId>
  586. <attach>false</attach>
  587. <finalName>hadoop-${project.version}-src-with-hdds</finalName>
  588. <outputDirectory>hadoop-dist/target</outputDirectory>
  589. <!-- Not using descriptorRef and hadoop-assembly dependency -->
  590. <!-- to avoid making hadoop-main to depend on a module -->
  591. <descriptors>
  592. <descriptor>hadoop-assemblies/src/main/resources/assemblies/hadoop-src-with-hdds.xml</descriptor>
  593. </descriptors>
  594. </configuration>
  595. </execution>
  596. </executions>
  597. </plugin>
  598. <plugin>
  599. <groupId>org.apache.maven.plugins</groupId>
  600. <artifactId>maven-antrun-plugin</artifactId>
  601. <inherited>false</inherited>
  602. <executions>
  603. <execution>
  604. <id>src-dist-msg</id>
  605. <phase>package</phase>
  606. <goals>
  607. <goal>run</goal>
  608. </goals>
  609. <configuration>
  610. <target>
  611. <echo/>
  612. <echo>Hadoop source tar (including HDDS) available at: ${basedir}/hadoop-dist/target/hadoop-${project.version}-src-with-hdds.tar.gz</echo>
  613. <echo/>
  614. </target>
  615. </configuration>
  616. </execution>
  617. </executions>
  618. </plugin>
  619. </plugins>
  620. </build>
  621. </profile>
  622. <profile>
  623. <id>submarine-src</id>
  624. <activation>
  625. <activeByDefault>false</activeByDefault>
  626. </activation>
  627. <build>
  628. <plugins>
  629. <plugin>
  630. <groupId>org.apache.maven.plugins</groupId>
  631. <artifactId>maven-assembly-plugin</artifactId>
  632. <inherited>false</inherited>
  633. <executions>
  634. <execution>
  635. <id>src-dist</id>
  636. <phase>package</phase>
  637. <goals>
  638. <goal>single</goal>
  639. </goals>
  640. <configuration>
  641. <appendAssemblyId>false</appendAssemblyId>
  642. <attach>false</attach>
  643. <finalName>hadoop-submarine-${project.version}-src</finalName>
  644. <outputDirectory>hadoop-dist/target</outputDirectory>
  645. <!-- Not using descriptorRef and hadoop-assembly dependency -->
  646. <!-- to avoid making hadoop-main to depend on a module -->
  647. <descriptors>
  648. <descriptor>hadoop-assemblies/src/main/resources/assemblies/hadoop-src-submarine.xml</descriptor>
  649. </descriptors>
  650. </configuration>
  651. </execution>
  652. </executions>
  653. </plugin>
  654. <plugin>
  655. <groupId>org.apache.maven.plugins</groupId>
  656. <artifactId>maven-antrun-plugin</artifactId>
  657. <inherited>false</inherited>
  658. <executions>
  659. <execution>
  660. <id>src-dist-msg</id>
  661. <phase>package</phase>
  662. <goals>
  663. <goal>run</goal>
  664. </goals>
  665. <configuration>
  666. <target>
  667. <echo/>
  668. <echo>Hadoop source tar with Submarine source is available at: ${basedir}/hadoop-dist/target/hadoop-${project.version}-src-with-submarine.tar.gz</echo>
  669. <echo/>
  670. </target>
  671. </configuration>
  672. </execution>
  673. </executions>
  674. </plugin>
  675. </plugins>
  676. </build>
  677. </profile>
  678. <profile>
  679. <id>sign</id>
  680. <build>
  681. <plugins>
  682. <plugin>
  683. <groupId>org.apache.maven.plugins</groupId>
  684. <artifactId>maven-gpg-plugin</artifactId>
  685. <version>${maven-gpg-plugin.version}</version>
  686. <executions>
  687. <execution>
  688. <id>sign-artifacts</id>
  689. <phase>verify</phase>
  690. <goals>
  691. <goal>sign</goal>
  692. </goals>
  693. </execution>
  694. </executions>
  695. </plugin>
  696. </plugins>
  697. </build>
  698. </profile>
  699. <profile>
  700. <id>clover</id>
  701. <activation>
  702. <activeByDefault>false</activeByDefault>
  703. <property>
  704. <name>clover</name>
  705. </property>
  706. </activation>
  707. <properties>
  708. <cloverLicenseLocation>${user.home}/.clover.license</cloverLicenseLocation>
  709. <cloverDatabase>${project.build.directory}/clover/hadoop-coverage.db</cloverDatabase>
  710. <!-- NB: This additional parametrization is made in order
  711. to be able to re-define these properties with "-Dk=v" maven options.
  712. By some reason the expressions declared in clover
  713. docs like "${maven.clover.generateHtml}" do not work in that way.
  714. However, the below properties are confirmed to work: e.g.
  715. -DcloverGenHtml=false switches off the Html generation.
  716. The default values provided here exactly correspond to Clover defaults, so
  717. the behavior is 100% backwards compatible. -->
  718. <cloverAlwaysReport>true</cloverAlwaysReport>
  719. <cloverGenHtml>true</cloverGenHtml>
  720. <cloverGenXml>true</cloverGenXml>
  721. <cloverGenHistorical>false</cloverGenHistorical>
  722. </properties>
  723. <build>
  724. <plugins>
  725. <plugin>
  726. <groupId>com.atlassian.maven.plugins</groupId>
  727. <artifactId>maven-clover2-plugin</artifactId>
  728. <configuration>
  729. <includesAllSourceRoots>false</includesAllSourceRoots>
  730. <includesTestSourceRoots>true</includesTestSourceRoots>
  731. <licenseLocation>${cloverLicenseLocation}</licenseLocation>
  732. <cloverDatabase>${cloverDatabase}</cloverDatabase>
  733. <targetPercentage>50%</targetPercentage>
  734. <outputDirectory>${project.build.directory}/clover</outputDirectory>
  735. <alwaysReport>${cloverAlwaysReport}</alwaysReport>
  736. <generateHtml>${cloverGenHtml}</generateHtml>
  737. <generateXml>${cloverGenXml}</generateXml>
  738. <generateHistorical>${cloverGenHistorical}</generateHistorical>
  739. <excludes>
  740. <exclude>**/examples/**/*.java</exclude>
  741. <exclude>**/hamlet/*.java</exclude>
  742. <exclude>**/ha/proto/*.java</exclude>
  743. <exclude>**/protocol/proto/*.java</exclude>
  744. <exclude>**/compiler/generated/*.java</exclude>
  745. <exclude>**/protobuf/*.java</exclude>
  746. <exclude>**/v2/proto/*.java</exclude>
  747. <exclude>**/yarn/proto/*.java</exclude>
  748. <exclude>**/security/proto/*.java</exclude>
  749. <exclude>**/tools/proto/*.java</exclude>
  750. <exclude>**/hs/proto/*.java</exclude>
  751. </excludes>
  752. </configuration>
  753. <executions>
  754. <execution>
  755. <id>clover-setup</id>
  756. <phase>process-sources</phase>
  757. <goals>
  758. <goal>setup</goal>
  759. </goals>
  760. </execution>
  761. <execution>
  762. <id>clover</id>
  763. <phase>test</phase>
  764. <goals>
  765. <goal>clover</goal>
  766. </goals>
  767. </execution>
  768. </executions>
  769. </plugin>
  770. </plugins>
  771. </build>
  772. </profile>
  773. <profile>
  774. <id>hdds</id>
  775. <activation>
  776. <activeByDefault>false</activeByDefault>
  777. </activation>
  778. <modules>
  779. <module>hadoop-ozone</module>
  780. <module>hadoop-hdds</module>
  781. </modules>
  782. </profile>
  783. <profile>
  784. <id>submarine</id>
  785. <activation>
  786. <activeByDefault>false</activeByDefault>
  787. </activation>
  788. <modules>
  789. <module>hadoop-submarine</module>
  790. </modules>
  791. </profile>
  792. </profiles>
  793. </project>