pom.xml 13 KB

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