pom.xml 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609
  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.0.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>The Apache Software 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. <distMgmtSnapshotsId>apache.snapshots.https</distMgmtSnapshotsId>
  75. <distMgmtSnapshotsName>Apache Development Snapshot Repository</distMgmtSnapshotsName>
  76. <distMgmtSnapshotsUrl>https://repository.apache.org/content/repositories/snapshots</distMgmtSnapshotsUrl>
  77. <distMgmtStagingId>apache.staging.https</distMgmtStagingId>
  78. <distMgmtStagingName>Apache Release Distribution Repository</distMgmtStagingName>
  79. <distMgmtStagingUrl>https://repository.apache.org/service/local/staging/deploy/maven2</distMgmtStagingUrl>
  80. <!-- platform encoding override -->
  81. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  82. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  83. </properties>
  84. <modules>
  85. <module>hadoop-project</module>
  86. <module>hadoop-project-dist</module>
  87. <module>hadoop-assemblies</module>
  88. <module>hadoop-maven-plugins</module>
  89. <module>hadoop-common-project</module>
  90. <module>hadoop-hdfs-project</module>
  91. <module>hadoop-yarn-project</module>
  92. <module>hadoop-mapreduce-project</module>
  93. <module>hadoop-tools</module>
  94. <module>hadoop-dist</module>
  95. <module>hadoop-client</module>
  96. <module>hadoop-minicluster</module>
  97. </modules>
  98. <build>
  99. <pluginManagement>
  100. <plugins>
  101. <plugin>
  102. <groupId>org.apache.maven.plugins</groupId>
  103. <artifactId>maven-dependency-plugin</artifactId>
  104. <version>2.4</version>
  105. </plugin>
  106. <plugin>
  107. <groupId>org.apache.maven.plugins</groupId>
  108. <artifactId>maven-enforcer-plugin</artifactId>
  109. <version>1.3.1</version>
  110. <configuration>
  111. <rules>
  112. <requireMavenVersion>
  113. <version>[3.0.2,)</version>
  114. </requireMavenVersion>
  115. <requireJavaVersion>
  116. <version>1.6</version>
  117. </requireJavaVersion>
  118. </rules>
  119. </configuration>
  120. </plugin>
  121. <plugin>
  122. <groupId>org.apache.maven.plugins</groupId>
  123. <artifactId>maven-assembly-plugin</artifactId>
  124. <version>2.3</version>
  125. </plugin>
  126. <plugin>
  127. <groupId>org.apache.maven.plugins</groupId>
  128. <artifactId>maven-deploy-plugin</artifactId>
  129. <version>2.5</version>
  130. </plugin>
  131. <plugin>
  132. <groupId>org.apache.rat</groupId>
  133. <artifactId>apache-rat-plugin</artifactId>
  134. <version>0.7</version>
  135. </plugin>
  136. <plugin>
  137. <groupId>org.apache.maven.plugins</groupId>
  138. <artifactId>maven-antrun-plugin</artifactId>
  139. <version>1.7</version>
  140. </plugin>
  141. <plugin>
  142. <groupId>org.apache.maven.plugins</groupId>
  143. <artifactId>maven-site-plugin</artifactId>
  144. <version>3.3</version>
  145. <dependencies>
  146. <dependency><!-- add support for ssh/scp -->
  147. <groupId>org.apache.maven.wagon</groupId>
  148. <artifactId>wagon-ssh</artifactId>
  149. <version>1.0</version>
  150. </dependency>
  151. <dependency> <!-- add support for markdown -->
  152. <groupId>org.apache.maven.doxia</groupId>
  153. <artifactId>doxia-module-markdown</artifactId>
  154. <version>1.3</version>
  155. </dependency>
  156. </dependencies>
  157. </plugin>
  158. <!--This plugin's configuration is used to store Eclipse m2e settings only.
  159. It has no influence on the Maven build itself.-->
  160. <plugin>
  161. <groupId>org.eclipse.m2e</groupId>
  162. <artifactId>lifecycle-mapping</artifactId>
  163. <version>1.0.0</version>
  164. <configuration>
  165. <lifecycleMappingMetadata>
  166. <pluginExecutions>
  167. <pluginExecution>
  168. <pluginExecutionFilter>
  169. <groupId>org.apache.maven.plugins</groupId>
  170. <artifactId>maven-antrun-plugin</artifactId>
  171. <versionRange>[1.7,)</versionRange>
  172. <goals>
  173. <goal>run</goal>
  174. </goals>
  175. </pluginExecutionFilter>
  176. <action>
  177. <ignore></ignore>
  178. </action>
  179. </pluginExecution>
  180. <pluginExecution>
  181. <pluginExecutionFilter>
  182. <groupId>org.apache.maven.plugins</groupId>
  183. <artifactId>maven-resources-plugin</artifactId>
  184. <versionRange>[2.2,)</versionRange>
  185. <goals>
  186. <goal>testResources</goal>
  187. <goal>resources</goal>
  188. </goals>
  189. </pluginExecutionFilter>
  190. <action>
  191. <ignore></ignore>
  192. </action>
  193. </pluginExecution>
  194. <pluginExecution>
  195. <pluginExecutionFilter>
  196. <groupId>org.apache.avro</groupId>
  197. <artifactId>avro-maven-plugin</artifactId>
  198. <versionRange>[1.5.3,)</versionRange>
  199. <goals>
  200. <goal>schema</goal>
  201. <goal>protocol</goal>
  202. </goals>
  203. </pluginExecutionFilter>
  204. <action>
  205. <ignore></ignore>
  206. </action>
  207. </pluginExecution>
  208. <pluginExecution>
  209. <pluginExecutionFilter>
  210. <groupId>org.codehaus.mojo.jspc</groupId>
  211. <artifactId>jspc-maven-plugin</artifactId>
  212. <versionRange>[2.0-alpha-3,)</versionRange>
  213. <goals>
  214. <goal>compile</goal>
  215. </goals>
  216. </pluginExecutionFilter>
  217. <action>
  218. <ignore></ignore>
  219. </action>
  220. </pluginExecution>
  221. <pluginExecution>
  222. <pluginExecutionFilter>
  223. <groupId>org.apache.maven.plugins</groupId>
  224. <artifactId>maven-dependency-plugin</artifactId>
  225. <versionRange>[2.4,)</versionRange>
  226. <goals>
  227. <goal>copy-dependencies</goal>
  228. <goal>build-classpath</goal>
  229. </goals>
  230. </pluginExecutionFilter>
  231. <action>
  232. <ignore></ignore>
  233. </action>
  234. </pluginExecution>
  235. <pluginExecution>
  236. <pluginExecutionFilter>
  237. <groupId>org.codehaus.mojo</groupId>
  238. <artifactId>exec-maven-plugin</artifactId>
  239. <versionRange>[1.2,)</versionRange>
  240. <goals>
  241. <goal>exec</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-jar-plugin</artifactId>
  252. <versionRange>[2.3.1,)</versionRange>
  253. <goals>
  254. <goal>test-jar</goal>
  255. </goals>
  256. </pluginExecutionFilter>
  257. <action>
  258. <ignore></ignore>
  259. </action>
  260. </pluginExecution>
  261. </pluginExecutions>
  262. </lifecycleMappingMetadata>
  263. </configuration>
  264. </plugin>
  265. <plugin>
  266. <groupId>com.atlassian.maven.plugins</groupId>
  267. <artifactId>maven-clover2-plugin</artifactId>
  268. <version>3.0.5</version>
  269. </plugin>
  270. <plugin>
  271. <groupId>org.apache.felix</groupId>
  272. <artifactId>maven-bundle-plugin</artifactId>
  273. <version>2.4.0</version>
  274. </plugin>
  275. </plugins>
  276. </pluginManagement>
  277. <plugins>
  278. <plugin>
  279. <groupId>org.apache.maven.plugins</groupId>
  280. <artifactId>maven-enforcer-plugin</artifactId>
  281. <inherited>false</inherited>
  282. <executions>
  283. <execution>
  284. <id>clean</id>
  285. <goals>
  286. <goal>enforce</goal>
  287. </goals>
  288. <phase>pre-clean</phase>
  289. </execution>
  290. <execution>
  291. <id>default</id>
  292. <goals>
  293. <goal>enforce</goal>
  294. </goals>
  295. <phase>validate</phase>
  296. </execution>
  297. <execution>
  298. <id>site</id>
  299. <goals>
  300. <goal>enforce</goal>
  301. </goals>
  302. <phase>pre-site</phase>
  303. </execution>
  304. </executions>
  305. </plugin>
  306. <plugin>
  307. <groupId>org.apache.rat</groupId>
  308. <artifactId>apache-rat-plugin</artifactId>
  309. <configuration>
  310. <excludes>
  311. <exclude>.gitattributes</exclude>
  312. <exclude>.gitignore</exclude>
  313. <exclude>.git/**</exclude>
  314. <exclude>.idea/**</exclude>
  315. </excludes>
  316. </configuration>
  317. </plugin>
  318. <plugin>
  319. <artifactId>maven-site-plugin</artifactId>
  320. <version>3.3</version>
  321. <executions>
  322. <execution>
  323. <id>attach-descriptor</id>
  324. <goals>
  325. <goal>attach-descriptor</goal>
  326. </goals>
  327. <configuration>
  328. <generateReports>true</generateReports>
  329. </configuration>
  330. </execution>
  331. </executions>
  332. </plugin>
  333. <plugin>
  334. <groupId>org.apache.felix</groupId>
  335. <artifactId>maven-bundle-plugin</artifactId>
  336. <inherited>true</inherited>
  337. <extensions>true</extensions>
  338. </plugin>
  339. </plugins>
  340. </build>
  341. <reporting>
  342. <excludeDefaults>true</excludeDefaults>
  343. <plugins>
  344. <plugin>
  345. <groupId>org.apache.maven.plugins</groupId>
  346. <artifactId>maven-javadoc-plugin</artifactId>
  347. <version>2.8.1</version>
  348. <inherited>false</inherited>
  349. <reportSets>
  350. <reportSet>
  351. <id>aggregate</id>
  352. <configuration>
  353. <maxmemory>1024m</maxmemory>
  354. <linksource>true</linksource>
  355. <quiet>true</quiet>
  356. <verbose>false</verbose>
  357. <source>${maven.compile.source}</source>
  358. <charset>${maven.compile.encoding}</charset>
  359. <reportOutputDirectory>${project.build.directory}/site</reportOutputDirectory>
  360. <destDir>hadoop-project/api</destDir>
  361. <!-- Non-public APIs -->
  362. <excludePackageNames>org.apache.hadoop.authentication*,org.apache.hadoop.hdfs*,org.apache.hadoop.mapreduce.v2.proto,org.apache.hadoop.yarn.proto,org.apache.hadoop.yarn.server*,org.apache.hadoop.yarn.webapp*</excludePackageNames>
  363. <groups>
  364. <group>
  365. <title>Common</title>
  366. <packages>org.apache.hadoop*</packages>
  367. </group>
  368. <group>
  369. <title>MapReduce</title>
  370. <packages>org.apache.hadoop.mapred*</packages>
  371. </group>
  372. <group>
  373. <title>YARN</title>
  374. <packages>org.apache.hadoop.yarn*</packages>
  375. </group>
  376. </groups>
  377. <doclet>org.apache.hadoop.classification.tools.IncludePublicAnnotationsStandardDoclet</doclet>
  378. <docletArtifacts>
  379. <docletArtifact>
  380. <groupId>org.apache.hadoop</groupId>
  381. <artifactId>hadoop-annotations</artifactId>
  382. <version>${project.version}</version>
  383. </docletArtifact>
  384. </docletArtifacts>
  385. <useStandardDocletOptions>true</useStandardDocletOptions>
  386. <!-- switch on dependency-driven aggregation -->
  387. <includeDependencySources>false</includeDependencySources>
  388. <dependencySourceIncludes>
  389. <!-- include ONLY dependencies I control -->
  390. <dependencySourceInclude>org.apache.hadoop:hadoop-annotations</dependencySourceInclude>
  391. </dependencySourceIncludes>
  392. </configuration>
  393. <reports>
  394. <report>aggregate</report>
  395. </reports>
  396. </reportSet>
  397. </reportSets>
  398. </plugin>
  399. <plugin>
  400. <groupId>org.apache.maven.plugins</groupId>
  401. <artifactId>maven-dependency-plugin</artifactId>
  402. <version>2.4</version>
  403. <reportSets>
  404. <reportSet>
  405. <reports>
  406. <report>analyze-report</report>
  407. </reports>
  408. </reportSet>
  409. </reportSets>
  410. </plugin>
  411. </plugins>
  412. </reporting>
  413. <profiles>
  414. <profile>
  415. <id>src</id>
  416. <activation>
  417. <activeByDefault>false</activeByDefault>
  418. </activation>
  419. <build>
  420. <plugins>
  421. <plugin>
  422. <groupId>org.apache.maven.plugins</groupId>
  423. <artifactId>maven-assembly-plugin</artifactId>
  424. <inherited>false</inherited>
  425. <executions>
  426. <execution>
  427. <id>src-dist</id>
  428. <phase>package</phase>
  429. <goals>
  430. <goal>single</goal>
  431. </goals>
  432. <configuration>
  433. <appendAssemblyId>false</appendAssemblyId>
  434. <attach>false</attach>
  435. <finalName>hadoop-${project.version}-src</finalName>
  436. <outputDirectory>hadoop-dist/target</outputDirectory>
  437. <!-- Not using descriptorRef and hadoop-assembly dependency -->
  438. <!-- to avoid making hadoop-main to depend on a module -->
  439. <descriptors>
  440. <descriptor>hadoop-assemblies/src/main/resources/assemblies/hadoop-src.xml</descriptor>
  441. </descriptors>
  442. </configuration>
  443. </execution>
  444. </executions>
  445. </plugin>
  446. <plugin>
  447. <groupId>org.apache.maven.plugins</groupId>
  448. <artifactId>maven-antrun-plugin</artifactId>
  449. <inherited>false</inherited>
  450. <executions>
  451. <execution>
  452. <id>src-dist-msg</id>
  453. <phase>package</phase>
  454. <goals>
  455. <goal>run</goal>
  456. </goals>
  457. <configuration>
  458. <target>
  459. <echo/>
  460. <echo>Hadoop source tar available at: ${basedir}/hadoop-dist/target/hadoop-${project.version}-src.tar.gz</echo>
  461. <echo/>
  462. </target>
  463. </configuration>
  464. </execution>
  465. </executions>
  466. </plugin>
  467. </plugins>
  468. </build>
  469. </profile>
  470. <profile>
  471. <id>dist</id>
  472. <!-- Profile for generating all maven artifacts and documentation. -->
  473. <build>
  474. <plugins>
  475. <plugin>
  476. <groupId>org.apache.maven.plugins</groupId>
  477. <artifactId>maven-javadoc-plugin</artifactId>
  478. <inherited>false</inherited>
  479. <executions>
  480. <execution>
  481. <!-- build aggregate javadoc in parent only -->
  482. <id>default-cli</id>
  483. <goals>
  484. <goal>aggregate</goal>
  485. </goals>
  486. <configuration>
  487. <overview>hadoop-common-project/hadoop-common/src/main/java/overview.html</overview>
  488. </configuration>
  489. </execution>
  490. </executions>
  491. </plugin>
  492. </plugins>
  493. </build>
  494. </profile>
  495. <profile>
  496. <id>sign</id>
  497. <build>
  498. <plugins>
  499. <plugin>
  500. <groupId>org.apache.maven.plugins</groupId>
  501. <artifactId>maven-gpg-plugin</artifactId>
  502. <executions>
  503. <execution>
  504. <id>sign-artifacts</id>
  505. <phase>verify</phase>
  506. <goals>
  507. <goal>sign</goal>
  508. </goals>
  509. </execution>
  510. </executions>
  511. </plugin>
  512. </plugins>
  513. </build>
  514. </profile>
  515. <profile>
  516. <id>clover</id>
  517. <activation>
  518. <activeByDefault>false</activeByDefault>
  519. <property>
  520. <name>clover</name>
  521. </property>
  522. </activation>
  523. <properties>
  524. <cloverLicenseLocation>${user.home}/.clover.license</cloverLicenseLocation>
  525. <cloverDatabase>${project.build.directory}/clover/hadoop-coverage.db</cloverDatabase>
  526. <!-- NB: This additional parametrization is made in order
  527. to be able to re-define these properties with "-Dk=v" maven options.
  528. By some reason the expressions declared in clover
  529. docs like "${maven.clover.generateHtml}" do not work in that way.
  530. However, the below properties are confirmed to work: e.g.
  531. -DcloverGenHtml=false switches off the Html generation.
  532. The default values provided here exactly correspond to Clover defaults, so
  533. the behavior is 100% backwards compatible. -->
  534. <cloverAlwaysReport>true</cloverAlwaysReport>
  535. <cloverGenHtml>true</cloverGenHtml>
  536. <cloverGenXml>true</cloverGenXml>
  537. <cloverGenHistorical>false</cloverGenHistorical>
  538. </properties>
  539. <build>
  540. <plugins>
  541. <plugin>
  542. <groupId>com.atlassian.maven.plugins</groupId>
  543. <artifactId>maven-clover2-plugin</artifactId>
  544. <configuration>
  545. <includesAllSourceRoots>false</includesAllSourceRoots>
  546. <includesTestSourceRoots>true</includesTestSourceRoots>
  547. <licenseLocation>${cloverLicenseLocation}</licenseLocation>
  548. <cloverDatabase>${cloverDatabase}</cloverDatabase>
  549. <targetPercentage>50%</targetPercentage>
  550. <outputDirectory>${project.build.directory}/clover</outputDirectory>
  551. <alwaysReport>${cloverAlwaysReport}</alwaysReport>
  552. <generateHtml>${cloverGenHtml}</generateHtml>
  553. <generateXml>${cloverGenXml}</generateXml>
  554. <generateHistorical>${cloverGenHistorical}</generateHistorical>
  555. <excludes>
  556. <exclude>**/examples/**/*.java</exclude>
  557. <exclude>**/hamlet/*.java</exclude>
  558. <exclude>**/ha/proto/*.java</exclude>
  559. <exclude>**/protocol/proto/*.java</exclude>
  560. <exclude>**/compiler/generated/*.java</exclude>
  561. <exclude>**/protobuf/*.java</exclude>
  562. <exclude>**/v2/proto/*.java</exclude>
  563. <exclude>**/yarn/proto/*.java</exclude>
  564. <exclude>**/security/proto/*.java</exclude>
  565. <exclude>**/tools/proto/*.java</exclude>
  566. <exclude>**/hs/proto/*.java</exclude>
  567. </excludes>
  568. </configuration>
  569. <executions>
  570. <execution>
  571. <id>clover-setup</id>
  572. <phase>process-sources</phase>
  573. <goals>
  574. <goal>setup</goal>
  575. </goals>
  576. </execution>
  577. <execution>
  578. <id>clover</id>
  579. <phase>test</phase>
  580. <goals>
  581. <goal>clover</goal>
  582. </goals>
  583. </execution>
  584. </executions>
  585. </plugin>
  586. </plugins>
  587. </build>
  588. </profile>
  589. </profiles>
  590. </project>