pom.xml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329
  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.7</version>
  19. <relativePath>../hadoop-project</relativePath>
  20. </parent>
  21. <groupId>org.apache.hadoop</groupId>
  22. <artifactId>hadoop-mapreduce</artifactId>
  23. <version>0.23.7</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-mapreduce-client</module>
  38. <module>hadoop-mapreduce-examples</module>
  39. </modules>
  40. <dependencies>
  41. <dependency>
  42. <groupId>com.google.protobuf</groupId>
  43. <artifactId>protobuf-java</artifactId>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.apache.avro</groupId>
  47. <artifactId>avro</artifactId>
  48. <exclusions>
  49. <exclusion>
  50. <groupId>org.mortbay.jetty</groupId>
  51. <artifactId>jetty</artifactId>
  52. </exclusion>
  53. <exclusion>
  54. <groupId>org.apache.ant</groupId>
  55. <artifactId>ant</artifactId>
  56. </exclusion>
  57. <exclusion>
  58. <groupId>org.jboss.netty</groupId>
  59. <artifactId>netty</artifactId>
  60. </exclusion>
  61. <exclusion>
  62. <groupId>org.apache.velocity</groupId>
  63. <artifactId>velocity</artifactId>
  64. </exclusion>
  65. <exclusion>
  66. <groupId>org.slf4j</groupId>
  67. <artifactId>slf4j-api</artifactId>
  68. </exclusion>
  69. <exclusion>
  70. <artifactId>paranamer-ant</artifactId>
  71. <groupId>com.thoughtworks.paranamer</groupId>
  72. </exclusion>
  73. </exclusions>
  74. </dependency>
  75. <dependency>
  76. <groupId>org.apache.hadoop</groupId>
  77. <artifactId>hadoop-common</artifactId>
  78. <scope>provided</scope>
  79. <exclusions>
  80. <exclusion>
  81. <groupId>commons-el</groupId>
  82. <artifactId>commons-el</artifactId>
  83. </exclusion>
  84. <exclusion>
  85. <groupId>tomcat</groupId>
  86. <artifactId>jasper-runtime</artifactId>
  87. </exclusion>
  88. <exclusion>
  89. <groupId>tomcat</groupId>
  90. <artifactId>jasper-compiler</artifactId>
  91. </exclusion>
  92. <exclusion>
  93. <groupId>org.mortbay.jetty</groupId>
  94. <artifactId>jsp-2.1-jetty</artifactId>
  95. </exclusion>
  96. </exclusions>
  97. </dependency>
  98. <dependency>
  99. <groupId>org.slf4j</groupId>
  100. <artifactId>slf4j-api</artifactId>
  101. </dependency>
  102. <dependency>
  103. <groupId>org.slf4j</groupId>
  104. <artifactId>slf4j-log4j12</artifactId>
  105. </dependency>
  106. <dependency>
  107. <groupId>org.apache.hadoop</groupId>
  108. <artifactId>hadoop-annotations</artifactId>
  109. </dependency>
  110. <dependency>
  111. <groupId>org.mockito</groupId>
  112. <artifactId>mockito-all</artifactId>
  113. <scope>test</scope>
  114. </dependency>
  115. <dependency>
  116. <groupId>org.apache.hadoop</groupId>
  117. <artifactId>hadoop-common</artifactId>
  118. <type>test-jar</type>
  119. <scope>test</scope>
  120. </dependency>
  121. <dependency>
  122. <groupId>org.apache.hadoop</groupId>
  123. <!-- needed for security and runtime -->
  124. <artifactId>hadoop-hdfs</artifactId>
  125. </dependency>
  126. <dependency>
  127. <groupId>com.google.inject</groupId>
  128. <artifactId>guice</artifactId>
  129. </dependency>
  130. <dependency>
  131. <groupId>com.sun.jersey</groupId>
  132. <artifactId>jersey-server</artifactId>
  133. </dependency>
  134. <dependency>
  135. <groupId>com.sun.jersey.contribs</groupId>
  136. <artifactId>jersey-guice</artifactId>
  137. </dependency>
  138. <dependency>
  139. <groupId>com.google.inject.extensions</groupId>
  140. <artifactId>guice-servlet</artifactId>
  141. </dependency>
  142. <dependency>
  143. <groupId>junit</groupId>
  144. <artifactId>junit</artifactId>
  145. </dependency>
  146. <dependency>
  147. <groupId>org.jboss.netty</groupId>
  148. <artifactId>netty</artifactId>
  149. </dependency>
  150. <dependency>
  151. <groupId>commons-io</groupId>
  152. <artifactId>commons-io</artifactId>
  153. </dependency>
  154. <dependency>
  155. <groupId>com.cenqua.clover</groupId>
  156. <artifactId>clover</artifactId>
  157. </dependency>
  158. <dependency>
  159. <groupId>org.hsqldb</groupId>
  160. <artifactId>hsqldb</artifactId>
  161. <version>2.0.0</version>
  162. </dependency>
  163. </dependencies>
  164. <build>
  165. <plugins>
  166. <plugin>
  167. <artifactId>maven-antrun-plugin</artifactId>
  168. <executions>
  169. <execution>
  170. <id>tar</id>
  171. <phase>package</phase>
  172. <goals>
  173. <goal>run</goal>
  174. </goals>
  175. <configuration>
  176. <!-- this is identical from hadoop-project-dist, eventually they must be unified -->
  177. <target if="tar">
  178. <!-- Using Unix script to preserve symlinks -->
  179. <echo file="${project.build.directory}/dist-maketar.sh">
  180. which cygpath &gt;> /dev/null
  181. if [ $? = 1 ]; then
  182. BUILD_DIR="${project.build.directory}"
  183. else
  184. BUILD_DIR=`cygpath --unix '${project.build.directory}'`
  185. fi
  186. cd $BUILD_DIR
  187. tar czf ${project.artifactId}-${project.version}.tar.gz ${project.artifactId}-${project.version}
  188. </echo>
  189. <exec executable="sh" dir="${project.build.directory}" failonerror="true">
  190. <arg line="./dist-maketar.sh"/>
  191. </exec>
  192. </target>
  193. </configuration>
  194. </execution>
  195. </executions>
  196. </plugin>
  197. <plugin>
  198. <groupId>com.atlassian.maven.plugins</groupId>
  199. <artifactId>maven-clover2-plugin</artifactId>
  200. <executions>
  201. <execution>
  202. <goals>
  203. <goal>instrument</goal>
  204. <goal>aggregate</goal>
  205. </goals>
  206. </execution>
  207. </executions>
  208. </plugin>
  209. <plugin>
  210. <groupId>org.codehaus.mojo</groupId>
  211. <artifactId>findbugs-maven-plugin</artifactId>
  212. <configuration>
  213. <findbugsXmlOutput>true</findbugsXmlOutput>
  214. <xmlOutput>true</xmlOutput>
  215. <excludeFilterFile>${mr.basedir}/dev-support/findbugs-exclude.xml</excludeFilterFile>
  216. <effort>Max</effort>
  217. </configuration>
  218. </plugin>
  219. <plugin>
  220. <groupId>org.apache.rat</groupId>
  221. <artifactId>apache-rat-plugin</artifactId>
  222. <configuration>
  223. <excludes>
  224. <exclude>.eclipse.templates/</exclude>
  225. <exclude>CHANGES.txt</exclude>
  226. <exclude>lib/jdiff/**</exclude>
  227. </excludes>
  228. </configuration>
  229. </plugin>
  230. <plugin>
  231. <groupId>org.apache.maven.plugins</groupId>
  232. <artifactId>maven-surefire-plugin</artifactId>
  233. <configuration>
  234. <properties>
  235. <property>
  236. <name>listener</name>
  237. <value>org.apache.hadoop.test.TimedOutTestsListener</value>
  238. </property>
  239. </properties>
  240. </configuration>
  241. </plugin>
  242. </plugins>
  243. </build>
  244. <profiles>
  245. <profile>
  246. <id>dist</id>
  247. <activation>
  248. <activeByDefault>false</activeByDefault>
  249. </activation>
  250. <build>
  251. <plugins>
  252. <plugin>
  253. <artifactId>maven-source-plugin</artifactId>
  254. <executions>
  255. <execution>
  256. <id>attach-sources</id>
  257. <goals>
  258. <!-- avoid warning about recursion -->
  259. <goal>jar-no-fork</goal>
  260. </goals>
  261. </execution>
  262. </executions>
  263. </plugin>
  264. <plugin>
  265. <groupId>org.apache.maven.plugins</groupId>
  266. <artifactId>maven-assembly-plugin</artifactId>
  267. <dependencies>
  268. <dependency>
  269. <groupId>org.apache.hadoop</groupId>
  270. <artifactId>hadoop-assemblies</artifactId>
  271. <version>${project.version}</version>
  272. </dependency>
  273. </dependencies>
  274. <configuration>
  275. <tarLongFileMode>gnu</tarLongFileMode>
  276. <appendAssemblyId>false</appendAssemblyId>
  277. <attach>false</attach>
  278. <finalName>${project.artifactId}-${project.version}</finalName>
  279. <descriptorRefs>
  280. <descriptorRef>hadoop-mapreduce-dist</descriptorRef>
  281. </descriptorRefs>
  282. </configuration>
  283. <executions>
  284. <execution>
  285. <id>package-mapreduce</id>
  286. <phase>prepare-package</phase>
  287. <goals>
  288. <goal>single</goal>
  289. </goals>
  290. </execution>
  291. </executions>
  292. </plugin>
  293. </plugins>
  294. </build>
  295. </profile>
  296. </profiles>
  297. <reporting>
  298. <plugins>
  299. <plugin>
  300. <groupId>org.codehaus.mojo</groupId>
  301. <artifactId>findbugs-maven-plugin</artifactId>
  302. <!-- until we have reporting management cf. MSITE-443 -->
  303. <version>2.3.2</version>
  304. <configuration>
  305. <findbugsXmlOutput>true</findbugsXmlOutput>
  306. <xmlOutput>true</xmlOutput>
  307. </configuration>
  308. </plugin>
  309. <plugin>
  310. <groupId>com.atlassian.maven.plugins</groupId>
  311. <artifactId>maven-clover2-plugin</artifactId>
  312. <!-- until we have reporting management cf. MSITE-443 -->
  313. <version>3.0.2</version>
  314. </plugin>
  315. </plugins>
  316. </reporting>
  317. </project>