pom.xml 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  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.zaxxer</groupId>
  128. <artifactId>HikariCP</artifactId>
  129. </dependency>
  130. <dependency>
  131. <groupId>org.hsqldb</groupId>
  132. <artifactId>hsqldb</artifactId>
  133. <scope>test</scope>
  134. <classifier>jdk8</classifier>
  135. </dependency>
  136. <dependency>
  137. <groupId>com.microsoft.sqlserver</groupId>
  138. <artifactId>mssql-jdbc</artifactId>
  139. <scope>runtime</scope>
  140. <exclusions>
  141. <exclusion>
  142. <groupId>com.microsoft.azure</groupId>
  143. <artifactId>azure-keyvault</artifactId>
  144. </exclusion>
  145. </exclusions>
  146. </dependency>
  147. <dependency>
  148. <groupId>org.apache.curator</groupId>
  149. <artifactId>curator-test</artifactId>
  150. <scope>test</scope>
  151. </dependency>
  152. </dependencies>
  153. <build>
  154. <plugins>
  155. <plugin>
  156. <artifactId>maven-antrun-plugin</artifactId>
  157. <executions>
  158. <execution>
  159. <id>copy-site</id>
  160. <phase>pre-site</phase>
  161. <goals>
  162. <goal>run</goal>
  163. </goals>
  164. <configuration>
  165. <target>
  166. <copy file="src/main/xsl/configuration.xsl" todir="src/site/resources"/>
  167. </target>
  168. </configuration>
  169. </execution>
  170. <execution>
  171. <id>copy-sql</id>
  172. <phase>test</phase>
  173. <goals>
  174. <goal>run</goal>
  175. </goals>
  176. <configuration>
  177. <target>
  178. <copy file="${basedir}/../../bin/FederationStateStore/MySQL/FederationStateStoreTables.sql" todir="${project.build.directory}/test-classes/MySQL"/>
  179. <copy file="${basedir}/../../bin/FederationStateStore/MySQL/FederationStateStoreStoredProcs.sql" todir="${project.build.directory}/test-classes/MySQL"/>
  180. <copy file="${basedir}/../../bin/FederationStateStore/SQLServer/FederationStateStoreTables.sql" todir="${project.build.directory}/test-classes/SQLServer"/>
  181. <copy file="${basedir}/../../bin/FederationStateStore/SQLServer/FederationStateStoreStoredProcs.sql" todir="${project.build.directory}/test-classes/SQLServer"/>
  182. </target>
  183. </configuration>
  184. </execution>
  185. </executions>
  186. </plugin>
  187. <plugin>
  188. <groupId>org.xolstice.maven.plugins</groupId>
  189. <artifactId>protobuf-maven-plugin</artifactId>
  190. <executions>
  191. <execution>
  192. <id>src-compile-protoc</id>
  193. <configuration>
  194. <skip>false</skip>
  195. <additionalProtoPathElements>
  196. <additionalProtoPathElement>
  197. ${basedir}/../../../../hadoop-common-project/hadoop-common/src/main/proto
  198. </additionalProtoPathElement>
  199. <additionalProtoPathElement>
  200. ${basedir}/../../hadoop-yarn-api/src/main/proto
  201. </additionalProtoPathElement>
  202. <additionalProtoPathElement>
  203. ${basedir}/../../hadoop-yarn-common/src/main/proto
  204. </additionalProtoPathElement>
  205. </additionalProtoPathElements>
  206. </configuration>
  207. </execution>
  208. </executions>
  209. </plugin>
  210. <plugin>
  211. <groupId>com.google.code.maven-replacer-plugin</groupId>
  212. <artifactId>replacer</artifactId>
  213. <executions>
  214. <execution>
  215. <id>replace-generated-sources</id>
  216. <configuration>
  217. <skip>false</skip>
  218. </configuration>
  219. </execution>
  220. <execution>
  221. <id>replace-sources</id>
  222. <configuration>
  223. <skip>false</skip>
  224. </configuration>
  225. </execution>
  226. <execution>
  227. <id>replace-test-sources</id>
  228. <configuration>
  229. <skip>false</skip>
  230. </configuration>
  231. </execution>
  232. </executions>
  233. </plugin>
  234. <plugin>
  235. <artifactId>maven-clean-plugin</artifactId>
  236. <configuration>
  237. <filesets>
  238. <fileset>
  239. <directory>src/site/resources</directory>
  240. <includes>
  241. <include>configuration.xsl</include>
  242. </includes>
  243. <followSymlinks>false</followSymlinks>
  244. </fileset>
  245. </filesets>
  246. </configuration>
  247. </plugin>
  248. <plugin>
  249. <groupId>org.apache.rat</groupId>
  250. <artifactId>apache-rat-plugin</artifactId>
  251. <configuration>
  252. <excludes>
  253. <exclude>src/test/resources/nodes</exclude>
  254. <exclude>src/test/resources/nodes-malformed</exclude>
  255. </excludes>
  256. </configuration>
  257. </plugin>
  258. <plugin>
  259. <artifactId>maven-jar-plugin</artifactId>
  260. <executions>
  261. <execution>
  262. <goals>
  263. <goal>test-jar</goal>
  264. </goals>
  265. <phase>test-compile</phase>
  266. </execution>
  267. </executions>
  268. </plugin>
  269. </plugins>
  270. </build>
  271. </project>