pom.xml 15 KB

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