1
0

pom.xml 8.8 KB

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