pom.xml 21 KB

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