pom.xml 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  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>3.0.0-SNAPSHOT</version>
  19. <relativePath>../hadoop-project</relativePath>
  20. </parent>
  21. <groupId>org.apache.hadoop</groupId>
  22. <artifactId>hadoop-yarn-project</artifactId>
  23. <version>3.0.0-SNAPSHOT</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. cd "${project.build.directory}"
  175. tar cf - ${project.artifactId}-${project.version} | gzip > ${project.artifactId}-${project.version}.tar.gz
  176. </echo>
  177. <exec executable="sh" dir="${project.build.directory}" failonerror="true">
  178. <arg line="./dist-maketar.sh"/>
  179. </exec>
  180. </target>
  181. </configuration>
  182. </execution>
  183. </executions>
  184. </plugin>
  185. <plugin>
  186. <groupId>org.apache.rat</groupId>
  187. <artifactId>apache-rat-plugin</artifactId>
  188. <configuration>
  189. <excludes>
  190. <exclude>CHANGES.txt</exclude>
  191. </excludes>
  192. </configuration>
  193. </plugin>
  194. </plugins>
  195. </build>
  196. <profiles>
  197. <profile>
  198. <id>dist</id>
  199. <activation>
  200. <activeByDefault>false</activeByDefault>
  201. </activation>
  202. <build>
  203. <plugins>
  204. <plugin>
  205. <artifactId>maven-source-plugin</artifactId>
  206. <executions>
  207. <execution>
  208. <id>attach-sources</id>
  209. <goals>
  210. <!-- avoid warning about recursion -->
  211. <goal>jar-no-fork</goal>
  212. </goals>
  213. </execution>
  214. </executions>
  215. </plugin>
  216. <plugin>
  217. <groupId>org.apache.maven.plugins</groupId>
  218. <artifactId>maven-assembly-plugin</artifactId>
  219. <dependencies>
  220. <dependency>
  221. <groupId>org.apache.hadoop</groupId>
  222. <artifactId>hadoop-assemblies</artifactId>
  223. <version>${project.version}</version>
  224. </dependency>
  225. </dependencies>
  226. <configuration>
  227. <tarLongFileMode>gnu</tarLongFileMode>
  228. <appendAssemblyId>false</appendAssemblyId>
  229. <attach>false</attach>
  230. <finalName>${project.artifactId}-${project.version}</finalName>
  231. <descriptorRefs>
  232. <descriptorRef>hadoop-yarn-dist</descriptorRef>
  233. </descriptorRefs>
  234. </configuration>
  235. <executions>
  236. <execution>
  237. <id>package-yarn</id>
  238. <phase>prepare-package</phase>
  239. <goals>
  240. <goal>single</goal>
  241. </goals>
  242. </execution>
  243. </executions>
  244. </plugin>
  245. </plugins>
  246. </build>
  247. </profile>
  248. </profiles>
  249. <reporting>
  250. <plugins>
  251. <plugin>
  252. <groupId>org.codehaus.mojo</groupId>
  253. <artifactId>findbugs-maven-plugin</artifactId>
  254. <!-- until we have reporting management cf. MSITE-443 -->
  255. <version>2.3.2</version>
  256. <configuration>
  257. <findbugsXmlOutput>true</findbugsXmlOutput>
  258. <xmlOutput>true</xmlOutput>
  259. </configuration>
  260. </plugin>
  261. </plugins>
  262. </reporting>
  263. </project>