pom.xml 16 KB

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