pom.xml 29 KB

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