pom.xml 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  1. <?xml version="1.0"?>
  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"
  14. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  15. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
  16. http://maven.apache.org/xsd/maven-4.0.0.xsd">
  17. <parent>
  18. <artifactId>hadoop-yarn</artifactId>
  19. <groupId>org.apache.hadoop</groupId>
  20. <version>2.5.1</version>
  21. </parent>
  22. <modelVersion>4.0.0</modelVersion>
  23. <groupId>org.apache.hadoop</groupId>
  24. <artifactId>hadoop-yarn-common</artifactId>
  25. <version>2.5.1</version>
  26. <name>hadoop-yarn-common</name>
  27. <properties>
  28. <!-- Needed for generating FindBugs warnings using parent pom -->
  29. <yarn.basedir>${project.parent.basedir}</yarn.basedir>
  30. </properties>
  31. <dependencies>
  32. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  33. <dependency>
  34. <groupId>org.apache.hadoop</groupId>
  35. <artifactId>hadoop-common</artifactId>
  36. <scope>provided</scope>
  37. <exclusions>
  38. <exclusion>
  39. <groupId>commons-el</groupId>
  40. <artifactId>commons-el</artifactId>
  41. </exclusion>
  42. <exclusion>
  43. <groupId>tomcat</groupId>
  44. <artifactId>jasper-runtime</artifactId>
  45. </exclusion>
  46. <exclusion>
  47. <groupId>tomcat</groupId>
  48. <artifactId>jasper-compiler</artifactId>
  49. </exclusion>
  50. <exclusion>
  51. <groupId>org.mortbay.jetty</groupId>
  52. <artifactId>jsp-2.1-jetty</artifactId>
  53. </exclusion>
  54. </exclusions>
  55. </dependency>
  56. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  57. <dependency>
  58. <groupId>org.apache.hadoop</groupId>
  59. <artifactId>hadoop-yarn-api</artifactId>
  60. </dependency>
  61. <dependency>
  62. <groupId>javax.xml.bind</groupId>
  63. <artifactId>jaxb-api</artifactId>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.apache.commons</groupId>
  67. <artifactId>commons-compress</artifactId>
  68. </dependency>
  69. <dependency>
  70. <groupId>commons-lang</groupId>
  71. <artifactId>commons-lang</artifactId>
  72. </dependency>
  73. <dependency>
  74. <groupId>javax.servlet</groupId>
  75. <artifactId>servlet-api</artifactId>
  76. </dependency>
  77. <dependency>
  78. <groupId>commons-codec</groupId>
  79. <artifactId>commons-codec</artifactId>
  80. </dependency>
  81. <dependency>
  82. <groupId>com.sun.jersey</groupId>
  83. <artifactId>jersey-core</artifactId>
  84. </dependency>
  85. <dependency>
  86. <groupId>org.codehaus.jackson</groupId>
  87. <artifactId>jackson-core-asl</artifactId>
  88. </dependency>
  89. <dependency>
  90. <groupId>org.codehaus.jackson</groupId>
  91. <artifactId>jackson-mapper-asl</artifactId>
  92. </dependency>
  93. <dependency>
  94. <groupId>org.codehaus.jackson</groupId>
  95. <artifactId>jackson-jaxrs</artifactId>
  96. </dependency>
  97. <dependency>
  98. <groupId>org.codehaus.jackson</groupId>
  99. <artifactId>jackson-xc</artifactId>
  100. </dependency>
  101. <dependency>
  102. <groupId>com.google.guava</groupId>
  103. <artifactId>guava</artifactId>
  104. </dependency>
  105. <dependency>
  106. <groupId>commons-logging</groupId>
  107. <artifactId>commons-logging</artifactId>
  108. </dependency>
  109. <dependency>
  110. <groupId>commons-cli</groupId>
  111. <artifactId>commons-cli</artifactId>
  112. </dependency>
  113. <dependency>
  114. <groupId>org.slf4j</groupId>
  115. <artifactId>slf4j-api</artifactId>
  116. </dependency>
  117. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  118. <dependency>
  119. <groupId>org.apache.hadoop</groupId>
  120. <artifactId>hadoop-annotations</artifactId>
  121. </dependency>
  122. <dependency>
  123. <groupId>org.mockito</groupId>
  124. <artifactId>mockito-all</artifactId>
  125. <scope>test</scope>
  126. </dependency>
  127. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  128. <dependency>
  129. <groupId>org.apache.hadoop</groupId>
  130. <artifactId>hadoop-common</artifactId>
  131. <type>test-jar</type>
  132. <scope>test</scope>
  133. </dependency>
  134. <dependency>
  135. <groupId>com.google.inject.extensions</groupId>
  136. <artifactId>guice-servlet</artifactId>
  137. </dependency>
  138. <dependency>
  139. <groupId>com.google.protobuf</groupId>
  140. <artifactId>protobuf-java</artifactId>
  141. </dependency>
  142. <dependency>
  143. <groupId>junit</groupId>
  144. <artifactId>junit</artifactId>
  145. <scope>test</scope>
  146. </dependency>
  147. <dependency>
  148. <groupId>commons-io</groupId>
  149. <artifactId>commons-io</artifactId>
  150. </dependency>
  151. <dependency>
  152. <groupId>com.google.inject</groupId>
  153. <artifactId>guice</artifactId>
  154. </dependency>
  155. <dependency>
  156. <groupId>com.sun.jersey</groupId>
  157. <artifactId>jersey-server</artifactId>
  158. </dependency>
  159. <dependency>
  160. <groupId>com.sun.jersey</groupId>
  161. <artifactId>jersey-json</artifactId>
  162. </dependency>
  163. <dependency>
  164. <groupId>com.sun.jersey.contribs</groupId>
  165. <artifactId>jersey-guice</artifactId>
  166. </dependency>
  167. <dependency>
  168. <groupId>log4j</groupId>
  169. <artifactId>log4j</artifactId>
  170. </dependency>
  171. </dependencies>
  172. <build>
  173. <!--
  174. Include all files in src/main/resources. By default, do not apply property
  175. substitution (filtering=false), but do apply property substitution to
  176. yarn-version-info.properties (filtering=true). This will substitute the
  177. version information correctly, but prevent Maven from altering other files
  178. like yarn-default.xml.
  179. -->
  180. <resources>
  181. <resource>
  182. <directory>${basedir}/src/main/resources</directory>
  183. <excludes>
  184. <exclude>yarn-version-info.properties</exclude>
  185. </excludes>
  186. <filtering>false</filtering>
  187. </resource>
  188. <resource>
  189. <directory>${basedir}/src/main/resources</directory>
  190. <includes>
  191. <include>yarn-version-info.properties</include>
  192. </includes>
  193. <filtering>true</filtering>
  194. </resource>
  195. </resources>
  196. <plugins>
  197. <plugin>
  198. <groupId>org.apache.rat</groupId>
  199. <artifactId>apache-rat-plugin</artifactId>
  200. <configuration>
  201. <excludes>
  202. <exclude>src/main/resources/webapps/mapreduce/.keep</exclude>
  203. <exclude>src/main/resources/webapps/jobhistory/.keep</exclude>
  204. <exclude>src/main/resources/webapps/yarn/.keep</exclude>
  205. <exclude>src/main/resources/webapps/applicationhistory/.keep</exclude>
  206. <exclude>src/main/resources/webapps/cluster/.keep</exclude>
  207. <exclude>src/main/resources/webapps/test/.keep</exclude>
  208. <exclude>src/main/resources/webapps/proxy/.keep</exclude>
  209. <exclude>src/main/resources/webapps/node/.keep</exclude>
  210. <exclude>src/main/resources/webapps/static/dt-1.9.4/css/jui-dt.css</exclude>
  211. <exclude>src/main/resources/webapps/static/dt-1.9.4/css/demo_table.css</exclude>
  212. <exclude>src/main/resources/webapps/static/jquery/themes-1.9.1/base/jquery-ui.css</exclude>
  213. </excludes>
  214. </configuration>
  215. </plugin>
  216. <plugin>
  217. <groupId>org.apache.hadoop</groupId>
  218. <artifactId>hadoop-maven-plugins</artifactId>
  219. <executions>
  220. <execution>
  221. <id>version-info</id>
  222. <phase>generate-resources</phase>
  223. <goals>
  224. <goal>version-info</goal>
  225. </goals>
  226. <configuration>
  227. <source>
  228. <directory>${basedir}/src/main</directory>
  229. <includes>
  230. <include>java/**/*.java</include>
  231. <include>proto/**/*.proto</include>
  232. </includes>
  233. </source>
  234. </configuration>
  235. </execution>
  236. </executions>
  237. </plugin>
  238. <plugin>
  239. <artifactId>maven-jar-plugin</artifactId>
  240. <executions>
  241. <execution>
  242. <goals>
  243. <goal>test-jar</goal>
  244. </goals>
  245. <phase>test-compile</phase>
  246. </execution>
  247. </executions>
  248. </plugin>
  249. <plugin>
  250. <artifactId>maven-antrun-plugin</artifactId>
  251. <executions>
  252. <execution>
  253. <phase>pre-site</phase>
  254. <goals>
  255. <goal>run</goal>
  256. </goals>
  257. <configuration>
  258. <tasks>
  259. <copy file="src/main/resources/yarn-default.xml" todir="src/site/resources"/>
  260. <copy file="src/main/xsl/configuration.xsl" todir="src/site/resources"/>
  261. </tasks>
  262. </configuration>
  263. </execution>
  264. </executions>
  265. </plugin>
  266. </plugins>
  267. </build>
  268. </project>