pom.xml 15 KB

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