pom.xml 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  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-server</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-server-common</artifactId>
  24. <version>3.5.0-SNAPSHOT</version>
  25. <name>Apache Hadoop YARN Server Common</name>
  26. <properties>
  27. <!-- Needed for generating FindBugs warnings using parent pom -->
  28. <yarn.basedir>${project.parent.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. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  40. <dependency>
  41. <groupId>org.apache.hadoop</groupId>
  42. <artifactId>hadoop-common</artifactId>
  43. <type>test-jar</type>
  44. <scope>test</scope>
  45. </dependency>
  46. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  47. <dependency>
  48. <groupId>org.apache.hadoop</groupId>
  49. <artifactId>hadoop-yarn-api</artifactId>
  50. </dependency>
  51. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  52. <dependency>
  53. <groupId>org.apache.hadoop</groupId>
  54. <artifactId>hadoop-yarn-common</artifactId>
  55. </dependency>
  56. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  57. <dependency>
  58. <groupId>org.apache.hadoop</groupId>
  59. <artifactId>hadoop-yarn-common</artifactId>
  60. <type>test-jar</type>
  61. <scope>test</scope>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.apache.hadoop</groupId>
  65. <artifactId>hadoop-registry</artifactId>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.apache.hadoop.thirdparty</groupId>
  69. <artifactId>hadoop-shaded-guava</artifactId>
  70. </dependency>
  71. <dependency>
  72. <groupId>org.bouncycastle</groupId>
  73. <artifactId>bcprov-jdk18on</artifactId>
  74. <scope>test</scope>
  75. </dependency>
  76. <!-- 'mvn dependency:analyze' fails to detect use of this dependency -->
  77. <dependency>
  78. <groupId>org.apache.hadoop</groupId>
  79. <artifactId>hadoop-annotations</artifactId>
  80. </dependency>
  81. <dependency>
  82. <groupId>com.google.protobuf</groupId>
  83. <artifactId>protobuf-java</artifactId>
  84. <scope>${transient.protobuf2.scope}</scope>
  85. </dependency>
  86. <dependency>
  87. <groupId>junit</groupId>
  88. <artifactId>junit</artifactId>
  89. <scope>test</scope>
  90. </dependency>
  91. <dependency>
  92. <groupId>org.mockito</groupId>
  93. <artifactId>mockito-core</artifactId>
  94. <scope>test</scope>
  95. </dependency>
  96. <dependency>
  97. <groupId>org.assertj</groupId>
  98. <artifactId>assertj-core</artifactId>
  99. <scope>test</scope>
  100. </dependency>
  101. <dependency>
  102. <groupId>org.apache.zookeeper</groupId>
  103. <artifactId>zookeeper</artifactId>
  104. </dependency>
  105. <dependency>
  106. <groupId>io.dropwizard.metrics</groupId>
  107. <artifactId>metrics-core</artifactId>
  108. </dependency>
  109. <dependency>
  110. <groupId>org.xerial.snappy</groupId>
  111. <artifactId>snappy-java</artifactId>
  112. <scope>provided</scope>
  113. </dependency>
  114. <dependency>
  115. <groupId>${leveldbjni.group}</groupId>
  116. <artifactId>leveldbjni-all</artifactId>
  117. </dependency>
  118. <dependency>
  119. <groupId>javax.cache</groupId>
  120. <artifactId>cache-api</artifactId>
  121. </dependency>
  122. <dependency>
  123. <groupId>org.ehcache</groupId>
  124. <artifactId>ehcache</artifactId>
  125. </dependency>
  126. <dependency>
  127. <groupId>com.github.ben-manes.caffeine</groupId>
  128. <artifactId>caffeine</artifactId>
  129. <exclusions>
  130. <exclusion>
  131. <groupId>org.checkerframework</groupId>
  132. <artifactId>checker-qual</artifactId>
  133. </exclusion>
  134. <exclusion>
  135. <groupId>com.google.errorprone</groupId>
  136. <artifactId>error_prone_annotations</artifactId>
  137. </exclusion>
  138. </exclusions>
  139. </dependency>
  140. <dependency>
  141. <groupId>com.zaxxer</groupId>
  142. <artifactId>HikariCP</artifactId>
  143. </dependency>
  144. <dependency>
  145. <groupId>org.hsqldb</groupId>
  146. <artifactId>hsqldb</artifactId>
  147. <scope>test</scope>
  148. <classifier>jdk8</classifier>
  149. </dependency>
  150. <dependency>
  151. <groupId>com.microsoft.sqlserver</groupId>
  152. <artifactId>mssql-jdbc</artifactId>
  153. <scope>runtime</scope>
  154. <exclusions>
  155. <exclusion>
  156. <groupId>com.microsoft.azure</groupId>
  157. <artifactId>azure-keyvault</artifactId>
  158. </exclusion>
  159. </exclusions>
  160. </dependency>
  161. <dependency>
  162. <groupId>org.apache.curator</groupId>
  163. <artifactId>curator-test</artifactId>
  164. <scope>test</scope>
  165. </dependency>
  166. </dependencies>
  167. <build>
  168. <plugins>
  169. <plugin>
  170. <artifactId>maven-antrun-plugin</artifactId>
  171. <executions>
  172. <execution>
  173. <id>copy-site</id>
  174. <phase>pre-site</phase>
  175. <goals>
  176. <goal>run</goal>
  177. </goals>
  178. <configuration>
  179. <target>
  180. <copy file="src/main/xsl/configuration.xsl" todir="src/site/resources"/>
  181. </target>
  182. </configuration>
  183. </execution>
  184. <execution>
  185. <id>copy-sql</id>
  186. <phase>test</phase>
  187. <goals>
  188. <goal>run</goal>
  189. </goals>
  190. <configuration>
  191. <target>
  192. <copy file="${basedir}/../../bin/FederationStateStore/MySQL/FederationStateStoreTables.sql" todir="${project.build.directory}/test-classes/MySQL"/>
  193. <copy file="${basedir}/../../bin/FederationStateStore/MySQL/FederationStateStoreStoredProcs.sql" todir="${project.build.directory}/test-classes/MySQL"/>
  194. <copy file="${basedir}/../../bin/FederationStateStore/SQLServer/FederationStateStoreTables.sql" todir="${project.build.directory}/test-classes/SQLServer"/>
  195. <copy file="${basedir}/../../bin/FederationStateStore/SQLServer/FederationStateStoreStoredProcs.sql" todir="${project.build.directory}/test-classes/SQLServer"/>
  196. </target>
  197. </configuration>
  198. </execution>
  199. </executions>
  200. </plugin>
  201. <plugin>
  202. <groupId>org.xolstice.maven.plugins</groupId>
  203. <artifactId>protobuf-maven-plugin</artifactId>
  204. <executions>
  205. <execution>
  206. <id>src-compile-protoc</id>
  207. <configuration>
  208. <skip>false</skip>
  209. <additionalProtoPathElements>
  210. <additionalProtoPathElement>
  211. ${basedir}/../../../../hadoop-common-project/hadoop-common/src/main/proto
  212. </additionalProtoPathElement>
  213. <additionalProtoPathElement>
  214. ${basedir}/../../hadoop-yarn-api/src/main/proto
  215. </additionalProtoPathElement>
  216. <additionalProtoPathElement>
  217. ${basedir}/../../hadoop-yarn-common/src/main/proto
  218. </additionalProtoPathElement>
  219. </additionalProtoPathElements>
  220. </configuration>
  221. </execution>
  222. </executions>
  223. </plugin>
  224. <plugin>
  225. <groupId>com.google.code.maven-replacer-plugin</groupId>
  226. <artifactId>replacer</artifactId>
  227. <executions>
  228. <execution>
  229. <id>replace-generated-sources</id>
  230. <configuration>
  231. <skip>false</skip>
  232. </configuration>
  233. </execution>
  234. <execution>
  235. <id>replace-sources</id>
  236. <configuration>
  237. <skip>false</skip>
  238. </configuration>
  239. </execution>
  240. <execution>
  241. <id>replace-test-sources</id>
  242. <configuration>
  243. <skip>false</skip>
  244. </configuration>
  245. </execution>
  246. </executions>
  247. </plugin>
  248. <plugin>
  249. <artifactId>maven-clean-plugin</artifactId>
  250. <configuration>
  251. <filesets>
  252. <fileset>
  253. <directory>src/site/resources</directory>
  254. <includes>
  255. <include>configuration.xsl</include>
  256. </includes>
  257. <followSymlinks>false</followSymlinks>
  258. </fileset>
  259. </filesets>
  260. </configuration>
  261. </plugin>
  262. <plugin>
  263. <groupId>org.apache.rat</groupId>
  264. <artifactId>apache-rat-plugin</artifactId>
  265. <configuration>
  266. <excludes>
  267. <exclude>src/test/resources/nodes</exclude>
  268. <exclude>src/test/resources/nodes-malformed</exclude>
  269. </excludes>
  270. </configuration>
  271. </plugin>
  272. <plugin>
  273. <artifactId>maven-jar-plugin</artifactId>
  274. <executions>
  275. <execution>
  276. <goals>
  277. <goal>test-jar</goal>
  278. </goals>
  279. <phase>test-compile</phase>
  280. </execution>
  281. </executions>
  282. </plugin>
  283. </plugins>
  284. </build>
  285. </project>