pom.xml 29 KB

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