pom.xml 15 KB

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