pom.xml 12 KB

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