pom.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468
  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>3.0.0-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. <!--This plugin's configuration is used to store Eclipse m2e settings only.
  123. It has no influence on the Maven build itself.-->
  124. <plugin>
  125. <groupId>org.eclipse.m2e</groupId>
  126. <artifactId>lifecycle-mapping</artifactId>
  127. <version>1.0.0</version>
  128. <configuration>
  129. <lifecycleMappingMetadata>
  130. <pluginExecutions>
  131. <pluginExecution>
  132. <pluginExecutionFilter>
  133. <groupId>org.apache.maven.plugins</groupId>
  134. <artifactId>maven-antrun-plugin</artifactId>
  135. <versionRange>[1.6,)</versionRange>
  136. <goals>
  137. <goal>run</goal>
  138. </goals>
  139. </pluginExecutionFilter>
  140. <action>
  141. <ignore></ignore>
  142. </action>
  143. </pluginExecution>
  144. <pluginExecution>
  145. <pluginExecutionFilter>
  146. <groupId>org.apache.maven.plugins</groupId>
  147. <artifactId>maven-resources-plugin</artifactId>
  148. <versionRange>[2.2,)</versionRange>
  149. <goals>
  150. <goal>testResources</goal>
  151. <goal>resources</goal>
  152. </goals>
  153. </pluginExecutionFilter>
  154. <action>
  155. <ignore></ignore>
  156. </action>
  157. </pluginExecution>
  158. <pluginExecution>
  159. <pluginExecutionFilter>
  160. <groupId>org.apache.avro</groupId>
  161. <artifactId>avro-maven-plugin</artifactId>
  162. <versionRange>[1.5.3,)</versionRange>
  163. <goals>
  164. <goal>schema</goal>
  165. <goal>protocol</goal>
  166. </goals>
  167. </pluginExecutionFilter>
  168. <action>
  169. <ignore></ignore>
  170. </action>
  171. </pluginExecution>
  172. <pluginExecution>
  173. <pluginExecutionFilter>
  174. <groupId>org.codehaus.mojo.jspc</groupId>
  175. <artifactId>jspc-maven-plugin</artifactId>
  176. <versionRange>[2.0-alpha-3,)</versionRange>
  177. <goals>
  178. <goal>compile</goal>
  179. </goals>
  180. </pluginExecutionFilter>
  181. <action>
  182. <ignore></ignore>
  183. </action>
  184. </pluginExecution>
  185. <pluginExecution>
  186. <pluginExecutionFilter>
  187. <groupId>org.apache.maven.plugins</groupId>
  188. <artifactId>maven-dependency-plugin</artifactId>
  189. <versionRange>[2.1,)</versionRange>
  190. <goals>
  191. <goal>copy-dependencies</goal>
  192. <goal>build-classpath</goal>
  193. </goals>
  194. </pluginExecutionFilter>
  195. <action>
  196. <ignore></ignore>
  197. </action>
  198. </pluginExecution>
  199. <pluginExecution>
  200. <pluginExecutionFilter>
  201. <groupId>org.codehaus.mojo</groupId>
  202. <artifactId>exec-maven-plugin</artifactId>
  203. <versionRange>[1.2,)</versionRange>
  204. <goals>
  205. <goal>exec</goal>
  206. </goals>
  207. </pluginExecutionFilter>
  208. <action>
  209. <ignore></ignore>
  210. </action>
  211. </pluginExecution>
  212. <pluginExecution>
  213. <pluginExecutionFilter>
  214. <groupId>org.apache.maven.plugins</groupId>
  215. <artifactId>maven-jar-plugin</artifactId>
  216. <versionRange>[2.3.1,)</versionRange>
  217. <goals>
  218. <goal>test-jar</goal>
  219. </goals>
  220. </pluginExecutionFilter>
  221. <action>
  222. <ignore></ignore>
  223. </action>
  224. </pluginExecution>
  225. </pluginExecutions>
  226. </lifecycleMappingMetadata>
  227. </configuration>
  228. </plugin>
  229. </plugins>
  230. </pluginManagement>
  231. <plugins>
  232. <plugin>
  233. <groupId>org.apache.maven.plugins</groupId>
  234. <artifactId>maven-enforcer-plugin</artifactId>
  235. <inherited>false</inherited>
  236. <executions>
  237. <execution>
  238. <id>clean</id>
  239. <goals>
  240. <goal>enforce</goal>
  241. </goals>
  242. <phase>pre-clean</phase>
  243. </execution>
  244. <execution>
  245. <id>default</id>
  246. <goals>
  247. <goal>enforce</goal>
  248. </goals>
  249. <phase>validate</phase>
  250. </execution>
  251. <execution>
  252. <id>site</id>
  253. <goals>
  254. <goal>enforce</goal>
  255. </goals>
  256. <phase>pre-site</phase>
  257. </execution>
  258. </executions>
  259. </plugin>
  260. <plugin>
  261. <groupId>org.apache.rat</groupId>
  262. <artifactId>apache-rat-plugin</artifactId>
  263. <configuration>
  264. <includes>
  265. <include>dev-support/*</include>
  266. <include>pom.xml</include>
  267. </includes>
  268. </configuration>
  269. </plugin>
  270. <plugin>
  271. <artifactId>maven-site-plugin</artifactId>
  272. <version>3.0</version>
  273. <executions>
  274. <execution>
  275. <id>attach-descriptor</id>
  276. <goals>
  277. <goal>attach-descriptor</goal>
  278. </goals>
  279. <configuration>
  280. <generateReports>true</generateReports>
  281. </configuration>
  282. </execution>
  283. </executions>
  284. </plugin>
  285. </plugins>
  286. </build>
  287. <reporting>
  288. <excludeDefaults>true</excludeDefaults>
  289. <plugins>
  290. <plugin>
  291. <groupId>org.apache.maven.plugins</groupId>
  292. <artifactId>maven-javadoc-plugin</artifactId>
  293. <version>2.8.1</version>
  294. <inherited>false</inherited>
  295. <reportSets>
  296. <reportSet>
  297. <id>aggregate</id>
  298. <configuration>
  299. <maxmemory>1024m</maxmemory>
  300. <linksource>true</linksource>
  301. <quiet>true</quiet>
  302. <verbose>false</verbose>
  303. <source>${maven.compile.source}</source>
  304. <charset>${maven.compile.encoding}</charset>
  305. <reportOutputDirectory>${project.build.directory}/site</reportOutputDirectory>
  306. <destDir>hadoop-project/api</destDir>
  307. <!-- Non-public APIs -->
  308. <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>
  309. <groups>
  310. <group>
  311. <title>Common</title>
  312. <packages>org.apache.hadoop*</packages>
  313. </group>
  314. <group>
  315. <title>MapReduce</title>
  316. <packages>org.apache.hadoop.mapred*</packages>
  317. </group>
  318. <group>
  319. <title>YARN</title>
  320. <packages>org.apache.hadoop.yarn*</packages>
  321. </group>
  322. </groups>
  323. <doclet>org.apache.hadoop.classification.tools.IncludePublicAnnotationsStandardDoclet</doclet>
  324. <docletArtifacts>
  325. <docletArtifact>
  326. <groupId>org.apache.hadoop</groupId>
  327. <artifactId>hadoop-annotations</artifactId>
  328. <version>${project.version}</version>
  329. </docletArtifact>
  330. </docletArtifacts>
  331. <useStandardDocletOptions>true</useStandardDocletOptions>
  332. <!-- switch on dependency-driven aggregation -->
  333. <includeDependencySources>false</includeDependencySources>
  334. <dependencySourceIncludes>
  335. <!-- include ONLY dependencies I control -->
  336. <dependencySourceInclude>org.apache.hadoop:hadoop-annotations</dependencySourceInclude>
  337. </dependencySourceIncludes>
  338. </configuration>
  339. <reports>
  340. <report>aggregate</report>
  341. </reports>
  342. </reportSet>
  343. </reportSets>
  344. </plugin>
  345. </plugins>
  346. </reporting>
  347. <profiles>
  348. <profile>
  349. <id>src</id>
  350. <activation>
  351. <activeByDefault>false</activeByDefault>
  352. </activation>
  353. <build>
  354. <plugins>
  355. <plugin>
  356. <groupId>org.apache.maven.plugins</groupId>
  357. <artifactId>maven-assembly-plugin</artifactId>
  358. <inherited>false</inherited>
  359. <executions>
  360. <execution>
  361. <id>src-dist</id>
  362. <phase>package</phase>
  363. <goals>
  364. <goal>single</goal>
  365. </goals>
  366. <configuration>
  367. <appendAssemblyId>false</appendAssemblyId>
  368. <attach>false</attach>
  369. <finalName>hadoop-${project.version}-src</finalName>
  370. <outputDirectory>hadoop-dist/target</outputDirectory>
  371. <!-- Not using descriptorRef and hadoop-assembly dependency -->
  372. <!-- to avoid making hadoop-main to depend on a module -->
  373. <descriptors>
  374. <descriptor>hadoop-assemblies/src/main/resources/assemblies/hadoop-src.xml</descriptor>
  375. </descriptors>
  376. </configuration>
  377. </execution>
  378. </executions>
  379. </plugin>
  380. <plugin>
  381. <groupId>org.apache.maven.plugins</groupId>
  382. <artifactId>maven-antrun-plugin</artifactId>
  383. <inherited>false</inherited>
  384. <executions>
  385. <execution>
  386. <id>src-dist-msg</id>
  387. <phase>package</phase>
  388. <goals>
  389. <goal>run</goal>
  390. </goals>
  391. <configuration>
  392. <target>
  393. <echo/>
  394. <echo>Hadoop source tar available at: ${basedir}/hadoop-dist/target/hadoop-${project.version}-src.tar.gz</echo>
  395. <echo/>
  396. </target>
  397. </configuration>
  398. </execution>
  399. </executions>
  400. </plugin>
  401. </plugins>
  402. </build>
  403. </profile>
  404. <profile>
  405. <id>dist</id>
  406. <!-- Profile for generating all maven artifacts and documentation. -->
  407. <build>
  408. <plugins>
  409. <plugin>
  410. <groupId>org.apache.maven.plugins</groupId>
  411. <artifactId>maven-javadoc-plugin</artifactId>
  412. <inherited>false</inherited>
  413. <executions>
  414. <execution>
  415. <!-- build aggregate javadoc in parent only -->
  416. <id>default-cli</id>
  417. <goals>
  418. <goal>aggregate</goal>
  419. </goals>
  420. <configuration>
  421. <overview>hadoop-common-project/hadoop-common/src/main/java/overview.html</overview>
  422. </configuration>
  423. </execution>
  424. </executions>
  425. </plugin>
  426. </plugins>
  427. </build>
  428. </profile>
  429. <profile>
  430. <id>sign</id>
  431. <build>
  432. <plugins>
  433. <plugin>
  434. <groupId>org.apache.maven.plugins</groupId>
  435. <artifactId>maven-gpg-plugin</artifactId>
  436. <executions>
  437. <execution>
  438. <id>sign-artifacts</id>
  439. <phase>verify</phase>
  440. <goals>
  441. <goal>sign</goal>
  442. </goals>
  443. </execution>
  444. </executions>
  445. </plugin>
  446. </plugins>
  447. </build>
  448. </profile>
  449. </profiles>
  450. </project>