pom.xml 15 KB

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