pom.xml 12 KB

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