1
0

pom.xml 15 KB

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