pom.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458
  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. https://maven.apache.org/xsd/maven-4.0.0.xsd">
  17. <parent>
  18. <artifactId>hadoop-yarn-server</artifactId>
  19. <groupId>org.apache.hadoop</groupId>
  20. <version>3.4.0-SNAPSHOT</version>
  21. </parent>
  22. <modelVersion>4.0.0</modelVersion>
  23. <artifactId>hadoop-yarn-server-resourcemanager</artifactId>
  24. <version>3.4.0-SNAPSHOT</version>
  25. <name>Apache Hadoop YARN ResourceManager</name>
  26. <properties>
  27. <!-- Needed for generating FindBugs warnings using parent pom -->
  28. <yarn.basedir>${project.parent.parent.basedir}</yarn.basedir>
  29. </properties>
  30. <dependencies>
  31. <dependency>
  32. <groupId>javax.servlet</groupId>
  33. <artifactId>javax.servlet-api</artifactId>
  34. </dependency>
  35. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  36. <dependency>
  37. <groupId>org.apache.hadoop</groupId>
  38. <artifactId>hadoop-common</artifactId>
  39. <scope>provided</scope>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.slf4j</groupId>
  43. <artifactId>slf4j-api</artifactId>
  44. </dependency>
  45. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  46. <dependency>
  47. <groupId>org.apache.hadoop</groupId>
  48. <artifactId>hadoop-annotations</artifactId>
  49. </dependency>
  50. <dependency>
  51. <groupId>junit</groupId>
  52. <artifactId>junit</artifactId>
  53. <scope>test</scope>
  54. </dependency>
  55. <dependency>
  56. <groupId>org.assertj</groupId>
  57. <artifactId>assertj-core</artifactId>
  58. <scope>test</scope>
  59. </dependency>
  60. <dependency>
  61. <groupId>org.mockito</groupId>
  62. <artifactId>mockito-core</artifactId>
  63. <scope>test</scope>
  64. </dependency>
  65. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  66. <dependency>
  67. <groupId>org.apache.hadoop</groupId>
  68. <artifactId>hadoop-common</artifactId>
  69. <type>test-jar</type>
  70. <scope>test</scope>
  71. </dependency>
  72. <dependency>
  73. <groupId>com.google.inject.extensions</groupId>
  74. <artifactId>guice-servlet</artifactId>
  75. </dependency>
  76. <dependency>
  77. <groupId>com.google.protobuf</groupId>
  78. <artifactId>protobuf-java</artifactId>
  79. </dependency>
  80. <dependency>
  81. <groupId>commons-io</groupId>
  82. <artifactId>commons-io</artifactId>
  83. </dependency>
  84. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  85. <dependency>
  86. <groupId>org.apache.hadoop</groupId>
  87. <artifactId>hadoop-hdfs</artifactId>
  88. <scope>test</scope>
  89. </dependency>
  90. <dependency>
  91. <groupId>org.apache.hadoop</groupId>
  92. <artifactId>hadoop-hdfs-client</artifactId>
  93. <scope>test</scope>
  94. </dependency>
  95. <dependency>
  96. <groupId>com.google.inject</groupId>
  97. <artifactId>guice</artifactId>
  98. </dependency>
  99. <dependency>
  100. <groupId>com.sun.jersey.jersey-test-framework</groupId>
  101. <artifactId>jersey-test-framework-core</artifactId>
  102. <scope>test</scope>
  103. </dependency>
  104. <dependency>
  105. <groupId>com.sun.jersey</groupId>
  106. <artifactId>jersey-json</artifactId>
  107. </dependency>
  108. <dependency>
  109. <groupId>com.sun.jersey.contribs</groupId>
  110. <artifactId>jersey-guice</artifactId>
  111. </dependency>
  112. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  113. <dependency>
  114. <groupId>org.apache.hadoop</groupId>
  115. <artifactId>hadoop-yarn-common</artifactId>
  116. <type>test-jar</type>
  117. <scope>test</scope>
  118. </dependency>
  119. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  120. <dependency>
  121. <groupId>org.apache.hadoop</groupId>
  122. <artifactId>hadoop-yarn-common</artifactId>
  123. </dependency>
  124. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  125. <dependency>
  126. <groupId>org.apache.hadoop</groupId>
  127. <artifactId>hadoop-yarn-api</artifactId>
  128. </dependency>
  129. <dependency>
  130. <groupId>javax.xml.bind</groupId>
  131. <artifactId>jaxb-api</artifactId>
  132. </dependency>
  133. <dependency>
  134. <groupId>org.codehaus.jettison</groupId>
  135. <artifactId>jettison</artifactId>
  136. </dependency>
  137. <dependency>
  138. <groupId>com.sun.jersey</groupId>
  139. <artifactId>jersey-core</artifactId>
  140. </dependency>
  141. <dependency>
  142. <groupId>com.sun.jersey</groupId>
  143. <artifactId>jersey-client</artifactId>
  144. </dependency>
  145. <dependency>
  146. <groupId>org.eclipse.jetty</groupId>
  147. <artifactId>jetty-util</artifactId>
  148. </dependency>
  149. <dependency>
  150. <groupId>org.eclipse.jetty</groupId>
  151. <artifactId>jetty-util-ajax</artifactId>
  152. </dependency>
  153. <dependency>
  154. <groupId>org.apache.hadoop.thirdparty</groupId>
  155. <artifactId>hadoop-shaded-guava</artifactId>
  156. </dependency>
  157. <dependency>
  158. <groupId>log4j</groupId>
  159. <artifactId>log4j</artifactId>
  160. </dependency>
  161. <dependency>
  162. <groupId>org.apache.hadoop</groupId>
  163. <artifactId>hadoop-yarn-server-timelineservice</artifactId>
  164. <scope>test</scope>
  165. <type>test-jar</type>
  166. </dependency>
  167. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  168. <dependency>
  169. <groupId>org.apache.hadoop</groupId>
  170. <artifactId>hadoop-yarn-server-common</artifactId>
  171. </dependency>
  172. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  173. <dependency>
  174. <groupId>org.apache.hadoop</groupId>
  175. <artifactId>hadoop-yarn-server-applicationhistoryservice</artifactId>
  176. <version>${project.version}</version>
  177. </dependency>
  178. <dependency>
  179. <groupId>org.apache.hadoop</groupId>
  180. <artifactId>hadoop-yarn-server-timelineservice</artifactId>
  181. <scope>provided</scope>
  182. </dependency>
  183. <dependency>
  184. <groupId>org.apache.hadoop</groupId>
  185. <artifactId>hadoop-yarn-server-web-proxy</artifactId>
  186. </dependency>
  187. <dependency>
  188. <groupId>org.apache.curator</groupId>
  189. <artifactId>curator-client</artifactId>
  190. </dependency>
  191. <dependency>
  192. <groupId>org.apache.curator</groupId>
  193. <artifactId>curator-test</artifactId>
  194. <scope>test</scope>
  195. </dependency>
  196. <dependency>
  197. <groupId>org.apache.zookeeper</groupId>
  198. <artifactId>zookeeper</artifactId>
  199. </dependency>
  200. <dependency>
  201. <groupId>${leveldbjni.group}</groupId>
  202. <artifactId>leveldbjni-all</artifactId>
  203. </dependency>
  204. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  205. <dependency>
  206. <groupId>org.apache.zookeeper</groupId>
  207. <artifactId>zookeeper</artifactId>
  208. <scope>test</scope>
  209. <type>test-jar</type>
  210. </dependency>
  211. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  212. <dependency>
  213. <groupId>org.apache.hadoop</groupId>
  214. <artifactId>hadoop-hdfs</artifactId>
  215. <type>test-jar</type>
  216. <scope>test</scope>
  217. </dependency>
  218. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  219. <dependency>
  220. <groupId>org.apache.hadoop</groupId>
  221. <artifactId>hadoop-minikdc</artifactId>
  222. <scope>test</scope>
  223. </dependency>
  224. <dependency>
  225. <groupId>org.apache.hadoop</groupId>
  226. <artifactId>hadoop-auth</artifactId>
  227. <scope>test</scope>
  228. <type>test-jar</type>
  229. <version>${project.version}</version>
  230. </dependency>
  231. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  232. <dependency>
  233. <groupId>com.sun.jersey.jersey-test-framework</groupId>
  234. <artifactId>jersey-test-framework-grizzly2</artifactId>
  235. <scope>test</scope>
  236. </dependency>
  237. <dependency>
  238. <groupId>com.github.stefanbirkner</groupId>
  239. <artifactId>system-rules</artifactId>
  240. <scope>test</scope>
  241. </dependency>
  242. <!-- Necessary to include jackson separately to avoid issues with
  243. maven enforcer plugin in "hadoop-client-check-test-invariants"
  244. -->
  245. <dependency>
  246. <groupId>org.jsonschema2pojo</groupId>
  247. <artifactId>jsonschema2pojo-core</artifactId>
  248. </dependency>
  249. <dependency>
  250. <groupId>com.fasterxml.jackson.core</groupId>
  251. <artifactId>jackson-databind</artifactId>
  252. </dependency>
  253. <dependency>
  254. <groupId>com.fasterxml.jackson.dataformat</groupId>
  255. <artifactId>jackson-dataformat-yaml</artifactId>
  256. </dependency>
  257. </dependencies>
  258. <build>
  259. <testResources>
  260. <testResource>
  261. <directory>${basedir}/src/test/resources</directory>
  262. </testResource>
  263. <testResource>
  264. <directory>${basedir}/conf</directory>
  265. <includes>
  266. <include>capacity-scheduler.xml</include>
  267. </includes>
  268. </testResource>
  269. </testResources>
  270. <plugins>
  271. <!-- Publish tests jar -->
  272. <plugin>
  273. <artifactId>maven-jar-plugin</artifactId>
  274. <executions>
  275. <execution>
  276. <goals>
  277. <goal>test-jar</goal>
  278. </goals>
  279. <phase>test-compile</phase>
  280. <configuration>
  281. <archive>
  282. <manifest>
  283. <mainClass>org.apache.hadoop.test.YarnTestDriver</mainClass>
  284. </manifest>
  285. </archive>
  286. <excludes>
  287. <exclude>**/core-site.xml</exclude>
  288. <exclude>**/yarn-site.xml</exclude>
  289. </excludes>
  290. </configuration>
  291. </execution>
  292. </executions>
  293. </plugin>
  294. <plugin>
  295. <groupId>org.xolstice.maven.plugins</groupId>
  296. <artifactId>protobuf-maven-plugin</artifactId>
  297. <executions>
  298. <execution>
  299. <id>src-compile-protoc</id>
  300. <configuration>
  301. <skip>false</skip>
  302. <additionalProtoPathElements>
  303. <additionalProtoPathElement>
  304. ${basedir}/../../../../hadoop-common-project/hadoop-common/src/main/proto
  305. </additionalProtoPathElement>
  306. <additionalProtoPathElement>
  307. ${basedir}/../../hadoop-yarn-api/src/main/proto
  308. </additionalProtoPathElement>
  309. <additionalProtoPathElement>
  310. ${basedir}/../../hadoop-yarn-common/src/main/proto
  311. </additionalProtoPathElement>
  312. <additionalProtoPathElement>
  313. ${basedir}/../hadoop-yarn-server-common/src/main/proto
  314. </additionalProtoPathElement>
  315. </additionalProtoPathElements>
  316. </configuration>
  317. </execution>
  318. <execution>
  319. <id>src-test-compile-protoc</id>
  320. <configuration>
  321. <skip>false</skip>
  322. <additionalProtoPathElements>
  323. <additionalProtoPathElement>
  324. ${basedir}/../../../../hadoop-common-project/hadoop-common/src/main/proto
  325. </additionalProtoPathElement>
  326. <additionalProtoPathElement>
  327. ${basedir}/../../hadoop-yarn-api/src/main/proto
  328. </additionalProtoPathElement>
  329. </additionalProtoPathElements>
  330. </configuration>
  331. </execution>
  332. </executions>
  333. </plugin>
  334. <plugin>
  335. <groupId>com.google.code.maven-replacer-plugin</groupId>
  336. <artifactId>replacer</artifactId>
  337. <executions>
  338. <execution>
  339. <id>replace-generated-sources</id>
  340. <configuration>
  341. <skip>false</skip>
  342. </configuration>
  343. </execution>
  344. <execution>
  345. <id>replace-sources</id>
  346. <configuration>
  347. <skip>false</skip>
  348. </configuration>
  349. </execution>
  350. <execution>
  351. <id>replace-generated-test-sources</id>
  352. <configuration>
  353. <skip>false</skip>
  354. </configuration>
  355. </execution>
  356. <execution>
  357. <id>replace-test-sources</id>
  358. <configuration>
  359. <skip>false</skip>
  360. </configuration>
  361. </execution>
  362. </executions>
  363. </plugin>
  364. <plugin>
  365. <groupId>org.apache.rat</groupId>
  366. <artifactId>apache-rat-plugin</artifactId>
  367. <configuration>
  368. <excludes>
  369. <exclude>src/test/resources/submit-reservation.json</exclude>
  370. <exclude>src/test/resources/delete-reservation.json</exclude>
  371. <exclude>src/test/resources/update-reservation.json</exclude>
  372. <exclude>src/test/resources/invariants.txt</exclude>
  373. <exclude>src/test/resources/invariants_jdk9.txt</exclude>
  374. <exclude>src/test/resources/profiles/sample-profiles-1.json</exclude>
  375. <exclude>src/test/resources/profiles/sample-profiles-2.json</exclude>
  376. <exclude>src/test/resources/profiles/illegal-profiles-1.json</exclude>
  377. <exclude>src/test/resources/profiles/illegal-profiles-2.json</exclude>
  378. <exclude>src/test/resources/profiles/illegal-profiles-3.json</exclude>
  379. <!-- these two files are generated by jsonschema2pojo
  380. during build time -->
  381. <exclude>src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/placement/schema/MappingRulesDescription.java</exclude>
  382. <exclude>src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/placement/schema/Rule.java</exclude>
  383. </excludes>
  384. </configuration>
  385. </plugin>
  386. <plugin>
  387. <groupId>org.jsonschema2pojo</groupId>
  388. <artifactId>jsonschema2pojo-maven-plugin</artifactId>
  389. <configuration>
  390. <sourceDirectory>${basedir}/src/main/json_schema</sourceDirectory>
  391. <targetPackage>org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.placement.schema</targetPackage>
  392. <outputDirectory>${basedir}/src/main/java</outputDirectory>
  393. </configuration>
  394. <executions>
  395. <execution>
  396. <goals>
  397. <goal>generate</goal>
  398. </goals>
  399. </execution>
  400. </executions>
  401. </plugin>
  402. </plugins>
  403. </build>
  404. <profiles>
  405. <profile>
  406. <id>visualize</id>
  407. <activation>
  408. <activeByDefault>false</activeByDefault>
  409. </activation>
  410. <build>
  411. <plugins>
  412. <plugin>
  413. <groupId>org.codehaus.mojo</groupId>
  414. <artifactId>exec-maven-plugin</artifactId>
  415. <executions>
  416. <execution>
  417. <phase>compile</phase>
  418. <goals>
  419. <goal>java</goal>
  420. </goals>
  421. <configuration>
  422. <mainClass>org.apache.hadoop.yarn.state.VisualizeStateMachine</mainClass>
  423. <classpathScope>compile</classpathScope>
  424. <arguments>
  425. <argument>ResourceManager</argument>
  426. <argument>org.apache.hadoop.yarn.server.resourcemanager.recovery.RMStateStore,
  427. org.apache.hadoop.yarn.server.resourcemanager.rmapp.attempt.RMAppAttemptImpl,
  428. org.apache.hadoop.yarn.server.resourcemanager.rmapp.RMAppImpl,
  429. org.apache.hadoop.yarn.server.resourcemanager.rmcontainer.RMContainerImpl,
  430. org.apache.hadoop.yarn.server.resourcemanager.rmnode.RMNodeImpl</argument>
  431. <argument>ResourceManager.gv</argument>
  432. </arguments>
  433. </configuration>
  434. </execution>
  435. </executions>
  436. </plugin>
  437. </plugins>
  438. </build>
  439. </profile>
  440. </profiles>
  441. </project>