pom.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469
  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>2.2.1</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-dependency-plugin</artifactId>
  101. <version>2.4</version>
  102. </plugin>
  103. <plugin>
  104. <groupId>org.apache.maven.plugins</groupId>
  105. <artifactId>maven-enforcer-plugin</artifactId>
  106. <version>1.3.1</version>
  107. <configuration>
  108. <rules>
  109. <requireMavenVersion>
  110. <version>[3.0.2,)</version>
  111. </requireMavenVersion>
  112. <requireJavaVersion>
  113. <version>1.6</version>
  114. </requireJavaVersion>
  115. </rules>
  116. </configuration>
  117. </plugin>
  118. <plugin>
  119. <groupId>org.apache.maven.plugins</groupId>
  120. <artifactId>maven-assembly-plugin</artifactId>
  121. <version>2.3</version>
  122. </plugin>
  123. <plugin>
  124. <groupId>org.apache.maven.plugins</groupId>
  125. <artifactId>maven-deploy-plugin</artifactId>
  126. <version>2.5</version>
  127. </plugin>
  128. <plugin>
  129. <groupId>org.apache.rat</groupId>
  130. <artifactId>apache-rat-plugin</artifactId>
  131. <version>0.7</version>
  132. </plugin>
  133. <plugin>
  134. <groupId>org.apache.maven.plugins</groupId>
  135. <artifactId>maven-antrun-plugin</artifactId>
  136. <version>1.6</version>
  137. </plugin>
  138. <plugin>
  139. <groupId>org.apache.maven.plugins</groupId>
  140. <artifactId>maven-site-plugin</artifactId>
  141. <version>3.0</version>
  142. <dependencies>
  143. <dependency><!-- add support for ssh/scp -->
  144. <groupId>org.apache.maven.wagon</groupId>
  145. <artifactId>wagon-ssh</artifactId>
  146. <version>1.0</version>
  147. </dependency>
  148. </dependencies>
  149. </plugin>
  150. <plugin>
  151. <groupId>com.atlassian.maven.plugins</groupId>
  152. <artifactId>maven-clover2-plugin</artifactId>
  153. <version>3.0.5</version>
  154. </plugin>
  155. </plugins>
  156. </pluginManagement>
  157. <plugins>
  158. <plugin>
  159. <groupId>org.apache.maven.plugins</groupId>
  160. <artifactId>maven-enforcer-plugin</artifactId>
  161. <inherited>false</inherited>
  162. <executions>
  163. <execution>
  164. <id>clean</id>
  165. <goals>
  166. <goal>enforce</goal>
  167. </goals>
  168. <phase>pre-clean</phase>
  169. </execution>
  170. <execution>
  171. <id>default</id>
  172. <goals>
  173. <goal>enforce</goal>
  174. </goals>
  175. <phase>validate</phase>
  176. </execution>
  177. <execution>
  178. <id>site</id>
  179. <goals>
  180. <goal>enforce</goal>
  181. </goals>
  182. <phase>pre-site</phase>
  183. </execution>
  184. </executions>
  185. </plugin>
  186. <plugin>
  187. <groupId>org.apache.rat</groupId>
  188. <artifactId>apache-rat-plugin</artifactId>
  189. <configuration>
  190. <excludes>
  191. <exclude>.gitattributes</exclude>
  192. <exclude>.gitignore</exclude>
  193. <exclude>.git/**</exclude>
  194. <exclude>.idea/**</exclude>
  195. </excludes>
  196. </configuration>
  197. </plugin>
  198. <plugin>
  199. <artifactId>maven-site-plugin</artifactId>
  200. <version>3.0</version>
  201. <executions>
  202. <execution>
  203. <id>attach-descriptor</id>
  204. <goals>
  205. <goal>attach-descriptor</goal>
  206. </goals>
  207. <configuration>
  208. <generateReports>true</generateReports>
  209. </configuration>
  210. </execution>
  211. </executions>
  212. </plugin>
  213. </plugins>
  214. </build>
  215. <reporting>
  216. <excludeDefaults>true</excludeDefaults>
  217. <plugins>
  218. <plugin>
  219. <groupId>org.apache.maven.plugins</groupId>
  220. <artifactId>maven-javadoc-plugin</artifactId>
  221. <version>2.8.1</version>
  222. <inherited>false</inherited>
  223. <reportSets>
  224. <reportSet>
  225. <id>aggregate</id>
  226. <configuration>
  227. <maxmemory>1024m</maxmemory>
  228. <linksource>true</linksource>
  229. <quiet>true</quiet>
  230. <verbose>false</verbose>
  231. <source>${maven.compile.source}</source>
  232. <charset>${maven.compile.encoding}</charset>
  233. <reportOutputDirectory>${project.build.directory}/site</reportOutputDirectory>
  234. <destDir>hadoop-project/api</destDir>
  235. <!-- Non-public APIs -->
  236. <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>
  237. <groups>
  238. <group>
  239. <title>Common</title>
  240. <packages>org.apache.hadoop*</packages>
  241. </group>
  242. <group>
  243. <title>MapReduce</title>
  244. <packages>org.apache.hadoop.mapred*</packages>
  245. </group>
  246. <group>
  247. <title>YARN</title>
  248. <packages>org.apache.hadoop.yarn*</packages>
  249. </group>
  250. </groups>
  251. <doclet>org.apache.hadoop.classification.tools.IncludePublicAnnotationsStandardDoclet</doclet>
  252. <docletArtifacts>
  253. <docletArtifact>
  254. <groupId>org.apache.hadoop</groupId>
  255. <artifactId>hadoop-annotations</artifactId>
  256. <version>${project.version}</version>
  257. </docletArtifact>
  258. </docletArtifacts>
  259. <useStandardDocletOptions>true</useStandardDocletOptions>
  260. <!-- switch on dependency-driven aggregation -->
  261. <includeDependencySources>false</includeDependencySources>
  262. <dependencySourceIncludes>
  263. <!-- include ONLY dependencies I control -->
  264. <dependencySourceInclude>org.apache.hadoop:hadoop-annotations</dependencySourceInclude>
  265. </dependencySourceIncludes>
  266. </configuration>
  267. <reports>
  268. <report>aggregate</report>
  269. </reports>
  270. </reportSet>
  271. </reportSets>
  272. </plugin>
  273. <plugin>
  274. <groupId>org.apache.maven.plugins</groupId>
  275. <artifactId>maven-dependency-plugin</artifactId>
  276. <version>2.4</version>
  277. <reportSets>
  278. <reportSet>
  279. <reports>
  280. <report>analyze-report</report>
  281. </reports>
  282. </reportSet>
  283. </reportSets>
  284. </plugin>
  285. </plugins>
  286. </reporting>
  287. <profiles>
  288. <profile>
  289. <id>src</id>
  290. <activation>
  291. <activeByDefault>false</activeByDefault>
  292. </activation>
  293. <build>
  294. <plugins>
  295. <plugin>
  296. <groupId>org.apache.maven.plugins</groupId>
  297. <artifactId>maven-assembly-plugin</artifactId>
  298. <inherited>false</inherited>
  299. <executions>
  300. <execution>
  301. <id>src-dist</id>
  302. <phase>package</phase>
  303. <goals>
  304. <goal>single</goal>
  305. </goals>
  306. <configuration>
  307. <appendAssemblyId>false</appendAssemblyId>
  308. <attach>false</attach>
  309. <finalName>hadoop-${project.version}-src</finalName>
  310. <outputDirectory>hadoop-dist/target</outputDirectory>
  311. <!-- Not using descriptorRef and hadoop-assembly dependency -->
  312. <!-- to avoid making hadoop-main to depend on a module -->
  313. <descriptors>
  314. <descriptor>hadoop-assemblies/src/main/resources/assemblies/hadoop-src.xml</descriptor>
  315. </descriptors>
  316. </configuration>
  317. </execution>
  318. </executions>
  319. </plugin>
  320. <plugin>
  321. <groupId>org.apache.maven.plugins</groupId>
  322. <artifactId>maven-antrun-plugin</artifactId>
  323. <inherited>false</inherited>
  324. <executions>
  325. <execution>
  326. <id>src-dist-msg</id>
  327. <phase>package</phase>
  328. <goals>
  329. <goal>run</goal>
  330. </goals>
  331. <configuration>
  332. <target>
  333. <echo/>
  334. <echo>Hadoop source tar available at: ${basedir}/hadoop-dist/target/hadoop-${project.version}-src.tar.gz</echo>
  335. <echo/>
  336. </target>
  337. </configuration>
  338. </execution>
  339. </executions>
  340. </plugin>
  341. </plugins>
  342. </build>
  343. </profile>
  344. <profile>
  345. <id>dist</id>
  346. <!-- Profile for generating all maven artifacts and documentation. -->
  347. <build>
  348. <plugins>
  349. <plugin>
  350. <groupId>org.apache.maven.plugins</groupId>
  351. <artifactId>maven-javadoc-plugin</artifactId>
  352. <inherited>false</inherited>
  353. <executions>
  354. <execution>
  355. <!-- build aggregate javadoc in parent only -->
  356. <id>default-cli</id>
  357. <goals>
  358. <goal>aggregate</goal>
  359. </goals>
  360. <configuration>
  361. <overview>hadoop-common-project/hadoop-common/src/main/java/overview.html</overview>
  362. </configuration>
  363. </execution>
  364. </executions>
  365. </plugin>
  366. </plugins>
  367. </build>
  368. </profile>
  369. <profile>
  370. <id>sign</id>
  371. <build>
  372. <plugins>
  373. <plugin>
  374. <groupId>org.apache.maven.plugins</groupId>
  375. <artifactId>maven-gpg-plugin</artifactId>
  376. <executions>
  377. <execution>
  378. <id>sign-artifacts</id>
  379. <phase>verify</phase>
  380. <goals>
  381. <goal>sign</goal>
  382. </goals>
  383. </execution>
  384. </executions>
  385. </plugin>
  386. </plugins>
  387. </build>
  388. </profile>
  389. <profile>
  390. <id>clover</id>
  391. <activation>
  392. <activeByDefault>false</activeByDefault>
  393. <property>
  394. <name>clover</name>
  395. </property>
  396. </activation>
  397. <properties>
  398. <cloverLicenseLocation>${user.home}/.clover.license</cloverLicenseLocation>
  399. <cloverDatabase>${project.build.directory}/clover/hadoop-coverage.db</cloverDatabase>
  400. <!-- NB: This additional parametrization is made in order
  401. to be able to re-define these properties with "-Dk=v" maven options.
  402. By some reason the expressions declared in clover
  403. docs like "${maven.clover.generateHtml}" do not work in that way.
  404. However, the below properties are confirmed to work: e.g.
  405. -DcloverGenHtml=false switches off the Html generation.
  406. The default values provided here exactly correspond to Clover defaults, so
  407. the behavior is 100% backwards compatible. -->
  408. <cloverAlwaysReport>true</cloverAlwaysReport>
  409. <cloverGenHtml>true</cloverGenHtml>
  410. <cloverGenXml>true</cloverGenXml>
  411. <cloverGenHistorical>false</cloverGenHistorical>
  412. </properties>
  413. <build>
  414. <plugins>
  415. <plugin>
  416. <groupId>com.atlassian.maven.plugins</groupId>
  417. <artifactId>maven-clover2-plugin</artifactId>
  418. <configuration>
  419. <includesAllSourceRoots>false</includesAllSourceRoots>
  420. <includesTestSourceRoots>true</includesTestSourceRoots>
  421. <licenseLocation>${cloverLicenseLocation}</licenseLocation>
  422. <cloverDatabase>${cloverDatabase}</cloverDatabase>
  423. <targetPercentage>50%</targetPercentage>
  424. <outputDirectory>${project.build.directory}/clover</outputDirectory>
  425. <alwaysReport>${cloverAlwaysReport}</alwaysReport>
  426. <generateHtml>${cloverGenHtml}</generateHtml>
  427. <generateXml>${cloverGenXml}</generateXml>
  428. <generateHistorical>${cloverGenHistorical}</generateHistorical>
  429. </configuration>
  430. <executions>
  431. <execution>
  432. <id>clover-setup</id>
  433. <phase>process-sources</phase>
  434. <goals>
  435. <goal>setup</goal>
  436. </goals>
  437. </execution>
  438. <execution>
  439. <id>clover</id>
  440. <phase>test</phase>
  441. <goals>
  442. <goal>clover</goal>
  443. </goals>
  444. </execution>
  445. </executions>
  446. </plugin>
  447. </plugins>
  448. </build>
  449. </profile>
  450. </profiles>
  451. </project>