pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399
  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. <parent>
  16. <groupId>org.apache.hadoop</groupId>
  17. <artifactId>hadoop-project</artifactId>
  18. <version>0.23.1-SNAPSHOT</version>
  19. <relativePath>../hadoop-project</relativePath>
  20. </parent>
  21. <groupId>org.apache.hadoop</groupId>
  22. <artifactId>hadoop-mapreduce</artifactId>
  23. <version>0.23.1-SNAPSHOT</version>
  24. <packaging>pom</packaging>
  25. <name>hadoop-mapreduce</name>
  26. <url>http://hadoop.apache.org/mapreduce/</url>
  27. <properties>
  28. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  29. <test.logs>true</test.logs>
  30. <test.timeout>600000</test.timeout>
  31. <fork.mode>once</fork.mode>
  32. <mr.basedir>${basedir}</mr.basedir>
  33. <hadoop.component>mapreduce</hadoop.component>
  34. <is.hadoop.component>true</is.hadoop.component>
  35. </properties>
  36. <modules>
  37. <module>hadoop-yarn</module>
  38. <module>hadoop-mapreduce-client</module>
  39. <module>hadoop-mapreduce-examples</module>
  40. </modules>
  41. <dependencies>
  42. <dependency>
  43. <groupId>com.google.protobuf</groupId>
  44. <artifactId>protobuf-java</artifactId>
  45. <version>2.4.0a</version>
  46. </dependency>
  47. <dependency>
  48. <groupId>org.apache.avro</groupId>
  49. <artifactId>avro</artifactId>
  50. <version>1.5.3</version>
  51. <exclusions>
  52. <exclusion>
  53. <groupId>org.mortbay.jetty</groupId>
  54. <artifactId>jetty</artifactId>
  55. </exclusion>
  56. <exclusion>
  57. <groupId>org.apache.ant</groupId>
  58. <artifactId>ant</artifactId>
  59. </exclusion>
  60. <exclusion>
  61. <groupId>org.jboss.netty</groupId>
  62. <artifactId>netty</artifactId>
  63. </exclusion>
  64. <exclusion>
  65. <groupId>org.apache.velocity</groupId>
  66. <artifactId>velocity</artifactId>
  67. </exclusion>
  68. <exclusion>
  69. <groupId>org.slf4j</groupId>
  70. <artifactId>slf4j-api</artifactId>
  71. </exclusion>
  72. <exclusion>
  73. <artifactId>paranamer-ant</artifactId>
  74. <groupId>com.thoughtworks.paranamer</groupId>
  75. </exclusion>
  76. </exclusions>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.apache.hadoop</groupId>
  80. <artifactId>hadoop-common</artifactId>
  81. <version>${project.version}</version>
  82. <scope>provided</scope>
  83. <exclusions>
  84. <exclusion>
  85. <groupId>commons-el</groupId>
  86. <artifactId>commons-el</artifactId>
  87. </exclusion>
  88. <exclusion>
  89. <groupId>tomcat</groupId>
  90. <artifactId>jasper-runtime</artifactId>
  91. </exclusion>
  92. <exclusion>
  93. <groupId>tomcat</groupId>
  94. <artifactId>jasper-compiler</artifactId>
  95. </exclusion>
  96. <exclusion>
  97. <groupId>org.mortbay.jetty</groupId>
  98. <artifactId>jsp-2.1-jetty</artifactId>
  99. </exclusion>
  100. <exclusion>
  101. <groupId>hsqldb</groupId>
  102. <artifactId>hsqldb</artifactId>
  103. </exclusion>
  104. </exclusions>
  105. </dependency>
  106. <dependency>
  107. <groupId>org.slf4j</groupId>
  108. <artifactId>slf4j-api</artifactId>
  109. <version>1.6.1</version>
  110. </dependency>
  111. <dependency>
  112. <groupId>org.slf4j</groupId>
  113. <artifactId>slf4j-log4j12</artifactId>
  114. <version>1.6.1</version>
  115. </dependency>
  116. <dependency>
  117. <groupId>org.apache.hadoop</groupId>
  118. <artifactId>hadoop-annotations</artifactId>
  119. <version>${project.version}</version>
  120. </dependency>
  121. <dependency>
  122. <groupId>org.mockito</groupId>
  123. <artifactId>mockito-all</artifactId>
  124. <version>1.8.5</version>
  125. <scope>test</scope>
  126. </dependency>
  127. <dependency>
  128. <groupId>org.apache.hadoop</groupId>
  129. <artifactId>hadoop-common</artifactId>
  130. <version>${project.version}</version>
  131. <type>test-jar</type>
  132. <scope>test</scope>
  133. </dependency>
  134. <dependency>
  135. <groupId>org.apache.hadoop</groupId>
  136. <!-- needed for security and runtime -->
  137. <artifactId>hadoop-hdfs</artifactId>
  138. <version>${project.version}</version>
  139. </dependency>
  140. <dependency>
  141. <groupId>com.google.inject</groupId>
  142. <artifactId>guice</artifactId>
  143. <version>3.0</version>
  144. </dependency>
  145. <dependency>
  146. <groupId>com.sun.jersey</groupId>
  147. <artifactId>jersey-server</artifactId>
  148. <version>1.8</version>
  149. </dependency>
  150. <dependency>
  151. <groupId>com.sun.jersey.contribs</groupId>
  152. <artifactId>jersey-guice</artifactId>
  153. <version>1.8</version>
  154. </dependency>
  155. <dependency>
  156. <groupId>com.google.inject.extensions</groupId>
  157. <artifactId>guice-servlet</artifactId>
  158. <version>3.0</version>
  159. </dependency>
  160. <dependency>
  161. <groupId>junit</groupId>
  162. <artifactId>junit</artifactId>
  163. <version>4.8.2</version>
  164. </dependency>
  165. <dependency>
  166. <groupId>org.jboss.netty</groupId>
  167. <artifactId>netty</artifactId>
  168. <version>3.2.3.Final</version>
  169. </dependency>
  170. <dependency>
  171. <groupId>commons-io</groupId>
  172. <artifactId>commons-io</artifactId>
  173. <version>2.1</version>
  174. </dependency>
  175. <dependency>
  176. <groupId>com.cenqua.clover</groupId>
  177. <artifactId>clover</artifactId>
  178. <version>3.0.2</version>
  179. </dependency>
  180. </dependencies>
  181. <build>
  182. <pluginManagement>
  183. <plugins>
  184. <plugin>
  185. <groupId>org.codehaus.mojo</groupId>
  186. <artifactId>findbugs-maven-plugin</artifactId>
  187. <version>2.3.2</version>
  188. </plugin>
  189. <plugin>
  190. <artifactId>maven-clean-plugin</artifactId>
  191. <version>2.4.1</version>
  192. </plugin>
  193. <plugin>
  194. <groupId>com.atlassian.maven.plugins</groupId>
  195. <artifactId>maven-clover2-plugin</artifactId>
  196. <version>3.0.2</version>
  197. <configuration>
  198. <licenseLocation>/home/y/conf/clover/clover.license</licenseLocation>
  199. </configuration>
  200. </plugin>
  201. <plugin>
  202. <groupId>org.apache.maven.plugins</groupId>
  203. <artifactId>maven-compiler-plugin</artifactId>
  204. <!-- pre 2.1 ignores project.build.sourceEncoding -->
  205. <version>2.3.2</version>
  206. <configuration>
  207. <source>1.6</source>
  208. <target>1.6</target>
  209. </configuration>
  210. </plugin>
  211. <plugin>
  212. <groupId>org.apache.maven.plugins</groupId>
  213. <artifactId>maven-assembly-plugin</artifactId>
  214. <version>2.2.1</version>
  215. </plugin>
  216. <plugin>
  217. <groupId>org.apache.maven.plugins</groupId>
  218. <artifactId>maven-antrun-plugin</artifactId>
  219. <version>1.6</version>
  220. </plugin>
  221. <plugin>
  222. <groupId>org.codehaus.mojo</groupId>
  223. <artifactId>exec-maven-plugin</artifactId>
  224. <version>1.2</version>
  225. </plugin>
  226. <plugin>
  227. <groupId>org.codehaus.mojo</groupId>
  228. <artifactId>build-helper-maven-plugin</artifactId>
  229. <version>1.5</version>
  230. </plugin>
  231. <plugin>
  232. <groupId>org.apache.maven.plugins</groupId>
  233. <artifactId>maven-install-plugin</artifactId>
  234. <version>2.3.1</version>
  235. </plugin>
  236. <plugin>
  237. <groupId>org.apache.maven.plugins</groupId>
  238. <artifactId>maven-jar-plugin</artifactId>
  239. <version>2.3.1</version>
  240. </plugin>
  241. <plugin>
  242. <groupId>org.apache.maven.plugins</groupId>
  243. <artifactId>maven-source-plugin</artifactId>
  244. <version>2.1.2</version>
  245. </plugin>
  246. </plugins>
  247. </pluginManagement>
  248. <plugins>
  249. <plugin>
  250. <artifactId>maven-antrun-plugin</artifactId>
  251. <executions>
  252. <execution>
  253. <id>tar</id>
  254. <phase>package</phase>
  255. <goals>
  256. <goal>run</goal>
  257. </goals>
  258. <configuration>
  259. <!-- this is identical from hadoop-project-dist, eventually they must be unified -->
  260. <target if="tar">
  261. <!-- Using Unix script to preserve symlinks -->
  262. <echo file="${project.build.directory}/dist-maketar.sh">
  263. which cygpath 2> /dev/null
  264. if [ $? = 1 ]; then
  265. BUILD_DIR="${project.build.directory}"
  266. else
  267. BUILD_DIR=`cygpath --unix '${project.build.directory}'`
  268. fi
  269. cd $BUILD_DIR
  270. tar czf ${project.artifactId}-${project.version}.tar.gz ${project.artifactId}-${project.version}
  271. </echo>
  272. <exec executable="sh" dir="${project.build.directory}" failonerror="true">
  273. <arg line="./dist-maketar.sh"/>
  274. </exec>
  275. </target>
  276. </configuration>
  277. </execution>
  278. </executions>
  279. </plugin>
  280. <plugin>
  281. <groupId>com.atlassian.maven.plugins</groupId>
  282. <artifactId>maven-clover2-plugin</artifactId>
  283. <executions>
  284. <execution>
  285. <goals>
  286. <goal>instrument</goal>
  287. <goal>aggregate</goal>
  288. </goals>
  289. </execution>
  290. </executions>
  291. </plugin>
  292. <plugin>
  293. <groupId>org.codehaus.mojo</groupId>
  294. <artifactId>findbugs-maven-plugin</artifactId>
  295. <configuration>
  296. <findbugsXmlOutput>true</findbugsXmlOutput>
  297. <xmlOutput>true</xmlOutput>
  298. <excludeFilterFile>${mr.basedir}/dev-support/findbugs-exclude.xml</excludeFilterFile>
  299. <effort>Max</effort>
  300. </configuration>
  301. </plugin>
  302. <plugin>
  303. <groupId>org.apache.rat</groupId>
  304. <artifactId>apache-rat-plugin</artifactId>
  305. <configuration>
  306. <includes>
  307. <include>pom.xml</include>
  308. </includes>
  309. </configuration>
  310. </plugin>
  311. </plugins>
  312. </build>
  313. <profiles>
  314. <profile>
  315. <id>dist</id>
  316. <activation>
  317. <activeByDefault>false</activeByDefault>
  318. </activation>
  319. <build>
  320. <plugins>
  321. <plugin>
  322. <artifactId>maven-source-plugin</artifactId>
  323. <executions>
  324. <execution>
  325. <id>attach-sources</id>
  326. <goals>
  327. <!-- avoid warning about recursion -->
  328. <goal>jar-no-fork</goal>
  329. </goals>
  330. </execution>
  331. </executions>
  332. </plugin>
  333. <plugin>
  334. <groupId>org.apache.maven.plugins</groupId>
  335. <artifactId>maven-assembly-plugin</artifactId>
  336. <dependencies>
  337. <dependency>
  338. <groupId>org.apache.hadoop</groupId>
  339. <artifactId>hadoop-assemblies</artifactId>
  340. <version>${project.version}</version>
  341. </dependency>
  342. </dependencies>
  343. <configuration>
  344. <tarLongFileMode>gnu</tarLongFileMode>
  345. <appendAssemblyId>false</appendAssemblyId>
  346. <attach>false</attach>
  347. <finalName>${project.artifactId}-${project.version}</finalName>
  348. <descriptorRefs>
  349. <descriptorRef>hadoop-mapreduce-dist</descriptorRef>
  350. </descriptorRefs>
  351. </configuration>
  352. <executions>
  353. <execution>
  354. <id>package-mapreduce</id>
  355. <phase>prepare-package</phase>
  356. <goals>
  357. <goal>single</goal>
  358. </goals>
  359. </execution>
  360. </executions>
  361. </plugin>
  362. </plugins>
  363. </build>
  364. </profile>
  365. </profiles>
  366. <reporting>
  367. <plugins>
  368. <plugin>
  369. <groupId>org.codehaus.mojo</groupId>
  370. <artifactId>findbugs-maven-plugin</artifactId>
  371. <!-- until we have reporting management cf. MSITE-443 -->
  372. <version>2.3.2</version>
  373. <configuration>
  374. <findbugsXmlOutput>true</findbugsXmlOutput>
  375. <xmlOutput>true</xmlOutput>
  376. </configuration>
  377. </plugin>
  378. <plugin>
  379. <groupId>com.atlassian.maven.plugins</groupId>
  380. <artifactId>maven-clover2-plugin</artifactId>
  381. <!-- until we have reporting management cf. MSITE-443 -->
  382. <version>3.0.2</version>
  383. </plugin>
  384. </plugins>
  385. </reporting>
  386. </project>