pom.xml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488
  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 xmlns="http://maven.apache.org/POM/4.0.0"
  14. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  15. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  16. <modelVersion>4.0.0</modelVersion>
  17. <groupId>org.apache.hadoop</groupId>
  18. <artifactId>hadoop-main</artifactId>
  19. <version>3.0.0-SNAPSHOT</version>
  20. <description>Apache Hadoop Main</description>
  21. <name>Apache Hadoop Main</name>
  22. <packaging>pom</packaging>
  23. <distributionManagement>
  24. <repository>
  25. <id>apache.staging.https</id>
  26. <name>Apache Release Distribution Repository</name>
  27. <url>https://repository.apache.org/service/local/staging/deploy/maven2</url>
  28. </repository>
  29. <snapshotRepository>
  30. <id>apache.snapshots.https</id>
  31. <name>${distMgmtSnapshotsName}</name>
  32. <url>${distMgmtSnapshotsUrl}</url>
  33. </snapshotRepository>
  34. <site>
  35. <id>apache.website</id>
  36. <url>scpexe://people.apache.org/www/hadoop.apache.org/docs/r${project.version}</url>
  37. </site>
  38. </distributionManagement>
  39. <repositories>
  40. <repository>
  41. <id>apache.snapshots.https</id>
  42. <name>${distMgmtSnapshotsName}</name>
  43. <url>${distMgmtSnapshotsUrl}</url>
  44. </repository>
  45. <repository>
  46. <id>repository.jboss.org</id>
  47. <url>http://repository.jboss.org/nexus/content/groups/public/</url>
  48. <snapshots>
  49. <enabled>false</enabled>
  50. </snapshots>
  51. </repository>
  52. </repositories>
  53. <licenses>
  54. <license>
  55. <name>The Apache Software License, Version 2.0</name>
  56. <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
  57. </license>
  58. </licenses>
  59. <organization>
  60. <name>Apache Software Foundation</name>
  61. <url>http://www.apache.org</url>
  62. </organization>
  63. <properties>
  64. <distMgmtSnapshotsName>Apache Development Snapshot Repository</distMgmtSnapshotsName>
  65. <distMgmtSnapshotsUrl>https://repository.apache.org/content/repositories/snapshots</distMgmtSnapshotsUrl>
  66. </properties>
  67. <modules>
  68. <module>hadoop-project</module>
  69. <module>hadoop-project-dist</module>
  70. <module>hadoop-assemblies</module>
  71. <module>hadoop-common-project</module>
  72. <module>hadoop-hdfs-project</module>
  73. <module>hadoop-yarn-project</module>
  74. <module>hadoop-mapreduce-project</module>
  75. <module>hadoop-tools</module>
  76. <module>hadoop-dist</module>
  77. <module>hadoop-client</module>
  78. <module>hadoop-minicluster</module>
  79. </modules>
  80. <build>
  81. <pluginManagement>
  82. <plugins>
  83. <plugin>
  84. <groupId>org.apache.maven.plugins</groupId>
  85. <artifactId>maven-enforcer-plugin</artifactId>
  86. <version>1.0</version>
  87. <configuration>
  88. <rules>
  89. <requireMavenVersion>
  90. <version>[3.0.2,)</version>
  91. </requireMavenVersion>
  92. <requireJavaVersion>
  93. <version>1.6</version>
  94. </requireJavaVersion>
  95. </rules>
  96. </configuration>
  97. </plugin>
  98. <plugin>
  99. <groupId>org.apache.maven.plugins</groupId>
  100. <artifactId>maven-assembly-plugin</artifactId>
  101. <version>2.3</version>
  102. </plugin>
  103. <plugin>
  104. <groupId>org.apache.maven.plugins</groupId>
  105. <artifactId>maven-deploy-plugin</artifactId>
  106. <version>2.5</version>
  107. </plugin>
  108. <plugin>
  109. <groupId>org.apache.rat</groupId>
  110. <artifactId>apache-rat-plugin</artifactId>
  111. <version>0.7</version>
  112. </plugin>
  113. <plugin>
  114. <groupId>org.apache.maven.plugins</groupId>
  115. <artifactId>maven-antrun-plugin</artifactId>
  116. <version>1.6</version>
  117. </plugin>
  118. <plugin>
  119. <groupId>org.apache.maven.plugins</groupId>
  120. <artifactId>maven-site-plugin</artifactId>
  121. <version>3.0</version>
  122. <dependencies>
  123. <dependency><!-- add support for ssh/scp -->
  124. <groupId>org.apache.maven.wagon</groupId>
  125. <artifactId>wagon-ssh</artifactId>
  126. <version>1.0</version>
  127. </dependency>
  128. </dependencies>
  129. </plugin>
  130. <!--This plugin's configuration is used to store Eclipse m2e settings only.
  131. It has no influence on the Maven build itself.-->
  132. <plugin>
  133. <groupId>org.eclipse.m2e</groupId>
  134. <artifactId>lifecycle-mapping</artifactId>
  135. <version>1.0.0</version>
  136. <configuration>
  137. <lifecycleMappingMetadata>
  138. <pluginExecutions>
  139. <pluginExecution>
  140. <pluginExecutionFilter>
  141. <groupId>org.apache.maven.plugins</groupId>
  142. <artifactId>maven-antrun-plugin</artifactId>
  143. <versionRange>[1.6,)</versionRange>
  144. <goals>
  145. <goal>run</goal>
  146. </goals>
  147. </pluginExecutionFilter>
  148. <action>
  149. <ignore></ignore>
  150. </action>
  151. </pluginExecution>
  152. <pluginExecution>
  153. <pluginExecutionFilter>
  154. <groupId>org.apache.maven.plugins</groupId>
  155. <artifactId>maven-resources-plugin</artifactId>
  156. <versionRange>[2.2,)</versionRange>
  157. <goals>
  158. <goal>testResources</goal>
  159. <goal>resources</goal>
  160. </goals>
  161. </pluginExecutionFilter>
  162. <action>
  163. <ignore></ignore>
  164. </action>
  165. </pluginExecution>
  166. <pluginExecution>
  167. <pluginExecutionFilter>
  168. <groupId>org.apache.avro</groupId>
  169. <artifactId>avro-maven-plugin</artifactId>
  170. <versionRange>[1.5.3,)</versionRange>
  171. <goals>
  172. <goal>schema</goal>
  173. <goal>protocol</goal>
  174. </goals>
  175. </pluginExecutionFilter>
  176. <action>
  177. <ignore></ignore>
  178. </action>
  179. </pluginExecution>
  180. <pluginExecution>
  181. <pluginExecutionFilter>
  182. <groupId>org.codehaus.mojo.jspc</groupId>
  183. <artifactId>jspc-maven-plugin</artifactId>
  184. <versionRange>[2.0-alpha-3,)</versionRange>
  185. <goals>
  186. <goal>compile</goal>
  187. </goals>
  188. </pluginExecutionFilter>
  189. <action>
  190. <ignore></ignore>
  191. </action>
  192. </pluginExecution>
  193. <pluginExecution>
  194. <pluginExecutionFilter>
  195. <groupId>org.apache.maven.plugins</groupId>
  196. <artifactId>maven-dependency-plugin</artifactId>
  197. <versionRange>[2.1,)</versionRange>
  198. <goals>
  199. <goal>copy-dependencies</goal>
  200. <goal>build-classpath</goal>
  201. </goals>
  202. </pluginExecutionFilter>
  203. <action>
  204. <ignore></ignore>
  205. </action>
  206. </pluginExecution>
  207. <pluginExecution>
  208. <pluginExecutionFilter>
  209. <groupId>org.codehaus.mojo</groupId>
  210. <artifactId>exec-maven-plugin</artifactId>
  211. <versionRange>[1.2,)</versionRange>
  212. <goals>
  213. <goal>exec</goal>
  214. </goals>
  215. </pluginExecutionFilter>
  216. <action>
  217. <ignore></ignore>
  218. </action>
  219. </pluginExecution>
  220. <pluginExecution>
  221. <pluginExecutionFilter>
  222. <groupId>org.apache.maven.plugins</groupId>
  223. <artifactId>maven-jar-plugin</artifactId>
  224. <versionRange>[2.3.1,)</versionRange>
  225. <goals>
  226. <goal>test-jar</goal>
  227. </goals>
  228. </pluginExecutionFilter>
  229. <action>
  230. <ignore></ignore>
  231. </action>
  232. </pluginExecution>
  233. </pluginExecutions>
  234. </lifecycleMappingMetadata>
  235. </configuration>
  236. </plugin>
  237. </plugins>
  238. </pluginManagement>
  239. <plugins>
  240. <plugin>
  241. <groupId>org.apache.maven.plugins</groupId>
  242. <artifactId>maven-enforcer-plugin</artifactId>
  243. <inherited>false</inherited>
  244. <executions>
  245. <execution>
  246. <id>clean</id>
  247. <goals>
  248. <goal>enforce</goal>
  249. </goals>
  250. <phase>pre-clean</phase>
  251. </execution>
  252. <execution>
  253. <id>default</id>
  254. <goals>
  255. <goal>enforce</goal>
  256. </goals>
  257. <phase>validate</phase>
  258. </execution>
  259. <execution>
  260. <id>site</id>
  261. <goals>
  262. <goal>enforce</goal>
  263. </goals>
  264. <phase>pre-site</phase>
  265. </execution>
  266. </executions>
  267. </plugin>
  268. <plugin>
  269. <groupId>org.apache.rat</groupId>
  270. <artifactId>apache-rat-plugin</artifactId>
  271. <configuration>
  272. <includes>
  273. <include>dev-support/*</include>
  274. <include>pom.xml</include>
  275. </includes>
  276. </configuration>
  277. </plugin>
  278. <plugin>
  279. <artifactId>maven-site-plugin</artifactId>
  280. <version>3.0</version>
  281. <executions>
  282. <execution>
  283. <id>attach-descriptor</id>
  284. <goals>
  285. <goal>attach-descriptor</goal>
  286. </goals>
  287. <configuration>
  288. <generateReports>true</generateReports>
  289. </configuration>
  290. </execution>
  291. </executions>
  292. </plugin>
  293. </plugins>
  294. </build>
  295. <reporting>
  296. <excludeDefaults>true</excludeDefaults>
  297. <plugins>
  298. <plugin>
  299. <groupId>org.apache.maven.plugins</groupId>
  300. <artifactId>maven-javadoc-plugin</artifactId>
  301. <version>2.8.1</version>
  302. <inherited>false</inherited>
  303. <reportSets>
  304. <reportSet>
  305. <id>aggregate</id>
  306. <configuration>
  307. <maxmemory>1024m</maxmemory>
  308. <linksource>true</linksource>
  309. <quiet>true</quiet>
  310. <verbose>false</verbose>
  311. <source>${maven.compile.source}</source>
  312. <charset>${maven.compile.encoding}</charset>
  313. <reportOutputDirectory>${project.build.directory}/site</reportOutputDirectory>
  314. <destDir>hadoop-project/api</destDir>
  315. <!-- Non-public APIs -->
  316. <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>
  317. <groups>
  318. <group>
  319. <title>Common</title>
  320. <packages>org.apache.hadoop*</packages>
  321. </group>
  322. <group>
  323. <title>MapReduce</title>
  324. <packages>org.apache.hadoop.mapred*</packages>
  325. </group>
  326. <group>
  327. <title>YARN</title>
  328. <packages>org.apache.hadoop.yarn*</packages>
  329. </group>
  330. </groups>
  331. <doclet>org.apache.hadoop.classification.tools.IncludePublicAnnotationsStandardDoclet</doclet>
  332. <docletArtifacts>
  333. <docletArtifact>
  334. <groupId>org.apache.hadoop</groupId>
  335. <artifactId>hadoop-annotations</artifactId>
  336. <version>${project.version}</version>
  337. </docletArtifact>
  338. </docletArtifacts>
  339. <useStandardDocletOptions>true</useStandardDocletOptions>
  340. <!-- switch on dependency-driven aggregation -->
  341. <includeDependencySources>false</includeDependencySources>
  342. <dependencySourceIncludes>
  343. <!-- include ONLY dependencies I control -->
  344. <dependencySourceInclude>org.apache.hadoop:hadoop-annotations</dependencySourceInclude>
  345. </dependencySourceIncludes>
  346. </configuration>
  347. <reports>
  348. <report>aggregate</report>
  349. </reports>
  350. </reportSet>
  351. </reportSets>
  352. </plugin>
  353. <plugin>
  354. <groupId>org.apache.maven.plugins</groupId>
  355. <artifactId>maven-dependency-plugin</artifactId>
  356. <version>2.4</version>
  357. <reportSets>
  358. <reportSet>
  359. <reports>
  360. <report>analyze-report</report>
  361. </reports>
  362. </reportSet>
  363. </reportSets>
  364. </plugin>
  365. </plugins>
  366. </reporting>
  367. <profiles>
  368. <profile>
  369. <id>src</id>
  370. <activation>
  371. <activeByDefault>false</activeByDefault>
  372. </activation>
  373. <build>
  374. <plugins>
  375. <plugin>
  376. <groupId>org.apache.maven.plugins</groupId>
  377. <artifactId>maven-assembly-plugin</artifactId>
  378. <inherited>false</inherited>
  379. <executions>
  380. <execution>
  381. <id>src-dist</id>
  382. <phase>package</phase>
  383. <goals>
  384. <goal>single</goal>
  385. </goals>
  386. <configuration>
  387. <appendAssemblyId>false</appendAssemblyId>
  388. <attach>false</attach>
  389. <finalName>hadoop-${project.version}-src</finalName>
  390. <outputDirectory>hadoop-dist/target</outputDirectory>
  391. <!-- Not using descriptorRef and hadoop-assembly dependency -->
  392. <!-- to avoid making hadoop-main to depend on a module -->
  393. <descriptors>
  394. <descriptor>hadoop-assemblies/src/main/resources/assemblies/hadoop-src.xml</descriptor>
  395. </descriptors>
  396. </configuration>
  397. </execution>
  398. </executions>
  399. </plugin>
  400. <plugin>
  401. <groupId>org.apache.maven.plugins</groupId>
  402. <artifactId>maven-antrun-plugin</artifactId>
  403. <inherited>false</inherited>
  404. <executions>
  405. <execution>
  406. <id>src-dist-msg</id>
  407. <phase>package</phase>
  408. <goals>
  409. <goal>run</goal>
  410. </goals>
  411. <configuration>
  412. <target>
  413. <echo/>
  414. <echo>Hadoop source tar available at: ${basedir}/hadoop-dist/target/hadoop-${project.version}-src.tar.gz</echo>
  415. <echo/>
  416. </target>
  417. </configuration>
  418. </execution>
  419. </executions>
  420. </plugin>
  421. </plugins>
  422. </build>
  423. </profile>
  424. <profile>
  425. <id>dist</id>
  426. <!-- Profile for generating all maven artifacts and documentation. -->
  427. <build>
  428. <plugins>
  429. <plugin>
  430. <groupId>org.apache.maven.plugins</groupId>
  431. <artifactId>maven-javadoc-plugin</artifactId>
  432. <inherited>false</inherited>
  433. <executions>
  434. <execution>
  435. <!-- build aggregate javadoc in parent only -->
  436. <id>default-cli</id>
  437. <goals>
  438. <goal>aggregate</goal>
  439. </goals>
  440. <configuration>
  441. <overview>hadoop-common-project/hadoop-common/src/main/java/overview.html</overview>
  442. </configuration>
  443. </execution>
  444. </executions>
  445. </plugin>
  446. </plugins>
  447. </build>
  448. </profile>
  449. <profile>
  450. <id>sign</id>
  451. <build>
  452. <plugins>
  453. <plugin>
  454. <groupId>org.apache.maven.plugins</groupId>
  455. <artifactId>maven-gpg-plugin</artifactId>
  456. <executions>
  457. <execution>
  458. <id>sign-artifacts</id>
  459. <phase>verify</phase>
  460. <goals>
  461. <goal>sign</goal>
  462. </goals>
  463. </execution>
  464. </executions>
  465. </plugin>
  466. </plugins>
  467. </build>
  468. </profile>
  469. </profiles>
  470. </project>