pom.xml 13 KB

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