pom.xml 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820
  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. <exclude>licenses/**</exclude>
  396. <exclude>licenses-binary/**</exclude>
  397. </excludes>
  398. </configuration>
  399. </plugin>
  400. <plugin>
  401. <artifactId>maven-site-plugin</artifactId>
  402. <executions>
  403. <execution>
  404. <id>attach-descriptor</id>
  405. <goals>
  406. <goal>attach-descriptor</goal>
  407. </goals>
  408. </execution>
  409. </executions>
  410. </plugin>
  411. <plugin>
  412. <groupId>org.apache.felix</groupId>
  413. <artifactId>maven-bundle-plugin</artifactId>
  414. <inherited>true</inherited>
  415. <extensions>true</extensions>
  416. </plugin>
  417. <plugin>
  418. <groupId>org.apache.maven.plugins</groupId>
  419. <artifactId>maven-checkstyle-plugin</artifactId>
  420. <version>${maven-checkstyle-plugin.version}</version>
  421. </plugin>
  422. <plugin>
  423. <!-- OWASP's dependency-check plugin will scan the third party
  424. dependencies of this project for known CVEs (security
  425. vulnerabilities against them). It will produce a report
  426. in target/dependency-check-report.html. To invoke, run
  427. 'mvn dependency-check:aggregate'. Note that this plugin
  428. requires maven 3.1.1 or greater.
  429. -->
  430. <groupId>org.owasp</groupId>
  431. <artifactId>dependency-check-maven</artifactId>
  432. <version>${dependency-check-maven.version}</version>
  433. </plugin>
  434. </plugins>
  435. </build>
  436. <reporting>
  437. <excludeDefaults>true</excludeDefaults>
  438. <plugins>
  439. <plugin>
  440. <groupId>org.apache.maven.plugins</groupId>
  441. <artifactId>maven-javadoc-plugin</artifactId>
  442. <version>${maven-javadoc-plugin.version}</version>
  443. <inherited>false</inherited>
  444. <reportSets>
  445. <reportSet>
  446. <id>aggregate</id>
  447. <configuration>
  448. <maxmemory>1024m</maxmemory>
  449. <quiet>true</quiet>
  450. <verbose>false</verbose>
  451. <source>${maven.compile.source}</source>
  452. <charset>${maven.compile.encoding}</charset>
  453. <reportOutputDirectory>${project.build.directory}/site</reportOutputDirectory>
  454. <destDir>hadoop-project/api</destDir>
  455. <!-- Non-public APIs -->
  456. <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>
  457. <groups>
  458. <group>
  459. <title>Common</title>
  460. <packages>org.apache.hadoop*</packages>
  461. </group>
  462. <group>
  463. <title>HDFS</title>
  464. <packages>org.apache.hadoop.hdfs*</packages>
  465. </group>
  466. <group>
  467. <title>MapReduce</title>
  468. <packages>org.apache.hadoop.mapred*</packages>
  469. </group>
  470. <group>
  471. <title>YARN</title>
  472. <packages>org.apache.hadoop.yarn*</packages>
  473. </group>
  474. </groups>
  475. <doclet>org.apache.hadoop.classification.tools.IncludePublicAnnotationsStandardDoclet</doclet>
  476. <docletArtifacts>
  477. <docletArtifact>
  478. <groupId>org.apache.hadoop</groupId>
  479. <artifactId>hadoop-annotations</artifactId>
  480. <version>${project.version}</version>
  481. </docletArtifact>
  482. </docletArtifacts>
  483. <useStandardDocletOptions>true</useStandardDocletOptions>
  484. <!-- switch on dependency-driven aggregation -->
  485. <includeDependencySources>false</includeDependencySources>
  486. <dependencySourceIncludes>
  487. <!-- include ONLY dependencies I control -->
  488. <dependencySourceInclude>org.apache.hadoop:hadoop-annotations</dependencySourceInclude>
  489. </dependencySourceIncludes>
  490. </configuration>
  491. <reports>
  492. <report>aggregate</report>
  493. </reports>
  494. </reportSet>
  495. </reportSets>
  496. </plugin>
  497. <plugin>
  498. <groupId>org.apache.maven.plugins</groupId>
  499. <artifactId>maven-dependency-plugin</artifactId>
  500. <version>${maven-dependency-plugin.version}</version>
  501. <reportSets>
  502. <reportSet>
  503. <reports>
  504. <report>analyze-report</report>
  505. </reports>
  506. </reportSet>
  507. </reportSets>
  508. </plugin>
  509. </plugins>
  510. </reporting>
  511. <profiles>
  512. <profile>
  513. <id>src</id>
  514. <activation>
  515. <activeByDefault>false</activeByDefault>
  516. </activation>
  517. <build>
  518. <plugins>
  519. <plugin>
  520. <groupId>org.apache.maven.plugins</groupId>
  521. <artifactId>maven-assembly-plugin</artifactId>
  522. <inherited>false</inherited>
  523. <executions>
  524. <execution>
  525. <id>src-dist</id>
  526. <phase>package</phase>
  527. <goals>
  528. <goal>single</goal>
  529. </goals>
  530. <configuration>
  531. <appendAssemblyId>false</appendAssemblyId>
  532. <attach>false</attach>
  533. <finalName>hadoop-${project.version}-src</finalName>
  534. <outputDirectory>hadoop-dist/target</outputDirectory>
  535. <!-- Not using descriptorRef and hadoop-assembly dependency -->
  536. <!-- to avoid making hadoop-main to depend on a module -->
  537. <descriptors>
  538. <descriptor>hadoop-assemblies/src/main/resources/assemblies/hadoop-src.xml</descriptor>
  539. </descriptors>
  540. </configuration>
  541. </execution>
  542. </executions>
  543. </plugin>
  544. <plugin>
  545. <groupId>org.apache.maven.plugins</groupId>
  546. <artifactId>maven-antrun-plugin</artifactId>
  547. <inherited>false</inherited>
  548. <executions>
  549. <execution>
  550. <id>src-dist-msg</id>
  551. <phase>package</phase>
  552. <goals>
  553. <goal>run</goal>
  554. </goals>
  555. <configuration>
  556. <target>
  557. <echo/>
  558. <echo>Hadoop source tar available at: ${basedir}/hadoop-dist/target/hadoop-${project.version}-src.tar.gz</echo>
  559. <echo/>
  560. </target>
  561. </configuration>
  562. </execution>
  563. </executions>
  564. </plugin>
  565. </plugins>
  566. </build>
  567. </profile>
  568. <profile>
  569. <id>hdds-src</id>
  570. <activation>
  571. <activeByDefault>false</activeByDefault>
  572. </activation>
  573. <build>
  574. <plugins>
  575. <plugin>
  576. <groupId>org.apache.maven.plugins</groupId>
  577. <artifactId>maven-assembly-plugin</artifactId>
  578. <inherited>false</inherited>
  579. <executions>
  580. <execution>
  581. <id>src-dist</id>
  582. <phase>package</phase>
  583. <goals>
  584. <goal>single</goal>
  585. </goals>
  586. <configuration>
  587. <appendAssemblyId>false</appendAssemblyId>
  588. <attach>false</attach>
  589. <finalName>hadoop-${project.version}-src-with-hdds</finalName>
  590. <outputDirectory>hadoop-dist/target</outputDirectory>
  591. <!-- Not using descriptorRef and hadoop-assembly dependency -->
  592. <!-- to avoid making hadoop-main to depend on a module -->
  593. <descriptors>
  594. <descriptor>hadoop-assemblies/src/main/resources/assemblies/hadoop-src-with-hdds.xml</descriptor>
  595. </descriptors>
  596. </configuration>
  597. </execution>
  598. </executions>
  599. </plugin>
  600. <plugin>
  601. <groupId>org.apache.maven.plugins</groupId>
  602. <artifactId>maven-antrun-plugin</artifactId>
  603. <inherited>false</inherited>
  604. <executions>
  605. <execution>
  606. <id>src-dist-msg</id>
  607. <phase>package</phase>
  608. <goals>
  609. <goal>run</goal>
  610. </goals>
  611. <configuration>
  612. <target>
  613. <echo/>
  614. <echo>Hadoop source tar (including HDDS) available at: ${basedir}/hadoop-dist/target/hadoop-${project.version}-src-with-hdds.tar.gz</echo>
  615. <echo/>
  616. </target>
  617. </configuration>
  618. </execution>
  619. </executions>
  620. </plugin>
  621. </plugins>
  622. </build>
  623. </profile>
  624. <profile>
  625. <id>submarine-src</id>
  626. <activation>
  627. <activeByDefault>false</activeByDefault>
  628. </activation>
  629. <build>
  630. <plugins>
  631. <plugin>
  632. <groupId>org.apache.maven.plugins</groupId>
  633. <artifactId>maven-assembly-plugin</artifactId>
  634. <inherited>false</inherited>
  635. <executions>
  636. <execution>
  637. <id>src-dist</id>
  638. <phase>package</phase>
  639. <goals>
  640. <goal>single</goal>
  641. </goals>
  642. <configuration>
  643. <appendAssemblyId>false</appendAssemblyId>
  644. <attach>false</attach>
  645. <finalName>hadoop-submarine-${project.version}-src</finalName>
  646. <outputDirectory>hadoop-dist/target</outputDirectory>
  647. <!-- Not using descriptorRef and hadoop-assembly dependency -->
  648. <!-- to avoid making hadoop-main to depend on a module -->
  649. <descriptors>
  650. <descriptor>hadoop-assemblies/src/main/resources/assemblies/hadoop-src-submarine.xml</descriptor>
  651. </descriptors>
  652. </configuration>
  653. </execution>
  654. </executions>
  655. </plugin>
  656. <plugin>
  657. <groupId>org.apache.maven.plugins</groupId>
  658. <artifactId>maven-antrun-plugin</artifactId>
  659. <inherited>false</inherited>
  660. <executions>
  661. <execution>
  662. <id>src-dist-msg</id>
  663. <phase>package</phase>
  664. <goals>
  665. <goal>run</goal>
  666. </goals>
  667. <configuration>
  668. <target>
  669. <echo/>
  670. <echo>Hadoop source tar with Submarine source is available at: ${basedir}/hadoop-dist/target/hadoop-${project.version}-src-with-submarine.tar.gz</echo>
  671. <echo/>
  672. </target>
  673. </configuration>
  674. </execution>
  675. </executions>
  676. </plugin>
  677. </plugins>
  678. </build>
  679. </profile>
  680. <profile>
  681. <id>sign</id>
  682. <build>
  683. <plugins>
  684. <plugin>
  685. <groupId>org.apache.maven.plugins</groupId>
  686. <artifactId>maven-gpg-plugin</artifactId>
  687. <version>${maven-gpg-plugin.version}</version>
  688. <executions>
  689. <execution>
  690. <id>sign-artifacts</id>
  691. <phase>verify</phase>
  692. <goals>
  693. <goal>sign</goal>
  694. </goals>
  695. </execution>
  696. </executions>
  697. </plugin>
  698. </plugins>
  699. </build>
  700. </profile>
  701. <profile>
  702. <id>clover</id>
  703. <activation>
  704. <activeByDefault>false</activeByDefault>
  705. <property>
  706. <name>clover</name>
  707. </property>
  708. </activation>
  709. <properties>
  710. <cloverLicenseLocation>${user.home}/.clover.license</cloverLicenseLocation>
  711. <cloverDatabase>${project.build.directory}/clover/hadoop-coverage.db</cloverDatabase>
  712. <!-- NB: This additional parametrization is made in order
  713. to be able to re-define these properties with "-Dk=v" maven options.
  714. By some reason the expressions declared in clover
  715. docs like "${maven.clover.generateHtml}" do not work in that way.
  716. However, the below properties are confirmed to work: e.g.
  717. -DcloverGenHtml=false switches off the Html generation.
  718. The default values provided here exactly correspond to Clover defaults, so
  719. the behavior is 100% backwards compatible. -->
  720. <cloverAlwaysReport>true</cloverAlwaysReport>
  721. <cloverGenHtml>true</cloverGenHtml>
  722. <cloverGenXml>true</cloverGenXml>
  723. <cloverGenHistorical>false</cloverGenHistorical>
  724. </properties>
  725. <build>
  726. <plugins>
  727. <plugin>
  728. <groupId>com.atlassian.maven.plugins</groupId>
  729. <artifactId>maven-clover2-plugin</artifactId>
  730. <configuration>
  731. <includesAllSourceRoots>false</includesAllSourceRoots>
  732. <includesTestSourceRoots>true</includesTestSourceRoots>
  733. <licenseLocation>${cloverLicenseLocation}</licenseLocation>
  734. <cloverDatabase>${cloverDatabase}</cloverDatabase>
  735. <targetPercentage>50%</targetPercentage>
  736. <outputDirectory>${project.build.directory}/clover</outputDirectory>
  737. <alwaysReport>${cloverAlwaysReport}</alwaysReport>
  738. <generateHtml>${cloverGenHtml}</generateHtml>
  739. <generateXml>${cloverGenXml}</generateXml>
  740. <generateHistorical>${cloverGenHistorical}</generateHistorical>
  741. <excludes>
  742. <exclude>**/examples/**/*.java</exclude>
  743. <exclude>**/hamlet/*.java</exclude>
  744. <exclude>**/ha/proto/*.java</exclude>
  745. <exclude>**/protocol/proto/*.java</exclude>
  746. <exclude>**/compiler/generated/*.java</exclude>
  747. <exclude>**/protobuf/*.java</exclude>
  748. <exclude>**/v2/proto/*.java</exclude>
  749. <exclude>**/yarn/proto/*.java</exclude>
  750. <exclude>**/security/proto/*.java</exclude>
  751. <exclude>**/tools/proto/*.java</exclude>
  752. <exclude>**/hs/proto/*.java</exclude>
  753. </excludes>
  754. </configuration>
  755. <executions>
  756. <execution>
  757. <id>clover-setup</id>
  758. <phase>process-sources</phase>
  759. <goals>
  760. <goal>setup</goal>
  761. </goals>
  762. </execution>
  763. <execution>
  764. <id>clover</id>
  765. <phase>test</phase>
  766. <goals>
  767. <goal>clover</goal>
  768. </goals>
  769. </execution>
  770. </executions>
  771. </plugin>
  772. </plugins>
  773. </build>
  774. </profile>
  775. <profile>
  776. <id>hdds</id>
  777. <activation>
  778. <activeByDefault>false</activeByDefault>
  779. </activation>
  780. <modules>
  781. <module>hadoop-ozone</module>
  782. <module>hadoop-hdds</module>
  783. </modules>
  784. </profile>
  785. <profile>
  786. <id>submarine</id>
  787. <activation>
  788. <activeByDefault>false</activeByDefault>
  789. </activation>
  790. <modules>
  791. <module>hadoop-submarine</module>
  792. </modules>
  793. </profile>
  794. </profiles>
  795. </project>