pom.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450
  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
  16. http://maven.apache.org/xsd/maven-4.0.0.xsd">
  17. <modelVersion>4.0.0</modelVersion>
  18. <groupId>org.apache.hadoop</groupId>
  19. <artifactId>hadoop-main</artifactId>
  20. <version>0.23.9</version>
  21. <description>Apache Hadoop Main</description>
  22. <name>Apache Hadoop Main</name>
  23. <packaging>pom</packaging>
  24. <dependencyManagement>
  25. <dependencies>
  26. <dependency>
  27. <groupId>com.cenqua.clover</groupId>
  28. <artifactId>clover</artifactId>
  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>.gitignore</exclude>
  186. <exclude>.git/**</exclude>
  187. <exclude>.idea/**</exclude>
  188. </excludes>
  189. </configuration>
  190. </plugin>
  191. <plugin>
  192. <artifactId>maven-site-plugin</artifactId>
  193. <version>3.0</version>
  194. <executions>
  195. <execution>
  196. <id>attach-descriptor</id>
  197. <goals>
  198. <goal>attach-descriptor</goal>
  199. </goals>
  200. <configuration>
  201. <generateReports>true</generateReports>
  202. </configuration>
  203. </execution>
  204. </executions>
  205. </plugin>
  206. </plugins>
  207. </build>
  208. <reporting>
  209. <excludeDefaults>true</excludeDefaults>
  210. <plugins>
  211. <plugin>
  212. <groupId>org.apache.maven.plugins</groupId>
  213. <artifactId>maven-javadoc-plugin</artifactId>
  214. <version>2.8.1</version>
  215. <inherited>false</inherited>
  216. <reportSets>
  217. <reportSet>
  218. <id>aggregate</id>
  219. <configuration>
  220. <maxmemory>1024m</maxmemory>
  221. <linksource>true</linksource>
  222. <quiet>true</quiet>
  223. <verbose>false</verbose>
  224. <source>${maven.compile.source}</source>
  225. <charset>${maven.compile.encoding}</charset>
  226. <reportOutputDirectory>${project.build.directory}/site</reportOutputDirectory>
  227. <destDir>hadoop-project/api</destDir>
  228. <!-- Non-public APIs -->
  229. <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>
  230. <groups>
  231. <group>
  232. <title>Common</title>
  233. <packages>org.apache.hadoop*</packages>
  234. </group>
  235. <group>
  236. <title>MapReduce</title>
  237. <packages>org.apache.hadoop.mapred*</packages>
  238. </group>
  239. <group>
  240. <title>YARN</title>
  241. <packages>org.apache.hadoop.yarn*</packages>
  242. </group>
  243. </groups>
  244. <doclet>org.apache.hadoop.classification.tools.IncludePublicAnnotationsStandardDoclet</doclet>
  245. <docletArtifacts>
  246. <docletArtifact>
  247. <groupId>org.apache.hadoop</groupId>
  248. <artifactId>hadoop-annotations</artifactId>
  249. <version>${project.version}</version>
  250. </docletArtifact>
  251. </docletArtifacts>
  252. <useStandardDocletOptions>true</useStandardDocletOptions>
  253. <!-- switch on dependency-driven aggregation -->
  254. <includeDependencySources>false</includeDependencySources>
  255. <dependencySourceIncludes>
  256. <!-- include ONLY dependencies I control -->
  257. <dependencySourceInclude>org.apache.hadoop:hadoop-annotations</dependencySourceInclude>
  258. </dependencySourceIncludes>
  259. </configuration>
  260. <reports>
  261. <report>aggregate</report>
  262. </reports>
  263. </reportSet>
  264. </reportSets>
  265. </plugin>
  266. </plugins>
  267. </reporting>
  268. <profiles>
  269. <profile>
  270. <id>src</id>
  271. <activation>
  272. <activeByDefault>false</activeByDefault>
  273. </activation>
  274. <build>
  275. <plugins>
  276. <plugin>
  277. <groupId>org.apache.maven.plugins</groupId>
  278. <artifactId>maven-assembly-plugin</artifactId>
  279. <inherited>false</inherited>
  280. <executions>
  281. <execution>
  282. <id>src-dist</id>
  283. <phase>package</phase>
  284. <goals>
  285. <goal>single</goal>
  286. </goals>
  287. <configuration>
  288. <appendAssemblyId>false</appendAssemblyId>
  289. <attach>false</attach>
  290. <finalName>hadoop-${project.version}-src</finalName>
  291. <outputDirectory>hadoop-dist/target</outputDirectory>
  292. <!-- Not using descriptorRef and hadoop-assembly dependency -->
  293. <!-- to avoid making hadoop-main to depend on a module -->
  294. <descriptors>
  295. <descriptor>hadoop-assemblies/src/main/resources/assemblies/hadoop-src.xml</descriptor>
  296. </descriptors>
  297. </configuration>
  298. </execution>
  299. </executions>
  300. </plugin>
  301. <plugin>
  302. <groupId>org.apache.maven.plugins</groupId>
  303. <artifactId>maven-antrun-plugin</artifactId>
  304. <inherited>false</inherited>
  305. <executions>
  306. <execution>
  307. <id>src-dist-msg</id>
  308. <phase>package</phase>
  309. <goals>
  310. <goal>run</goal>
  311. </goals>
  312. <configuration>
  313. <target>
  314. <echo/>
  315. <echo>Hadoop source tar available at: ${basedir}/hadoop-dist/target/hadoop-${project.version}-src.tar.gz</echo>
  316. <echo/>
  317. </target>
  318. </configuration>
  319. </execution>
  320. </executions>
  321. </plugin>
  322. </plugins>
  323. </build>
  324. </profile>
  325. <profile>
  326. <id>dist</id>
  327. <!-- Profile for generating all maven artifacts and documentation. -->
  328. <build>
  329. <plugins>
  330. <plugin>
  331. <groupId>org.apache.maven.plugins</groupId>
  332. <artifactId>maven-javadoc-plugin</artifactId>
  333. <inherited>false</inherited>
  334. <executions>
  335. <execution>
  336. <!-- build aggregate javadoc in parent only -->
  337. <id>default-cli</id>
  338. <goals>
  339. <goal>aggregate</goal>
  340. </goals>
  341. <configuration>
  342. <overview>hadoop-common-project/hadoop-common/src/main/java/overview.html</overview>
  343. </configuration>
  344. </execution>
  345. </executions>
  346. </plugin>
  347. </plugins>
  348. </build>
  349. </profile>
  350. <profile>
  351. <id>sign</id>
  352. <build>
  353. <plugins>
  354. <plugin>
  355. <groupId>org.apache.maven.plugins</groupId>
  356. <artifactId>maven-gpg-plugin</artifactId>
  357. <executions>
  358. <execution>
  359. <id>sign-artifacts</id>
  360. <phase>verify</phase>
  361. <goals>
  362. <goal>sign</goal>
  363. </goals>
  364. </execution>
  365. </executions>
  366. </plugin>
  367. </plugins>
  368. </build>
  369. </profile>
  370. <profile>
  371. <id>clover</id>
  372. <activation>
  373. <activeByDefault>false</activeByDefault>
  374. <property>
  375. <name>clover</name>
  376. </property>
  377. </activation>
  378. <properties>
  379. <cloverLicenseLocation>${user.home}/.clover.license</cloverLicenseLocation>
  380. <cloverDatabase>${project.build.directory}/clover/hadoop-coverage.db</cloverDatabase>
  381. <!-- NB: This additional parametrization is made in order
  382. to be able to re-define these properties with "-Dk=v" maven options.
  383. By some reason the expressions declared in clover
  384. docs like "${maven.clover.generateHtml}" do not work in that way.
  385. However, the below properties are confirmed to work: e.g.
  386. -DcloverGenHtml=false switches off the Html generation.
  387. The default values provided here exactly correspond to Clover defaults, so
  388. the behavior is 100% backwards compatible. -->
  389. <cloverAlwaysReport>true</cloverAlwaysReport>
  390. <cloverGenHtml>true</cloverGenHtml>
  391. <cloverGenXml>true</cloverGenXml>
  392. <cloverGenHistorical>false</cloverGenHistorical>
  393. </properties>
  394. <build>
  395. <plugins>
  396. <plugin>
  397. <groupId>com.atlassian.maven.plugins</groupId>
  398. <artifactId>maven-clover2-plugin</artifactId>
  399. <configuration>
  400. <includesAllSourceRoots>false</includesAllSourceRoots>
  401. <includesTestSourceRoots>true</includesTestSourceRoots>
  402. <licenseLocation>${cloverLicenseLocation}</licenseLocation>
  403. <cloverDatabase>${cloverDatabase}</cloverDatabase>
  404. <targetPercentage>50%</targetPercentage>
  405. <outputDirectory>${project.build.directory}/clover</outputDirectory>
  406. <alwaysReport>${cloverAlwaysReport}</alwaysReport>
  407. <generateHtml>${cloverGenHtml}</generateHtml>
  408. <generateXml>${cloverGenXml}</generateXml>
  409. <generateHistorical>${cloverGenHistorical}</generateHistorical>
  410. </configuration>
  411. <executions>
  412. <execution>
  413. <id>setup</id>
  414. <phase>generate-sources</phase>
  415. <goals>
  416. <goal>setup</goal>
  417. </goals>
  418. </execution>
  419. <execution>
  420. <id>clover</id>
  421. <phase>test</phase>
  422. <goals>
  423. <goal>clover</goal>
  424. </goals>
  425. </execution>
  426. </executions>
  427. </plugin>
  428. </plugins>
  429. </build>
  430. </profile>
  431. </profiles>
  432. </project>