pom.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402
  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-server</artifactId>
  19. <groupId>org.apache.hadoop</groupId>
  20. <version>3.1.0-SNAPSHOT</version>
  21. </parent>
  22. <modelVersion>4.0.0</modelVersion>
  23. <artifactId>hadoop-yarn-server-resourcemanager</artifactId>
  24. <version>3.1.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. <!--
  51. junit must be before mockito-all on the classpath. mockito-all bundles its
  52. own copy of the hamcrest classes, but they don't match our junit version.
  53. -->
  54. <dependency>
  55. <groupId>junit</groupId>
  56. <artifactId>junit</artifactId>
  57. <scope>test</scope>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.mockito</groupId>
  61. <artifactId>mockito-all</artifactId>
  62. <scope>test</scope>
  63. </dependency>
  64. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  65. <dependency>
  66. <groupId>org.apache.hadoop</groupId>
  67. <artifactId>hadoop-common</artifactId>
  68. <type>test-jar</type>
  69. <scope>test</scope>
  70. </dependency>
  71. <dependency>
  72. <groupId>com.google.inject.extensions</groupId>
  73. <artifactId>guice-servlet</artifactId>
  74. </dependency>
  75. <dependency>
  76. <groupId>com.google.protobuf</groupId>
  77. <artifactId>protobuf-java</artifactId>
  78. </dependency>
  79. <dependency>
  80. <groupId>commons-io</groupId>
  81. <artifactId>commons-io</artifactId>
  82. </dependency>
  83. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  84. <dependency>
  85. <groupId>org.apache.hadoop</groupId>
  86. <artifactId>hadoop-hdfs</artifactId>
  87. <scope>test</scope>
  88. </dependency>
  89. <dependency>
  90. <groupId>org.apache.hadoop</groupId>
  91. <artifactId>hadoop-hdfs-client</artifactId>
  92. <scope>test</scope>
  93. </dependency>
  94. <dependency>
  95. <groupId>com.google.inject</groupId>
  96. <artifactId>guice</artifactId>
  97. </dependency>
  98. <dependency>
  99. <groupId>com.sun.jersey.jersey-test-framework</groupId>
  100. <artifactId>jersey-test-framework-core</artifactId>
  101. <scope>test</scope>
  102. </dependency>
  103. <dependency>
  104. <groupId>com.sun.jersey</groupId>
  105. <artifactId>jersey-json</artifactId>
  106. </dependency>
  107. <dependency>
  108. <groupId>com.sun.jersey.contribs</groupId>
  109. <artifactId>jersey-guice</artifactId>
  110. </dependency>
  111. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  112. <dependency>
  113. <groupId>org.apache.hadoop</groupId>
  114. <artifactId>hadoop-yarn-common</artifactId>
  115. <type>test-jar</type>
  116. <scope>test</scope>
  117. </dependency>
  118. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  119. <dependency>
  120. <groupId>org.apache.hadoop</groupId>
  121. <artifactId>hadoop-yarn-common</artifactId>
  122. </dependency>
  123. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  124. <dependency>
  125. <groupId>org.apache.hadoop</groupId>
  126. <artifactId>hadoop-yarn-api</artifactId>
  127. </dependency>
  128. <dependency>
  129. <groupId>javax.xml.bind</groupId>
  130. <artifactId>jaxb-api</artifactId>
  131. </dependency>
  132. <dependency>
  133. <groupId>org.codehaus.jettison</groupId>
  134. <artifactId>jettison</artifactId>
  135. </dependency>
  136. <dependency>
  137. <groupId>commons-lang</groupId>
  138. <artifactId>commons-lang</artifactId>
  139. </dependency>
  140. <dependency>
  141. <groupId>com.sun.jersey</groupId>
  142. <artifactId>jersey-core</artifactId>
  143. </dependency>
  144. <dependency>
  145. <groupId>com.sun.jersey</groupId>
  146. <artifactId>jersey-client</artifactId>
  147. </dependency>
  148. <dependency>
  149. <groupId>org.eclipse.jetty</groupId>
  150. <artifactId>jetty-util</artifactId>
  151. </dependency>
  152. <dependency>
  153. <groupId>org.eclipse.jetty</groupId>
  154. <artifactId>jetty-util-ajax</artifactId>
  155. </dependency>
  156. <dependency>
  157. <groupId>com.google.guava</groupId>
  158. <artifactId>guava</artifactId>
  159. </dependency>
  160. <dependency>
  161. <groupId>commons-logging</groupId>
  162. <artifactId>commons-logging</artifactId>
  163. </dependency>
  164. <dependency>
  165. <groupId>log4j</groupId>
  166. <artifactId>log4j</artifactId>
  167. </dependency>
  168. <dependency>
  169. <groupId>org.apache.hadoop</groupId>
  170. <artifactId>hadoop-yarn-server-timelineservice</artifactId>
  171. <scope>test</scope>
  172. <type>test-jar</type>
  173. </dependency>
  174. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  175. <dependency>
  176. <groupId>org.apache.hadoop</groupId>
  177. <artifactId>hadoop-yarn-server-common</artifactId>
  178. </dependency>
  179. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  180. <dependency>
  181. <groupId>org.apache.hadoop</groupId>
  182. <artifactId>hadoop-yarn-server-applicationhistoryservice</artifactId>
  183. <version>${project.version}</version>
  184. </dependency>
  185. <dependency>
  186. <groupId>org.apache.hadoop</groupId>
  187. <artifactId>hadoop-yarn-server-timelineservice</artifactId>
  188. </dependency>
  189. <dependency>
  190. <groupId>org.apache.hadoop</groupId>
  191. <artifactId>hadoop-yarn-server-web-proxy</artifactId>
  192. </dependency>
  193. <dependency>
  194. <groupId>org.apache.curator</groupId>
  195. <artifactId>curator-client</artifactId>
  196. </dependency>
  197. <dependency>
  198. <groupId>org.apache.curator</groupId>
  199. <artifactId>curator-test</artifactId>
  200. <scope>test</scope>
  201. </dependency>
  202. <dependency>
  203. <groupId>org.apache.zookeeper</groupId>
  204. <artifactId>zookeeper</artifactId>
  205. </dependency>
  206. <dependency>
  207. <groupId>org.fusesource.leveldbjni</groupId>
  208. <artifactId>leveldbjni-all</artifactId>
  209. </dependency>
  210. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  211. <dependency>
  212. <groupId>org.apache.zookeeper</groupId>
  213. <artifactId>zookeeper</artifactId>
  214. <scope>test</scope>
  215. <type>test-jar</type>
  216. </dependency>
  217. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  218. <dependency>
  219. <groupId>org.apache.hadoop</groupId>
  220. <artifactId>hadoop-hdfs</artifactId>
  221. <type>test-jar</type>
  222. <scope>test</scope>
  223. </dependency>
  224. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  225. <dependency>
  226. <groupId>org.apache.hadoop</groupId>
  227. <artifactId>hadoop-minikdc</artifactId>
  228. <scope>test</scope>
  229. </dependency>
  230. <dependency>
  231. <groupId>org.apache.hadoop</groupId>
  232. <artifactId>hadoop-auth</artifactId>
  233. <scope>test</scope>
  234. <type>test-jar</type>
  235. <version>${project.version}</version>
  236. </dependency>
  237. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  238. <dependency>
  239. <groupId>com.sun.jersey.jersey-test-framework</groupId>
  240. <artifactId>jersey-test-framework-grizzly2</artifactId>
  241. <scope>test</scope>
  242. </dependency>
  243. </dependencies>
  244. <build>
  245. <testResources>
  246. <testResource>
  247. <directory>${basedir}/src/test/resources</directory>
  248. </testResource>
  249. <testResource>
  250. <directory>${basedir}/conf</directory>
  251. <includes>
  252. <include>capacity-scheduler.xml</include>
  253. </includes>
  254. </testResource>
  255. </testResources>
  256. <plugins>
  257. <!-- Publish tests jar -->
  258. <plugin>
  259. <artifactId>maven-jar-plugin</artifactId>
  260. <executions>
  261. <execution>
  262. <goals>
  263. <goal>test-jar</goal>
  264. </goals>
  265. <phase>test-compile</phase>
  266. <configuration>
  267. <archive>
  268. <manifest>
  269. <mainClass>org.apache.hadoop.test.YarnTestDriver</mainClass>
  270. </manifest>
  271. </archive>
  272. <excludes>
  273. <exclude>**/core-site.xml</exclude>
  274. <exclude>**/yarn-site.xml</exclude>
  275. </excludes>
  276. </configuration>
  277. </execution>
  278. </executions>
  279. </plugin>
  280. <plugin>
  281. <groupId>org.apache.hadoop</groupId>
  282. <artifactId>hadoop-maven-plugins</artifactId>
  283. <executions>
  284. <execution>
  285. <id>compile-protoc</id>
  286. <goals>
  287. <goal>protoc</goal>
  288. </goals>
  289. <configuration>
  290. <protocVersion>${protobuf.version}</protocVersion>
  291. <protocCommand>${protoc.path}</protocCommand>
  292. <imports>
  293. <param>${basedir}/../../../../hadoop-common-project/hadoop-common/src/main/proto</param>
  294. <param>${basedir}/../../hadoop-yarn-api/src/main/proto</param>
  295. <param>${basedir}/../../hadoop-yarn-common/src/main/proto</param>
  296. <param>${basedir}/../hadoop-yarn-server-common/src/main/proto</param>
  297. <param>${basedir}/src/main/proto</param>
  298. </imports>
  299. <source>
  300. <directory>${basedir}/src/main/proto</directory>
  301. <includes>
  302. <include>yarn_server_resourcemanager_recovery.proto</include>
  303. </includes>
  304. </source>
  305. </configuration>
  306. </execution>
  307. <execution>
  308. <id>compile-test-protoc</id>
  309. <goals>
  310. <goal>test-protoc</goal>
  311. </goals>
  312. <configuration>
  313. <protocVersion>${protobuf.version}</protocVersion>
  314. <protocCommand>${protoc.path}</protocCommand>
  315. <imports>
  316. <param>${basedir}/../../../../hadoop-common-project/hadoop-common/src/main/proto</param>
  317. <param>${basedir}/../../hadoop-yarn-api/src/main/proto</param>
  318. <param>${basedir}/src/test/proto</param>
  319. </imports>
  320. <source>
  321. <directory>${basedir}/src/test/proto</directory>
  322. <includes>
  323. <include>test_client_tokens.proto</include>
  324. </includes>
  325. </source>
  326. </configuration>
  327. </execution>
  328. </executions>
  329. </plugin>
  330. <plugin>
  331. <groupId>org.apache.rat</groupId>
  332. <artifactId>apache-rat-plugin</artifactId>
  333. <configuration>
  334. <excludes>
  335. <exclude>src/test/resources/submit-reservation.json</exclude>
  336. <exclude>src/test/resources/delete-reservation.json</exclude>
  337. <exclude>src/test/resources/update-reservation.json</exclude>
  338. <exclude>src/test/resources/invariants.txt</exclude>
  339. <exclude>src/test/resources/profiles/sample-profiles-1.json</exclude>
  340. <exclude>src/test/resources/profiles/sample-profiles-2.json</exclude>
  341. <exclude>src/test/resources/profiles/illegal-profiles-1.json</exclude>
  342. <exclude>src/test/resources/profiles/illegal-profiles-2.json</exclude>
  343. <exclude>src/test/resources/profiles/illegal-profiles-3.json</exclude>
  344. </excludes>
  345. </configuration>
  346. </plugin>
  347. </plugins>
  348. </build>
  349. <profiles>
  350. <profile>
  351. <id>visualize</id>
  352. <activation>
  353. <activeByDefault>false</activeByDefault>
  354. </activation>
  355. <build>
  356. <plugins>
  357. <plugin>
  358. <groupId>org.codehaus.mojo</groupId>
  359. <artifactId>exec-maven-plugin</artifactId>
  360. <executions>
  361. <execution>
  362. <phase>compile</phase>
  363. <goals>
  364. <goal>java</goal>
  365. </goals>
  366. <configuration>
  367. <mainClass>org.apache.hadoop.yarn.state.VisualizeStateMachine</mainClass>
  368. <classpathScope>compile</classpathScope>
  369. <arguments>
  370. <argument>ResourceManager</argument>
  371. <argument>org.apache.hadoop.yarn.server.resourcemanager.recovery.RMStateStore,
  372. org.apache.hadoop.yarn.server.resourcemanager.rmapp.attempt.RMAppAttemptImpl,
  373. org.apache.hadoop.yarn.server.resourcemanager.rmapp.RMAppImpl,
  374. org.apache.hadoop.yarn.server.resourcemanager.rmcontainer.RMContainerImpl,
  375. org.apache.hadoop.yarn.server.resourcemanager.rmnode.RMNodeImpl</argument>
  376. <argument>ResourceManager.gv</argument>
  377. </arguments>
  378. </configuration>
  379. </execution>
  380. </executions>
  381. </plugin>
  382. </plugins>
  383. </build>
  384. </profile>
  385. </profiles>
  386. </project>