pom.xml 29 KB

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