pom.xml 12 KB

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