pom.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368
  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.1-SNAPSHOT</version>
  20. <description>Apache Hadoop Main</description>
  21. <name>Apache Hadoop Main</name>
  22. <packaging>pom</packaging>
  23. <distributionManagement>
  24. <repository>
  25. <id>apache.staging.https</id>
  26. <name>Apache Release Distribution Repository</name>
  27. <url>https://repository.apache.org/service/local/staging/deploy/maven2</url>
  28. </repository>
  29. <snapshotRepository>
  30. <id>apache.snapshots.https</id>
  31. <name>${distMgmtSnapshotsName}</name>
  32. <url>${distMgmtSnapshotsUrl}</url>
  33. </snapshotRepository>
  34. <site>
  35. <id>apache.website</id>
  36. <url>scpexe://people.apache.org/www/hadoop.apache.org/docs/r${project.version}</url>
  37. </site>
  38. </distributionManagement>
  39. <repositories>
  40. <repository>
  41. <id>apache.snapshots.https</id>
  42. <name>${distMgmtSnapshotsName}</name>
  43. <url>${distMgmtSnapshotsUrl}</url>
  44. </repository>
  45. <repository>
  46. <id>repository.jboss.org</id>
  47. <url>http://repository.jboss.org/nexus/content/groups/public/</url>
  48. <snapshots>
  49. <enabled>false</enabled>
  50. </snapshots>
  51. </repository>
  52. </repositories>
  53. <licenses>
  54. <license>
  55. <name>The Apache Software License, Version 2.0</name>
  56. <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
  57. </license>
  58. </licenses>
  59. <organization>
  60. <name>Apache Software Foundation</name>
  61. <url>http://www.apache.org</url>
  62. </organization>
  63. <properties>
  64. <distMgmtSnapshotsName>Apache Development Snapshot Repository</distMgmtSnapshotsName>
  65. <distMgmtSnapshotsUrl>https://repository.apache.org/content/repositories/snapshots</distMgmtSnapshotsUrl>
  66. </properties>
  67. <modules>
  68. <module>hadoop-project</module>
  69. <module>hadoop-project-dist</module>
  70. <module>hadoop-assemblies</module>
  71. <module>hadoop-common-project</module>
  72. <module>hadoop-hdfs-project</module>
  73. <module>hadoop-mapreduce-project</module>
  74. <module>hadoop-tools</module>
  75. <module>hadoop-dist</module>
  76. <module>hadoop-client</module>
  77. <module>hadoop-minicluster</module>
  78. </modules>
  79. <build>
  80. <pluginManagement>
  81. <plugins>
  82. <plugin>
  83. <groupId>org.apache.maven.plugins</groupId>
  84. <artifactId>maven-enforcer-plugin</artifactId>
  85. <version>1.0</version>
  86. <configuration>
  87. <rules>
  88. <requireMavenVersion>
  89. <version>[3.0.2,)</version>
  90. </requireMavenVersion>
  91. <requireJavaVersion>
  92. <version>1.6</version>
  93. </requireJavaVersion>
  94. </rules>
  95. </configuration>
  96. </plugin>
  97. <plugin>
  98. <groupId>org.apache.maven.plugins</groupId>
  99. <artifactId>maven-assembly-plugin</artifactId>
  100. <version>2.3</version>
  101. </plugin>
  102. <plugin>
  103. <groupId>org.apache.maven.plugins</groupId>
  104. <artifactId>maven-deploy-plugin</artifactId>
  105. <version>2.5</version>
  106. </plugin>
  107. <plugin>
  108. <groupId>org.apache.rat</groupId>
  109. <artifactId>apache-rat-plugin</artifactId>
  110. <version>0.7</version>
  111. </plugin>
  112. <plugin>
  113. <groupId>org.apache.maven.plugins</groupId>
  114. <artifactId>maven-antrun-plugin</artifactId>
  115. <version>1.6</version>
  116. </plugin>
  117. <plugin>
  118. <groupId>org.apache.maven.plugins</groupId>
  119. <artifactId>maven-site-plugin</artifactId>
  120. <version>3.0</version>
  121. <dependencies>
  122. <dependency><!-- add support for ssh/scp -->
  123. <groupId>org.apache.maven.wagon</groupId>
  124. <artifactId>wagon-ssh</artifactId>
  125. <version>1.0</version>
  126. </dependency>
  127. </dependencies>
  128. </plugin>
  129. </plugins>
  130. </pluginManagement>
  131. <plugins>
  132. <plugin>
  133. <groupId>org.apache.maven.plugins</groupId>
  134. <artifactId>maven-enforcer-plugin</artifactId>
  135. <inherited>false</inherited>
  136. <executions>
  137. <execution>
  138. <id>clean</id>
  139. <goals>
  140. <goal>enforce</goal>
  141. </goals>
  142. <phase>pre-clean</phase>
  143. </execution>
  144. <execution>
  145. <id>default</id>
  146. <goals>
  147. <goal>enforce</goal>
  148. </goals>
  149. <phase>validate</phase>
  150. </execution>
  151. <execution>
  152. <id>site</id>
  153. <goals>
  154. <goal>enforce</goal>
  155. </goals>
  156. <phase>pre-site</phase>
  157. </execution>
  158. </executions>
  159. </plugin>
  160. <plugin>
  161. <groupId>org.apache.rat</groupId>
  162. <artifactId>apache-rat-plugin</artifactId>
  163. <configuration>
  164. <includes>
  165. <include>dev-support/*</include>
  166. <include>pom.xml</include>
  167. </includes>
  168. </configuration>
  169. </plugin>
  170. <plugin>
  171. <artifactId>maven-site-plugin</artifactId>
  172. <version>3.0</version>
  173. <executions>
  174. <execution>
  175. <id>attach-descriptor</id>
  176. <goals>
  177. <goal>attach-descriptor</goal>
  178. </goals>
  179. <configuration>
  180. <generateReports>true</generateReports>
  181. </configuration>
  182. </execution>
  183. </executions>
  184. </plugin>
  185. </plugins>
  186. </build>
  187. <reporting>
  188. <excludeDefaults>true</excludeDefaults>
  189. <plugins>
  190. <plugin>
  191. <groupId>org.apache.maven.plugins</groupId>
  192. <artifactId>maven-javadoc-plugin</artifactId>
  193. <version>2.8.1</version>
  194. <inherited>false</inherited>
  195. <reportSets>
  196. <reportSet>
  197. <id>aggregate</id>
  198. <configuration>
  199. <maxmemory>1024m</maxmemory>
  200. <linksource>true</linksource>
  201. <quiet>true</quiet>
  202. <verbose>false</verbose>
  203. <source>${maven.compile.source}</source>
  204. <charset>${maven.compile.encoding}</charset>
  205. <reportOutputDirectory>${project.build.directory}/site</reportOutputDirectory>
  206. <destDir>hadoop-project/api</destDir>
  207. <!-- Non-public APIs -->
  208. <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>
  209. <groups>
  210. <group>
  211. <title>Common</title>
  212. <packages>org.apache.hadoop*</packages>
  213. </group>
  214. <group>
  215. <title>MapReduce</title>
  216. <packages>org.apache.hadoop.mapred*</packages>
  217. </group>
  218. <group>
  219. <title>YARN</title>
  220. <packages>org.apache.hadoop.yarn*</packages>
  221. </group>
  222. </groups>
  223. <doclet>org.apache.hadoop.classification.tools.IncludePublicAnnotationsStandardDoclet</doclet>
  224. <docletArtifacts>
  225. <docletArtifact>
  226. <groupId>org.apache.hadoop</groupId>
  227. <artifactId>hadoop-annotations</artifactId>
  228. <version>${project.version}</version>
  229. </docletArtifact>
  230. </docletArtifacts>
  231. <useStandardDocletOptions>true</useStandardDocletOptions>
  232. <!-- switch on dependency-driven aggregation -->
  233. <includeDependencySources>false</includeDependencySources>
  234. <dependencySourceIncludes>
  235. <!-- include ONLY dependencies I control -->
  236. <dependencySourceInclude>org.apache.hadoop:hadoop-annotations</dependencySourceInclude>
  237. </dependencySourceIncludes>
  238. </configuration>
  239. <reports>
  240. <report>aggregate</report>
  241. </reports>
  242. </reportSet>
  243. </reportSets>
  244. </plugin>
  245. </plugins>
  246. </reporting>
  247. <profiles>
  248. <profile>
  249. <id>src</id>
  250. <activation>
  251. <activeByDefault>false</activeByDefault>
  252. </activation>
  253. <build>
  254. <plugins>
  255. <plugin>
  256. <groupId>org.apache.maven.plugins</groupId>
  257. <artifactId>maven-assembly-plugin</artifactId>
  258. <inherited>false</inherited>
  259. <executions>
  260. <execution>
  261. <id>src-dist</id>
  262. <phase>package</phase>
  263. <goals>
  264. <goal>single</goal>
  265. </goals>
  266. <configuration>
  267. <appendAssemblyId>false</appendAssemblyId>
  268. <attach>false</attach>
  269. <finalName>hadoop-${project.version}-src</finalName>
  270. <outputDirectory>hadoop-dist/target</outputDirectory>
  271. <!-- Not using descriptorRef and hadoop-assembly dependency -->
  272. <!-- to avoid making hadoop-main to depend on a module -->
  273. <descriptors>
  274. <descriptor>hadoop-assemblies/src/main/resources/assemblies/hadoop-src.xml</descriptor>
  275. </descriptors>
  276. </configuration>
  277. </execution>
  278. </executions>
  279. </plugin>
  280. <plugin>
  281. <groupId>org.apache.maven.plugins</groupId>
  282. <artifactId>maven-antrun-plugin</artifactId>
  283. <inherited>false</inherited>
  284. <executions>
  285. <execution>
  286. <id>src-dist-msg</id>
  287. <phase>package</phase>
  288. <goals>
  289. <goal>run</goal>
  290. </goals>
  291. <configuration>
  292. <target>
  293. <echo/>
  294. <echo>Hadoop source tar available at: ${basedir}/hadoop-dist/target/hadoop-${project.version}-src.tar.gz</echo>
  295. <echo/>
  296. </target>
  297. </configuration>
  298. </execution>
  299. </executions>
  300. </plugin>
  301. </plugins>
  302. </build>
  303. </profile>
  304. <profile>
  305. <id>dist</id>
  306. <!-- Profile for generating all maven artifacts and documentation. -->
  307. <build>
  308. <plugins>
  309. <plugin>
  310. <groupId>org.apache.maven.plugins</groupId>
  311. <artifactId>maven-javadoc-plugin</artifactId>
  312. <inherited>false</inherited>
  313. <executions>
  314. <execution>
  315. <!-- build aggregate javadoc in parent only -->
  316. <id>default-cli</id>
  317. <goals>
  318. <goal>aggregate</goal>
  319. </goals>
  320. <configuration>
  321. <overview>hadoop-common-project/hadoop-common/src/main/java/overview.html</overview>
  322. </configuration>
  323. </execution>
  324. </executions>
  325. </plugin>
  326. </plugins>
  327. </build>
  328. </profile>
  329. <profile>
  330. <id>sign</id>
  331. <build>
  332. <plugins>
  333. <plugin>
  334. <groupId>org.apache.maven.plugins</groupId>
  335. <artifactId>maven-gpg-plugin</artifactId>
  336. <executions>
  337. <execution>
  338. <id>sign-artifacts</id>
  339. <phase>verify</phase>
  340. <goals>
  341. <goal>sign</goal>
  342. </goals>
  343. </execution>
  344. </executions>
  345. </plugin>
  346. </plugins>
  347. </build>
  348. </profile>
  349. </profiles>
  350. </project>