pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381
  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. <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-yarn-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. <plugin>
  247. <groupId>org.apache.maven.plugins</groupId>
  248. <artifactId>maven-dependency-plugin</artifactId>
  249. <version>2.4</version>
  250. <reportSets>
  251. <reportSet>
  252. <reports>
  253. <report>analyze-report</report>
  254. </reports>
  255. </reportSet>
  256. </reportSets>
  257. </plugin>
  258. </plugins>
  259. </reporting>
  260. <profiles>
  261. <profile>
  262. <id>src</id>
  263. <activation>
  264. <activeByDefault>false</activeByDefault>
  265. </activation>
  266. <build>
  267. <plugins>
  268. <plugin>
  269. <groupId>org.apache.maven.plugins</groupId>
  270. <artifactId>maven-assembly-plugin</artifactId>
  271. <inherited>false</inherited>
  272. <executions>
  273. <execution>
  274. <id>src-dist</id>
  275. <phase>package</phase>
  276. <goals>
  277. <goal>single</goal>
  278. </goals>
  279. <configuration>
  280. <appendAssemblyId>false</appendAssemblyId>
  281. <attach>false</attach>
  282. <finalName>hadoop-${project.version}-src</finalName>
  283. <outputDirectory>hadoop-dist/target</outputDirectory>
  284. <!-- Not using descriptorRef and hadoop-assembly dependency -->
  285. <!-- to avoid making hadoop-main to depend on a module -->
  286. <descriptors>
  287. <descriptor>hadoop-assemblies/src/main/resources/assemblies/hadoop-src.xml</descriptor>
  288. </descriptors>
  289. </configuration>
  290. </execution>
  291. </executions>
  292. </plugin>
  293. <plugin>
  294. <groupId>org.apache.maven.plugins</groupId>
  295. <artifactId>maven-antrun-plugin</artifactId>
  296. <inherited>false</inherited>
  297. <executions>
  298. <execution>
  299. <id>src-dist-msg</id>
  300. <phase>package</phase>
  301. <goals>
  302. <goal>run</goal>
  303. </goals>
  304. <configuration>
  305. <target>
  306. <echo/>
  307. <echo>Hadoop source tar available at: ${basedir}/hadoop-dist/target/hadoop-${project.version}-src.tar.gz</echo>
  308. <echo/>
  309. </target>
  310. </configuration>
  311. </execution>
  312. </executions>
  313. </plugin>
  314. </plugins>
  315. </build>
  316. </profile>
  317. <profile>
  318. <id>dist</id>
  319. <!-- Profile for generating all maven artifacts and documentation. -->
  320. <build>
  321. <plugins>
  322. <plugin>
  323. <groupId>org.apache.maven.plugins</groupId>
  324. <artifactId>maven-javadoc-plugin</artifactId>
  325. <inherited>false</inherited>
  326. <executions>
  327. <execution>
  328. <!-- build aggregate javadoc in parent only -->
  329. <id>default-cli</id>
  330. <goals>
  331. <goal>aggregate</goal>
  332. </goals>
  333. <configuration>
  334. <overview>hadoop-common-project/hadoop-common/src/main/java/overview.html</overview>
  335. </configuration>
  336. </execution>
  337. </executions>
  338. </plugin>
  339. </plugins>
  340. </build>
  341. </profile>
  342. <profile>
  343. <id>sign</id>
  344. <build>
  345. <plugins>
  346. <plugin>
  347. <groupId>org.apache.maven.plugins</groupId>
  348. <artifactId>maven-gpg-plugin</artifactId>
  349. <executions>
  350. <execution>
  351. <id>sign-artifacts</id>
  352. <phase>verify</phase>
  353. <goals>
  354. <goal>sign</goal>
  355. </goals>
  356. </execution>
  357. </executions>
  358. </plugin>
  359. </plugins>
  360. </build>
  361. </profile>
  362. </profiles>
  363. </project>