pom.xml 14 KB

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