pom.xml 12 KB

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