pom.xml 16 KB

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