pom.xml 11 KB

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