pom.xml 14 KB

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