pom.xml 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License. See accompanying LICENSE file.
  12. -->
  13. <project xmlns="http://maven.apache.org/POM/4.0.0"
  14. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  15. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  16. <modelVersion>4.0.0</modelVersion>
  17. <groupId>org.apache.hadoop</groupId>
  18. <artifactId>hadoop-main</artifactId>
  19. <version>3.2.0-SNAPSHOT</version>
  20. <description>Apache Hadoop Main</description>
  21. <name>Apache Hadoop Main</name>
  22. <packaging>pom</packaging>
  23. <dependencyManagement>
  24. <dependencies>
  25. <dependency>
  26. <groupId>com.cenqua.clover</groupId>
  27. <artifactId>clover</artifactId>
  28. <!-- Use the version needed by maven-clover-plugin -->
  29. <version>3.0.2</version>
  30. </dependency>
  31. </dependencies>
  32. </dependencyManagement>
  33. <distributionManagement>
  34. <repository>
  35. <id>${distMgmtStagingId}</id>
  36. <name>${distMgmtStagingName}</name>
  37. <url>${distMgmtStagingUrl}</url>
  38. </repository>
  39. <snapshotRepository>
  40. <id>${distMgmtSnapshotsId}</id>
  41. <name>${distMgmtSnapshotsName}</name>
  42. <url>${distMgmtSnapshotsUrl}</url>
  43. </snapshotRepository>
  44. <site>
  45. <id>apache.website</id>
  46. <url>scpexe://people.apache.org/www/hadoop.apache.org/docs/r${project.version}</url>
  47. </site>
  48. </distributionManagement>
  49. <repositories>
  50. <repository>
  51. <id>${distMgmtSnapshotsId}</id>
  52. <name>${distMgmtSnapshotsName}</name>
  53. <url>${distMgmtSnapshotsUrl}</url>
  54. </repository>
  55. <repository>
  56. <id>repository.jboss.org</id>
  57. <url>http://repository.jboss.org/nexus/content/groups/public/</url>
  58. <snapshots>
  59. <enabled>false</enabled>
  60. </snapshots>
  61. </repository>
  62. </repositories>
  63. <licenses>
  64. <license>
  65. <name>Apache License, Version 2.0</name>
  66. <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
  67. </license>
  68. </licenses>
  69. <organization>
  70. <name>Apache Software Foundation</name>
  71. <url>http://www.apache.org</url>
  72. </organization>
  73. <properties>
  74. <!-- required as child projects with different version can't use ${project.version} -->
  75. <hadoop.version>3.2.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.0-M1</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.8</checkstyle.version>
  104. <dependency-check-maven.version>1.4.3</dependency-check-maven.version>
  105. <shell-executable>bash</shell-executable>
  106. <!-- version for hdds/ozone components -->
  107. <hdds.version>0.3.0-SNAPSHOT</hdds.version>
  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. <format>xml</format>
  324. <format>html</format>
  325. <outputFile>${project.build.directory}/test/checkstyle-errors.xml</outputFile>
  326. </configuration>
  327. </plugin>
  328. <plugin>
  329. <groupId>org.owasp</groupId>
  330. <artifactId>dependency-check-maven</artifactId>
  331. <version>${dependency-check-maven.version}</version>
  332. </plugin>
  333. </plugins>
  334. </pluginManagement>
  335. <plugins>
  336. <plugin>
  337. <groupId>org.apache.maven.plugins</groupId>
  338. <artifactId>maven-enforcer-plugin</artifactId>
  339. <inherited>false</inherited>
  340. <executions>
  341. <execution>
  342. <id>clean</id>
  343. <goals>
  344. <goal>enforce</goal>
  345. </goals>
  346. <phase>pre-clean</phase>
  347. </execution>
  348. <execution>
  349. <id>default</id>
  350. <goals>
  351. <goal>enforce</goal>
  352. </goals>
  353. <phase>validate</phase>
  354. </execution>
  355. <execution>
  356. <id>site</id>
  357. <goals>
  358. <goal>enforce</goal>
  359. </goals>
  360. <phase>pre-site</phase>
  361. </execution>
  362. <execution>
  363. <id>enforce-property</id>
  364. <goals>
  365. <goal>enforce</goal>
  366. </goals>
  367. <configuration>
  368. <rules>
  369. <requireProperty>
  370. <property>hadoop.version</property>
  371. <message>You must set a hadoop.version to be the same as ${project.version}</message>
  372. <regex>${project.version}</regex>
  373. <regexMessage>The hadoop.version property should be set and should be ${project.version}.</regexMessage>
  374. </requireProperty>
  375. </rules>
  376. <fail>true</fail>
  377. </configuration>
  378. </execution>
  379. </executions>
  380. </plugin>
  381. <plugin>
  382. <groupId>org.apache.rat</groupId>
  383. <artifactId>apache-rat-plugin</artifactId>
  384. <configuration>
  385. <excludes>
  386. <exclude>.gitattributes</exclude>
  387. <exclude>.gitignore</exclude>
  388. <exclude>.git/**</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. </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>sign</id>
  624. <build>
  625. <plugins>
  626. <plugin>
  627. <groupId>org.apache.maven.plugins</groupId>
  628. <artifactId>maven-gpg-plugin</artifactId>
  629. <version>${maven-gpg-plugin.version}</version>
  630. <executions>
  631. <execution>
  632. <id>sign-artifacts</id>
  633. <phase>verify</phase>
  634. <goals>
  635. <goal>sign</goal>
  636. </goals>
  637. </execution>
  638. </executions>
  639. </plugin>
  640. </plugins>
  641. </build>
  642. </profile>
  643. <profile>
  644. <id>clover</id>
  645. <activation>
  646. <activeByDefault>false</activeByDefault>
  647. <property>
  648. <name>clover</name>
  649. </property>
  650. </activation>
  651. <properties>
  652. <cloverLicenseLocation>${user.home}/.clover.license</cloverLicenseLocation>
  653. <cloverDatabase>${project.build.directory}/clover/hadoop-coverage.db</cloverDatabase>
  654. <!-- NB: This additional parametrization is made in order
  655. to be able to re-define these properties with "-Dk=v" maven options.
  656. By some reason the expressions declared in clover
  657. docs like "${maven.clover.generateHtml}" do not work in that way.
  658. However, the below properties are confirmed to work: e.g.
  659. -DcloverGenHtml=false switches off the Html generation.
  660. The default values provided here exactly correspond to Clover defaults, so
  661. the behavior is 100% backwards compatible. -->
  662. <cloverAlwaysReport>true</cloverAlwaysReport>
  663. <cloverGenHtml>true</cloverGenHtml>
  664. <cloverGenXml>true</cloverGenXml>
  665. <cloverGenHistorical>false</cloverGenHistorical>
  666. </properties>
  667. <build>
  668. <plugins>
  669. <plugin>
  670. <groupId>com.atlassian.maven.plugins</groupId>
  671. <artifactId>maven-clover2-plugin</artifactId>
  672. <configuration>
  673. <includesAllSourceRoots>false</includesAllSourceRoots>
  674. <includesTestSourceRoots>true</includesTestSourceRoots>
  675. <licenseLocation>${cloverLicenseLocation}</licenseLocation>
  676. <cloverDatabase>${cloverDatabase}</cloverDatabase>
  677. <targetPercentage>50%</targetPercentage>
  678. <outputDirectory>${project.build.directory}/clover</outputDirectory>
  679. <alwaysReport>${cloverAlwaysReport}</alwaysReport>
  680. <generateHtml>${cloverGenHtml}</generateHtml>
  681. <generateXml>${cloverGenXml}</generateXml>
  682. <generateHistorical>${cloverGenHistorical}</generateHistorical>
  683. <excludes>
  684. <exclude>**/examples/**/*.java</exclude>
  685. <exclude>**/hamlet/*.java</exclude>
  686. <exclude>**/ha/proto/*.java</exclude>
  687. <exclude>**/protocol/proto/*.java</exclude>
  688. <exclude>**/compiler/generated/*.java</exclude>
  689. <exclude>**/protobuf/*.java</exclude>
  690. <exclude>**/v2/proto/*.java</exclude>
  691. <exclude>**/yarn/proto/*.java</exclude>
  692. <exclude>**/security/proto/*.java</exclude>
  693. <exclude>**/tools/proto/*.java</exclude>
  694. <exclude>**/hs/proto/*.java</exclude>
  695. </excludes>
  696. </configuration>
  697. <executions>
  698. <execution>
  699. <id>clover-setup</id>
  700. <phase>process-sources</phase>
  701. <goals>
  702. <goal>setup</goal>
  703. </goals>
  704. </execution>
  705. <execution>
  706. <id>clover</id>
  707. <phase>test</phase>
  708. <goals>
  709. <goal>clover</goal>
  710. </goals>
  711. </execution>
  712. </executions>
  713. </plugin>
  714. </plugins>
  715. </build>
  716. </profile>
  717. <profile>
  718. <id>hdds</id>
  719. <activation>
  720. <activeByDefault>false</activeByDefault>
  721. </activation>
  722. <modules>
  723. <module>hadoop-ozone</module>
  724. <module>hadoop-hdds</module>
  725. <module>hadoop-ozone/acceptance-test</module>
  726. </modules>
  727. </profile>
  728. </profiles>
  729. </project>