pom.xml 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610
  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. <exclude>**/build/**</exclude>
  316. </excludes>
  317. </configuration>
  318. </plugin>
  319. <plugin>
  320. <artifactId>maven-site-plugin</artifactId>
  321. <version>3.3</version>
  322. <executions>
  323. <execution>
  324. <id>attach-descriptor</id>
  325. <goals>
  326. <goal>attach-descriptor</goal>
  327. </goals>
  328. <configuration>
  329. <generateReports>true</generateReports>
  330. </configuration>
  331. </execution>
  332. </executions>
  333. </plugin>
  334. <plugin>
  335. <groupId>org.apache.felix</groupId>
  336. <artifactId>maven-bundle-plugin</artifactId>
  337. <inherited>true</inherited>
  338. <extensions>true</extensions>
  339. </plugin>
  340. </plugins>
  341. </build>
  342. <reporting>
  343. <excludeDefaults>true</excludeDefaults>
  344. <plugins>
  345. <plugin>
  346. <groupId>org.apache.maven.plugins</groupId>
  347. <artifactId>maven-javadoc-plugin</artifactId>
  348. <version>2.8.1</version>
  349. <inherited>false</inherited>
  350. <reportSets>
  351. <reportSet>
  352. <id>aggregate</id>
  353. <configuration>
  354. <maxmemory>1024m</maxmemory>
  355. <linksource>true</linksource>
  356. <quiet>true</quiet>
  357. <verbose>false</verbose>
  358. <source>${maven.compile.source}</source>
  359. <charset>${maven.compile.encoding}</charset>
  360. <reportOutputDirectory>${project.build.directory}/site</reportOutputDirectory>
  361. <destDir>hadoop-project/api</destDir>
  362. <!-- Non-public APIs -->
  363. <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>
  364. <groups>
  365. <group>
  366. <title>Common</title>
  367. <packages>org.apache.hadoop*</packages>
  368. </group>
  369. <group>
  370. <title>MapReduce</title>
  371. <packages>org.apache.hadoop.mapred*</packages>
  372. </group>
  373. <group>
  374. <title>YARN</title>
  375. <packages>org.apache.hadoop.yarn*</packages>
  376. </group>
  377. </groups>
  378. <doclet>org.apache.hadoop.classification.tools.IncludePublicAnnotationsStandardDoclet</doclet>
  379. <docletArtifacts>
  380. <docletArtifact>
  381. <groupId>org.apache.hadoop</groupId>
  382. <artifactId>hadoop-annotations</artifactId>
  383. <version>${project.version}</version>
  384. </docletArtifact>
  385. </docletArtifacts>
  386. <useStandardDocletOptions>true</useStandardDocletOptions>
  387. <!-- switch on dependency-driven aggregation -->
  388. <includeDependencySources>false</includeDependencySources>
  389. <dependencySourceIncludes>
  390. <!-- include ONLY dependencies I control -->
  391. <dependencySourceInclude>org.apache.hadoop:hadoop-annotations</dependencySourceInclude>
  392. </dependencySourceIncludes>
  393. </configuration>
  394. <reports>
  395. <report>aggregate</report>
  396. </reports>
  397. </reportSet>
  398. </reportSets>
  399. </plugin>
  400. <plugin>
  401. <groupId>org.apache.maven.plugins</groupId>
  402. <artifactId>maven-dependency-plugin</artifactId>
  403. <version>2.4</version>
  404. <reportSets>
  405. <reportSet>
  406. <reports>
  407. <report>analyze-report</report>
  408. </reports>
  409. </reportSet>
  410. </reportSets>
  411. </plugin>
  412. </plugins>
  413. </reporting>
  414. <profiles>
  415. <profile>
  416. <id>src</id>
  417. <activation>
  418. <activeByDefault>false</activeByDefault>
  419. </activation>
  420. <build>
  421. <plugins>
  422. <plugin>
  423. <groupId>org.apache.maven.plugins</groupId>
  424. <artifactId>maven-assembly-plugin</artifactId>
  425. <inherited>false</inherited>
  426. <executions>
  427. <execution>
  428. <id>src-dist</id>
  429. <phase>package</phase>
  430. <goals>
  431. <goal>single</goal>
  432. </goals>
  433. <configuration>
  434. <appendAssemblyId>false</appendAssemblyId>
  435. <attach>false</attach>
  436. <finalName>hadoop-${project.version}-src</finalName>
  437. <outputDirectory>hadoop-dist/target</outputDirectory>
  438. <!-- Not using descriptorRef and hadoop-assembly dependency -->
  439. <!-- to avoid making hadoop-main to depend on a module -->
  440. <descriptors>
  441. <descriptor>hadoop-assemblies/src/main/resources/assemblies/hadoop-src.xml</descriptor>
  442. </descriptors>
  443. </configuration>
  444. </execution>
  445. </executions>
  446. </plugin>
  447. <plugin>
  448. <groupId>org.apache.maven.plugins</groupId>
  449. <artifactId>maven-antrun-plugin</artifactId>
  450. <inherited>false</inherited>
  451. <executions>
  452. <execution>
  453. <id>src-dist-msg</id>
  454. <phase>package</phase>
  455. <goals>
  456. <goal>run</goal>
  457. </goals>
  458. <configuration>
  459. <target>
  460. <echo/>
  461. <echo>Hadoop source tar available at: ${basedir}/hadoop-dist/target/hadoop-${project.version}-src.tar.gz</echo>
  462. <echo/>
  463. </target>
  464. </configuration>
  465. </execution>
  466. </executions>
  467. </plugin>
  468. </plugins>
  469. </build>
  470. </profile>
  471. <profile>
  472. <id>dist</id>
  473. <!-- Profile for generating all maven artifacts and documentation. -->
  474. <build>
  475. <plugins>
  476. <plugin>
  477. <groupId>org.apache.maven.plugins</groupId>
  478. <artifactId>maven-javadoc-plugin</artifactId>
  479. <inherited>false</inherited>
  480. <executions>
  481. <execution>
  482. <!-- build aggregate javadoc in parent only -->
  483. <id>default-cli</id>
  484. <goals>
  485. <goal>aggregate</goal>
  486. </goals>
  487. <configuration>
  488. <overview>hadoop-common-project/hadoop-common/src/main/java/overview.html</overview>
  489. </configuration>
  490. </execution>
  491. </executions>
  492. </plugin>
  493. </plugins>
  494. </build>
  495. </profile>
  496. <profile>
  497. <id>sign</id>
  498. <build>
  499. <plugins>
  500. <plugin>
  501. <groupId>org.apache.maven.plugins</groupId>
  502. <artifactId>maven-gpg-plugin</artifactId>
  503. <executions>
  504. <execution>
  505. <id>sign-artifacts</id>
  506. <phase>verify</phase>
  507. <goals>
  508. <goal>sign</goal>
  509. </goals>
  510. </execution>
  511. </executions>
  512. </plugin>
  513. </plugins>
  514. </build>
  515. </profile>
  516. <profile>
  517. <id>clover</id>
  518. <activation>
  519. <activeByDefault>false</activeByDefault>
  520. <property>
  521. <name>clover</name>
  522. </property>
  523. </activation>
  524. <properties>
  525. <cloverLicenseLocation>${user.home}/.clover.license</cloverLicenseLocation>
  526. <cloverDatabase>${project.build.directory}/clover/hadoop-coverage.db</cloverDatabase>
  527. <!-- NB: This additional parametrization is made in order
  528. to be able to re-define these properties with "-Dk=v" maven options.
  529. By some reason the expressions declared in clover
  530. docs like "${maven.clover.generateHtml}" do not work in that way.
  531. However, the below properties are confirmed to work: e.g.
  532. -DcloverGenHtml=false switches off the Html generation.
  533. The default values provided here exactly correspond to Clover defaults, so
  534. the behavior is 100% backwards compatible. -->
  535. <cloverAlwaysReport>true</cloverAlwaysReport>
  536. <cloverGenHtml>true</cloverGenHtml>
  537. <cloverGenXml>true</cloverGenXml>
  538. <cloverGenHistorical>false</cloverGenHistorical>
  539. </properties>
  540. <build>
  541. <plugins>
  542. <plugin>
  543. <groupId>com.atlassian.maven.plugins</groupId>
  544. <artifactId>maven-clover2-plugin</artifactId>
  545. <configuration>
  546. <includesAllSourceRoots>false</includesAllSourceRoots>
  547. <includesTestSourceRoots>true</includesTestSourceRoots>
  548. <licenseLocation>${cloverLicenseLocation}</licenseLocation>
  549. <cloverDatabase>${cloverDatabase}</cloverDatabase>
  550. <targetPercentage>50%</targetPercentage>
  551. <outputDirectory>${project.build.directory}/clover</outputDirectory>
  552. <alwaysReport>${cloverAlwaysReport}</alwaysReport>
  553. <generateHtml>${cloverGenHtml}</generateHtml>
  554. <generateXml>${cloverGenXml}</generateXml>
  555. <generateHistorical>${cloverGenHistorical}</generateHistorical>
  556. <excludes>
  557. <exclude>**/examples/**/*.java</exclude>
  558. <exclude>**/hamlet/*.java</exclude>
  559. <exclude>**/ha/proto/*.java</exclude>
  560. <exclude>**/protocol/proto/*.java</exclude>
  561. <exclude>**/compiler/generated/*.java</exclude>
  562. <exclude>**/protobuf/*.java</exclude>
  563. <exclude>**/v2/proto/*.java</exclude>
  564. <exclude>**/yarn/proto/*.java</exclude>
  565. <exclude>**/security/proto/*.java</exclude>
  566. <exclude>**/tools/proto/*.java</exclude>
  567. <exclude>**/hs/proto/*.java</exclude>
  568. </excludes>
  569. </configuration>
  570. <executions>
  571. <execution>
  572. <id>clover-setup</id>
  573. <phase>process-sources</phase>
  574. <goals>
  575. <goal>setup</goal>
  576. </goals>
  577. </execution>
  578. <execution>
  579. <id>clover</id>
  580. <phase>test</phase>
  581. <goals>
  582. <goal>clover</goal>
  583. </goals>
  584. </execution>
  585. </executions>
  586. </plugin>
  587. </plugins>
  588. </build>
  589. </profile>
  590. </profiles>
  591. </project>