pom.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415
  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</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-common</artifactId>
  24. <version>3.4.0-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. <dependency>
  40. <groupId>org.apache.hadoop</groupId>
  41. <artifactId>hadoop-hdfs-client</artifactId>
  42. </dependency>
  43. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  44. <dependency>
  45. <groupId>org.apache.hadoop</groupId>
  46. <artifactId>hadoop-yarn-api</artifactId>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.apache.hadoop</groupId>
  50. <artifactId>hadoop-auth</artifactId>
  51. </dependency>
  52. <dependency>
  53. <groupId>javax.xml.bind</groupId>
  54. <artifactId>jaxb-api</artifactId>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.apache.commons</groupId>
  58. <artifactId>commons-compress</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>org.apache.hadoop.thirdparty</groupId>
  82. <artifactId>hadoop-shaded-guava</artifactId>
  83. </dependency>
  84. <dependency>
  85. <groupId>commons-cli</groupId>
  86. <artifactId>commons-cli</artifactId>
  87. </dependency>
  88. <dependency>
  89. <groupId>org.slf4j</groupId>
  90. <artifactId>slf4j-api</artifactId>
  91. </dependency>
  92. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  93. <dependency>
  94. <groupId>org.apache.hadoop</groupId>
  95. <artifactId>hadoop-annotations</artifactId>
  96. </dependency>
  97. <dependency>
  98. <groupId>junit</groupId>
  99. <artifactId>junit</artifactId>
  100. <scope>test</scope>
  101. </dependency>
  102. <dependency>
  103. <groupId>org.mockito</groupId>
  104. <artifactId>mockito-core</artifactId>
  105. <scope>test</scope>
  106. </dependency>
  107. <dependency>
  108. <groupId>org.assertj</groupId>
  109. <artifactId>assertj-core</artifactId>
  110. <scope>test</scope>
  111. </dependency>
  112. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  113. <dependency>
  114. <groupId>org.apache.hadoop</groupId>
  115. <artifactId>hadoop-common</artifactId>
  116. <type>test-jar</type>
  117. <scope>test</scope>
  118. </dependency>
  119. <dependency>
  120. <groupId>com.google.inject.extensions</groupId>
  121. <artifactId>guice-servlet</artifactId>
  122. </dependency>
  123. <dependency>
  124. <groupId>com.google.protobuf</groupId>
  125. <artifactId>protobuf-java</artifactId>
  126. </dependency>
  127. <dependency>
  128. <groupId>org.bouncycastle</groupId>
  129. <artifactId>bcprov-jdk15on</artifactId>
  130. <scope>test</scope>
  131. </dependency>
  132. <dependency>
  133. <groupId>org.junit.jupiter</groupId>
  134. <artifactId>junit-jupiter-api</artifactId>
  135. <scope>test</scope>
  136. </dependency>
  137. <dependency>
  138. <groupId>org.junit.jupiter</groupId>
  139. <artifactId>junit-jupiter-engine</artifactId>
  140. <scope>test</scope>
  141. </dependency>
  142. <dependency>
  143. <groupId>org.junit.jupiter</groupId>
  144. <artifactId>junit-jupiter-params</artifactId>
  145. <scope>test</scope>
  146. </dependency>
  147. <dependency>
  148. <groupId>org.junit.platform</groupId>
  149. <artifactId>junit-platform-launcher</artifactId>
  150. <scope>test</scope>
  151. </dependency>
  152. <dependency>
  153. <groupId>com.sun.jersey.jersey-test-framework</groupId>
  154. <artifactId>jersey-test-framework-grizzly2</artifactId>
  155. <scope>test</scope>
  156. </dependency>
  157. <dependency>
  158. <groupId>commons-io</groupId>
  159. <artifactId>commons-io</artifactId>
  160. </dependency>
  161. <dependency>
  162. <groupId>com.google.inject</groupId>
  163. <artifactId>guice</artifactId>
  164. </dependency>
  165. <dependency>
  166. <groupId>com.sun.jersey</groupId>
  167. <artifactId>jersey-server</artifactId>
  168. </dependency>
  169. <dependency>
  170. <groupId>com.github.pjfanning</groupId>
  171. <artifactId>jersey-json</artifactId>
  172. <exclusions>
  173. <exclusion>
  174. <groupId>com.fasterxml.jackson.core</groupId>
  175. <artifactId>jackson-core</artifactId>
  176. </exclusion>
  177. <exclusion>
  178. <groupId>com.fasterxml.jackson.core</groupId>
  179. <artifactId>jackson-databind</artifactId>
  180. </exclusion>
  181. <exclusion>
  182. <groupId>com.fasterxml.jackson.jaxrs</groupId>
  183. <artifactId>jackson-jaxrs-json-provider</artifactId>
  184. </exclusion>
  185. </exclusions>
  186. </dependency>
  187. <dependency>
  188. <groupId>com.sun.jersey.contribs</groupId>
  189. <artifactId>jersey-guice</artifactId>
  190. </dependency>
  191. <dependency>
  192. <groupId>log4j</groupId>
  193. <artifactId>log4j</artifactId>
  194. </dependency>
  195. <dependency>
  196. <groupId>com.fasterxml.jackson.core</groupId>
  197. <artifactId>jackson-core</artifactId>
  198. </dependency>
  199. <dependency>
  200. <groupId>com.fasterxml.jackson.core</groupId>
  201. <artifactId>jackson-databind</artifactId>
  202. </dependency>
  203. <dependency>
  204. <groupId>com.fasterxml.jackson.module</groupId>
  205. <artifactId>jackson-module-jaxb-annotations</artifactId>
  206. </dependency>
  207. <dependency>
  208. <groupId>com.fasterxml.jackson.jaxrs</groupId>
  209. <artifactId>jackson-jaxrs-json-provider</artifactId>
  210. </dependency>
  211. </dependencies>
  212. <build>
  213. <!--
  214. Include all files in src/main/resources. By default, do not apply property
  215. substitution (filtering=false), but do apply property substitution to
  216. yarn-version-info.properties (filtering=true). This will substitute the
  217. version information correctly, but prevent Maven from altering other files
  218. like yarn-default.xml.
  219. -->
  220. <resources>
  221. <resource>
  222. <directory>${basedir}/src/main/resources</directory>
  223. <excludes>
  224. <exclude>yarn-version-info.properties</exclude>
  225. </excludes>
  226. <filtering>false</filtering>
  227. </resource>
  228. <resource>
  229. <directory>${basedir}/src/main/resources</directory>
  230. <includes>
  231. <include>yarn-version-info.properties</include>
  232. </includes>
  233. <filtering>true</filtering>
  234. </resource>
  235. </resources>
  236. <testResources>
  237. <testResource>
  238. <directory>${project.basedir}/src/test/resources</directory>
  239. </testResource>
  240. <testResource>
  241. <directory>${project.basedir}/src/test/resources/resource-types</directory>
  242. </testResource>
  243. </testResources>
  244. <plugins>
  245. <plugin>
  246. <groupId>org.apache.rat</groupId>
  247. <artifactId>apache-rat-plugin</artifactId>
  248. <configuration>
  249. <excludes>
  250. <exclude>src/main/resources/webapps/mapreduce/.keep</exclude>
  251. <exclude>src/main/resources/webapps/jobhistory/.keep</exclude>
  252. <exclude>src/main/resources/webapps/yarn/.keep</exclude>
  253. <exclude>src/main/resources/webapps/applicationhistory/.keep</exclude>
  254. <exclude>src/main/resources/webapps/timeline/.keep</exclude>
  255. <exclude>src/main/resources/webapps/sharedcache/.keep</exclude>
  256. <exclude>src/main/resources/webapps/cluster/.keep</exclude>
  257. <exclude>src/main/resources/webapps/test/.keep</exclude>
  258. <exclude>src/main/resources/webapps/proxy/.keep</exclude>
  259. <exclude>src/main/resources/webapps/node/.keep</exclude>
  260. <exclude>src/main/resources/webapps/static/dt-1.11.5/css/jquery.dataTables.css</exclude>
  261. <exclude>src/main/resources/webapps/static/dt-1.11.5/css/custom_datatable.css</exclude>
  262. <exclude>src/main/resources/webapps/static/dt-1.11.5/css/jui-dt.css</exclude>
  263. <exclude>src/main/resources/webapps/static/dt-1.11.5/css/demo_table.css</exclude>
  264. <exclude>src/main/resources/webapps/static/dt-1.11.5/images/Sorting icons.psd</exclude>
  265. <exclude>src/main/resources/webapps/static/dt-1.11.5/js/jquery.dataTables.min.js</exclude>
  266. <exclude>src/main/resources/webapps/static/jt/jquery.jstree.js</exclude>
  267. <exclude>src/main/resources/webapps/static/jquery/jquery-ui-1.13.2.custom.min.js</exclude>
  268. <exclude>src/main/resources/webapps/static/jquery/jquery-3.6.0.min.js</exclude>
  269. <exclude>src/main/resources/webapps/static/jquery/themes-1.9.1/base/jquery-ui.css</exclude>
  270. <exclude>src/test/resources/application_1440536969523_0001.har/_index</exclude>
  271. <exclude>src/test/resources/application_1440536969523_0001.har/part-0</exclude>
  272. <exclude>src/test/resources/application_1440536969523_0001.har/_masterindex</exclude>
  273. <exclude>src/test/resources/application_1440536969523_0001.har/_SUCCESS</exclude>
  274. <exclude>src/test/resources/application_123456_0001.har/_index</exclude>
  275. <exclude>src/test/resources/application_123456_0001.har/part-0</exclude>
  276. <exclude>src/test/resources/application_123456_0001.har/_masterindex</exclude>
  277. <exclude>src/test/resources/application_123456_0001.har/_SUCCESS</exclude>
  278. </excludes>
  279. </configuration>
  280. </plugin>
  281. <plugin>
  282. <groupId>org.xolstice.maven.plugins</groupId>
  283. <artifactId>protobuf-maven-plugin</artifactId>
  284. <executions>
  285. <execution>
  286. <id>src-compile-protoc</id>
  287. <configuration>
  288. <skip>false</skip>
  289. <additionalProtoPathElements>
  290. <additionalProtoPathElement>
  291. ${basedir}/../../../hadoop-common-project/hadoop-common/src/main/proto
  292. </additionalProtoPathElement>
  293. <additionalProtoPathElement>
  294. ${basedir}/../hadoop-yarn-api/src/main/proto
  295. </additionalProtoPathElement>
  296. </additionalProtoPathElements>
  297. </configuration>
  298. </execution>
  299. </executions>
  300. </plugin>
  301. <plugin>
  302. <groupId>com.google.code.maven-replacer-plugin</groupId>
  303. <artifactId>replacer</artifactId>
  304. <executions>
  305. <execution>
  306. <id>replace-generated-sources</id>
  307. <configuration>
  308. <skip>false</skip>
  309. </configuration>
  310. </execution>
  311. <execution>
  312. <id>replace-sources</id>
  313. <configuration>
  314. <skip>false</skip>
  315. </configuration>
  316. </execution>
  317. <execution>
  318. <id>replace-test-sources</id>
  319. <configuration>
  320. <skip>false</skip>
  321. </configuration>
  322. </execution>
  323. </executions>
  324. </plugin>
  325. <plugin>
  326. <groupId>org.apache.hadoop</groupId>
  327. <artifactId>hadoop-maven-plugins</artifactId>
  328. <executions>
  329. <execution>
  330. <id>version-info</id>
  331. <phase>generate-resources</phase>
  332. <goals>
  333. <goal>version-info</goal>
  334. </goals>
  335. <configuration>
  336. <source>
  337. <directory>${basedir}/src/main</directory>
  338. <includes>
  339. <include>java/**/*.java</include>
  340. <include>proto/**/*.proto</include>
  341. </includes>
  342. </source>
  343. </configuration>
  344. </execution>
  345. <execution>
  346. <id>resource-gz</id>
  347. <phase>generate-resources</phase>
  348. <goals>
  349. <goal>resource-gz</goal>
  350. </goals>
  351. <configuration>
  352. <inputDirectory>${basedir}/src/main/resources/webapps/static</inputDirectory>
  353. <outputDirectory>${basedir}/target/classes/webapps/static</outputDirectory>
  354. <extensions>js,css</extensions>
  355. </configuration>
  356. </execution>
  357. </executions>
  358. </plugin>
  359. <plugin>
  360. <artifactId>maven-jar-plugin</artifactId>
  361. <executions>
  362. <execution>
  363. <goals>
  364. <goal>test-jar</goal>
  365. </goals>
  366. <phase>test-compile</phase>
  367. </execution>
  368. </executions>
  369. </plugin>
  370. <plugin>
  371. <artifactId>maven-antrun-plugin</artifactId>
  372. <executions>
  373. <execution>
  374. <phase>pre-site</phase>
  375. <goals>
  376. <goal>run</goal>
  377. </goals>
  378. <configuration>
  379. <tasks>
  380. <copy file="src/main/resources/yarn-default.xml" todir="src/site/resources"/>
  381. <copy file="src/main/xsl/configuration.xsl" todir="src/site/resources"/>
  382. </tasks>
  383. </configuration>
  384. </execution>
  385. </executions>
  386. </plugin>
  387. <plugin>
  388. <artifactId>maven-clean-plugin</artifactId>
  389. <configuration>
  390. <filesets>
  391. <fileset>
  392. <directory>src/site/resources</directory>
  393. <includes>
  394. <include>configuration.xsl</include>
  395. <include>yarn-default.xml</include>
  396. </includes>
  397. <followSymlinks>false</followSymlinks>
  398. </fileset>
  399. </filesets>
  400. </configuration>
  401. </plugin>
  402. </plugins>
  403. </build>
  404. </project>