pom.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433
  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" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  14. <modelVersion>4.0.0</modelVersion>
  15. <groupId>org.apache.hadoop</groupId>
  16. <artifactId>hadoop-mapreduce</artifactId>
  17. <version>${hadoop-mapreduce.version}</version>
  18. <packaging>pom</packaging>
  19. <name>hadoop-mapreduce</name>
  20. <url>http://hadoop.apache.org/mapreduce/</url>
  21. <properties>
  22. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  23. <test.logs>true</test.logs>
  24. <test.timeout>600000</test.timeout>
  25. <hadoop.assemblies.version>${project.version}</hadoop.assemblies.version>
  26. <hadoop-common.version>0.24.0-SNAPSHOT</hadoop-common.version>
  27. <hadoop-hdfs.version>0.24.0-SNAPSHOT</hadoop-hdfs.version>
  28. <hadoop-mapreduce.version>0.24.0-SNAPSHOT</hadoop-mapreduce.version>
  29. <yarn.version>0.24.0-SNAPSHOT</yarn.version>
  30. <install.pom>${project.build.directory}/saner-pom.xml</install.pom>
  31. <install.file>${install.pom}</install.file>
  32. <fork.mode>once</fork.mode>
  33. <mr.basedir>${basedir}</mr.basedir>
  34. </properties>
  35. <repositories>
  36. <repository>
  37. <id>repository.jboss.org</id>
  38. <url>http://repository.jboss.org/nexus/content/groups/public/</url>
  39. <snapshots>
  40. <enabled>false</enabled>
  41. </snapshots>
  42. </repository>
  43. <repository>
  44. <id>apache.snapshots</id>
  45. <url>http://repository.apache.org/snapshots</url>
  46. <!-- until we move to hadoop-common/hdfs trunk and/or maven 3 -->
  47. <!-- cf. MNG-4326 -->
  48. <snapshots>
  49. <enabled>true</enabled>
  50. </snapshots>
  51. </repository>
  52. </repositories>
  53. <dependencies>
  54. <dependency>
  55. <groupId>com.google.protobuf</groupId>
  56. <artifactId>protobuf-java</artifactId>
  57. <version>2.4.0a</version>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.apache.avro</groupId>
  61. <artifactId>avro</artifactId>
  62. <version>1.5.3</version>
  63. <exclusions>
  64. <exclusion>
  65. <groupId>org.mortbay.jetty</groupId>
  66. <artifactId>jetty</artifactId>
  67. </exclusion>
  68. <exclusion>
  69. <groupId>org.apache.ant</groupId>
  70. <artifactId>ant</artifactId>
  71. </exclusion>
  72. <exclusion>
  73. <groupId>org.jboss.netty</groupId>
  74. <artifactId>netty</artifactId>
  75. </exclusion>
  76. <exclusion>
  77. <groupId>org.apache.velocity</groupId>
  78. <artifactId>velocity</artifactId>
  79. </exclusion>
  80. <exclusion>
  81. <groupId>org.slf4j</groupId>
  82. <artifactId>slf4j-api</artifactId>
  83. </exclusion>
  84. <exclusion>
  85. <artifactId>paranamer-ant</artifactId>
  86. <groupId>com.thoughtworks.paranamer</groupId>
  87. </exclusion>
  88. </exclusions>
  89. </dependency>
  90. <dependency>
  91. <groupId>org.apache.hadoop</groupId>
  92. <artifactId>hadoop-common</artifactId>
  93. <version>${hadoop-common.version}</version>
  94. <scope>provided</scope>
  95. <exclusions>
  96. <exclusion>
  97. <groupId>commons-el</groupId>
  98. <artifactId>commons-el</artifactId>
  99. </exclusion>
  100. <exclusion>
  101. <groupId>tomcat</groupId>
  102. <artifactId>jasper-runtime</artifactId>
  103. </exclusion>
  104. <exclusion>
  105. <groupId>tomcat</groupId>
  106. <artifactId>jasper-compiler</artifactId>
  107. </exclusion>
  108. <exclusion>
  109. <groupId>org.mortbay.jetty</groupId>
  110. <artifactId>jsp-2.1-jetty</artifactId>
  111. </exclusion>
  112. <exclusion>
  113. <groupId>hsqldb</groupId>
  114. <artifactId>hsqldb</artifactId>
  115. </exclusion>
  116. </exclusions>
  117. </dependency>
  118. <dependency>
  119. <groupId>org.slf4j</groupId>
  120. <artifactId>slf4j-api</artifactId>
  121. <version>1.6.1</version>
  122. </dependency>
  123. <dependency>
  124. <groupId>org.slf4j</groupId>
  125. <artifactId>slf4j-log4j12</artifactId>
  126. <version>1.6.1</version>
  127. </dependency>
  128. <dependency>
  129. <groupId>org.apache.hadoop</groupId>
  130. <artifactId>hadoop-annotations</artifactId>
  131. <version>${hadoop-common.version}</version>
  132. </dependency>
  133. <dependency>
  134. <groupId>org.mockito</groupId>
  135. <artifactId>mockito-all</artifactId>
  136. <version>1.8.5</version>
  137. <scope>test</scope>
  138. </dependency>
  139. <dependency>
  140. <groupId>org.apache.hadoop</groupId>
  141. <artifactId>hadoop-common</artifactId>
  142. <version>${hadoop-common.version}</version>
  143. <type>test-jar</type>
  144. <scope>test</scope>
  145. </dependency>
  146. <dependency>
  147. <groupId>org.apache.hadoop</groupId>
  148. <!-- needed for security and runtime -->
  149. <artifactId>hadoop-hdfs</artifactId>
  150. <version>${hadoop-hdfs.version}</version>
  151. </dependency>
  152. <dependency>
  153. <groupId>com.google.inject.extensions</groupId>
  154. <artifactId>guice-servlet</artifactId>
  155. <version>2.0</version>
  156. </dependency>
  157. <dependency>
  158. <groupId>junit</groupId>
  159. <artifactId>junit</artifactId>
  160. <version>4.8.2</version>
  161. </dependency>
  162. <dependency>
  163. <groupId>org.jboss.netty</groupId>
  164. <artifactId>netty</artifactId>
  165. <version>3.2.3.Final</version>
  166. </dependency>
  167. <dependency>
  168. <groupId>com.cenqua.clover</groupId>
  169. <artifactId>clover</artifactId>
  170. <version>3.0.2</version>
  171. </dependency>
  172. </dependencies>
  173. <build>
  174. <pluginManagement>
  175. <plugins>
  176. <plugin>
  177. <groupId>org.codehaus.mojo</groupId>
  178. <artifactId>findbugs-maven-plugin</artifactId>
  179. <version>2.3.2</version>
  180. </plugin>
  181. <plugin>
  182. <artifactId>maven-clean-plugin</artifactId>
  183. <version>2.4.1</version>
  184. </plugin>
  185. <plugin>
  186. <groupId>com.atlassian.maven.plugins</groupId>
  187. <artifactId>maven-clover2-plugin</artifactId>
  188. <version>3.0.2</version>
  189. <configuration>
  190. <licenseLocation>/home/y/conf/clover/clover.license</licenseLocation>
  191. </configuration>
  192. </plugin>
  193. <plugin>
  194. <groupId>org.apache.maven.plugins</groupId>
  195. <artifactId>maven-compiler-plugin</artifactId>
  196. <!-- pre 2.1 ignores project.build.sourceEncoding -->
  197. <version>2.3.2</version>
  198. <configuration>
  199. <source>1.6</source>
  200. <target>1.6</target>
  201. </configuration>
  202. </plugin>
  203. <plugin>
  204. <groupId>org.apache.maven.plugins</groupId>
  205. <artifactId>maven-surefire-plugin</artifactId>
  206. <!-- requires 2.5+ to make system properties work -->
  207. <!-- requires 2.7+ to avoid SUREFIRE-640 -->
  208. <version>2.7.2</version>
  209. <configuration>
  210. <failIfNoTests>false</failIfNoTests>
  211. <redirectTestOutputToFile>${test.logs}</redirectTestOutputToFile>
  212. <forkedProcessTimeoutInSeconds>${test.timeout}</forkedProcessTimeoutInSeconds>
  213. <forkMode>${fork.mode}</forkMode>
  214. <environmentVariables>
  215. <JAVA_HOME>${java.home}</JAVA_HOME>
  216. </environmentVariables>
  217. <systemPropertyVariables>
  218. <build.dir>${project.build.directory}</build.dir>
  219. <build.output.dir>${project.build.outputDirectory}</build.output.dir>
  220. <log4j.configuration>file:///${mr.basedir}/src/test/log4j.properties</log4j.configuration>
  221. </systemPropertyVariables>
  222. </configuration>
  223. </plugin>
  224. <plugin>
  225. <groupId>org.apache.maven.plugins</groupId>
  226. <artifactId>maven-assembly-plugin</artifactId>
  227. <version>2.2.1</version>
  228. </plugin>
  229. <plugin>
  230. <groupId>org.apache.maven.plugins</groupId>
  231. <artifactId>maven-antrun-plugin</artifactId>
  232. <version>1.6</version>
  233. </plugin>
  234. <plugin>
  235. <groupId>org.codehaus.mojo</groupId>
  236. <artifactId>exec-maven-plugin</artifactId>
  237. <version>1.2</version>
  238. </plugin>
  239. <plugin>
  240. <groupId>org.codehaus.mojo</groupId>
  241. <artifactId>build-helper-maven-plugin</artifactId>
  242. <version>1.5</version>
  243. </plugin>
  244. <plugin>
  245. <groupId>org.apache.maven.plugins</groupId>
  246. <artifactId>maven-install-plugin</artifactId>
  247. <version>2.3.1</version>
  248. </plugin>
  249. <plugin>
  250. <groupId>org.apache.maven.plugins</groupId>
  251. <artifactId>maven-jar-plugin</artifactId>
  252. <version>2.3.1</version>
  253. </plugin>
  254. <plugin>
  255. <groupId>org.apache.maven.plugins</groupId>
  256. <artifactId>maven-source-plugin</artifactId>
  257. <version>2.1.2</version>
  258. </plugin>
  259. </plugins>
  260. </pluginManagement>
  261. <plugins>
  262. <plugin>
  263. <artifactId>maven-antrun-plugin</artifactId>
  264. <executions>
  265. <execution>
  266. <id>santize-pom</id>
  267. <phase>package</phase>
  268. <configuration>
  269. <target>
  270. <copy file="pom.xml" tofile="${install.pom}">
  271. <filterchain>
  272. <!-- we'll have to wait for ant 1.8.3 for the following
  273. <expandproperties>
  274. <propertyset regex=".*version$">
  275. </propertyset>
  276. </expandproperties>
  277. until then an even uglier workaround: -->
  278. <tokenfilter>
  279. <replaceregex pattern="\$\{hadoop-common.version}"
  280. replace="${hadoop-common.version}" flags="g"/>
  281. <replaceregex pattern="\$\{hadoop-hdfs.version}"
  282. replace="${hadoop-hdfs.version}" flags="g"/>
  283. <replaceregex pattern="\$\{hadoop-mapreduce.version}"
  284. replace="${hadoop-mapreduce.version}" flags="g"/>
  285. <replaceregex pattern="\$\{yarn.version}"
  286. replace="${yarn.version}" flags="g"/>
  287. </tokenfilter>
  288. </filterchain>
  289. </copy>
  290. </target>
  291. </configuration>
  292. <goals>
  293. <goal>run</goal>
  294. </goals>
  295. </execution>
  296. </executions>
  297. </plugin>
  298. <plugin>
  299. <artifactId>maven-install-plugin</artifactId>
  300. <executions>
  301. <execution>
  302. <id>install-sanitized-pom</id>
  303. <configuration>
  304. <file>${install.file}</file>
  305. <pomFile>${install.pom}</pomFile>
  306. </configuration>
  307. <phase>install</phase>
  308. <goals>
  309. <goal>install-file</goal>
  310. </goals>
  311. </execution>
  312. </executions>
  313. </plugin>
  314. <plugin>
  315. <groupId>org.apache.maven.plugins</groupId>
  316. <artifactId>maven-assembly-plugin</artifactId>
  317. <dependencies>
  318. <dependency>
  319. <groupId>org.apache.hadoop</groupId>
  320. <artifactId>hadoop-assemblies</artifactId>
  321. <version>${hadoop.assemblies.version}</version>
  322. </dependency>
  323. </dependencies>
  324. <configuration>
  325. <tarLongFileMode>gnu</tarLongFileMode>
  326. <appendAssemblyId>false</appendAssemblyId>
  327. <attach>false</attach>
  328. <finalName>${project.artifactId}-${project.version}</finalName>
  329. <descriptorRefs>
  330. <descriptorRef>hadoop-mapreduce-dist</descriptorRef>
  331. </descriptorRefs>
  332. </configuration>
  333. <executions>
  334. <execution>
  335. <id>tar</id>
  336. <phase>package</phase>
  337. <goals>
  338. <goal>single</goal>
  339. </goals>
  340. </execution>
  341. </executions>
  342. </plugin>
  343. <plugin>
  344. <groupId>com.atlassian.maven.plugins</groupId>
  345. <artifactId>maven-clover2-plugin</artifactId>
  346. <executions>
  347. <execution>
  348. <goals>
  349. <goal>instrument</goal>
  350. <goal>aggregate</goal>
  351. </goals>
  352. </execution>
  353. </executions>
  354. </plugin>
  355. <plugin>
  356. <groupId>org.codehaus.mojo</groupId>
  357. <artifactId>findbugs-maven-plugin</artifactId>
  358. <configuration>
  359. <findbugsXmlOutput>true</findbugsXmlOutput>
  360. <xmlOutput>true</xmlOutput>
  361. <excludeFilterFile>${mr.basedir}/dev-support/findbugs-exclude.xml</excludeFilterFile>
  362. <effort>Max</effort>
  363. </configuration>
  364. </plugin>
  365. <plugin>
  366. <groupId>org.apache.rat</groupId>
  367. <artifactId>apache-rat-plugin</artifactId>
  368. <configuration>
  369. <includes>
  370. <include>pom.xml</include>
  371. </includes>
  372. </configuration>
  373. </plugin>
  374. </plugins>
  375. </build>
  376. <profiles>
  377. <profile>
  378. <id>release</id>
  379. <build>
  380. <plugins>
  381. <plugin>
  382. <artifactId>maven-source-plugin</artifactId>
  383. <executions>
  384. <execution>
  385. <id>attach-sources</id>
  386. <goals>
  387. <!-- avoid warning about recursion -->
  388. <goal>jar-no-fork</goal>
  389. </goals>
  390. </execution>
  391. </executions>
  392. </plugin>
  393. </plugins>
  394. </build>
  395. </profile>
  396. </profiles>
  397. <modules>
  398. <module>hadoop-yarn</module>
  399. <module>hadoop-mapreduce-client</module>
  400. </modules>
  401. <reporting>
  402. <plugins>
  403. <plugin>
  404. <groupId>org.codehaus.mojo</groupId>
  405. <artifactId>findbugs-maven-plugin</artifactId>
  406. <!-- until we have reporting management cf. MSITE-443 -->
  407. <version>2.3.2</version>
  408. <configuration>
  409. <findbugsXmlOutput>true</findbugsXmlOutput>
  410. <xmlOutput>true</xmlOutput>
  411. </configuration>
  412. </plugin>
  413. <plugin>
  414. <groupId>com.atlassian.maven.plugins</groupId>
  415. <artifactId>maven-clover2-plugin</artifactId>
  416. <!-- until we have reporting management cf. MSITE-443 -->
  417. <version>3.0.2</version>
  418. </plugin>
  419. </plugins>
  420. </reporting>
  421. </project>