pom.xml 9.6 KB

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