pom.xml 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  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.4.0-SNAPSHOT</version>
  21. </parent>
  22. <modelVersion>4.0.0</modelVersion>
  23. <artifactId>hadoop-yarn-server-common</artifactId>
  24. <version>3.4.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. </dependency>
  85. <dependency>
  86. <groupId>junit</groupId>
  87. <artifactId>junit</artifactId>
  88. <scope>test</scope>
  89. </dependency>
  90. <dependency>
  91. <groupId>org.mockito</groupId>
  92. <artifactId>mockito-core</artifactId>
  93. <scope>test</scope>
  94. </dependency>
  95. <dependency>
  96. <groupId>org.assertj</groupId>
  97. <artifactId>assertj-core</artifactId>
  98. <scope>test</scope>
  99. </dependency>
  100. <dependency>
  101. <groupId>org.apache.zookeeper</groupId>
  102. <artifactId>zookeeper</artifactId>
  103. </dependency>
  104. <dependency>
  105. <groupId>io.dropwizard.metrics</groupId>
  106. <artifactId>metrics-core</artifactId>
  107. </dependency>
  108. <dependency>
  109. <groupId>org.xerial.snappy</groupId>
  110. <artifactId>snappy-java</artifactId>
  111. <scope>provided</scope>
  112. </dependency>
  113. <dependency>
  114. <groupId>${leveldbjni.group}</groupId>
  115. <artifactId>leveldbjni-all</artifactId>
  116. </dependency>
  117. <dependency>
  118. <groupId>org.apache.geronimo.specs</groupId>
  119. <artifactId>geronimo-jcache_1.0_spec</artifactId>
  120. <exclusions>
  121. <exclusion>
  122. <groupId>org.osgi</groupId>
  123. <artifactId>org.osgi.core</artifactId>
  124. </exclusion>
  125. </exclusions>
  126. </dependency>
  127. <dependency>
  128. <groupId>org.ehcache</groupId>
  129. <artifactId>ehcache</artifactId>
  130. </dependency>
  131. <dependency>
  132. <groupId>com.zaxxer</groupId>
  133. <artifactId>HikariCP</artifactId>
  134. </dependency>
  135. <dependency>
  136. <groupId>org.hsqldb</groupId>
  137. <artifactId>hsqldb</artifactId>
  138. <scope>test</scope>
  139. </dependency>
  140. <dependency>
  141. <groupId>com.microsoft.sqlserver</groupId>
  142. <artifactId>mssql-jdbc</artifactId>
  143. <scope>runtime</scope>
  144. <exclusions>
  145. <exclusion>
  146. <groupId>com.microsoft.azure</groupId>
  147. <artifactId>azure-keyvault</artifactId>
  148. </exclusion>
  149. </exclusions>
  150. </dependency>
  151. <dependency>
  152. <groupId>org.apache.curator</groupId>
  153. <artifactId>curator-test</artifactId>
  154. <scope>test</scope>
  155. </dependency>
  156. </dependencies>
  157. <build>
  158. <plugins>
  159. <plugin>
  160. <artifactId>maven-antrun-plugin</artifactId>
  161. <executions>
  162. <execution>
  163. <id>copy-site</id>
  164. <phase>pre-site</phase>
  165. <goals>
  166. <goal>run</goal>
  167. </goals>
  168. <configuration>
  169. <tasks>
  170. <copy file="src/main/xsl/configuration.xsl" todir="src/site/resources"/>
  171. </tasks>
  172. </configuration>
  173. </execution>
  174. <execution>
  175. <id>copy-sql</id>
  176. <phase>test</phase>
  177. <goals>
  178. <goal>run</goal>
  179. </goals>
  180. <configuration>
  181. <tasks>
  182. <copy file="${basedir}/../../bin/FederationStateStore/MySQL/FederationStateStoreTables.sql" todir="${project.build.directory}/test-classes/MySQL"/>
  183. <copy file="${basedir}/../../bin/FederationStateStore/MySQL/FederationStateStoreStoredProcs.sql" todir="${project.build.directory}/test-classes/MySQL"/>
  184. <copy file="${basedir}/../../bin/FederationStateStore/SQLServer/FederationStateStoreTables.sql" todir="${project.build.directory}/test-classes/SQLServer"/>
  185. <copy file="${basedir}/../../bin/FederationStateStore/SQLServer/FederationStateStoreStoredProcs.sql" todir="${project.build.directory}/test-classes/SQLServer"/>
  186. </tasks>
  187. </configuration>
  188. </execution>
  189. </executions>
  190. </plugin>
  191. <plugin>
  192. <groupId>org.xolstice.maven.plugins</groupId>
  193. <artifactId>protobuf-maven-plugin</artifactId>
  194. <executions>
  195. <execution>
  196. <id>src-compile-protoc</id>
  197. <configuration>
  198. <skip>false</skip>
  199. <additionalProtoPathElements>
  200. <additionalProtoPathElement>
  201. ${basedir}/../../../../hadoop-common-project/hadoop-common/src/main/proto
  202. </additionalProtoPathElement>
  203. <additionalProtoPathElement>
  204. ${basedir}/../../hadoop-yarn-api/src/main/proto
  205. </additionalProtoPathElement>
  206. <additionalProtoPathElement>
  207. ${basedir}/../../hadoop-yarn-common/src/main/proto
  208. </additionalProtoPathElement>
  209. </additionalProtoPathElements>
  210. </configuration>
  211. </execution>
  212. </executions>
  213. </plugin>
  214. <plugin>
  215. <groupId>com.google.code.maven-replacer-plugin</groupId>
  216. <artifactId>replacer</artifactId>
  217. <executions>
  218. <execution>
  219. <id>replace-generated-sources</id>
  220. <configuration>
  221. <skip>false</skip>
  222. </configuration>
  223. </execution>
  224. <execution>
  225. <id>replace-sources</id>
  226. <configuration>
  227. <skip>false</skip>
  228. </configuration>
  229. </execution>
  230. <execution>
  231. <id>replace-test-sources</id>
  232. <configuration>
  233. <skip>false</skip>
  234. </configuration>
  235. </execution>
  236. </executions>
  237. </plugin>
  238. <plugin>
  239. <artifactId>maven-clean-plugin</artifactId>
  240. <configuration>
  241. <filesets>
  242. <fileset>
  243. <directory>src/site/resources</directory>
  244. <includes>
  245. <include>configuration.xsl</include>
  246. </includes>
  247. <followSymlinks>false</followSymlinks>
  248. </fileset>
  249. </filesets>
  250. </configuration>
  251. </plugin>
  252. <plugin>
  253. <groupId>org.apache.rat</groupId>
  254. <artifactId>apache-rat-plugin</artifactId>
  255. <configuration>
  256. <excludes>
  257. <exclude>src/test/resources/nodes</exclude>
  258. <exclude>src/test/resources/nodes-malformed</exclude>
  259. </excludes>
  260. </configuration>
  261. </plugin>
  262. <plugin>
  263. <artifactId>maven-jar-plugin</artifactId>
  264. <executions>
  265. <execution>
  266. <goals>
  267. <goal>test-jar</goal>
  268. </goals>
  269. <phase>test-compile</phase>
  270. </execution>
  271. </executions>
  272. </plugin>
  273. </plugins>
  274. </build>
  275. </project>