pom.xml 13 KB

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