pom.xml 12 KB

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