pom.xml 15 KB

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