pom.xml 16 KB

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