pom.xml 12 KB

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