pom.xml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  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.6.0-SNAPSHOT</version>
  21. </parent>
  22. <modelVersion>4.0.0</modelVersion>
  23. <groupId>org.apache.hadoop</groupId>
  24. <artifactId>hadoop-yarn-common</artifactId>
  25. <version>2.6.0-SNAPSHOT</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>org.mortbay.jetty</groupId>
  83. <artifactId>jetty-util</artifactId>
  84. </dependency>
  85. <dependency>
  86. <groupId>com.sun.jersey</groupId>
  87. <artifactId>jersey-core</artifactId>
  88. </dependency>
  89. <dependency>
  90. <groupId>com.sun.jersey</groupId>
  91. <artifactId>jersey-client</artifactId>
  92. </dependency>
  93. <dependency>
  94. <groupId>org.codehaus.jackson</groupId>
  95. <artifactId>jackson-core-asl</artifactId>
  96. </dependency>
  97. <dependency>
  98. <groupId>org.codehaus.jackson</groupId>
  99. <artifactId>jackson-mapper-asl</artifactId>
  100. </dependency>
  101. <dependency>
  102. <groupId>org.codehaus.jackson</groupId>
  103. <artifactId>jackson-jaxrs</artifactId>
  104. </dependency>
  105. <dependency>
  106. <groupId>org.codehaus.jackson</groupId>
  107. <artifactId>jackson-xc</artifactId>
  108. </dependency>
  109. <dependency>
  110. <groupId>com.google.guava</groupId>
  111. <artifactId>guava</artifactId>
  112. </dependency>
  113. <dependency>
  114. <groupId>commons-logging</groupId>
  115. <artifactId>commons-logging</artifactId>
  116. </dependency>
  117. <dependency>
  118. <groupId>commons-cli</groupId>
  119. <artifactId>commons-cli</artifactId>
  120. </dependency>
  121. <dependency>
  122. <groupId>org.slf4j</groupId>
  123. <artifactId>slf4j-api</artifactId>
  124. </dependency>
  125. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  126. <dependency>
  127. <groupId>org.apache.hadoop</groupId>
  128. <artifactId>hadoop-annotations</artifactId>
  129. </dependency>
  130. <dependency>
  131. <groupId>org.mockito</groupId>
  132. <artifactId>mockito-all</artifactId>
  133. <scope>test</scope>
  134. </dependency>
  135. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  136. <dependency>
  137. <groupId>org.apache.hadoop</groupId>
  138. <artifactId>hadoop-common</artifactId>
  139. <type>test-jar</type>
  140. <scope>test</scope>
  141. </dependency>
  142. <dependency>
  143. <groupId>com.google.inject.extensions</groupId>
  144. <artifactId>guice-servlet</artifactId>
  145. </dependency>
  146. <dependency>
  147. <groupId>com.google.protobuf</groupId>
  148. <artifactId>protobuf-java</artifactId>
  149. </dependency>
  150. <dependency>
  151. <groupId>junit</groupId>
  152. <artifactId>junit</artifactId>
  153. <scope>test</scope>
  154. </dependency>
  155. <dependency>
  156. <groupId>commons-io</groupId>
  157. <artifactId>commons-io</artifactId>
  158. </dependency>
  159. <dependency>
  160. <groupId>com.google.inject</groupId>
  161. <artifactId>guice</artifactId>
  162. </dependency>
  163. <dependency>
  164. <groupId>com.sun.jersey</groupId>
  165. <artifactId>jersey-server</artifactId>
  166. </dependency>
  167. <dependency>
  168. <groupId>com.sun.jersey</groupId>
  169. <artifactId>jersey-json</artifactId>
  170. </dependency>
  171. <dependency>
  172. <groupId>com.sun.jersey.contribs</groupId>
  173. <artifactId>jersey-guice</artifactId>
  174. </dependency>
  175. <dependency>
  176. <groupId>log4j</groupId>
  177. <artifactId>log4j</artifactId>
  178. </dependency>
  179. </dependencies>
  180. <build>
  181. <!--
  182. Include all files in src/main/resources. By default, do not apply property
  183. substitution (filtering=false), but do apply property substitution to
  184. yarn-version-info.properties (filtering=true). This will substitute the
  185. version information correctly, but prevent Maven from altering other files
  186. like yarn-default.xml.
  187. -->
  188. <resources>
  189. <resource>
  190. <directory>${basedir}/src/main/resources</directory>
  191. <excludes>
  192. <exclude>yarn-version-info.properties</exclude>
  193. </excludes>
  194. <filtering>false</filtering>
  195. </resource>
  196. <resource>
  197. <directory>${basedir}/src/main/resources</directory>
  198. <includes>
  199. <include>yarn-version-info.properties</include>
  200. </includes>
  201. <filtering>true</filtering>
  202. </resource>
  203. </resources>
  204. <plugins>
  205. <plugin>
  206. <groupId>org.apache.rat</groupId>
  207. <artifactId>apache-rat-plugin</artifactId>
  208. <configuration>
  209. <excludes>
  210. <exclude>src/main/resources/webapps/mapreduce/.keep</exclude>
  211. <exclude>src/main/resources/webapps/jobhistory/.keep</exclude>
  212. <exclude>src/main/resources/webapps/yarn/.keep</exclude>
  213. <exclude>src/main/resources/webapps/applicationhistory/.keep</exclude>
  214. <exclude>src/main/resources/webapps/cluster/.keep</exclude>
  215. <exclude>src/main/resources/webapps/test/.keep</exclude>
  216. <exclude>src/main/resources/webapps/proxy/.keep</exclude>
  217. <exclude>src/main/resources/webapps/node/.keep</exclude>
  218. <exclude>src/main/resources/webapps/static/dt-1.9.4/css/jui-dt.css</exclude>
  219. <exclude>src/main/resources/webapps/static/dt-1.9.4/css/demo_table.css</exclude>
  220. <exclude>src/main/resources/webapps/static/jquery/themes-1.9.1/base/jquery-ui.css</exclude>
  221. </excludes>
  222. </configuration>
  223. </plugin>
  224. <plugin>
  225. <groupId>org.apache.hadoop</groupId>
  226. <artifactId>hadoop-maven-plugins</artifactId>
  227. <executions>
  228. <execution>
  229. <id>version-info</id>
  230. <phase>generate-resources</phase>
  231. <goals>
  232. <goal>version-info</goal>
  233. </goals>
  234. <configuration>
  235. <source>
  236. <directory>${basedir}/src/main</directory>
  237. <includes>
  238. <include>java/**/*.java</include>
  239. <include>proto/**/*.proto</include>
  240. </includes>
  241. </source>
  242. </configuration>
  243. </execution>
  244. <execution>
  245. <id>compile-protoc</id>
  246. <phase>generate-sources</phase>
  247. <goals>
  248. <goal>protoc</goal>
  249. </goals>
  250. <configuration>
  251. <protocVersion>${protobuf.version}</protocVersion>
  252. <protocCommand>${protoc.path}</protocCommand>
  253. <imports>
  254. <param>${basedir}/../../../hadoop-common-project/hadoop-common/src/main/proto</param>
  255. <param>${basedir}/../hadoop-yarn-api/src/main/proto</param>
  256. <param>${basedir}/src/main/proto</param>
  257. </imports>
  258. <source>
  259. <directory>${basedir}/src/main/proto/server</directory>
  260. <includes>
  261. <include>yarn_security_token.proto</include>
  262. </includes>
  263. </source>
  264. <output>${project.build.directory}/generated-sources/java</output>
  265. </configuration>
  266. </execution>
  267. </executions>
  268. </plugin>
  269. <plugin>
  270. <artifactId>maven-jar-plugin</artifactId>
  271. <executions>
  272. <execution>
  273. <goals>
  274. <goal>test-jar</goal>
  275. </goals>
  276. <phase>test-compile</phase>
  277. </execution>
  278. </executions>
  279. </plugin>
  280. <plugin>
  281. <artifactId>maven-antrun-plugin</artifactId>
  282. <executions>
  283. <execution>
  284. <phase>pre-site</phase>
  285. <goals>
  286. <goal>run</goal>
  287. </goals>
  288. <configuration>
  289. <tasks>
  290. <copy file="src/main/resources/yarn-default.xml" todir="src/site/resources"/>
  291. <copy file="src/main/xsl/configuration.xsl" todir="src/site/resources"/>
  292. </tasks>
  293. </configuration>
  294. </execution>
  295. </executions>
  296. </plugin>
  297. </plugins>
  298. </build>
  299. </project>